groupdocs-parser-cloud 23.10.0 → 26.2.0

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 (49) hide show
  1. package/LICENSE +1 -1
  2. package/lib/{api_client.d.ts → src/api_client.d.ts} +17 -17
  3. package/lib/{api_client.js → src/api_client.js} +135 -125
  4. package/lib/{api_error.d.ts → src/api_error.d.ts} +56 -56
  5. package/lib/{api_error.js → src/api_error.js} +81 -80
  6. package/lib/{auth.d.ts → src/auth.d.ts} +23 -22
  7. package/lib/{auth.js → src/auth.js} +96 -71
  8. package/lib/{configuration.d.ts → src/configuration.d.ts} +39 -39
  9. package/lib/{configuration.js → src/configuration.js} +56 -55
  10. package/lib/{model.d.ts → src/model.d.ts} +2248 -2206
  11. package/lib/{model.js → src/model.js} +2216 -2169
  12. package/lib/{package_version.d.ts → src/package_version.d.ts} +4 -4
  13. package/lib/{package_version.js → src/package_version.js} +30 -29
  14. package/lib/{parser_api.d.ts → src/parser_api.d.ts} +274 -270
  15. package/lib/{parser_api.js → src/parser_api.js} +930 -893
  16. package/lib/{serializer.d.ts → src/serializer.d.ts} +14 -14
  17. package/lib/{serializer.js → src/serializer.js} +171 -170
  18. package/lib/test/api/test_auth_api.d.ts +1 -0
  19. package/lib/test/api/test_auth_api.js +45 -0
  20. package/lib/test/api/test_barcode_api.d.ts +1 -0
  21. package/lib/test/api/test_barcode_api.js +64 -0
  22. package/lib/test/api/test_file_api.d.ts +1 -0
  23. package/lib/test/api/test_file_api.js +95 -0
  24. package/lib/test/api/test_folder_api.d.ts +1 -0
  25. package/lib/test/api/test_folder_api.js +84 -0
  26. package/lib/test/api/test_formats_api.d.ts +1 -0
  27. package/lib/test/api/test_formats_api.js +60 -0
  28. package/lib/test/api/test_parser_container_api.d.ts +1 -0
  29. package/lib/test/api/test_parser_container_api.js +134 -0
  30. package/lib/test/api/test_parser_image_api.d.ts +1 -0
  31. package/lib/test/api/test_parser_image_api.js +179 -0
  32. package/lib/test/api/test_parser_info_api.d.ts +1 -0
  33. package/lib/test/api/test_parser_info_api.js +112 -0
  34. package/lib/test/api/test_parser_parse_api.d.ts +1 -0
  35. package/lib/test/api/test_parser_parse_api.js +184 -0
  36. package/lib/test/api/test_parser_template_api.d.ts +1 -0
  37. package/lib/test/api/test_parser_template_api.js +168 -0
  38. package/lib/test/api/test_parser_text_api.d.ts +1 -0
  39. package/lib/test/api/test_parser_text_api.js +180 -0
  40. package/lib/test/api/test_storage_api.d.ts +1 -0
  41. package/lib/test/api/test_storage_api.js +76 -0
  42. package/lib/test/test_context.d.ts +30 -0
  43. package/lib/test/test_context.js +156 -0
  44. package/lib/test/test_coverage.d.ts +1 -0
  45. package/lib/test/test_coverage.js +77 -0
  46. package/lib/test/test_file.d.ts +50 -0
  47. package/lib/test/test_file.js +92 -0
  48. package/lib/tsconfig.tsbuildinfo +1 -0
  49. package/package.json +16 -14
@@ -1,2169 +1,2216 @@
1
- "use strict";
2
- /*
3
- * The MIT License (MIT)
4
- *
5
- * Copyright (c) 2003-2023 Aspose Pty Ltd
6
- *
7
- * Permission is hereby granted, free of charge, to any person obtaining a copy
8
- * of this software and associated documentation files (the "Software"), to deal
9
- * in the Software without restriction, including without limitation the rights
10
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
- * copies of the Software, and to permit persons to whom the Software is
12
- * furnished to do so, subject to the following conditions:
13
- *
14
- * The above copyright notice and this permission notice shall be included in all
15
- * copies or substantial portions of the Software.
16
- *
17
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
- * SOFTWARE.
24
- */
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- /**
27
- * Represents an barcode.
28
- */
29
- class Barcode {
30
- constructor(init) {
31
- Object.assign(this, init);
32
- }
33
- /**
34
- * Returns attribute type map
35
- */
36
- static getAttributeTypeMap() {
37
- return Barcode.attributeTypeMap;
38
- }
39
- }
40
- /**
41
- * Attribute type map
42
- */
43
- Barcode.attributeTypeMap = [
44
- {
45
- name: "codeTypeName",
46
- baseName: "codeTypeName",
47
- type: "string",
48
- },
49
- {
50
- name: "value",
51
- baseName: "value",
52
- type: "string",
53
- },
54
- {
55
- name: "downloadUrl",
56
- baseName: "downloadUrl",
57
- type: "string",
58
- }
59
- ];
60
- exports.Barcode = Barcode;
61
- /**
62
- * Represents page object with barcode.
63
- */
64
- class BarcodePage {
65
- constructor(init) {
66
- Object.assign(this, init);
67
- }
68
- /**
69
- * Returns attribute type map
70
- */
71
- static getAttributeTypeMap() {
72
- return BarcodePage.attributeTypeMap;
73
- }
74
- }
75
- /**
76
- * Attribute type map
77
- */
78
- BarcodePage.attributeTypeMap = [
79
- {
80
- name: "index",
81
- baseName: "index",
82
- type: "number",
83
- }
84
- ];
85
- exports.BarcodePage = BarcodePage;
86
- /**
87
- * Barcodes result.
88
- */
89
- class BarcodesResult {
90
- constructor(init) {
91
- Object.assign(this, init);
92
- }
93
- /**
94
- * Returns attribute type map
95
- */
96
- static getAttributeTypeMap() {
97
- return BarcodesResult.attributeTypeMap;
98
- }
99
- }
100
- /**
101
- * Attribute type map
102
- */
103
- BarcodesResult.attributeTypeMap = [
104
- {
105
- name: "barcodes",
106
- baseName: "barcodes",
107
- type: "Array<Barcode>",
108
- }
109
- ];
110
- exports.BarcodesResult = BarcodesResult;
111
- /**
112
- * Represents a container item like Zip archive entity, email attachment, PDF Portfolio item and so on.
113
- */
114
- class ContainerItem {
115
- constructor(init) {
116
- Object.assign(this, init);
117
- }
118
- /**
119
- * Returns attribute type map
120
- */
121
- static getAttributeTypeMap() {
122
- return ContainerItem.attributeTypeMap;
123
- }
124
- }
125
- /**
126
- * Attribute type map
127
- */
128
- ContainerItem.attributeTypeMap = [
129
- {
130
- name: "name",
131
- baseName: "name",
132
- type: "string",
133
- },
134
- {
135
- name: "filePath",
136
- baseName: "filePath",
137
- type: "string",
138
- },
139
- {
140
- name: "directory",
141
- baseName: "directory",
142
- type: "string",
143
- },
144
- {
145
- name: "metadata",
146
- baseName: "metadata",
147
- type: "{ [key: string]: string; }",
148
- }
149
- ];
150
- exports.ContainerItem = ContainerItem;
151
- /**
152
- * Container item info.
153
- */
154
- class ContainerItemInfo {
155
- constructor(init) {
156
- Object.assign(this, init);
157
- }
158
- /**
159
- * Returns attribute type map
160
- */
161
- static getAttributeTypeMap() {
162
- return ContainerItemInfo.attributeTypeMap;
163
- }
164
- }
165
- /**
166
- * Attribute type map
167
- */
168
- ContainerItemInfo.attributeTypeMap = [
169
- {
170
- name: "relativePath",
171
- baseName: "relativePath",
172
- type: "string",
173
- },
174
- {
175
- name: "password",
176
- baseName: "password",
177
- type: "string",
178
- }
179
- ];
180
- exports.ContainerItemInfo = ContainerItemInfo;
181
- /**
182
- * Container result.
183
- */
184
- class ContainerResult {
185
- constructor(init) {
186
- Object.assign(this, init);
187
- }
188
- /**
189
- * Returns attribute type map
190
- */
191
- static getAttributeTypeMap() {
192
- return ContainerResult.attributeTypeMap;
193
- }
194
- }
195
- /**
196
- * Attribute type map
197
- */
198
- ContainerResult.attributeTypeMap = [
199
- {
200
- name: "containerItems",
201
- baseName: "containerItems",
202
- type: "Array<ContainerItem>",
203
- }
204
- ];
205
- exports.ContainerResult = ContainerResult;
206
- /**
207
- * Class for rectangle coordinates.
208
- */
209
- class Coordinates {
210
- constructor(init) {
211
- Object.assign(this, init);
212
- }
213
- /**
214
- * Returns attribute type map
215
- */
216
- static getAttributeTypeMap() {
217
- return Coordinates.attributeTypeMap;
218
- }
219
- }
220
- /**
221
- * Attribute type map
222
- */
223
- Coordinates.attributeTypeMap = [
224
- {
225
- name: "top",
226
- baseName: "top",
227
- type: "number",
228
- },
229
- {
230
- name: "bottom",
231
- baseName: "bottom",
232
- type: "number",
233
- },
234
- {
235
- name: "left",
236
- baseName: "left",
237
- type: "number",
238
- },
239
- {
240
- name: "right",
241
- baseName: "right",
242
- type: "number",
243
- }
244
- ];
245
- exports.Coordinates = Coordinates;
246
- /**
247
- * Template methods options.
248
- */
249
- class CreateTemplateOptions {
250
- constructor(init) {
251
- Object.assign(this, init);
252
- }
253
- /**
254
- * Returns attribute type map
255
- */
256
- static getAttributeTypeMap() {
257
- return CreateTemplateOptions.attributeTypeMap;
258
- }
259
- }
260
- /**
261
- * Attribute type map
262
- */
263
- CreateTemplateOptions.attributeTypeMap = [
264
- {
265
- name: "template",
266
- baseName: "template",
267
- type: "Template",
268
- },
269
- {
270
- name: "templatePath",
271
- baseName: "templatePath",
272
- type: "string",
273
- },
274
- {
275
- name: "storageName",
276
- baseName: "storageName",
277
- type: "string",
278
- }
279
- ];
280
- exports.CreateTemplateOptions = CreateTemplateOptions;
281
- /**
282
- * Provides parameters for the table detection algorithms.
283
- */
284
- class DetectorParameters {
285
- constructor(init) {
286
- Object.assign(this, init);
287
- }
288
- /**
289
- * Returns attribute type map
290
- */
291
- static getAttributeTypeMap() {
292
- return DetectorParameters.attributeTypeMap;
293
- }
294
- }
295
- /**
296
- * Attribute type map
297
- */
298
- DetectorParameters.attributeTypeMap = [
299
- {
300
- name: "minRowCount",
301
- baseName: "minRowCount",
302
- type: "number",
303
- },
304
- {
305
- name: "minColumnCount",
306
- baseName: "minColumnCount",
307
- type: "number",
308
- },
309
- {
310
- name: "minVerticalSpace",
311
- baseName: "minVerticalSpace",
312
- type: "number",
313
- },
314
- {
315
- name: "hasMergedCells",
316
- baseName: "hasMergedCells",
317
- type: "boolean",
318
- },
319
- {
320
- name: "rectangle",
321
- baseName: "rectangle",
322
- type: "Rectangle",
323
- },
324
- {
325
- name: "verticalSeparators",
326
- baseName: "verticalSeparators",
327
- type: "Array<number>",
328
- }
329
- ];
330
- exports.DetectorParameters = DetectorParameters;
331
- /**
332
- * Class for disc space information.
333
- */
334
- class DiscUsage {
335
- constructor(init) {
336
- Object.assign(this, init);
337
- }
338
- /**
339
- * Returns attribute type map
340
- */
341
- static getAttributeTypeMap() {
342
- return DiscUsage.attributeTypeMap;
343
- }
344
- }
345
- /**
346
- * Attribute type map
347
- */
348
- DiscUsage.attributeTypeMap = [
349
- {
350
- name: "usedSize",
351
- baseName: "usedSize",
352
- type: "number",
353
- },
354
- {
355
- name: "totalSize",
356
- baseName: "totalSize",
357
- type: "number",
358
- }
359
- ];
360
- exports.DiscUsage = DiscUsage;
361
- /**
362
- * The error details
363
- */
364
- class ErrorDetails {
365
- constructor(init) {
366
- Object.assign(this, init);
367
- }
368
- /**
369
- * Returns attribute type map
370
- */
371
- static getAttributeTypeMap() {
372
- return ErrorDetails.attributeTypeMap;
373
- }
374
- }
375
- /**
376
- * Attribute type map
377
- */
378
- ErrorDetails.attributeTypeMap = [
379
- {
380
- name: "requestId",
381
- baseName: "requestId",
382
- type: "string",
383
- },
384
- {
385
- name: "date",
386
- baseName: "date",
387
- type: "Date",
388
- }
389
- ];
390
- exports.ErrorDetails = ErrorDetails;
391
- /**
392
- * Field of document template
393
- */
394
- class Field {
395
- constructor(init) {
396
- Object.assign(this, init);
397
- }
398
- /**
399
- * Returns attribute type map
400
- */
401
- static getAttributeTypeMap() {
402
- return Field.attributeTypeMap;
403
- }
404
- }
405
- /**
406
- * Attribute type map
407
- */
408
- Field.attributeTypeMap = [
409
- {
410
- name: "fieldName",
411
- baseName: "fieldName",
412
- type: "string",
413
- },
414
- {
415
- name: "pageIndex",
416
- baseName: "pageIndex",
417
- type: "number",
418
- },
419
- {
420
- name: "fieldPosition",
421
- baseName: "fieldPosition",
422
- type: "FieldPosition",
423
- }
424
- ];
425
- exports.Field = Field;
426
- /**
427
- * Class for document field data.
428
- */
429
- class FieldData {
430
- constructor(init) {
431
- Object.assign(this, init);
432
- }
433
- /**
434
- * Returns attribute type map
435
- */
436
- static getAttributeTypeMap() {
437
- return FieldData.attributeTypeMap;
438
- }
439
- }
440
- /**
441
- * Attribute type map
442
- */
443
- FieldData.attributeTypeMap = [
444
- {
445
- name: "name",
446
- baseName: "name",
447
- type: "string",
448
- },
449
- {
450
- name: "pageIndex",
451
- baseName: "pageIndex",
452
- type: "number",
453
- },
454
- {
455
- name: "pageArea",
456
- baseName: "pageArea",
457
- type: "PageArea",
458
- },
459
- {
460
- name: "linkedField",
461
- baseName: "linkedField",
462
- type: "FieldData",
463
- }
464
- ];
465
- exports.FieldData = FieldData;
466
- /**
467
- * Field position class.
468
- */
469
- class FieldPosition {
470
- constructor(init) {
471
- Object.assign(this, init);
472
- }
473
- /**
474
- * Returns attribute type map
475
- */
476
- static getAttributeTypeMap() {
477
- return FieldPosition.attributeTypeMap;
478
- }
479
- }
480
- /**
481
- * Attribute type map
482
- */
483
- FieldPosition.attributeTypeMap = [
484
- {
485
- name: "fieldPositionType",
486
- baseName: "fieldPositionType",
487
- type: "string",
488
- },
489
- {
490
- name: "rectangle",
491
- baseName: "rectangle",
492
- type: "Rectangle",
493
- },
494
- {
495
- name: "regex",
496
- baseName: "regex",
497
- type: "string",
498
- },
499
- {
500
- name: "matchCase",
501
- baseName: "matchCase",
502
- type: "boolean",
503
- },
504
- {
505
- name: "linkedFieldName",
506
- baseName: "linkedFieldName",
507
- type: "string",
508
- },
509
- {
510
- name: "isLeftLinked",
511
- baseName: "isLeftLinked",
512
- type: "boolean",
513
- },
514
- {
515
- name: "isRightLinked",
516
- baseName: "isRightLinked",
517
- type: "boolean",
518
- },
519
- {
520
- name: "isTopLinked",
521
- baseName: "isTopLinked",
522
- type: "boolean",
523
- },
524
- {
525
- name: "isBottomLinked",
526
- baseName: "isBottomLinked",
527
- type: "boolean",
528
- },
529
- {
530
- name: "searchArea",
531
- baseName: "searchArea",
532
- type: "Size",
533
- },
534
- {
535
- name: "autoScale",
536
- baseName: "autoScale",
537
- type: "boolean",
538
- }
539
- ];
540
- exports.FieldPosition = FieldPosition;
541
- /**
542
- * File info
543
- */
544
- class FileInfo {
545
- constructor(init) {
546
- Object.assign(this, init);
547
- }
548
- /**
549
- * Returns attribute type map
550
- */
551
- static getAttributeTypeMap() {
552
- return FileInfo.attributeTypeMap;
553
- }
554
- }
555
- /**
556
- * Attribute type map
557
- */
558
- FileInfo.attributeTypeMap = [
559
- {
560
- name: "filePath",
561
- baseName: "filePath",
562
- type: "string",
563
- },
564
- {
565
- name: "storageName",
566
- baseName: "storageName",
567
- type: "string",
568
- },
569
- {
570
- name: "password",
571
- baseName: "password",
572
- type: "string",
573
- }
574
- ];
575
- exports.FileInfo = FileInfo;
576
- /**
577
- * Represents the file type.
578
- */
579
- class FileType {
580
- constructor(init) {
581
- Object.assign(this, init);
582
- }
583
- /**
584
- * Returns attribute type map
585
- */
586
- static getAttributeTypeMap() {
587
- return FileType.attributeTypeMap;
588
- }
589
- }
590
- /**
591
- * Attribute type map
592
- */
593
- FileType.attributeTypeMap = [
594
- {
595
- name: "fileFormat",
596
- baseName: "fileFormat",
597
- type: "string",
598
- },
599
- {
600
- name: "extension",
601
- baseName: "extension",
602
- type: "string",
603
- }
604
- ];
605
- exports.FileType = FileType;
606
- /**
607
- * File versions FileVersion.
608
- */
609
- class FileVersions {
610
- constructor(init) {
611
- Object.assign(this, init);
612
- }
613
- /**
614
- * Returns attribute type map
615
- */
616
- static getAttributeTypeMap() {
617
- return FileVersions.attributeTypeMap;
618
- }
619
- }
620
- /**
621
- * Attribute type map
622
- */
623
- FileVersions.attributeTypeMap = [
624
- {
625
- name: "value",
626
- baseName: "value",
627
- type: "Array<FileVersion>",
628
- }
629
- ];
630
- exports.FileVersions = FileVersions;
631
- /**
632
- * Files list
633
- */
634
- class FilesList {
635
- constructor(init) {
636
- Object.assign(this, init);
637
- }
638
- /**
639
- * Returns attribute type map
640
- */
641
- static getAttributeTypeMap() {
642
- return FilesList.attributeTypeMap;
643
- }
644
- }
645
- /**
646
- * Attribute type map
647
- */
648
- FilesList.attributeTypeMap = [
649
- {
650
- name: "value",
651
- baseName: "value",
652
- type: "Array<StorageFile>",
653
- }
654
- ];
655
- exports.FilesList = FilesList;
656
- /**
657
- * File upload result
658
- */
659
- class FilesUploadResult {
660
- constructor(init) {
661
- Object.assign(this, init);
662
- }
663
- /**
664
- * Returns attribute type map
665
- */
666
- static getAttributeTypeMap() {
667
- return FilesUploadResult.attributeTypeMap;
668
- }
669
- }
670
- /**
671
- * Attribute type map
672
- */
673
- FilesUploadResult.attributeTypeMap = [
674
- {
675
- name: "uploaded",
676
- baseName: "uploaded",
677
- type: "Array<string>",
678
- },
679
- {
680
- name: "errors",
681
- baseName: "errors",
682
- type: "Array<Error>",
683
- }
684
- ];
685
- exports.FilesUploadResult = FilesUploadResult;
686
- /**
687
- * File-format
688
- */
689
- class Format {
690
- constructor(init) {
691
- Object.assign(this, init);
692
- }
693
- /**
694
- * Returns attribute type map
695
- */
696
- static getAttributeTypeMap() {
697
- return Format.attributeTypeMap;
698
- }
699
- }
700
- /**
701
- * Attribute type map
702
- */
703
- Format.attributeTypeMap = [
704
- {
705
- name: "extension",
706
- baseName: "extension",
707
- type: "string",
708
- },
709
- {
710
- name: "fileFormat",
711
- baseName: "fileFormat",
712
- type: "string",
713
- }
714
- ];
715
- exports.Format = Format;
716
- /**
717
- * Describes object which contains list of supported file formats.
718
- */
719
- class FormatsResult {
720
- constructor(init) {
721
- Object.assign(this, init);
722
- }
723
- /**
724
- * Returns attribute type map
725
- */
726
- static getAttributeTypeMap() {
727
- return FormatsResult.attributeTypeMap;
728
- }
729
- }
730
- /**
731
- * Attribute type map
732
- */
733
- FormatsResult.attributeTypeMap = [
734
- {
735
- name: "formats",
736
- baseName: "formats",
737
- type: "Array<Format>",
738
- }
739
- ];
740
- exports.FormatsResult = FormatsResult;
741
- /**
742
- * Provides the options which are used for formatted text extraction.
743
- */
744
- class FormattedTextOptions {
745
- constructor(init) {
746
- Object.assign(this, init);
747
- }
748
- /**
749
- * Returns attribute type map
750
- */
751
- static getAttributeTypeMap() {
752
- return FormattedTextOptions.attributeTypeMap;
753
- }
754
- }
755
- /**
756
- * Attribute type map
757
- */
758
- FormattedTextOptions.attributeTypeMap = [
759
- {
760
- name: "mode",
761
- baseName: "mode",
762
- type: "string",
763
- }
764
- ];
765
- exports.FormattedTextOptions = FormattedTextOptions;
766
- /**
767
- * Represents an image.
768
- */
769
- class Image {
770
- constructor(init) {
771
- Object.assign(this, init);
772
- }
773
- /**
774
- * Returns attribute type map
775
- */
776
- static getAttributeTypeMap() {
777
- return Image.attributeTypeMap;
778
- }
779
- }
780
- /**
781
- * Attribute type map
782
- */
783
- Image.attributeTypeMap = [
784
- {
785
- name: "path",
786
- baseName: "path",
787
- type: "string",
788
- },
789
- {
790
- name: "downloadUrl",
791
- baseName: "downloadUrl",
792
- type: "string",
793
- },
794
- {
795
- name: "pageIndex",
796
- baseName: "pageIndex",
797
- type: "number",
798
- },
799
- {
800
- name: "rotation",
801
- baseName: "rotation",
802
- type: "number",
803
- },
804
- {
805
- name: "fileFormat",
806
- baseName: "fileFormat",
807
- type: "string",
808
- },
809
- {
810
- name: "rectangle",
811
- baseName: "rectangle",
812
- type: "Rectangle",
813
- }
814
- ];
815
- exports.Image = Image;
816
- /**
817
- * Represents page object with image collection.
818
- */
819
- class ImagePage {
820
- constructor(init) {
821
- Object.assign(this, init);
822
- }
823
- /**
824
- * Returns attribute type map
825
- */
826
- static getAttributeTypeMap() {
827
- return ImagePage.attributeTypeMap;
828
- }
829
- }
830
- /**
831
- * Attribute type map
832
- */
833
- ImagePage.attributeTypeMap = [
834
- {
835
- name: "pageIndex",
836
- baseName: "pageIndex",
837
- type: "number",
838
- },
839
- {
840
- name: "images",
841
- baseName: "images",
842
- type: "Array<Image>",
843
- }
844
- ];
845
- exports.ImagePage = ImagePage;
846
- /**
847
- * Images result.
848
- */
849
- class ImagesResult {
850
- constructor(init) {
851
- Object.assign(this, init);
852
- }
853
- /**
854
- * Returns attribute type map
855
- */
856
- static getAttributeTypeMap() {
857
- return ImagesResult.attributeTypeMap;
858
- }
859
- }
860
- /**
861
- * Attribute type map
862
- */
863
- ImagesResult.attributeTypeMap = [
864
- {
865
- name: "images",
866
- baseName: "images",
867
- type: "Array<Image>",
868
- },
869
- {
870
- name: "pages",
871
- baseName: "pages",
872
- type: "Array<ImagePage>",
873
- }
874
- ];
875
- exports.ImagesResult = ImagesResult;
876
- /**
877
- * Info result.
878
- */
879
- class InfoResult {
880
- constructor(init) {
881
- Object.assign(this, init);
882
- }
883
- /**
884
- * Returns attribute type map
885
- */
886
- static getAttributeTypeMap() {
887
- return InfoResult.attributeTypeMap;
888
- }
889
- }
890
- /**
891
- * Attribute type map
892
- */
893
- InfoResult.attributeTypeMap = [
894
- {
895
- name: "fileType",
896
- baseName: "fileType",
897
- type: "FileType",
898
- },
899
- {
900
- name: "size",
901
- baseName: "size",
902
- type: "number",
903
- },
904
- {
905
- name: "pageCount",
906
- baseName: "pageCount",
907
- type: "number",
908
- },
909
- {
910
- name: "encoding",
911
- baseName: "encoding",
912
- type: "string",
913
- }
914
- ];
915
- exports.InfoResult = InfoResult;
916
- /**
917
- * Error
918
- */
919
- class ModelError {
920
- constructor(init) {
921
- Object.assign(this, init);
922
- }
923
- /**
924
- * Returns attribute type map
925
- */
926
- static getAttributeTypeMap() {
927
- return ModelError.attributeTypeMap;
928
- }
929
- }
930
- /**
931
- * Attribute type map
932
- */
933
- ModelError.attributeTypeMap = [
934
- {
935
- name: "code",
936
- baseName: "code",
937
- type: "string",
938
- },
939
- {
940
- name: "message",
941
- baseName: "message",
942
- type: "string",
943
- },
944
- {
945
- name: "description",
946
- baseName: "description",
947
- type: "string",
948
- },
949
- {
950
- name: "innerError",
951
- baseName: "innerError",
952
- type: "ErrorDetails",
953
- }
954
- ];
955
- exports.ModelError = ModelError;
956
- /**
957
- * Object exists
958
- */
959
- class ObjectExist {
960
- constructor(init) {
961
- Object.assign(this, init);
962
- }
963
- /**
964
- * Returns attribute type map
965
- */
966
- static getAttributeTypeMap() {
967
- return ObjectExist.attributeTypeMap;
968
- }
969
- }
970
- /**
971
- * Attribute type map
972
- */
973
- ObjectExist.attributeTypeMap = [
974
- {
975
- name: "exists",
976
- baseName: "exists",
977
- type: "boolean",
978
- },
979
- {
980
- name: "isFolder",
981
- baseName: "isFolder",
982
- type: "boolean",
983
- }
984
- ];
985
- exports.ObjectExist = ObjectExist;
986
- /**
987
- * The document page information such as page index and page size.
988
- */
989
- class Page {
990
- constructor(init) {
991
- Object.assign(this, init);
992
- }
993
- /**
994
- * Returns attribute type map
995
- */
996
- static getAttributeTypeMap() {
997
- return Page.attributeTypeMap;
998
- }
999
- }
1000
- /**
1001
- * Attribute type map
1002
- */
1003
- Page.attributeTypeMap = [
1004
- {
1005
- name: "index",
1006
- baseName: "index",
1007
- type: "number",
1008
- },
1009
- {
1010
- name: "size",
1011
- baseName: "size",
1012
- type: "Size",
1013
- }
1014
- ];
1015
- exports.Page = Page;
1016
- /**
1017
- * Class for document page area.
1018
- */
1019
- class PageArea {
1020
- constructor(init) {
1021
- Object.assign(this, init);
1022
- }
1023
- /**
1024
- * Returns attribute type map
1025
- */
1026
- static getAttributeTypeMap() {
1027
- return PageArea.attributeTypeMap;
1028
- }
1029
- }
1030
- /**
1031
- * Attribute type map
1032
- */
1033
- PageArea.attributeTypeMap = [
1034
- {
1035
- name: "rectangle",
1036
- baseName: "rectangle",
1037
- type: "Rectangle",
1038
- },
1039
- {
1040
- name: "page",
1041
- baseName: "page",
1042
- type: "Page",
1043
- },
1044
- {
1045
- name: "pageTextArea",
1046
- baseName: "pageTextArea",
1047
- type: "PageTextArea",
1048
- },
1049
- {
1050
- name: "pageTableArea",
1051
- baseName: "pageTableArea",
1052
- type: "PageTableArea",
1053
- }
1054
- ];
1055
- exports.PageArea = PageArea;
1056
- /**
1057
- * Represents a table page area which is used to represent a table in the parsing by template functionality.
1058
- */
1059
- class PageTableArea {
1060
- constructor(init) {
1061
- Object.assign(this, init);
1062
- }
1063
- /**
1064
- * Returns attribute type map
1065
- */
1066
- static getAttributeTypeMap() {
1067
- return PageTableArea.attributeTypeMap;
1068
- }
1069
- }
1070
- /**
1071
- * Attribute type map
1072
- */
1073
- PageTableArea.attributeTypeMap = [
1074
- {
1075
- name: "rowCount",
1076
- baseName: "rowCount",
1077
- type: "number",
1078
- },
1079
- {
1080
- name: "columnCount",
1081
- baseName: "columnCount",
1082
- type: "number",
1083
- },
1084
- {
1085
- name: "pageTableAreaCells",
1086
- baseName: "pageTableAreaCells",
1087
- type: "Array<PageTableAreaCell>",
1088
- }
1089
- ];
1090
- exports.PageTableArea = PageTableArea;
1091
- /**
1092
- * Represents a table cell.
1093
- */
1094
- class PageTableAreaCell {
1095
- constructor(init) {
1096
- Object.assign(this, init);
1097
- }
1098
- /**
1099
- * Returns attribute type map
1100
- */
1101
- static getAttributeTypeMap() {
1102
- return PageTableAreaCell.attributeTypeMap;
1103
- }
1104
- }
1105
- /**
1106
- * Attribute type map
1107
- */
1108
- PageTableAreaCell.attributeTypeMap = [
1109
- {
1110
- name: "columnIndex",
1111
- baseName: "columnIndex",
1112
- type: "number",
1113
- },
1114
- {
1115
- name: "columnSpan",
1116
- baseName: "columnSpan",
1117
- type: "number",
1118
- },
1119
- {
1120
- name: "pageArea",
1121
- baseName: "pageArea",
1122
- type: "PageArea",
1123
- },
1124
- {
1125
- name: "rowIndex",
1126
- baseName: "rowIndex",
1127
- type: "number",
1128
- },
1129
- {
1130
- name: "rowSpan",
1131
- baseName: "rowSpan",
1132
- type: "number",
1133
- }
1134
- ];
1135
- exports.PageTableAreaCell = PageTableAreaCell;
1136
- /**
1137
- * Represents a page text area which is used to represent a text value in the parsing by template functionality.
1138
- */
1139
- class PageTextArea {
1140
- constructor(init) {
1141
- Object.assign(this, init);
1142
- }
1143
- /**
1144
- * Returns attribute type map
1145
- */
1146
- static getAttributeTypeMap() {
1147
- return PageTextArea.attributeTypeMap;
1148
- }
1149
- }
1150
- /**
1151
- * Attribute type map
1152
- */
1153
- PageTextArea.attributeTypeMap = [
1154
- {
1155
- name: "text",
1156
- baseName: "text",
1157
- type: "string",
1158
- },
1159
- {
1160
- name: "baseLine",
1161
- baseName: "baseLine",
1162
- type: "number",
1163
- },
1164
- {
1165
- name: "areas",
1166
- baseName: "areas",
1167
- type: "Array<PageTextArea>",
1168
- },
1169
- {
1170
- name: "textStyle",
1171
- baseName: "textStyle",
1172
- type: "TextStyle",
1173
- }
1174
- ];
1175
- exports.PageTextArea = PageTextArea;
1176
- /**
1177
- * Parse result.
1178
- */
1179
- class ParseResult {
1180
- constructor(init) {
1181
- Object.assign(this, init);
1182
- }
1183
- /**
1184
- * Returns attribute type map
1185
- */
1186
- static getAttributeTypeMap() {
1187
- return ParseResult.attributeTypeMap;
1188
- }
1189
- }
1190
- /**
1191
- * Attribute type map
1192
- */
1193
- ParseResult.attributeTypeMap = [
1194
- {
1195
- name: "count",
1196
- baseName: "count",
1197
- type: "number",
1198
- },
1199
- {
1200
- name: "fieldsData",
1201
- baseName: "fieldsData",
1202
- type: "Array<FieldData>",
1203
- }
1204
- ];
1205
- exports.ParseResult = ParseResult;
1206
- /**
1207
- * Base options class.
1208
- */
1209
- class ParserOptions {
1210
- constructor(init) {
1211
- Object.assign(this, init);
1212
- }
1213
- /**
1214
- * Returns attribute type map
1215
- */
1216
- static getAttributeTypeMap() {
1217
- return ParserOptions.attributeTypeMap;
1218
- }
1219
- }
1220
- /**
1221
- * Attribute type map
1222
- */
1223
- ParserOptions.attributeTypeMap = [
1224
- {
1225
- name: "fileInfo",
1226
- baseName: "fileInfo",
1227
- type: "FileInfo",
1228
- },
1229
- {
1230
- name: "containerItemInfo",
1231
- baseName: "containerItemInfo",
1232
- type: "ContainerItemInfo",
1233
- }
1234
- ];
1235
- exports.ParserOptions = ParserOptions;
1236
- /**
1237
- * Class for rectangle position model.
1238
- */
1239
- class Point {
1240
- constructor(init) {
1241
- Object.assign(this, init);
1242
- }
1243
- /**
1244
- * Returns attribute type map
1245
- */
1246
- static getAttributeTypeMap() {
1247
- return Point.attributeTypeMap;
1248
- }
1249
- }
1250
- /**
1251
- * Attribute type map
1252
- */
1253
- Point.attributeTypeMap = [
1254
- {
1255
- name: "x",
1256
- baseName: "x",
1257
- type: "number",
1258
- },
1259
- {
1260
- name: "y",
1261
- baseName: "y",
1262
- type: "number",
1263
- }
1264
- ];
1265
- exports.Point = Point;
1266
- /**
1267
- * Rectangular area on the page.
1268
- */
1269
- class Rectangle {
1270
- constructor(init) {
1271
- Object.assign(this, init);
1272
- }
1273
- /**
1274
- * Returns attribute type map
1275
- */
1276
- static getAttributeTypeMap() {
1277
- return Rectangle.attributeTypeMap;
1278
- }
1279
- }
1280
- /**
1281
- * Attribute type map
1282
- */
1283
- Rectangle.attributeTypeMap = [
1284
- {
1285
- name: "position",
1286
- baseName: "position",
1287
- type: "Point",
1288
- },
1289
- {
1290
- name: "size",
1291
- baseName: "size",
1292
- type: "Size",
1293
- },
1294
- {
1295
- name: "coordinates",
1296
- baseName: "coordinates",
1297
- type: "Coordinates",
1298
- }
1299
- ];
1300
- exports.Rectangle = Rectangle;
1301
- /**
1302
- * Represents a size of rectangular area.
1303
- */
1304
- class Size {
1305
- constructor(init) {
1306
- Object.assign(this, init);
1307
- }
1308
- /**
1309
- * Returns attribute type map
1310
- */
1311
- static getAttributeTypeMap() {
1312
- return Size.attributeTypeMap;
1313
- }
1314
- }
1315
- /**
1316
- * Attribute type map
1317
- */
1318
- Size.attributeTypeMap = [
1319
- {
1320
- name: "height",
1321
- baseName: "height",
1322
- type: "number",
1323
- },
1324
- {
1325
- name: "width",
1326
- baseName: "width",
1327
- type: "number",
1328
- }
1329
- ];
1330
- exports.Size = Size;
1331
- /**
1332
- * Storage exists
1333
- */
1334
- class StorageExist {
1335
- constructor(init) {
1336
- Object.assign(this, init);
1337
- }
1338
- /**
1339
- * Returns attribute type map
1340
- */
1341
- static getAttributeTypeMap() {
1342
- return StorageExist.attributeTypeMap;
1343
- }
1344
- }
1345
- /**
1346
- * Attribute type map
1347
- */
1348
- StorageExist.attributeTypeMap = [
1349
- {
1350
- name: "exists",
1351
- baseName: "exists",
1352
- type: "boolean",
1353
- }
1354
- ];
1355
- exports.StorageExist = StorageExist;
1356
- /**
1357
- * File or folder information
1358
- */
1359
- class StorageFile {
1360
- constructor(init) {
1361
- Object.assign(this, init);
1362
- }
1363
- /**
1364
- * Returns attribute type map
1365
- */
1366
- static getAttributeTypeMap() {
1367
- return StorageFile.attributeTypeMap;
1368
- }
1369
- }
1370
- /**
1371
- * Attribute type map
1372
- */
1373
- StorageFile.attributeTypeMap = [
1374
- {
1375
- name: "name",
1376
- baseName: "name",
1377
- type: "string",
1378
- },
1379
- {
1380
- name: "isFolder",
1381
- baseName: "isFolder",
1382
- type: "boolean",
1383
- },
1384
- {
1385
- name: "modifiedDate",
1386
- baseName: "modifiedDate",
1387
- type: "Date",
1388
- },
1389
- {
1390
- name: "size",
1391
- baseName: "size",
1392
- type: "number",
1393
- },
1394
- {
1395
- name: "path",
1396
- baseName: "path",
1397
- type: "string",
1398
- }
1399
- ];
1400
- exports.StorageFile = StorageFile;
1401
- /**
1402
- * Document template table
1403
- */
1404
- class Table {
1405
- constructor(init) {
1406
- Object.assign(this, init);
1407
- }
1408
- /**
1409
- * Returns attribute type map
1410
- */
1411
- static getAttributeTypeMap() {
1412
- return Table.attributeTypeMap;
1413
- }
1414
- }
1415
- /**
1416
- * Attribute type map
1417
- */
1418
- Table.attributeTypeMap = [
1419
- {
1420
- name: "tableName",
1421
- baseName: "tableName",
1422
- type: "string",
1423
- },
1424
- {
1425
- name: "pageIndex",
1426
- baseName: "pageIndex",
1427
- type: "number",
1428
- },
1429
- {
1430
- name: "detectorParameters",
1431
- baseName: "detectorParameters",
1432
- type: "DetectorParameters",
1433
- },
1434
- {
1435
- name: "tableLayout",
1436
- baseName: "tableLayout",
1437
- type: "TableLayout",
1438
- }
1439
- ];
1440
- exports.Table = Table;
1441
- /**
1442
- * Provides the template table layout which is used by Table to define table position.
1443
- */
1444
- class TableLayout {
1445
- constructor(init) {
1446
- Object.assign(this, init);
1447
- }
1448
- /**
1449
- * Returns attribute type map
1450
- */
1451
- static getAttributeTypeMap() {
1452
- return TableLayout.attributeTypeMap;
1453
- }
1454
- }
1455
- /**
1456
- * Attribute type map
1457
- */
1458
- TableLayout.attributeTypeMap = [
1459
- {
1460
- name: "verticalSeparators",
1461
- baseName: "verticalSeparators",
1462
- type: "Array<number>",
1463
- },
1464
- {
1465
- name: "horizontalSeparators",
1466
- baseName: "horizontalSeparators",
1467
- type: "Array<number>",
1468
- }
1469
- ];
1470
- exports.TableLayout = TableLayout;
1471
- /**
1472
- * User-generated template to extract metadata from the document.
1473
- */
1474
- class Template {
1475
- constructor(init) {
1476
- Object.assign(this, init);
1477
- }
1478
- /**
1479
- * Returns attribute type map
1480
- */
1481
- static getAttributeTypeMap() {
1482
- return Template.attributeTypeMap;
1483
- }
1484
- }
1485
- /**
1486
- * Attribute type map
1487
- */
1488
- Template.attributeTypeMap = [
1489
- {
1490
- name: "fields",
1491
- baseName: "fields",
1492
- type: "Array<Field>",
1493
- },
1494
- {
1495
- name: "tables",
1496
- baseName: "tables",
1497
- type: "Array<Table>",
1498
- }
1499
- ];
1500
- exports.Template = Template;
1501
- /**
1502
- * Template methods options.
1503
- */
1504
- class TemplateOptions {
1505
- constructor(init) {
1506
- Object.assign(this, init);
1507
- }
1508
- /**
1509
- * Returns attribute type map
1510
- */
1511
- static getAttributeTypeMap() {
1512
- return TemplateOptions.attributeTypeMap;
1513
- }
1514
- }
1515
- /**
1516
- * Attribute type map
1517
- */
1518
- TemplateOptions.attributeTypeMap = [
1519
- {
1520
- name: "templatePath",
1521
- baseName: "templatePath",
1522
- type: "string",
1523
- },
1524
- {
1525
- name: "storageName",
1526
- baseName: "storageName",
1527
- type: "string",
1528
- }
1529
- ];
1530
- exports.TemplateOptions = TemplateOptions;
1531
- /**
1532
- * Document template result.
1533
- */
1534
- class TemplateResult {
1535
- constructor(init) {
1536
- Object.assign(this, init);
1537
- }
1538
- /**
1539
- * Returns attribute type map
1540
- */
1541
- static getAttributeTypeMap() {
1542
- return TemplateResult.attributeTypeMap;
1543
- }
1544
- }
1545
- /**
1546
- * Attribute type map
1547
- */
1548
- TemplateResult.attributeTypeMap = [
1549
- {
1550
- name: "url",
1551
- baseName: "url",
1552
- type: "string",
1553
- },
1554
- {
1555
- name: "templatePath",
1556
- baseName: "templatePath",
1557
- type: "string",
1558
- }
1559
- ];
1560
- exports.TemplateResult = TemplateResult;
1561
- /**
1562
- * Extracted text page class.
1563
- */
1564
- class TextPage {
1565
- constructor(init) {
1566
- Object.assign(this, init);
1567
- }
1568
- /**
1569
- * Returns attribute type map
1570
- */
1571
- static getAttributeTypeMap() {
1572
- return TextPage.attributeTypeMap;
1573
- }
1574
- }
1575
- /**
1576
- * Attribute type map
1577
- */
1578
- TextPage.attributeTypeMap = [
1579
- {
1580
- name: "pageIndex",
1581
- baseName: "pageIndex",
1582
- type: "number",
1583
- },
1584
- {
1585
- name: "text",
1586
- baseName: "text",
1587
- type: "string",
1588
- }
1589
- ];
1590
- exports.TextPage = TextPage;
1591
- /**
1592
- * The result od text extraction.
1593
- */
1594
- class TextResult {
1595
- constructor(init) {
1596
- Object.assign(this, init);
1597
- }
1598
- /**
1599
- * Returns attribute type map
1600
- */
1601
- static getAttributeTypeMap() {
1602
- return TextResult.attributeTypeMap;
1603
- }
1604
- }
1605
- /**
1606
- * Attribute type map
1607
- */
1608
- TextResult.attributeTypeMap = [
1609
- {
1610
- name: "pages",
1611
- baseName: "pages",
1612
- type: "Array<TextPage>",
1613
- },
1614
- {
1615
- name: "text",
1616
- baseName: "text",
1617
- type: "string",
1618
- }
1619
- ];
1620
- exports.TextResult = TextResult;
1621
- /**
1622
- * The text style such as font size, font name an so on.
1623
- */
1624
- class TextStyle {
1625
- constructor(init) {
1626
- Object.assign(this, init);
1627
- }
1628
- /**
1629
- * Returns attribute type map
1630
- */
1631
- static getAttributeTypeMap() {
1632
- return TextStyle.attributeTypeMap;
1633
- }
1634
- }
1635
- /**
1636
- * Attribute type map
1637
- */
1638
- TextStyle.attributeTypeMap = [
1639
- {
1640
- name: "fontName",
1641
- baseName: "fontName",
1642
- type: "string",
1643
- },
1644
- {
1645
- name: "fontSize",
1646
- baseName: "fontSize",
1647
- type: "number",
1648
- },
1649
- {
1650
- name: "isBold",
1651
- baseName: "isBold",
1652
- type: "boolean",
1653
- },
1654
- {
1655
- name: "isItalic",
1656
- baseName: "isItalic",
1657
- type: "boolean",
1658
- },
1659
- {
1660
- name: "name",
1661
- baseName: "name",
1662
- type: "string",
1663
- }
1664
- ];
1665
- exports.TextStyle = TextStyle;
1666
- /**
1667
- * Barcode options.
1668
- */
1669
- class BarcodesOptions extends ParserOptions {
1670
- constructor(init) {
1671
- super(init);
1672
- Object.assign(this, init);
1673
- }
1674
- /**
1675
- * Returns attribute type map
1676
- */
1677
- static getAttributeTypeMap() {
1678
- return super.getAttributeTypeMap().concat(BarcodesOptions.attributeTypeMap);
1679
- }
1680
- }
1681
- /**
1682
- * Attribute type map
1683
- */
1684
- BarcodesOptions.attributeTypeMap = [
1685
- {
1686
- name: "outputPath",
1687
- baseName: "outputPath",
1688
- type: "string",
1689
- },
1690
- {
1691
- name: "startPageNumber",
1692
- baseName: "startPageNumber",
1693
- type: "number",
1694
- },
1695
- {
1696
- name: "countPagesToExtract",
1697
- baseName: "countPagesToExtract",
1698
- type: "number",
1699
- }
1700
- ];
1701
- exports.BarcodesOptions = BarcodesOptions;
1702
- /**
1703
- * Container options.
1704
- */
1705
- class ContainerOptions extends ParserOptions {
1706
- constructor(init) {
1707
- super(init);
1708
- Object.assign(this, init);
1709
- }
1710
- /**
1711
- * Returns attribute type map
1712
- */
1713
- static getAttributeTypeMap() {
1714
- return super.getAttributeTypeMap().concat(ContainerOptions.attributeTypeMap);
1715
- }
1716
- }
1717
- /**
1718
- * Attribute type map
1719
- */
1720
- ContainerOptions.attributeTypeMap = [];
1721
- exports.ContainerOptions = ContainerOptions;
1722
- /**
1723
- * File Version
1724
- */
1725
- class FileVersion extends StorageFile {
1726
- constructor(init) {
1727
- super(init);
1728
- Object.assign(this, init);
1729
- }
1730
- /**
1731
- * Returns attribute type map
1732
- */
1733
- static getAttributeTypeMap() {
1734
- return super.getAttributeTypeMap().concat(FileVersion.attributeTypeMap);
1735
- }
1736
- }
1737
- /**
1738
- * Attribute type map
1739
- */
1740
- FileVersion.attributeTypeMap = [
1741
- {
1742
- name: "versionId",
1743
- baseName: "versionId",
1744
- type: "string",
1745
- },
1746
- {
1747
- name: "isLatest",
1748
- baseName: "isLatest",
1749
- type: "boolean",
1750
- }
1751
- ];
1752
- exports.FileVersion = FileVersion;
1753
- /**
1754
- * Image options.
1755
- */
1756
- class ImagesOptions extends ParserOptions {
1757
- constructor(init) {
1758
- super(init);
1759
- Object.assign(this, init);
1760
- }
1761
- /**
1762
- * Returns attribute type map
1763
- */
1764
- static getAttributeTypeMap() {
1765
- return super.getAttributeTypeMap().concat(ImagesOptions.attributeTypeMap);
1766
- }
1767
- }
1768
- /**
1769
- * Attribute type map
1770
- */
1771
- ImagesOptions.attributeTypeMap = [
1772
- {
1773
- name: "outputPath",
1774
- baseName: "outputPath",
1775
- type: "string",
1776
- },
1777
- {
1778
- name: "startPageNumber",
1779
- baseName: "startPageNumber",
1780
- type: "number",
1781
- },
1782
- {
1783
- name: "countPagesToExtract",
1784
- baseName: "countPagesToExtract",
1785
- type: "number",
1786
- }
1787
- ];
1788
- exports.ImagesOptions = ImagesOptions;
1789
- /**
1790
- * Info options
1791
- */
1792
- class InfoOptions extends ParserOptions {
1793
- constructor(init) {
1794
- super(init);
1795
- Object.assign(this, init);
1796
- }
1797
- /**
1798
- * Returns attribute type map
1799
- */
1800
- static getAttributeTypeMap() {
1801
- return super.getAttributeTypeMap().concat(InfoOptions.attributeTypeMap);
1802
- }
1803
- }
1804
- /**
1805
- * Attribute type map
1806
- */
1807
- InfoOptions.attributeTypeMap = [];
1808
- exports.InfoOptions = InfoOptions;
1809
- /**
1810
- * Parse options.
1811
- */
1812
- class ParseOptions extends ParserOptions {
1813
- constructor(init) {
1814
- super(init);
1815
- Object.assign(this, init);
1816
- }
1817
- /**
1818
- * Returns attribute type map
1819
- */
1820
- static getAttributeTypeMap() {
1821
- return super.getAttributeTypeMap().concat(ParseOptions.attributeTypeMap);
1822
- }
1823
- }
1824
- /**
1825
- * Attribute type map
1826
- */
1827
- ParseOptions.attributeTypeMap = [
1828
- {
1829
- name: "template",
1830
- baseName: "template",
1831
- type: "Template",
1832
- },
1833
- {
1834
- name: "templatePath",
1835
- baseName: "templatePath",
1836
- type: "string",
1837
- }
1838
- ];
1839
- exports.ParseOptions = ParseOptions;
1840
- /**
1841
- * Extract options.
1842
- */
1843
- class TextOptions extends ParserOptions {
1844
- constructor(init) {
1845
- super(init);
1846
- Object.assign(this, init);
1847
- }
1848
- /**
1849
- * Returns attribute type map
1850
- */
1851
- static getAttributeTypeMap() {
1852
- return super.getAttributeTypeMap().concat(TextOptions.attributeTypeMap);
1853
- }
1854
- }
1855
- /**
1856
- * Attribute type map
1857
- */
1858
- TextOptions.attributeTypeMap = [
1859
- {
1860
- name: "formattedTextOptions",
1861
- baseName: "formattedTextOptions",
1862
- type: "FormattedTextOptions",
1863
- },
1864
- {
1865
- name: "startPageNumber",
1866
- baseName: "startPageNumber",
1867
- type: "number",
1868
- },
1869
- {
1870
- name: "countPagesToExtract",
1871
- baseName: "countPagesToExtract",
1872
- type: "number",
1873
- }
1874
- ];
1875
- exports.TextOptions = TextOptions;
1876
- const enumsMap = {};
1877
- exports.enumsMap = enumsMap;
1878
- const typeMap = {
1879
- Barcode,
1880
- BarcodePage,
1881
- BarcodesResult,
1882
- ContainerItem,
1883
- ContainerItemInfo,
1884
- ContainerResult,
1885
- Coordinates,
1886
- CreateTemplateOptions,
1887
- DetectorParameters,
1888
- DiscUsage,
1889
- ErrorDetails,
1890
- Field,
1891
- FieldData,
1892
- FieldPosition,
1893
- FileInfo,
1894
- FileType,
1895
- FileVersions,
1896
- FilesList,
1897
- FilesUploadResult,
1898
- Format,
1899
- FormatsResult,
1900
- FormattedTextOptions,
1901
- Image,
1902
- ImagePage,
1903
- ImagesResult,
1904
- InfoResult,
1905
- ModelError,
1906
- ObjectExist,
1907
- Page,
1908
- PageArea,
1909
- PageTableArea,
1910
- PageTableAreaCell,
1911
- PageTextArea,
1912
- ParseResult,
1913
- ParserOptions,
1914
- Point,
1915
- Rectangle,
1916
- Size,
1917
- StorageExist,
1918
- StorageFile,
1919
- Table,
1920
- TableLayout,
1921
- Template,
1922
- TemplateOptions,
1923
- TemplateResult,
1924
- TextPage,
1925
- TextResult,
1926
- TextStyle,
1927
- BarcodesOptions,
1928
- ContainerOptions,
1929
- FileVersion,
1930
- ImagesOptions,
1931
- InfoOptions,
1932
- ParseOptions,
1933
- TextOptions,
1934
- };
1935
- exports.typeMap = typeMap;
1936
- /**
1937
- * Request model for CopyFile operation.
1938
- */
1939
- class CopyFileRequest {
1940
- constructor(srcPath, destPath, srcStorageName, destStorageName, versionId) {
1941
- this.srcPath = srcPath;
1942
- this.destPath = destPath;
1943
- this.srcStorageName = srcStorageName;
1944
- this.destStorageName = destStorageName;
1945
- this.versionId = versionId;
1946
- }
1947
- }
1948
- exports.CopyFileRequest = CopyFileRequest;
1949
- /**
1950
- * Request model for DeleteFile operation.
1951
- */
1952
- class DeleteFileRequest {
1953
- constructor(path, storageName, versionId) {
1954
- this.path = path;
1955
- this.storageName = storageName;
1956
- this.versionId = versionId;
1957
- }
1958
- }
1959
- exports.DeleteFileRequest = DeleteFileRequest;
1960
- /**
1961
- * Request model for DownloadFile operation.
1962
- */
1963
- class DownloadFileRequest {
1964
- constructor(path, storageName, versionId) {
1965
- this.path = path;
1966
- this.storageName = storageName;
1967
- this.versionId = versionId;
1968
- }
1969
- }
1970
- exports.DownloadFileRequest = DownloadFileRequest;
1971
- /**
1972
- * Request model for MoveFile operation.
1973
- */
1974
- class MoveFileRequest {
1975
- constructor(srcPath, destPath, srcStorageName, destStorageName, versionId) {
1976
- this.srcPath = srcPath;
1977
- this.destPath = destPath;
1978
- this.srcStorageName = srcStorageName;
1979
- this.destStorageName = destStorageName;
1980
- this.versionId = versionId;
1981
- }
1982
- }
1983
- exports.MoveFileRequest = MoveFileRequest;
1984
- /**
1985
- * Request model for UploadFile operation.
1986
- */
1987
- class UploadFileRequest {
1988
- constructor(path, file, storageName) {
1989
- this.path = path;
1990
- this.file = file;
1991
- this.storageName = storageName;
1992
- }
1993
- }
1994
- exports.UploadFileRequest = UploadFileRequest;
1995
- /**
1996
- * Request model for CopyFolder operation.
1997
- */
1998
- class CopyFolderRequest {
1999
- constructor(srcPath, destPath, srcStorageName, destStorageName) {
2000
- this.srcPath = srcPath;
2001
- this.destPath = destPath;
2002
- this.srcStorageName = srcStorageName;
2003
- this.destStorageName = destStorageName;
2004
- }
2005
- }
2006
- exports.CopyFolderRequest = CopyFolderRequest;
2007
- /**
2008
- * Request model for CreateFolder operation.
2009
- */
2010
- class CreateFolderRequest {
2011
- constructor(path, storageName) {
2012
- this.path = path;
2013
- this.storageName = storageName;
2014
- }
2015
- }
2016
- exports.CreateFolderRequest = CreateFolderRequest;
2017
- /**
2018
- * Request model for DeleteFolder operation.
2019
- */
2020
- class DeleteFolderRequest {
2021
- constructor(path, storageName, recursive) {
2022
- this.path = path;
2023
- this.storageName = storageName;
2024
- this.recursive = recursive;
2025
- }
2026
- }
2027
- exports.DeleteFolderRequest = DeleteFolderRequest;
2028
- /**
2029
- * Request model for GetFilesList operation.
2030
- */
2031
- class GetFilesListRequest {
2032
- constructor(path, storageName) {
2033
- this.path = path;
2034
- this.storageName = storageName;
2035
- }
2036
- }
2037
- exports.GetFilesListRequest = GetFilesListRequest;
2038
- /**
2039
- * Request model for MoveFolder operation.
2040
- */
2041
- class MoveFolderRequest {
2042
- constructor(srcPath, destPath, srcStorageName, destStorageName) {
2043
- this.srcPath = srcPath;
2044
- this.destPath = destPath;
2045
- this.srcStorageName = srcStorageName;
2046
- this.destStorageName = destStorageName;
2047
- }
2048
- }
2049
- exports.MoveFolderRequest = MoveFolderRequest;
2050
- /**
2051
- * Request model for Container operation.
2052
- */
2053
- class ContainerRequest {
2054
- constructor(options) {
2055
- this.options = options;
2056
- }
2057
- }
2058
- exports.ContainerRequest = ContainerRequest;
2059
- /**
2060
- * Request model for GetInfo operation.
2061
- */
2062
- class GetInfoRequest {
2063
- constructor(options) {
2064
- this.options = options;
2065
- }
2066
- }
2067
- exports.GetInfoRequest = GetInfoRequest;
2068
- /**
2069
- * Request model for Barcodes operation.
2070
- */
2071
- class BarcodesRequest {
2072
- constructor(options) {
2073
- this.options = options;
2074
- }
2075
- }
2076
- exports.BarcodesRequest = BarcodesRequest;
2077
- /**
2078
- * Request model for Images operation.
2079
- */
2080
- class ImagesRequest {
2081
- constructor(options) {
2082
- this.options = options;
2083
- }
2084
- }
2085
- exports.ImagesRequest = ImagesRequest;
2086
- /**
2087
- * Request model for Parse operation.
2088
- */
2089
- class ParseRequest {
2090
- constructor(options) {
2091
- this.options = options;
2092
- }
2093
- }
2094
- exports.ParseRequest = ParseRequest;
2095
- /**
2096
- * Request model for Text operation.
2097
- */
2098
- class TextRequest {
2099
- constructor(options) {
2100
- this.options = options;
2101
- }
2102
- }
2103
- exports.TextRequest = TextRequest;
2104
- /**
2105
- * Request model for GetDiscUsage operation.
2106
- */
2107
- class GetDiscUsageRequest {
2108
- constructor(storageName) {
2109
- this.storageName = storageName;
2110
- }
2111
- }
2112
- exports.GetDiscUsageRequest = GetDiscUsageRequest;
2113
- /**
2114
- * Request model for GetFileVersions operation.
2115
- */
2116
- class GetFileVersionsRequest {
2117
- constructor(path, storageName) {
2118
- this.path = path;
2119
- this.storageName = storageName;
2120
- }
2121
- }
2122
- exports.GetFileVersionsRequest = GetFileVersionsRequest;
2123
- /**
2124
- * Request model for ObjectExists operation.
2125
- */
2126
- class ObjectExistsRequest {
2127
- constructor(path, storageName, versionId) {
2128
- this.path = path;
2129
- this.storageName = storageName;
2130
- this.versionId = versionId;
2131
- }
2132
- }
2133
- exports.ObjectExistsRequest = ObjectExistsRequest;
2134
- /**
2135
- * Request model for StorageExists operation.
2136
- */
2137
- class StorageExistsRequest {
2138
- constructor(storageName) {
2139
- this.storageName = storageName;
2140
- }
2141
- }
2142
- exports.StorageExistsRequest = StorageExistsRequest;
2143
- /**
2144
- * Request model for CreateTemplate operation.
2145
- */
2146
- class CreateTemplateRequest {
2147
- constructor(options) {
2148
- this.options = options;
2149
- }
2150
- }
2151
- exports.CreateTemplateRequest = CreateTemplateRequest;
2152
- /**
2153
- * Request model for DeleteTemplate operation.
2154
- */
2155
- class DeleteTemplateRequest {
2156
- constructor(options) {
2157
- this.options = options;
2158
- }
2159
- }
2160
- exports.DeleteTemplateRequest = DeleteTemplateRequest;
2161
- /**
2162
- * Request model for GetTemplate operation.
2163
- */
2164
- class GetTemplateRequest {
2165
- constructor(options) {
2166
- this.options = options;
2167
- }
2168
- }
2169
- exports.GetTemplateRequest = GetTemplateRequest;
1
+ "use strict";
2
+ /*
3
+ * The MIT License (MIT)
4
+ *
5
+ * Copyright (c) Aspose Pty Ltd
6
+ *
7
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ * of this software and associated documentation files (the "Software"), to deal
9
+ * in the Software without restriction, including without limitation the rights
10
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ * copies of the Software, and to permit persons to whom the Software is
12
+ * furnished to do so, subject to the following conditions:
13
+ *
14
+ * The above copyright notice and this permission notice shall be included in all
15
+ * copies or substantial portions of the Software.
16
+ *
17
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
+ * SOFTWARE.
24
+ */
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.BarcodesOptions = exports.AIParseOptions = exports.TextStyle = exports.TextResult = exports.TextPage = exports.TemplateResult = exports.TemplateOptions = exports.Template = exports.TableLayout = exports.Table = exports.StorageFile = exports.StorageExist = exports.Size = exports.Rectangle = exports.Point = exports.ParserOptions = exports.ParseResult = exports.PageTextArea = exports.PageTableAreaCell = exports.PageTableArea = exports.PageArea = exports.Page = exports.ObjectExist = exports.ModelError = exports.InfoResult = exports.ImagesResult = exports.ImagePage = exports.Image = exports.FormattedTextOptions = exports.FormatsResult = exports.Format = exports.FilesUploadResult = exports.FilesList = exports.FileVersions = exports.FileType = exports.FileInfo = exports.FieldPosition = exports.FieldData = exports.Field = exports.ErrorDetails = exports.DiscUsage = exports.DetectorParameters = exports.CreateTemplateOptions = exports.Coordinates = exports.ContainerResult = exports.ContainerItemInfo = exports.ContainerItem = exports.BarcodesResult = exports.BarcodePage = exports.Barcode = void 0;
27
+ exports.GetTemplateRequest = exports.DeleteTemplateRequest = exports.CreateTemplateRequest = exports.StorageExistsRequest = exports.ObjectExistsRequest = exports.GetFileVersionsRequest = exports.GetDiscUsageRequest = exports.TextRequest = exports.ParseRequest = exports.ImagesRequest = exports.BarcodesRequest = exports.AIParseRequest = exports.GetInfoRequest = exports.ContainerRequest = exports.MoveFolderRequest = exports.GetFilesListRequest = exports.DeleteFolderRequest = exports.CreateFolderRequest = exports.CopyFolderRequest = exports.UploadFileRequest = exports.MoveFileRequest = exports.DownloadFileRequest = exports.DeleteFileRequest = exports.CopyFileRequest = exports.typeMap = exports.enumsMap = exports.TextOptions = exports.ParseOptions = exports.InfoOptions = exports.ImagesOptions = exports.FileVersion = exports.ContainerOptions = void 0;
28
+ /**
29
+ * Represents an barcode.
30
+ */
31
+ class Barcode {
32
+ /**
33
+ * Returns attribute type map
34
+ */
35
+ static getAttributeTypeMap() {
36
+ return Barcode.attributeTypeMap;
37
+ }
38
+ constructor(init) {
39
+ Object.assign(this, init);
40
+ }
41
+ }
42
+ exports.Barcode = Barcode;
43
+ /**
44
+ * Attribute type map
45
+ */
46
+ Barcode.attributeTypeMap = [
47
+ {
48
+ name: "codeTypeName",
49
+ baseName: "codeTypeName",
50
+ type: "string",
51
+ },
52
+ {
53
+ name: "page",
54
+ baseName: "page",
55
+ type: "BarcodePage",
56
+ },
57
+ {
58
+ name: "rectangle",
59
+ baseName: "rectangle",
60
+ type: "Rectangle",
61
+ },
62
+ {
63
+ name: "value",
64
+ baseName: "value",
65
+ type: "string",
66
+ },
67
+ {
68
+ name: "downloadUrl",
69
+ baseName: "downloadUrl",
70
+ type: "string",
71
+ }
72
+ ];
73
+ class BarcodePage {
74
+ /**
75
+ * Returns attribute type map
76
+ */
77
+ static getAttributeTypeMap() {
78
+ return BarcodePage.attributeTypeMap;
79
+ }
80
+ constructor(init) {
81
+ Object.assign(this, init);
82
+ }
83
+ }
84
+ exports.BarcodePage = BarcodePage;
85
+ /**
86
+ * Attribute type map
87
+ */
88
+ BarcodePage.attributeTypeMap = [
89
+ {
90
+ name: "index",
91
+ baseName: "index",
92
+ type: "number",
93
+ },
94
+ {
95
+ name: "size",
96
+ baseName: "size",
97
+ type: "Size",
98
+ }
99
+ ];
100
+ class BarcodesResult {
101
+ /**
102
+ * Returns attribute type map
103
+ */
104
+ static getAttributeTypeMap() {
105
+ return BarcodesResult.attributeTypeMap;
106
+ }
107
+ constructor(init) {
108
+ Object.assign(this, init);
109
+ }
110
+ }
111
+ exports.BarcodesResult = BarcodesResult;
112
+ /**
113
+ * Attribute type map
114
+ */
115
+ BarcodesResult.attributeTypeMap = [
116
+ {
117
+ name: "barcodes",
118
+ baseName: "barcodes",
119
+ type: "Array<Barcode>",
120
+ }
121
+ ];
122
+ /**
123
+ * Represents a container item like Zip archive entity, email attachment, PDF Portfolio item and so on.
124
+ */
125
+ class ContainerItem {
126
+ /**
127
+ * Returns attribute type map
128
+ */
129
+ static getAttributeTypeMap() {
130
+ return ContainerItem.attributeTypeMap;
131
+ }
132
+ constructor(init) {
133
+ Object.assign(this, init);
134
+ }
135
+ }
136
+ exports.ContainerItem = ContainerItem;
137
+ /**
138
+ * Attribute type map
139
+ */
140
+ ContainerItem.attributeTypeMap = [
141
+ {
142
+ name: "name",
143
+ baseName: "name",
144
+ type: "string",
145
+ },
146
+ {
147
+ name: "filePath",
148
+ baseName: "filePath",
149
+ type: "string",
150
+ },
151
+ {
152
+ name: "directory",
153
+ baseName: "directory",
154
+ type: "string",
155
+ },
156
+ {
157
+ name: "metadata",
158
+ baseName: "metadata",
159
+ type: "{ [key: string]: string; }",
160
+ }
161
+ ];
162
+ /**
163
+ * Container item info.
164
+ */
165
+ class ContainerItemInfo {
166
+ /**
167
+ * Returns attribute type map
168
+ */
169
+ static getAttributeTypeMap() {
170
+ return ContainerItemInfo.attributeTypeMap;
171
+ }
172
+ constructor(init) {
173
+ Object.assign(this, init);
174
+ }
175
+ }
176
+ exports.ContainerItemInfo = ContainerItemInfo;
177
+ /**
178
+ * Attribute type map
179
+ */
180
+ ContainerItemInfo.attributeTypeMap = [
181
+ {
182
+ name: "relativePath",
183
+ baseName: "relativePath",
184
+ type: "string",
185
+ },
186
+ {
187
+ name: "password",
188
+ baseName: "password",
189
+ type: "string",
190
+ }
191
+ ];
192
+ /**
193
+ * Container result.
194
+ */
195
+ class ContainerResult {
196
+ /**
197
+ * Returns attribute type map
198
+ */
199
+ static getAttributeTypeMap() {
200
+ return ContainerResult.attributeTypeMap;
201
+ }
202
+ constructor(init) {
203
+ Object.assign(this, init);
204
+ }
205
+ }
206
+ exports.ContainerResult = ContainerResult;
207
+ /**
208
+ * Attribute type map
209
+ */
210
+ ContainerResult.attributeTypeMap = [
211
+ {
212
+ name: "containerItems",
213
+ baseName: "containerItems",
214
+ type: "Array<ContainerItem>",
215
+ }
216
+ ];
217
+ /**
218
+ * Class for rectangle coordinates.
219
+ */
220
+ class Coordinates {
221
+ /**
222
+ * Returns attribute type map
223
+ */
224
+ static getAttributeTypeMap() {
225
+ return Coordinates.attributeTypeMap;
226
+ }
227
+ constructor(init) {
228
+ Object.assign(this, init);
229
+ }
230
+ }
231
+ exports.Coordinates = Coordinates;
232
+ /**
233
+ * Attribute type map
234
+ */
235
+ Coordinates.attributeTypeMap = [
236
+ {
237
+ name: "top",
238
+ baseName: "top",
239
+ type: "number",
240
+ },
241
+ {
242
+ name: "bottom",
243
+ baseName: "bottom",
244
+ type: "number",
245
+ },
246
+ {
247
+ name: "left",
248
+ baseName: "left",
249
+ type: "number",
250
+ },
251
+ {
252
+ name: "right",
253
+ baseName: "right",
254
+ type: "number",
255
+ }
256
+ ];
257
+ /**
258
+ * Template methods options.
259
+ */
260
+ class CreateTemplateOptions {
261
+ /**
262
+ * Returns attribute type map
263
+ */
264
+ static getAttributeTypeMap() {
265
+ return CreateTemplateOptions.attributeTypeMap;
266
+ }
267
+ constructor(init) {
268
+ Object.assign(this, init);
269
+ }
270
+ }
271
+ exports.CreateTemplateOptions = CreateTemplateOptions;
272
+ /**
273
+ * Attribute type map
274
+ */
275
+ CreateTemplateOptions.attributeTypeMap = [
276
+ {
277
+ name: "template",
278
+ baseName: "template",
279
+ type: "Template",
280
+ },
281
+ {
282
+ name: "templatePath",
283
+ baseName: "templatePath",
284
+ type: "string",
285
+ },
286
+ {
287
+ name: "storageName",
288
+ baseName: "storageName",
289
+ type: "string",
290
+ }
291
+ ];
292
+ /**
293
+ * Provides parameters for the table detection algorithms.
294
+ */
295
+ class DetectorParameters {
296
+ /**
297
+ * Returns attribute type map
298
+ */
299
+ static getAttributeTypeMap() {
300
+ return DetectorParameters.attributeTypeMap;
301
+ }
302
+ constructor(init) {
303
+ Object.assign(this, init);
304
+ }
305
+ }
306
+ exports.DetectorParameters = DetectorParameters;
307
+ /**
308
+ * Attribute type map
309
+ */
310
+ DetectorParameters.attributeTypeMap = [
311
+ {
312
+ name: "minRowCount",
313
+ baseName: "minRowCount",
314
+ type: "number",
315
+ },
316
+ {
317
+ name: "minColumnCount",
318
+ baseName: "minColumnCount",
319
+ type: "number",
320
+ },
321
+ {
322
+ name: "minVerticalSpace",
323
+ baseName: "minVerticalSpace",
324
+ type: "number",
325
+ },
326
+ {
327
+ name: "hasMergedCells",
328
+ baseName: "hasMergedCells",
329
+ type: "boolean",
330
+ },
331
+ {
332
+ name: "rectangle",
333
+ baseName: "rectangle",
334
+ type: "Rectangle",
335
+ },
336
+ {
337
+ name: "verticalSeparators",
338
+ baseName: "verticalSeparators",
339
+ type: "Array<number>",
340
+ }
341
+ ];
342
+ /**
343
+ * Class for disc space information.
344
+ */
345
+ class DiscUsage {
346
+ /**
347
+ * Returns attribute type map
348
+ */
349
+ static getAttributeTypeMap() {
350
+ return DiscUsage.attributeTypeMap;
351
+ }
352
+ constructor(init) {
353
+ Object.assign(this, init);
354
+ }
355
+ }
356
+ exports.DiscUsage = DiscUsage;
357
+ /**
358
+ * Attribute type map
359
+ */
360
+ DiscUsage.attributeTypeMap = [
361
+ {
362
+ name: "usedSize",
363
+ baseName: "usedSize",
364
+ type: "number",
365
+ },
366
+ {
367
+ name: "totalSize",
368
+ baseName: "totalSize",
369
+ type: "number",
370
+ }
371
+ ];
372
+ /**
373
+ * The error details
374
+ */
375
+ class ErrorDetails {
376
+ /**
377
+ * Returns attribute type map
378
+ */
379
+ static getAttributeTypeMap() {
380
+ return ErrorDetails.attributeTypeMap;
381
+ }
382
+ constructor(init) {
383
+ Object.assign(this, init);
384
+ }
385
+ }
386
+ exports.ErrorDetails = ErrorDetails;
387
+ /**
388
+ * Attribute type map
389
+ */
390
+ ErrorDetails.attributeTypeMap = [
391
+ {
392
+ name: "requestId",
393
+ baseName: "requestId",
394
+ type: "string",
395
+ },
396
+ {
397
+ name: "date",
398
+ baseName: "date",
399
+ type: "Date",
400
+ }
401
+ ];
402
+ /**
403
+ * Field of document template
404
+ */
405
+ class Field {
406
+ /**
407
+ * Returns attribute type map
408
+ */
409
+ static getAttributeTypeMap() {
410
+ return Field.attributeTypeMap;
411
+ }
412
+ constructor(init) {
413
+ Object.assign(this, init);
414
+ }
415
+ }
416
+ exports.Field = Field;
417
+ /**
418
+ * Attribute type map
419
+ */
420
+ Field.attributeTypeMap = [
421
+ {
422
+ name: "fieldName",
423
+ baseName: "fieldName",
424
+ type: "string",
425
+ },
426
+ {
427
+ name: "pageIndex",
428
+ baseName: "pageIndex",
429
+ type: "number",
430
+ },
431
+ {
432
+ name: "fieldPosition",
433
+ baseName: "fieldPosition",
434
+ type: "FieldPosition",
435
+ }
436
+ ];
437
+ /**
438
+ * Class for document field data.
439
+ */
440
+ class FieldData {
441
+ /**
442
+ * Returns attribute type map
443
+ */
444
+ static getAttributeTypeMap() {
445
+ return FieldData.attributeTypeMap;
446
+ }
447
+ constructor(init) {
448
+ Object.assign(this, init);
449
+ }
450
+ }
451
+ exports.FieldData = FieldData;
452
+ /**
453
+ * Attribute type map
454
+ */
455
+ FieldData.attributeTypeMap = [
456
+ {
457
+ name: "name",
458
+ baseName: "name",
459
+ type: "string",
460
+ },
461
+ {
462
+ name: "pageIndex",
463
+ baseName: "pageIndex",
464
+ type: "number",
465
+ },
466
+ {
467
+ name: "pageArea",
468
+ baseName: "pageArea",
469
+ type: "PageArea",
470
+ },
471
+ {
472
+ name: "linkedField",
473
+ baseName: "linkedField",
474
+ type: "FieldData",
475
+ }
476
+ ];
477
+ /**
478
+ * Field position class.
479
+ */
480
+ class FieldPosition {
481
+ /**
482
+ * Returns attribute type map
483
+ */
484
+ static getAttributeTypeMap() {
485
+ return FieldPosition.attributeTypeMap;
486
+ }
487
+ constructor(init) {
488
+ Object.assign(this, init);
489
+ }
490
+ }
491
+ exports.FieldPosition = FieldPosition;
492
+ /**
493
+ * Attribute type map
494
+ */
495
+ FieldPosition.attributeTypeMap = [
496
+ {
497
+ name: "fieldPositionType",
498
+ baseName: "fieldPositionType",
499
+ type: "string",
500
+ },
501
+ {
502
+ name: "rectangle",
503
+ baseName: "rectangle",
504
+ type: "Rectangle",
505
+ },
506
+ {
507
+ name: "regex",
508
+ baseName: "regex",
509
+ type: "string",
510
+ },
511
+ {
512
+ name: "matchCase",
513
+ baseName: "matchCase",
514
+ type: "boolean",
515
+ },
516
+ {
517
+ name: "linkedFieldName",
518
+ baseName: "linkedFieldName",
519
+ type: "string",
520
+ },
521
+ {
522
+ name: "isLeftLinked",
523
+ baseName: "isLeftLinked",
524
+ type: "boolean",
525
+ },
526
+ {
527
+ name: "isRightLinked",
528
+ baseName: "isRightLinked",
529
+ type: "boolean",
530
+ },
531
+ {
532
+ name: "isTopLinked",
533
+ baseName: "isTopLinked",
534
+ type: "boolean",
535
+ },
536
+ {
537
+ name: "isBottomLinked",
538
+ baseName: "isBottomLinked",
539
+ type: "boolean",
540
+ },
541
+ {
542
+ name: "searchArea",
543
+ baseName: "searchArea",
544
+ type: "Size",
545
+ },
546
+ {
547
+ name: "autoScale",
548
+ baseName: "autoScale",
549
+ type: "boolean",
550
+ }
551
+ ];
552
+ /**
553
+ * File info
554
+ */
555
+ class FileInfo {
556
+ /**
557
+ * Returns attribute type map
558
+ */
559
+ static getAttributeTypeMap() {
560
+ return FileInfo.attributeTypeMap;
561
+ }
562
+ constructor(init) {
563
+ Object.assign(this, init);
564
+ }
565
+ }
566
+ exports.FileInfo = FileInfo;
567
+ /**
568
+ * Attribute type map
569
+ */
570
+ FileInfo.attributeTypeMap = [
571
+ {
572
+ name: "filePath",
573
+ baseName: "filePath",
574
+ type: "string",
575
+ },
576
+ {
577
+ name: "storageName",
578
+ baseName: "storageName",
579
+ type: "string",
580
+ },
581
+ {
582
+ name: "password",
583
+ baseName: "password",
584
+ type: "string",
585
+ }
586
+ ];
587
+ /**
588
+ * Represents the file type.
589
+ */
590
+ class FileType {
591
+ /**
592
+ * Returns attribute type map
593
+ */
594
+ static getAttributeTypeMap() {
595
+ return FileType.attributeTypeMap;
596
+ }
597
+ constructor(init) {
598
+ Object.assign(this, init);
599
+ }
600
+ }
601
+ exports.FileType = FileType;
602
+ /**
603
+ * Attribute type map
604
+ */
605
+ FileType.attributeTypeMap = [
606
+ {
607
+ name: "fileFormat",
608
+ baseName: "fileFormat",
609
+ type: "string",
610
+ },
611
+ {
612
+ name: "extension",
613
+ baseName: "extension",
614
+ type: "string",
615
+ }
616
+ ];
617
+ /**
618
+ * File versions FileVersion.
619
+ */
620
+ class FileVersions {
621
+ /**
622
+ * Returns attribute type map
623
+ */
624
+ static getAttributeTypeMap() {
625
+ return FileVersions.attributeTypeMap;
626
+ }
627
+ constructor(init) {
628
+ Object.assign(this, init);
629
+ }
630
+ }
631
+ exports.FileVersions = FileVersions;
632
+ /**
633
+ * Attribute type map
634
+ */
635
+ FileVersions.attributeTypeMap = [
636
+ {
637
+ name: "value",
638
+ baseName: "value",
639
+ type: "Array<FileVersion>",
640
+ }
641
+ ];
642
+ /**
643
+ * Files list
644
+ */
645
+ class FilesList {
646
+ /**
647
+ * Returns attribute type map
648
+ */
649
+ static getAttributeTypeMap() {
650
+ return FilesList.attributeTypeMap;
651
+ }
652
+ constructor(init) {
653
+ Object.assign(this, init);
654
+ }
655
+ }
656
+ exports.FilesList = FilesList;
657
+ /**
658
+ * Attribute type map
659
+ */
660
+ FilesList.attributeTypeMap = [
661
+ {
662
+ name: "value",
663
+ baseName: "value",
664
+ type: "Array<StorageFile>",
665
+ }
666
+ ];
667
+ /**
668
+ * File upload result
669
+ */
670
+ class FilesUploadResult {
671
+ /**
672
+ * Returns attribute type map
673
+ */
674
+ static getAttributeTypeMap() {
675
+ return FilesUploadResult.attributeTypeMap;
676
+ }
677
+ constructor(init) {
678
+ Object.assign(this, init);
679
+ }
680
+ }
681
+ exports.FilesUploadResult = FilesUploadResult;
682
+ /**
683
+ * Attribute type map
684
+ */
685
+ FilesUploadResult.attributeTypeMap = [
686
+ {
687
+ name: "uploaded",
688
+ baseName: "uploaded",
689
+ type: "Array<string>",
690
+ },
691
+ {
692
+ name: "errors",
693
+ baseName: "errors",
694
+ type: "Array<Error>",
695
+ }
696
+ ];
697
+ /**
698
+ * File-format
699
+ */
700
+ class Format {
701
+ /**
702
+ * Returns attribute type map
703
+ */
704
+ static getAttributeTypeMap() {
705
+ return Format.attributeTypeMap;
706
+ }
707
+ constructor(init) {
708
+ Object.assign(this, init);
709
+ }
710
+ }
711
+ exports.Format = Format;
712
+ /**
713
+ * Attribute type map
714
+ */
715
+ Format.attributeTypeMap = [
716
+ {
717
+ name: "extension",
718
+ baseName: "extension",
719
+ type: "string",
720
+ },
721
+ {
722
+ name: "fileFormat",
723
+ baseName: "fileFormat",
724
+ type: "string",
725
+ }
726
+ ];
727
+ /**
728
+ * Describes object which contains list of supported file formats.
729
+ */
730
+ class FormatsResult {
731
+ /**
732
+ * Returns attribute type map
733
+ */
734
+ static getAttributeTypeMap() {
735
+ return FormatsResult.attributeTypeMap;
736
+ }
737
+ constructor(init) {
738
+ Object.assign(this, init);
739
+ }
740
+ }
741
+ exports.FormatsResult = FormatsResult;
742
+ /**
743
+ * Attribute type map
744
+ */
745
+ FormatsResult.attributeTypeMap = [
746
+ {
747
+ name: "formats",
748
+ baseName: "formats",
749
+ type: "Array<Format>",
750
+ }
751
+ ];
752
+ /**
753
+ * Provides the options which are used for formatted text extraction.
754
+ */
755
+ class FormattedTextOptions {
756
+ /**
757
+ * Returns attribute type map
758
+ */
759
+ static getAttributeTypeMap() {
760
+ return FormattedTextOptions.attributeTypeMap;
761
+ }
762
+ constructor(init) {
763
+ Object.assign(this, init);
764
+ }
765
+ }
766
+ exports.FormattedTextOptions = FormattedTextOptions;
767
+ /**
768
+ * Attribute type map
769
+ */
770
+ FormattedTextOptions.attributeTypeMap = [
771
+ {
772
+ name: "mode",
773
+ baseName: "mode",
774
+ type: "string",
775
+ }
776
+ ];
777
+ /**
778
+ * Represents an image.
779
+ */
780
+ class Image {
781
+ /**
782
+ * Returns attribute type map
783
+ */
784
+ static getAttributeTypeMap() {
785
+ return Image.attributeTypeMap;
786
+ }
787
+ constructor(init) {
788
+ Object.assign(this, init);
789
+ }
790
+ }
791
+ exports.Image = Image;
792
+ /**
793
+ * Attribute type map
794
+ */
795
+ Image.attributeTypeMap = [
796
+ {
797
+ name: "path",
798
+ baseName: "path",
799
+ type: "string",
800
+ },
801
+ {
802
+ name: "downloadUrl",
803
+ baseName: "downloadUrl",
804
+ type: "string",
805
+ },
806
+ {
807
+ name: "pageIndex",
808
+ baseName: "pageIndex",
809
+ type: "number",
810
+ },
811
+ {
812
+ name: "rotation",
813
+ baseName: "rotation",
814
+ type: "number",
815
+ },
816
+ {
817
+ name: "fileFormat",
818
+ baseName: "fileFormat",
819
+ type: "string",
820
+ },
821
+ {
822
+ name: "rectangle",
823
+ baseName: "rectangle",
824
+ type: "Rectangle",
825
+ }
826
+ ];
827
+ /**
828
+ * Represents page object with image collection.
829
+ */
830
+ class ImagePage {
831
+ /**
832
+ * Returns attribute type map
833
+ */
834
+ static getAttributeTypeMap() {
835
+ return ImagePage.attributeTypeMap;
836
+ }
837
+ constructor(init) {
838
+ Object.assign(this, init);
839
+ }
840
+ }
841
+ exports.ImagePage = ImagePage;
842
+ /**
843
+ * Attribute type map
844
+ */
845
+ ImagePage.attributeTypeMap = [
846
+ {
847
+ name: "pageIndex",
848
+ baseName: "pageIndex",
849
+ type: "number",
850
+ },
851
+ {
852
+ name: "images",
853
+ baseName: "images",
854
+ type: "Array<Image>",
855
+ }
856
+ ];
857
+ /**
858
+ * Images result.
859
+ */
860
+ class ImagesResult {
861
+ /**
862
+ * Returns attribute type map
863
+ */
864
+ static getAttributeTypeMap() {
865
+ return ImagesResult.attributeTypeMap;
866
+ }
867
+ constructor(init) {
868
+ Object.assign(this, init);
869
+ }
870
+ }
871
+ exports.ImagesResult = ImagesResult;
872
+ /**
873
+ * Attribute type map
874
+ */
875
+ ImagesResult.attributeTypeMap = [
876
+ {
877
+ name: "images",
878
+ baseName: "images",
879
+ type: "Array<Image>",
880
+ },
881
+ {
882
+ name: "pages",
883
+ baseName: "pages",
884
+ type: "Array<ImagePage>",
885
+ }
886
+ ];
887
+ /**
888
+ * Info result.
889
+ */
890
+ class InfoResult {
891
+ /**
892
+ * Returns attribute type map
893
+ */
894
+ static getAttributeTypeMap() {
895
+ return InfoResult.attributeTypeMap;
896
+ }
897
+ constructor(init) {
898
+ Object.assign(this, init);
899
+ }
900
+ }
901
+ exports.InfoResult = InfoResult;
902
+ /**
903
+ * Attribute type map
904
+ */
905
+ InfoResult.attributeTypeMap = [
906
+ {
907
+ name: "fileType",
908
+ baseName: "fileType",
909
+ type: "FileType",
910
+ },
911
+ {
912
+ name: "size",
913
+ baseName: "size",
914
+ type: "number",
915
+ },
916
+ {
917
+ name: "pageCount",
918
+ baseName: "pageCount",
919
+ type: "number",
920
+ },
921
+ {
922
+ name: "encoding",
923
+ baseName: "encoding",
924
+ type: "string",
925
+ }
926
+ ];
927
+ /**
928
+ * Error
929
+ */
930
+ class ModelError {
931
+ /**
932
+ * Returns attribute type map
933
+ */
934
+ static getAttributeTypeMap() {
935
+ return ModelError.attributeTypeMap;
936
+ }
937
+ constructor(init) {
938
+ Object.assign(this, init);
939
+ }
940
+ }
941
+ exports.ModelError = ModelError;
942
+ /**
943
+ * Attribute type map
944
+ */
945
+ ModelError.attributeTypeMap = [
946
+ {
947
+ name: "code",
948
+ baseName: "code",
949
+ type: "string",
950
+ },
951
+ {
952
+ name: "message",
953
+ baseName: "message",
954
+ type: "string",
955
+ },
956
+ {
957
+ name: "description",
958
+ baseName: "description",
959
+ type: "string",
960
+ },
961
+ {
962
+ name: "innerError",
963
+ baseName: "innerError",
964
+ type: "ErrorDetails",
965
+ }
966
+ ];
967
+ /**
968
+ * Object exists
969
+ */
970
+ class ObjectExist {
971
+ /**
972
+ * Returns attribute type map
973
+ */
974
+ static getAttributeTypeMap() {
975
+ return ObjectExist.attributeTypeMap;
976
+ }
977
+ constructor(init) {
978
+ Object.assign(this, init);
979
+ }
980
+ }
981
+ exports.ObjectExist = ObjectExist;
982
+ /**
983
+ * Attribute type map
984
+ */
985
+ ObjectExist.attributeTypeMap = [
986
+ {
987
+ name: "exists",
988
+ baseName: "exists",
989
+ type: "boolean",
990
+ },
991
+ {
992
+ name: "isFolder",
993
+ baseName: "isFolder",
994
+ type: "boolean",
995
+ }
996
+ ];
997
+ /**
998
+ * The document page information such as page index and page size.
999
+ */
1000
+ class Page {
1001
+ /**
1002
+ * Returns attribute type map
1003
+ */
1004
+ static getAttributeTypeMap() {
1005
+ return Page.attributeTypeMap;
1006
+ }
1007
+ constructor(init) {
1008
+ Object.assign(this, init);
1009
+ }
1010
+ }
1011
+ exports.Page = Page;
1012
+ /**
1013
+ * Attribute type map
1014
+ */
1015
+ Page.attributeTypeMap = [
1016
+ {
1017
+ name: "index",
1018
+ baseName: "index",
1019
+ type: "number",
1020
+ },
1021
+ {
1022
+ name: "size",
1023
+ baseName: "size",
1024
+ type: "Size",
1025
+ }
1026
+ ];
1027
+ /**
1028
+ * Class for document page area.
1029
+ */
1030
+ class PageArea {
1031
+ /**
1032
+ * Returns attribute type map
1033
+ */
1034
+ static getAttributeTypeMap() {
1035
+ return PageArea.attributeTypeMap;
1036
+ }
1037
+ constructor(init) {
1038
+ Object.assign(this, init);
1039
+ }
1040
+ }
1041
+ exports.PageArea = PageArea;
1042
+ /**
1043
+ * Attribute type map
1044
+ */
1045
+ PageArea.attributeTypeMap = [
1046
+ {
1047
+ name: "rectangle",
1048
+ baseName: "rectangle",
1049
+ type: "Rectangle",
1050
+ },
1051
+ {
1052
+ name: "page",
1053
+ baseName: "page",
1054
+ type: "Page",
1055
+ },
1056
+ {
1057
+ name: "pageTextArea",
1058
+ baseName: "pageTextArea",
1059
+ type: "PageTextArea",
1060
+ },
1061
+ {
1062
+ name: "pageTableArea",
1063
+ baseName: "pageTableArea",
1064
+ type: "PageTableArea",
1065
+ }
1066
+ ];
1067
+ /**
1068
+ * Represents a table page area which is used to represent a table in the parsing by template functionality.
1069
+ */
1070
+ class PageTableArea {
1071
+ /**
1072
+ * Returns attribute type map
1073
+ */
1074
+ static getAttributeTypeMap() {
1075
+ return PageTableArea.attributeTypeMap;
1076
+ }
1077
+ constructor(init) {
1078
+ Object.assign(this, init);
1079
+ }
1080
+ }
1081
+ exports.PageTableArea = PageTableArea;
1082
+ /**
1083
+ * Attribute type map
1084
+ */
1085
+ PageTableArea.attributeTypeMap = [
1086
+ {
1087
+ name: "rowCount",
1088
+ baseName: "rowCount",
1089
+ type: "number",
1090
+ },
1091
+ {
1092
+ name: "columnCount",
1093
+ baseName: "columnCount",
1094
+ type: "number",
1095
+ },
1096
+ {
1097
+ name: "pageTableAreaCells",
1098
+ baseName: "pageTableAreaCells",
1099
+ type: "Array<PageTableAreaCell>",
1100
+ }
1101
+ ];
1102
+ /**
1103
+ * Represents a table cell.
1104
+ */
1105
+ class PageTableAreaCell {
1106
+ /**
1107
+ * Returns attribute type map
1108
+ */
1109
+ static getAttributeTypeMap() {
1110
+ return PageTableAreaCell.attributeTypeMap;
1111
+ }
1112
+ constructor(init) {
1113
+ Object.assign(this, init);
1114
+ }
1115
+ }
1116
+ exports.PageTableAreaCell = PageTableAreaCell;
1117
+ /**
1118
+ * Attribute type map
1119
+ */
1120
+ PageTableAreaCell.attributeTypeMap = [
1121
+ {
1122
+ name: "columnIndex",
1123
+ baseName: "columnIndex",
1124
+ type: "number",
1125
+ },
1126
+ {
1127
+ name: "columnSpan",
1128
+ baseName: "columnSpan",
1129
+ type: "number",
1130
+ },
1131
+ {
1132
+ name: "pageArea",
1133
+ baseName: "pageArea",
1134
+ type: "PageArea",
1135
+ },
1136
+ {
1137
+ name: "rowIndex",
1138
+ baseName: "rowIndex",
1139
+ type: "number",
1140
+ },
1141
+ {
1142
+ name: "rowSpan",
1143
+ baseName: "rowSpan",
1144
+ type: "number",
1145
+ }
1146
+ ];
1147
+ /**
1148
+ * Represents a page text area which is used to represent a text value in the parsing by template functionality.
1149
+ */
1150
+ class PageTextArea {
1151
+ /**
1152
+ * Returns attribute type map
1153
+ */
1154
+ static getAttributeTypeMap() {
1155
+ return PageTextArea.attributeTypeMap;
1156
+ }
1157
+ constructor(init) {
1158
+ Object.assign(this, init);
1159
+ }
1160
+ }
1161
+ exports.PageTextArea = PageTextArea;
1162
+ /**
1163
+ * Attribute type map
1164
+ */
1165
+ PageTextArea.attributeTypeMap = [
1166
+ {
1167
+ name: "text",
1168
+ baseName: "text",
1169
+ type: "string",
1170
+ },
1171
+ {
1172
+ name: "baseLine",
1173
+ baseName: "baseLine",
1174
+ type: "number",
1175
+ },
1176
+ {
1177
+ name: "areas",
1178
+ baseName: "areas",
1179
+ type: "Array<PageTextArea>",
1180
+ },
1181
+ {
1182
+ name: "textStyle",
1183
+ baseName: "textStyle",
1184
+ type: "TextStyle",
1185
+ }
1186
+ ];
1187
+ /**
1188
+ * Parse result.
1189
+ */
1190
+ class ParseResult {
1191
+ /**
1192
+ * Returns attribute type map
1193
+ */
1194
+ static getAttributeTypeMap() {
1195
+ return ParseResult.attributeTypeMap;
1196
+ }
1197
+ constructor(init) {
1198
+ Object.assign(this, init);
1199
+ }
1200
+ }
1201
+ exports.ParseResult = ParseResult;
1202
+ /**
1203
+ * Attribute type map
1204
+ */
1205
+ ParseResult.attributeTypeMap = [
1206
+ {
1207
+ name: "count",
1208
+ baseName: "count",
1209
+ type: "number",
1210
+ },
1211
+ {
1212
+ name: "fieldsData",
1213
+ baseName: "fieldsData",
1214
+ type: "Array<FieldData>",
1215
+ }
1216
+ ];
1217
+ /**
1218
+ * Base options class.
1219
+ */
1220
+ class ParserOptions {
1221
+ /**
1222
+ * Returns attribute type map
1223
+ */
1224
+ static getAttributeTypeMap() {
1225
+ return ParserOptions.attributeTypeMap;
1226
+ }
1227
+ constructor(init) {
1228
+ Object.assign(this, init);
1229
+ }
1230
+ }
1231
+ exports.ParserOptions = ParserOptions;
1232
+ /**
1233
+ * Attribute type map
1234
+ */
1235
+ ParserOptions.attributeTypeMap = [
1236
+ {
1237
+ name: "fileInfo",
1238
+ baseName: "fileInfo",
1239
+ type: "FileInfo",
1240
+ },
1241
+ {
1242
+ name: "containerItemInfo",
1243
+ baseName: "containerItemInfo",
1244
+ type: "ContainerItemInfo",
1245
+ }
1246
+ ];
1247
+ /**
1248
+ * Class for rectangle position model.
1249
+ */
1250
+ class Point {
1251
+ /**
1252
+ * Returns attribute type map
1253
+ */
1254
+ static getAttributeTypeMap() {
1255
+ return Point.attributeTypeMap;
1256
+ }
1257
+ constructor(init) {
1258
+ Object.assign(this, init);
1259
+ }
1260
+ }
1261
+ exports.Point = Point;
1262
+ /**
1263
+ * Attribute type map
1264
+ */
1265
+ Point.attributeTypeMap = [
1266
+ {
1267
+ name: "x",
1268
+ baseName: "x",
1269
+ type: "number",
1270
+ },
1271
+ {
1272
+ name: "y",
1273
+ baseName: "y",
1274
+ type: "number",
1275
+ }
1276
+ ];
1277
+ /**
1278
+ * Rectangular area on the page.
1279
+ */
1280
+ class Rectangle {
1281
+ /**
1282
+ * Returns attribute type map
1283
+ */
1284
+ static getAttributeTypeMap() {
1285
+ return Rectangle.attributeTypeMap;
1286
+ }
1287
+ constructor(init) {
1288
+ Object.assign(this, init);
1289
+ }
1290
+ }
1291
+ exports.Rectangle = Rectangle;
1292
+ /**
1293
+ * Attribute type map
1294
+ */
1295
+ Rectangle.attributeTypeMap = [
1296
+ {
1297
+ name: "position",
1298
+ baseName: "position",
1299
+ type: "Point",
1300
+ },
1301
+ {
1302
+ name: "size",
1303
+ baseName: "size",
1304
+ type: "Size",
1305
+ },
1306
+ {
1307
+ name: "coordinates",
1308
+ baseName: "coordinates",
1309
+ type: "Coordinates",
1310
+ }
1311
+ ];
1312
+ /**
1313
+ * Represents a size of rectangular area.
1314
+ */
1315
+ class Size {
1316
+ /**
1317
+ * Returns attribute type map
1318
+ */
1319
+ static getAttributeTypeMap() {
1320
+ return Size.attributeTypeMap;
1321
+ }
1322
+ constructor(init) {
1323
+ Object.assign(this, init);
1324
+ }
1325
+ }
1326
+ exports.Size = Size;
1327
+ /**
1328
+ * Attribute type map
1329
+ */
1330
+ Size.attributeTypeMap = [
1331
+ {
1332
+ name: "height",
1333
+ baseName: "height",
1334
+ type: "number",
1335
+ },
1336
+ {
1337
+ name: "width",
1338
+ baseName: "width",
1339
+ type: "number",
1340
+ }
1341
+ ];
1342
+ /**
1343
+ * Storage exists
1344
+ */
1345
+ class StorageExist {
1346
+ /**
1347
+ * Returns attribute type map
1348
+ */
1349
+ static getAttributeTypeMap() {
1350
+ return StorageExist.attributeTypeMap;
1351
+ }
1352
+ constructor(init) {
1353
+ Object.assign(this, init);
1354
+ }
1355
+ }
1356
+ exports.StorageExist = StorageExist;
1357
+ /**
1358
+ * Attribute type map
1359
+ */
1360
+ StorageExist.attributeTypeMap = [
1361
+ {
1362
+ name: "exists",
1363
+ baseName: "exists",
1364
+ type: "boolean",
1365
+ }
1366
+ ];
1367
+ /**
1368
+ * File or folder information
1369
+ */
1370
+ class StorageFile {
1371
+ /**
1372
+ * Returns attribute type map
1373
+ */
1374
+ static getAttributeTypeMap() {
1375
+ return StorageFile.attributeTypeMap;
1376
+ }
1377
+ constructor(init) {
1378
+ Object.assign(this, init);
1379
+ }
1380
+ }
1381
+ exports.StorageFile = StorageFile;
1382
+ /**
1383
+ * Attribute type map
1384
+ */
1385
+ StorageFile.attributeTypeMap = [
1386
+ {
1387
+ name: "name",
1388
+ baseName: "name",
1389
+ type: "string",
1390
+ },
1391
+ {
1392
+ name: "isFolder",
1393
+ baseName: "isFolder",
1394
+ type: "boolean",
1395
+ },
1396
+ {
1397
+ name: "modifiedDate",
1398
+ baseName: "modifiedDate",
1399
+ type: "Date",
1400
+ },
1401
+ {
1402
+ name: "size",
1403
+ baseName: "size",
1404
+ type: "number",
1405
+ },
1406
+ {
1407
+ name: "path",
1408
+ baseName: "path",
1409
+ type: "string",
1410
+ }
1411
+ ];
1412
+ /**
1413
+ * Document template table
1414
+ */
1415
+ class Table {
1416
+ /**
1417
+ * Returns attribute type map
1418
+ */
1419
+ static getAttributeTypeMap() {
1420
+ return Table.attributeTypeMap;
1421
+ }
1422
+ constructor(init) {
1423
+ Object.assign(this, init);
1424
+ }
1425
+ }
1426
+ exports.Table = Table;
1427
+ /**
1428
+ * Attribute type map
1429
+ */
1430
+ Table.attributeTypeMap = [
1431
+ {
1432
+ name: "tableName",
1433
+ baseName: "tableName",
1434
+ type: "string",
1435
+ },
1436
+ {
1437
+ name: "pageIndex",
1438
+ baseName: "pageIndex",
1439
+ type: "number",
1440
+ },
1441
+ {
1442
+ name: "detectorParameters",
1443
+ baseName: "detectorParameters",
1444
+ type: "DetectorParameters",
1445
+ },
1446
+ {
1447
+ name: "tableLayout",
1448
+ baseName: "tableLayout",
1449
+ type: "TableLayout",
1450
+ }
1451
+ ];
1452
+ /**
1453
+ * Provides the template table layout which is used by Table to define table position.
1454
+ */
1455
+ class TableLayout {
1456
+ /**
1457
+ * Returns attribute type map
1458
+ */
1459
+ static getAttributeTypeMap() {
1460
+ return TableLayout.attributeTypeMap;
1461
+ }
1462
+ constructor(init) {
1463
+ Object.assign(this, init);
1464
+ }
1465
+ }
1466
+ exports.TableLayout = TableLayout;
1467
+ /**
1468
+ * Attribute type map
1469
+ */
1470
+ TableLayout.attributeTypeMap = [
1471
+ {
1472
+ name: "verticalSeparators",
1473
+ baseName: "verticalSeparators",
1474
+ type: "Array<number>",
1475
+ },
1476
+ {
1477
+ name: "horizontalSeparators",
1478
+ baseName: "horizontalSeparators",
1479
+ type: "Array<number>",
1480
+ }
1481
+ ];
1482
+ /**
1483
+ * User-generated template to extract metadata from the document.
1484
+ */
1485
+ class Template {
1486
+ /**
1487
+ * Returns attribute type map
1488
+ */
1489
+ static getAttributeTypeMap() {
1490
+ return Template.attributeTypeMap;
1491
+ }
1492
+ constructor(init) {
1493
+ Object.assign(this, init);
1494
+ }
1495
+ }
1496
+ exports.Template = Template;
1497
+ /**
1498
+ * Attribute type map
1499
+ */
1500
+ Template.attributeTypeMap = [
1501
+ {
1502
+ name: "fields",
1503
+ baseName: "fields",
1504
+ type: "Array<Field>",
1505
+ },
1506
+ {
1507
+ name: "tables",
1508
+ baseName: "tables",
1509
+ type: "Array<Table>",
1510
+ }
1511
+ ];
1512
+ /**
1513
+ * Template methods options.
1514
+ */
1515
+ class TemplateOptions {
1516
+ /**
1517
+ * Returns attribute type map
1518
+ */
1519
+ static getAttributeTypeMap() {
1520
+ return TemplateOptions.attributeTypeMap;
1521
+ }
1522
+ constructor(init) {
1523
+ Object.assign(this, init);
1524
+ }
1525
+ }
1526
+ exports.TemplateOptions = TemplateOptions;
1527
+ /**
1528
+ * Attribute type map
1529
+ */
1530
+ TemplateOptions.attributeTypeMap = [
1531
+ {
1532
+ name: "templatePath",
1533
+ baseName: "templatePath",
1534
+ type: "string",
1535
+ },
1536
+ {
1537
+ name: "storageName",
1538
+ baseName: "storageName",
1539
+ type: "string",
1540
+ }
1541
+ ];
1542
+ /**
1543
+ * Document template result.
1544
+ */
1545
+ class TemplateResult {
1546
+ /**
1547
+ * Returns attribute type map
1548
+ */
1549
+ static getAttributeTypeMap() {
1550
+ return TemplateResult.attributeTypeMap;
1551
+ }
1552
+ constructor(init) {
1553
+ Object.assign(this, init);
1554
+ }
1555
+ }
1556
+ exports.TemplateResult = TemplateResult;
1557
+ /**
1558
+ * Attribute type map
1559
+ */
1560
+ TemplateResult.attributeTypeMap = [
1561
+ {
1562
+ name: "url",
1563
+ baseName: "url",
1564
+ type: "string",
1565
+ },
1566
+ {
1567
+ name: "templatePath",
1568
+ baseName: "templatePath",
1569
+ type: "string",
1570
+ }
1571
+ ];
1572
+ /**
1573
+ * Extracted text page class.
1574
+ */
1575
+ class TextPage {
1576
+ /**
1577
+ * Returns attribute type map
1578
+ */
1579
+ static getAttributeTypeMap() {
1580
+ return TextPage.attributeTypeMap;
1581
+ }
1582
+ constructor(init) {
1583
+ Object.assign(this, init);
1584
+ }
1585
+ }
1586
+ exports.TextPage = TextPage;
1587
+ /**
1588
+ * Attribute type map
1589
+ */
1590
+ TextPage.attributeTypeMap = [
1591
+ {
1592
+ name: "pageIndex",
1593
+ baseName: "pageIndex",
1594
+ type: "number",
1595
+ },
1596
+ {
1597
+ name: "text",
1598
+ baseName: "text",
1599
+ type: "string",
1600
+ }
1601
+ ];
1602
+ /**
1603
+ * The result od text extraction.
1604
+ */
1605
+ class TextResult {
1606
+ /**
1607
+ * Returns attribute type map
1608
+ */
1609
+ static getAttributeTypeMap() {
1610
+ return TextResult.attributeTypeMap;
1611
+ }
1612
+ constructor(init) {
1613
+ Object.assign(this, init);
1614
+ }
1615
+ }
1616
+ exports.TextResult = TextResult;
1617
+ /**
1618
+ * Attribute type map
1619
+ */
1620
+ TextResult.attributeTypeMap = [
1621
+ {
1622
+ name: "pages",
1623
+ baseName: "pages",
1624
+ type: "Array<TextPage>",
1625
+ },
1626
+ {
1627
+ name: "text",
1628
+ baseName: "text",
1629
+ type: "string",
1630
+ }
1631
+ ];
1632
+ /**
1633
+ * The text style such as font size, font name an so on.
1634
+ */
1635
+ class TextStyle {
1636
+ /**
1637
+ * Returns attribute type map
1638
+ */
1639
+ static getAttributeTypeMap() {
1640
+ return TextStyle.attributeTypeMap;
1641
+ }
1642
+ constructor(init) {
1643
+ Object.assign(this, init);
1644
+ }
1645
+ }
1646
+ exports.TextStyle = TextStyle;
1647
+ /**
1648
+ * Attribute type map
1649
+ */
1650
+ TextStyle.attributeTypeMap = [
1651
+ {
1652
+ name: "fontName",
1653
+ baseName: "fontName",
1654
+ type: "string",
1655
+ },
1656
+ {
1657
+ name: "fontSize",
1658
+ baseName: "fontSize",
1659
+ type: "number",
1660
+ },
1661
+ {
1662
+ name: "isBold",
1663
+ baseName: "isBold",
1664
+ type: "boolean",
1665
+ },
1666
+ {
1667
+ name: "isItalic",
1668
+ baseName: "isItalic",
1669
+ type: "boolean",
1670
+ },
1671
+ {
1672
+ name: "name",
1673
+ baseName: "name",
1674
+ type: "string",
1675
+ }
1676
+ ];
1677
+ /**
1678
+ * AI Parse options.
1679
+ */
1680
+ class AIParseOptions extends ParserOptions {
1681
+ /**
1682
+ * Returns attribute type map
1683
+ */
1684
+ static getAttributeTypeMap() {
1685
+ return super.getAttributeTypeMap().concat(AIParseOptions.attributeTypeMap);
1686
+ }
1687
+ constructor(init) {
1688
+ super(init);
1689
+ Object.assign(this, init);
1690
+ }
1691
+ }
1692
+ exports.AIParseOptions = AIParseOptions;
1693
+ /**
1694
+ * Attribute type map
1695
+ */
1696
+ AIParseOptions.attributeTypeMap = [
1697
+ {
1698
+ name: "template",
1699
+ baseName: "template",
1700
+ type: "any",
1701
+ }
1702
+ ];
1703
+ /**
1704
+ * Barcode options.
1705
+ */
1706
+ class BarcodesOptions extends ParserOptions {
1707
+ /**
1708
+ * Returns attribute type map
1709
+ */
1710
+ static getAttributeTypeMap() {
1711
+ return super.getAttributeTypeMap().concat(BarcodesOptions.attributeTypeMap);
1712
+ }
1713
+ constructor(init) {
1714
+ super(init);
1715
+ Object.assign(this, init);
1716
+ }
1717
+ }
1718
+ exports.BarcodesOptions = BarcodesOptions;
1719
+ /**
1720
+ * Attribute type map
1721
+ */
1722
+ BarcodesOptions.attributeTypeMap = [
1723
+ {
1724
+ name: "outputPath",
1725
+ baseName: "outputPath",
1726
+ type: "string",
1727
+ },
1728
+ {
1729
+ name: "startPageNumber",
1730
+ baseName: "startPageNumber",
1731
+ type: "number",
1732
+ },
1733
+ {
1734
+ name: "countPagesToExtract",
1735
+ baseName: "countPagesToExtract",
1736
+ type: "number",
1737
+ }
1738
+ ];
1739
+ /**
1740
+ * Container options.
1741
+ */
1742
+ class ContainerOptions extends ParserOptions {
1743
+ /**
1744
+ * Returns attribute type map
1745
+ */
1746
+ static getAttributeTypeMap() {
1747
+ return super.getAttributeTypeMap().concat(ContainerOptions.attributeTypeMap);
1748
+ }
1749
+ constructor(init) {
1750
+ super(init);
1751
+ Object.assign(this, init);
1752
+ }
1753
+ }
1754
+ exports.ContainerOptions = ContainerOptions;
1755
+ /**
1756
+ * Attribute type map
1757
+ */
1758
+ ContainerOptions.attributeTypeMap = [];
1759
+ /**
1760
+ * File Version
1761
+ */
1762
+ class FileVersion extends StorageFile {
1763
+ /**
1764
+ * Returns attribute type map
1765
+ */
1766
+ static getAttributeTypeMap() {
1767
+ return super.getAttributeTypeMap().concat(FileVersion.attributeTypeMap);
1768
+ }
1769
+ constructor(init) {
1770
+ super(init);
1771
+ Object.assign(this, init);
1772
+ }
1773
+ }
1774
+ exports.FileVersion = FileVersion;
1775
+ /**
1776
+ * Attribute type map
1777
+ */
1778
+ FileVersion.attributeTypeMap = [
1779
+ {
1780
+ name: "versionId",
1781
+ baseName: "versionId",
1782
+ type: "string",
1783
+ },
1784
+ {
1785
+ name: "isLatest",
1786
+ baseName: "isLatest",
1787
+ type: "boolean",
1788
+ }
1789
+ ];
1790
+ /**
1791
+ * Image options.
1792
+ */
1793
+ class ImagesOptions extends ParserOptions {
1794
+ /**
1795
+ * Returns attribute type map
1796
+ */
1797
+ static getAttributeTypeMap() {
1798
+ return super.getAttributeTypeMap().concat(ImagesOptions.attributeTypeMap);
1799
+ }
1800
+ constructor(init) {
1801
+ super(init);
1802
+ Object.assign(this, init);
1803
+ }
1804
+ }
1805
+ exports.ImagesOptions = ImagesOptions;
1806
+ /**
1807
+ * Attribute type map
1808
+ */
1809
+ ImagesOptions.attributeTypeMap = [
1810
+ {
1811
+ name: "outputPath",
1812
+ baseName: "outputPath",
1813
+ type: "string",
1814
+ },
1815
+ {
1816
+ name: "startPageNumber",
1817
+ baseName: "startPageNumber",
1818
+ type: "number",
1819
+ },
1820
+ {
1821
+ name: "countPagesToExtract",
1822
+ baseName: "countPagesToExtract",
1823
+ type: "number",
1824
+ }
1825
+ ];
1826
+ /**
1827
+ * Info options
1828
+ */
1829
+ class InfoOptions extends ParserOptions {
1830
+ /**
1831
+ * Returns attribute type map
1832
+ */
1833
+ static getAttributeTypeMap() {
1834
+ return super.getAttributeTypeMap().concat(InfoOptions.attributeTypeMap);
1835
+ }
1836
+ constructor(init) {
1837
+ super(init);
1838
+ Object.assign(this, init);
1839
+ }
1840
+ }
1841
+ exports.InfoOptions = InfoOptions;
1842
+ /**
1843
+ * Attribute type map
1844
+ */
1845
+ InfoOptions.attributeTypeMap = [];
1846
+ /**
1847
+ * Parse options.
1848
+ */
1849
+ class ParseOptions extends ParserOptions {
1850
+ /**
1851
+ * Returns attribute type map
1852
+ */
1853
+ static getAttributeTypeMap() {
1854
+ return super.getAttributeTypeMap().concat(ParseOptions.attributeTypeMap);
1855
+ }
1856
+ constructor(init) {
1857
+ super(init);
1858
+ Object.assign(this, init);
1859
+ }
1860
+ }
1861
+ exports.ParseOptions = ParseOptions;
1862
+ /**
1863
+ * Attribute type map
1864
+ */
1865
+ ParseOptions.attributeTypeMap = [
1866
+ {
1867
+ name: "template",
1868
+ baseName: "template",
1869
+ type: "Template",
1870
+ },
1871
+ {
1872
+ name: "templatePath",
1873
+ baseName: "templatePath",
1874
+ type: "string",
1875
+ }
1876
+ ];
1877
+ /**
1878
+ * Extract options.
1879
+ */
1880
+ class TextOptions extends ParserOptions {
1881
+ /**
1882
+ * Returns attribute type map
1883
+ */
1884
+ static getAttributeTypeMap() {
1885
+ return super.getAttributeTypeMap().concat(TextOptions.attributeTypeMap);
1886
+ }
1887
+ constructor(init) {
1888
+ super(init);
1889
+ Object.assign(this, init);
1890
+ }
1891
+ }
1892
+ exports.TextOptions = TextOptions;
1893
+ /**
1894
+ * Attribute type map
1895
+ */
1896
+ TextOptions.attributeTypeMap = [
1897
+ {
1898
+ name: "formattedTextOptions",
1899
+ baseName: "formattedTextOptions",
1900
+ type: "FormattedTextOptions",
1901
+ },
1902
+ {
1903
+ name: "startPageNumber",
1904
+ baseName: "startPageNumber",
1905
+ type: "number",
1906
+ },
1907
+ {
1908
+ name: "countPagesToExtract",
1909
+ baseName: "countPagesToExtract",
1910
+ type: "number",
1911
+ }
1912
+ ];
1913
+ const enumsMap = {};
1914
+ exports.enumsMap = enumsMap;
1915
+ const typeMap = {
1916
+ Barcode,
1917
+ BarcodePage,
1918
+ BarcodesResult,
1919
+ ContainerItem,
1920
+ ContainerItemInfo,
1921
+ ContainerResult,
1922
+ Coordinates,
1923
+ CreateTemplateOptions,
1924
+ DetectorParameters,
1925
+ DiscUsage,
1926
+ ErrorDetails,
1927
+ Field,
1928
+ FieldData,
1929
+ FieldPosition,
1930
+ FileInfo,
1931
+ FileType,
1932
+ FileVersions,
1933
+ FilesList,
1934
+ FilesUploadResult,
1935
+ Format,
1936
+ FormatsResult,
1937
+ FormattedTextOptions,
1938
+ Image,
1939
+ ImagePage,
1940
+ ImagesResult,
1941
+ InfoResult,
1942
+ ModelError,
1943
+ ObjectExist,
1944
+ Page,
1945
+ PageArea,
1946
+ PageTableArea,
1947
+ PageTableAreaCell,
1948
+ PageTextArea,
1949
+ ParseResult,
1950
+ ParserOptions,
1951
+ Point,
1952
+ Rectangle,
1953
+ Size,
1954
+ StorageExist,
1955
+ StorageFile,
1956
+ Table,
1957
+ TableLayout,
1958
+ Template,
1959
+ TemplateOptions,
1960
+ TemplateResult,
1961
+ TextPage,
1962
+ TextResult,
1963
+ TextStyle,
1964
+ AIParseOptions,
1965
+ BarcodesOptions,
1966
+ ContainerOptions,
1967
+ FileVersion,
1968
+ ImagesOptions,
1969
+ InfoOptions,
1970
+ ParseOptions,
1971
+ TextOptions,
1972
+ };
1973
+ exports.typeMap = typeMap;
1974
+ /**
1975
+ * Request model for CopyFile operation.
1976
+ */
1977
+ class CopyFileRequest {
1978
+ constructor(srcPath, destPath, srcStorageName, destStorageName, versionId) {
1979
+ this.srcPath = srcPath;
1980
+ this.destPath = destPath;
1981
+ this.srcStorageName = srcStorageName;
1982
+ this.destStorageName = destStorageName;
1983
+ this.versionId = versionId;
1984
+ }
1985
+ }
1986
+ exports.CopyFileRequest = CopyFileRequest;
1987
+ /**
1988
+ * Request model for DeleteFile operation.
1989
+ */
1990
+ class DeleteFileRequest {
1991
+ constructor(path, storageName, versionId) {
1992
+ this.path = path;
1993
+ this.storageName = storageName;
1994
+ this.versionId = versionId;
1995
+ }
1996
+ }
1997
+ exports.DeleteFileRequest = DeleteFileRequest;
1998
+ /**
1999
+ * Request model for DownloadFile operation.
2000
+ */
2001
+ class DownloadFileRequest {
2002
+ constructor(path, storageName, versionId) {
2003
+ this.path = path;
2004
+ this.storageName = storageName;
2005
+ this.versionId = versionId;
2006
+ }
2007
+ }
2008
+ exports.DownloadFileRequest = DownloadFileRequest;
2009
+ /**
2010
+ * Request model for MoveFile operation.
2011
+ */
2012
+ class MoveFileRequest {
2013
+ constructor(srcPath, destPath, srcStorageName, destStorageName, versionId) {
2014
+ this.srcPath = srcPath;
2015
+ this.destPath = destPath;
2016
+ this.srcStorageName = srcStorageName;
2017
+ this.destStorageName = destStorageName;
2018
+ this.versionId = versionId;
2019
+ }
2020
+ }
2021
+ exports.MoveFileRequest = MoveFileRequest;
2022
+ /**
2023
+ * Request model for UploadFile operation.
2024
+ */
2025
+ class UploadFileRequest {
2026
+ constructor(path, file, storageName) {
2027
+ this.path = path;
2028
+ this.file = file;
2029
+ this.storageName = storageName;
2030
+ }
2031
+ }
2032
+ exports.UploadFileRequest = UploadFileRequest;
2033
+ /**
2034
+ * Request model for CopyFolder operation.
2035
+ */
2036
+ class CopyFolderRequest {
2037
+ constructor(srcPath, destPath, srcStorageName, destStorageName) {
2038
+ this.srcPath = srcPath;
2039
+ this.destPath = destPath;
2040
+ this.srcStorageName = srcStorageName;
2041
+ this.destStorageName = destStorageName;
2042
+ }
2043
+ }
2044
+ exports.CopyFolderRequest = CopyFolderRequest;
2045
+ /**
2046
+ * Request model for CreateFolder operation.
2047
+ */
2048
+ class CreateFolderRequest {
2049
+ constructor(path, storageName) {
2050
+ this.path = path;
2051
+ this.storageName = storageName;
2052
+ }
2053
+ }
2054
+ exports.CreateFolderRequest = CreateFolderRequest;
2055
+ /**
2056
+ * Request model for DeleteFolder operation.
2057
+ */
2058
+ class DeleteFolderRequest {
2059
+ constructor(path, storageName, recursive) {
2060
+ this.path = path;
2061
+ this.storageName = storageName;
2062
+ this.recursive = recursive;
2063
+ }
2064
+ }
2065
+ exports.DeleteFolderRequest = DeleteFolderRequest;
2066
+ /**
2067
+ * Request model for GetFilesList operation.
2068
+ */
2069
+ class GetFilesListRequest {
2070
+ constructor(path, storageName) {
2071
+ this.path = path;
2072
+ this.storageName = storageName;
2073
+ }
2074
+ }
2075
+ exports.GetFilesListRequest = GetFilesListRequest;
2076
+ /**
2077
+ * Request model for MoveFolder operation.
2078
+ */
2079
+ class MoveFolderRequest {
2080
+ constructor(srcPath, destPath, srcStorageName, destStorageName) {
2081
+ this.srcPath = srcPath;
2082
+ this.destPath = destPath;
2083
+ this.srcStorageName = srcStorageName;
2084
+ this.destStorageName = destStorageName;
2085
+ }
2086
+ }
2087
+ exports.MoveFolderRequest = MoveFolderRequest;
2088
+ /**
2089
+ * Request model for Container operation.
2090
+ */
2091
+ class ContainerRequest {
2092
+ constructor(options) {
2093
+ this.options = options;
2094
+ }
2095
+ }
2096
+ exports.ContainerRequest = ContainerRequest;
2097
+ /**
2098
+ * Request model for GetInfo operation.
2099
+ */
2100
+ class GetInfoRequest {
2101
+ constructor(options) {
2102
+ this.options = options;
2103
+ }
2104
+ }
2105
+ exports.GetInfoRequest = GetInfoRequest;
2106
+ /**
2107
+ * Request model for AIParse operation.
2108
+ */
2109
+ class AIParseRequest {
2110
+ constructor(options) {
2111
+ this.options = options;
2112
+ }
2113
+ }
2114
+ exports.AIParseRequest = AIParseRequest;
2115
+ /**
2116
+ * Request model for Barcodes operation.
2117
+ */
2118
+ class BarcodesRequest {
2119
+ constructor(options) {
2120
+ this.options = options;
2121
+ }
2122
+ }
2123
+ exports.BarcodesRequest = BarcodesRequest;
2124
+ /**
2125
+ * Request model for Images operation.
2126
+ */
2127
+ class ImagesRequest {
2128
+ constructor(options) {
2129
+ this.options = options;
2130
+ }
2131
+ }
2132
+ exports.ImagesRequest = ImagesRequest;
2133
+ /**
2134
+ * Request model for Parse operation.
2135
+ */
2136
+ class ParseRequest {
2137
+ constructor(options) {
2138
+ this.options = options;
2139
+ }
2140
+ }
2141
+ exports.ParseRequest = ParseRequest;
2142
+ /**
2143
+ * Request model for Text operation.
2144
+ */
2145
+ class TextRequest {
2146
+ constructor(options) {
2147
+ this.options = options;
2148
+ }
2149
+ }
2150
+ exports.TextRequest = TextRequest;
2151
+ /**
2152
+ * Request model for GetDiscUsage operation.
2153
+ */
2154
+ class GetDiscUsageRequest {
2155
+ constructor(storageName) {
2156
+ this.storageName = storageName;
2157
+ }
2158
+ }
2159
+ exports.GetDiscUsageRequest = GetDiscUsageRequest;
2160
+ /**
2161
+ * Request model for GetFileVersions operation.
2162
+ */
2163
+ class GetFileVersionsRequest {
2164
+ constructor(path, storageName) {
2165
+ this.path = path;
2166
+ this.storageName = storageName;
2167
+ }
2168
+ }
2169
+ exports.GetFileVersionsRequest = GetFileVersionsRequest;
2170
+ /**
2171
+ * Request model for ObjectExists operation.
2172
+ */
2173
+ class ObjectExistsRequest {
2174
+ constructor(path, storageName, versionId) {
2175
+ this.path = path;
2176
+ this.storageName = storageName;
2177
+ this.versionId = versionId;
2178
+ }
2179
+ }
2180
+ exports.ObjectExistsRequest = ObjectExistsRequest;
2181
+ /**
2182
+ * Request model for StorageExists operation.
2183
+ */
2184
+ class StorageExistsRequest {
2185
+ constructor(storageName) {
2186
+ this.storageName = storageName;
2187
+ }
2188
+ }
2189
+ exports.StorageExistsRequest = StorageExistsRequest;
2190
+ /**
2191
+ * Request model for CreateTemplate operation.
2192
+ */
2193
+ class CreateTemplateRequest {
2194
+ constructor(options) {
2195
+ this.options = options;
2196
+ }
2197
+ }
2198
+ exports.CreateTemplateRequest = CreateTemplateRequest;
2199
+ /**
2200
+ * Request model for DeleteTemplate operation.
2201
+ */
2202
+ class DeleteTemplateRequest {
2203
+ constructor(options) {
2204
+ this.options = options;
2205
+ }
2206
+ }
2207
+ exports.DeleteTemplateRequest = DeleteTemplateRequest;
2208
+ /**
2209
+ * Request model for GetTemplate operation.
2210
+ */
2211
+ class GetTemplateRequest {
2212
+ constructor(options) {
2213
+ this.options = options;
2214
+ }
2215
+ }
2216
+ exports.GetTemplateRequest = GetTemplateRequest;