aspose-barcode-cloud-node 24.3.0 → 24.5.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.
@@ -2,10 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
6
-
7
- var http = _interopDefault(require('http'));
8
- var https = _interopDefault(require('https'));
5
+ var http = require('http');
6
+ var https = require('https');
7
+ var crypto = require('crypto');
9
8
 
10
9
  class HttpClient {
11
10
  requestAsync(options) {
@@ -83,30 +82,56 @@ class HttpClient {
83
82
  }
84
83
  }
85
84
 
86
- /*
87
- * MIT License
88
-
89
- * Copyright (c) 2024 Aspose Pty Ltd
90
-
91
- * Permission is hereby granted, free of charge, to any person obtaining a copy
92
- * of this software and associated documentation files (the "Software"), to deal
93
- * in the Software without restriction, including without limitation the rights
94
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
95
- * copies of the Software, and to permit persons to whom the Software is
96
- * furnished to do so, subject to the following conditions:
97
-
98
- * The above copyright notice and this permission notice shall be included in all
99
- * copies or substantial portions of the Software.
85
+ class FormFile {
86
+ constructor(name, filename, data, contentType) {
87
+ this.name = void 0;
88
+ this.filename = void 0;
89
+ this.data = void 0;
90
+ this.contentType = void 0;
91
+ this.name = name;
92
+ this.filename = filename;
93
+ this.data = data;
94
+ this.contentType = contentType;
95
+ }
96
+ }
97
+ class Multipart {
98
+ constructor(textFields, files) {
99
+ this.boundary = void 0;
100
+ this.body = void 0;
101
+ this.headers = void 0;
102
+ const random = crypto.randomUUID();
103
+ this.boundary = '------------------------' + random.replace(/-/g, '');
104
+ const bodyLines = [];
105
+ for (const tuple of textFields) {
106
+ bodyLines.push(`--${this.boundary}`);
107
+ bodyLines.push(`Content-Disposition: form-data; name="${tuple[0]}"`);
108
+ bodyLines.push('');
109
+ bodyLines.push(tuple[1]);
110
+ }
111
+ for (const file of files || []) {
112
+ bodyLines.push(`--${this.boundary}`);
113
+ bodyLines.push(`Content-Disposition: form-data; name="${file.name}"; filename="${file.filename}"`);
114
+ bodyLines.push(`Content-Type: ${file.contentType || 'application/octet-stream'}`);
115
+ bodyLines.push('');
116
+ bodyLines.push(file.data.toString('binary'));
117
+ }
118
+ bodyLines.push(`--${this.boundary}--`);
119
+ this.body = Buffer.from(bodyLines.join('\r\n'), 'binary');
120
+ this.headers = {
121
+ 'Content-Type': `multipart/form-data; boundary=${this.boundary}`,
122
+ 'Content-Length': this.body.length.toString()
123
+ };
124
+ }
125
+ }
100
126
 
101
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
102
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
103
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
104
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
105
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
106
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
107
- * SOFTWARE.
108
- */
109
127
  class ApiError {
128
+ constructor() {
129
+ this['code'] = void 0;
130
+ this['message'] = void 0;
131
+ this['description'] = void 0;
132
+ this['dateTime'] = void 0;
133
+ this['innerError'] = void 0;
134
+ }
110
135
  static getAttributeTypeMap() {
111
136
  return ApiError.attributeTypeMap;
112
137
  }
@@ -133,10 +158,17 @@ ApiError.attributeTypeMap = [{
133
158
  type: 'ApiError'
134
159
  }];
135
160
  class ApiErrorResponse {
161
+ constructor() {
162
+ this['requestId'] = void 0;
163
+ this['error'] = void 0;
164
+ }
136
165
  static getAttributeTypeMap() {
137
166
  return ApiErrorResponse.attributeTypeMap;
138
167
  }
139
168
  }
169
+ /**
170
+ * AustralianPost barcode parameters.
171
+ */
140
172
  ApiErrorResponse.attributeTypeMap = [{
141
173
  name: 'requestId',
142
174
  baseName: 'RequestId',
@@ -146,14 +178,24 @@ ApiErrorResponse.attributeTypeMap = [{
146
178
  baseName: 'Error',
147
179
  type: 'ApiError'
148
180
  }];
149
- /**
150
- * AustralianPost barcode parameters.
151
- */
152
181
  class AustralianPostParams {
182
+ constructor() {
183
+ /**
184
+ * Interpreting type for the Customer Information of AustralianPost, default to CustomerInformationInterpretingType.Other
185
+ */
186
+ this['encodingTable'] = void 0;
187
+ /**
188
+ * Short bar's height of AustralianPost barcode.
189
+ */
190
+ this['shortBarHeight'] = void 0;
191
+ }
153
192
  static getAttributeTypeMap() {
154
193
  return AustralianPostParams.attributeTypeMap;
155
194
  }
156
195
  }
196
+ /**
197
+ *
198
+ */
157
199
  AustralianPostParams.attributeTypeMap = [{
158
200
  name: 'encodingTable',
159
201
  baseName: 'EncodingTable',
@@ -163,30 +205,76 @@ AustralianPostParams.attributeTypeMap = [{
163
205
  baseName: 'ShortBarHeight',
164
206
  type: 'number'
165
207
  }];
208
+ exports.AutoSizeMode = void 0;
166
209
  (function (AutoSizeMode) {
167
210
  AutoSizeMode["None"] = "None";
168
211
  AutoSizeMode["Nearest"] = "Nearest";
169
212
  AutoSizeMode["Interpolation"] = "Interpolation";
170
213
  })(exports.AutoSizeMode || (exports.AutoSizeMode = {}));
214
+ /**
215
+ * Subset of GraphicsUnit.
216
+ */
217
+ exports.AvailableGraphicsUnit = void 0;
171
218
  (function (AvailableGraphicsUnit) {
172
219
  AvailableGraphicsUnit["Pixel"] = "Pixel";
173
220
  AvailableGraphicsUnit["Point"] = "Point";
174
221
  AvailableGraphicsUnit["Inch"] = "Inch";
175
222
  AvailableGraphicsUnit["Millimeter"] = "Millimeter";
176
223
  })(exports.AvailableGraphicsUnit || (exports.AvailableGraphicsUnit = {}));
224
+ /**
225
+ *
226
+ */
227
+ exports.AztecEncodeMode = void 0;
177
228
  (function (AztecEncodeMode) {
178
229
  AztecEncodeMode["Auto"] = "Auto";
179
230
  AztecEncodeMode["Bytes"] = "Bytes";
180
231
  AztecEncodeMode["ExtendedCodetext"] = "ExtendedCodetext";
181
232
  })(exports.AztecEncodeMode || (exports.AztecEncodeMode = {}));
182
- /**
183
- * Aztec parameters.
233
+ /**
234
+ * Aztec parameters.
184
235
  */
185
236
  class AztecParams {
237
+ constructor() {
238
+ /**
239
+ * Height/Width ratio of 2D BarCode module.
240
+ */
241
+ this['aspectRatio'] = void 0;
242
+ /**
243
+ * Level of error correction of Aztec types of barcode. Value should between 10 to 95.
244
+ */
245
+ this['errorLevel'] = void 0;
246
+ /**
247
+ * Aztec Symbol mode. Default value: AztecSymbolMode.Auto.
248
+ */
249
+ this['symbolMode'] = void 0;
250
+ /**
251
+ * @deprecated This property is obsolete and will be removed in future releases. Unicode symbols detection and encoding will be processed in Auto mode with Extended Channel Interpretation charset designator. Using of own encodings requires manual CodeText encoding into byte[] array. Sets the encoding of codetext.
252
+ */
253
+ this['textEncoding'] = void 0;
254
+ /**
255
+ * Encoding mode for Aztec barcodes. Default value: Auto
256
+ */
257
+ this['encodeMode'] = void 0;
258
+ /**
259
+ * Identifies ECI encoding. Used when AztecEncodeMode is Auto. Default value: ISO-8859-1.
260
+ */
261
+ this['eCIEncoding'] = void 0;
262
+ /**
263
+ * Used to instruct the reader to interpret the data contained within the symbol as programming for reader initialization.
264
+ */
265
+ this['isReaderInitialization'] = void 0;
266
+ /**
267
+ * Gets or sets layers count of Aztec symbol. Layers count should be in range from 1 to 3 for Compact mode and in range from 1 to 32 for Full Range mode. Default value: 0 (auto).
268
+ */
269
+ this['layersCount'] = void 0;
270
+ }
186
271
  static getAttributeTypeMap() {
187
272
  return AztecParams.attributeTypeMap;
188
273
  }
189
274
  }
275
+ /**
276
+ *
277
+ */
190
278
  AztecParams.attributeTypeMap = [{
191
279
  name: 'aspectRatio',
192
280
  baseName: 'AspectRatio',
@@ -220,20 +308,42 @@ AztecParams.attributeTypeMap = [{
220
308
  baseName: 'LayersCount',
221
309
  type: 'number'
222
310
  }];
311
+ exports.AztecSymbolMode = void 0;
223
312
  (function (AztecSymbolMode) {
224
313
  AztecSymbolMode["Auto"] = "Auto";
225
314
  AztecSymbolMode["Compact"] = "Compact";
226
315
  AztecSymbolMode["FullRange"] = "FullRange";
227
316
  AztecSymbolMode["Rune"] = "Rune";
228
317
  })(exports.AztecSymbolMode || (exports.AztecSymbolMode = {}));
229
- /**
230
- * Represents information about barcode.
318
+ /**
319
+ * Represents information about barcode.
231
320
  */
232
321
  class BarcodeResponse {
322
+ constructor() {
323
+ /**
324
+ * Barcode data.
325
+ */
326
+ this['barcodeValue'] = void 0;
327
+ /**
328
+ * Type of the barcode.
329
+ */
330
+ this['type'] = void 0;
331
+ /**
332
+ * Region with barcode.
333
+ */
334
+ this['region'] = void 0;
335
+ /**
336
+ * Checksum of barcode.
337
+ */
338
+ this['checksum'] = void 0;
339
+ }
233
340
  static getAttributeTypeMap() {
234
341
  return BarcodeResponse.attributeTypeMap;
235
342
  }
236
343
  }
344
+ /**
345
+ * Represents information about barcode list.
346
+ */
237
347
  BarcodeResponse.attributeTypeMap = [{
238
348
  name: 'barcodeValue',
239
349
  baseName: 'BarcodeValue',
@@ -251,19 +361,26 @@ BarcodeResponse.attributeTypeMap = [{
251
361
  baseName: 'Checksum',
252
362
  type: 'string'
253
363
  }];
254
- /**
255
- * Represents information about barcode list.
256
- */
257
364
  class BarcodeResponseList {
365
+ constructor() {
366
+ /**
367
+ * List of barcodes which are present in image.
368
+ */
369
+ this['barcodes'] = void 0;
370
+ }
258
371
  static getAttributeTypeMap() {
259
372
  return BarcodeResponseList.attributeTypeMap;
260
373
  }
261
374
  }
375
+ /**
376
+ *
377
+ */
262
378
  BarcodeResponseList.attributeTypeMap = [{
263
379
  name: 'barcodes',
264
380
  baseName: 'Barcodes',
265
381
  type: 'Array<BarcodeResponse>'
266
382
  }];
383
+ exports.BorderDashStyle = void 0;
267
384
  (function (BorderDashStyle) {
268
385
  BorderDashStyle["Solid"] = "Solid";
269
386
  BorderDashStyle["Dash"] = "Dash";
@@ -271,14 +388,47 @@ BarcodeResponseList.attributeTypeMap = [{
271
388
  BorderDashStyle["DashDot"] = "DashDot";
272
389
  BorderDashStyle["DashDotDot"] = "DashDotDot";
273
390
  })(exports.BorderDashStyle || (exports.BorderDashStyle = {}));
274
- /**
275
- * Caption
391
+ /**
392
+ * Caption
276
393
  */
277
394
  class CaptionParams {
395
+ constructor() {
396
+ /**
397
+ * Caption text.
398
+ */
399
+ this['text'] = void 0;
400
+ /**
401
+ * Text alignment.
402
+ */
403
+ this['alignment'] = void 0;
404
+ /**
405
+ * Text color.
406
+ */
407
+ this['color'] = void 0;
408
+ /**
409
+ * Is caption visible.
410
+ */
411
+ this['visible'] = void 0;
412
+ /**
413
+ * Font.
414
+ */
415
+ this['font'] = void 0;
416
+ /**
417
+ * Padding.
418
+ */
419
+ this['padding'] = void 0;
420
+ /**
421
+ * Specify word wraps (line breaks) within text. Default value: false.
422
+ */
423
+ this['noWrap'] = void 0;
424
+ }
278
425
  static getAttributeTypeMap() {
279
426
  return CaptionParams.attributeTypeMap;
280
427
  }
281
428
  }
429
+ /**
430
+ *
431
+ */
282
432
  CaptionParams.attributeTypeMap = [{
283
433
  name: 'text',
284
434
  baseName: 'Text',
@@ -308,23 +458,45 @@ CaptionParams.attributeTypeMap = [{
308
458
  baseName: 'NoWrap',
309
459
  type: 'boolean'
310
460
  }];
461
+ exports.ChecksumValidation = void 0;
311
462
  (function (ChecksumValidation) {
312
463
  ChecksumValidation["Default"] = "Default";
313
464
  ChecksumValidation["On"] = "On";
314
465
  ChecksumValidation["Off"] = "Off";
315
466
  })(exports.ChecksumValidation || (exports.ChecksumValidation = {}));
467
+ /**
468
+ *
469
+ */
470
+ exports.CodabarChecksumMode = void 0;
316
471
  (function (CodabarChecksumMode) {
317
472
  CodabarChecksumMode["Mod10"] = "Mod10";
318
473
  CodabarChecksumMode["Mod16"] = "Mod16";
319
474
  })(exports.CodabarChecksumMode || (exports.CodabarChecksumMode = {}));
320
- /**
321
- * Codabar parameters.
475
+ /**
476
+ * Codabar parameters.
322
477
  */
323
478
  class CodabarParams {
479
+ constructor() {
480
+ /**
481
+ * Checksum algorithm for Codabar barcodes. Default value: CodabarChecksumMode.Mod16. To enable checksum calculation set value EnableChecksum.Yes to property EnableChecksum.
482
+ */
483
+ this['checksumMode'] = void 0;
484
+ /**
485
+ * Start symbol (character) of Codabar symbology. Default value: CodabarSymbol.A
486
+ */
487
+ this['startSymbol'] = void 0;
488
+ /**
489
+ * Stop symbol (character) of Codabar symbology. Default value: CodabarSymbol.A
490
+ */
491
+ this['stopSymbol'] = void 0;
492
+ }
324
493
  static getAttributeTypeMap() {
325
494
  return CodabarParams.attributeTypeMap;
326
495
  }
327
496
  }
497
+ /**
498
+ *
499
+ */
328
500
  CodabarParams.attributeTypeMap = [{
329
501
  name: 'checksumMode',
330
502
  baseName: 'ChecksumMode',
@@ -338,20 +510,38 @@ CodabarParams.attributeTypeMap = [{
338
510
  baseName: 'StopSymbol',
339
511
  type: 'CodabarSymbol'
340
512
  }];
513
+ exports.CodabarSymbol = void 0;
341
514
  (function (CodabarSymbol) {
342
515
  CodabarSymbol["A"] = "A";
343
516
  CodabarSymbol["B"] = "B";
344
517
  CodabarSymbol["C"] = "C";
345
518
  CodabarSymbol["D"] = "D";
346
519
  })(exports.CodabarSymbol || (exports.CodabarSymbol = {}));
347
- /**
348
- * Codablock parameters.
520
+ /**
521
+ * Codablock parameters.
349
522
  */
350
523
  class CodablockParams {
524
+ constructor() {
525
+ /**
526
+ * Height/Width ratio of 2D BarCode module.
527
+ */
528
+ this['aspectRatio'] = void 0;
529
+ /**
530
+ * Columns count.
531
+ */
532
+ this['columns'] = void 0;
533
+ /**
534
+ * Rows count.
535
+ */
536
+ this['rows'] = void 0;
537
+ }
351
538
  static getAttributeTypeMap() {
352
539
  return CodablockParams.attributeTypeMap;
353
540
  }
354
541
  }
542
+ /**
543
+ * DEPRECATED. This enum will be removed in future releases Function codewords for Code 128 emulation. Applied for MicroPDF417 only. Ignored for PDF417 and MacroPDF417 barcodes.
544
+ */
355
545
  CodablockParams.attributeTypeMap = [{
356
546
  name: 'aspectRatio',
357
547
  baseName: 'AspectRatio',
@@ -365,12 +555,17 @@ CodablockParams.attributeTypeMap = [{
365
555
  baseName: 'Rows',
366
556
  type: 'number'
367
557
  }];
558
+ exports.Code128Emulation = void 0;
368
559
  (function (Code128Emulation) {
369
560
  Code128Emulation["None"] = "None";
370
561
  Code128Emulation["Code903"] = "Code903";
371
562
  Code128Emulation["Code904"] = "Code904";
372
563
  Code128Emulation["Code905"] = "Code905";
373
564
  })(exports.Code128Emulation || (exports.Code128Emulation = {}));
565
+ /**
566
+ *
567
+ */
568
+ exports.Code128EncodeMode = void 0;
374
569
  (function (Code128EncodeMode) {
375
570
  Code128EncodeMode["Auto"] = "Auto";
376
571
  Code128EncodeMode["CodeA"] = "CodeA";
@@ -380,27 +575,50 @@ CodablockParams.attributeTypeMap = [{
380
575
  Code128EncodeMode["CodeAC"] = "CodeAC";
381
576
  Code128EncodeMode["CodeBC"] = "CodeBC";
382
577
  })(exports.Code128EncodeMode || (exports.Code128EncodeMode = {}));
383
- /**
384
- * Code128 params.
578
+ /**
579
+ * Code128 params.
385
580
  */
386
581
  class Code128Params {
582
+ constructor() {
583
+ /**
584
+ * Encoding mode for Code128 barcodes. Code 128 specification Default value: Code128EncodeMode.Auto.
585
+ */
586
+ this['encodeMode'] = void 0;
587
+ }
387
588
  static getAttributeTypeMap() {
388
589
  return Code128Params.attributeTypeMap;
389
590
  }
390
591
  }
592
+ /**
593
+ * Code16K parameters.
594
+ */
391
595
  Code128Params.attributeTypeMap = [{
392
596
  name: 'encodeMode',
393
597
  baseName: 'EncodeMode',
394
598
  type: 'Code128EncodeMode'
395
599
  }];
396
- /**
397
- * Code16K parameters.
398
- */
399
600
  class Code16KParams {
601
+ constructor() {
602
+ /**
603
+ * Height/Width ratio of 2D BarCode module.
604
+ */
605
+ this['aspectRatio'] = void 0;
606
+ /**
607
+ * Size of the left quiet zone in xDimension. Default value: 10, meaning if xDimension = 2px than left quiet zone will be 20px.
608
+ */
609
+ this['quietZoneLeftCoef'] = void 0;
610
+ /**
611
+ * Size of the right quiet zone in xDimension. Default value: 1, meaning if xDimension = 2px than right quiet zone will be 2px.
612
+ */
613
+ this['quietZoneRightCoef'] = void 0;
614
+ }
400
615
  static getAttributeTypeMap() {
401
616
  return Code16KParams.attributeTypeMap;
402
617
  }
403
618
  }
619
+ /**
620
+ *
621
+ */
404
622
  Code16KParams.attributeTypeMap = [{
405
623
  name: 'aspectRatio',
406
624
  baseName: 'AspectRatio',
@@ -414,37 +632,73 @@ Code16KParams.attributeTypeMap = [{
414
632
  baseName: 'QuietZoneRightCoef',
415
633
  type: 'number'
416
634
  }];
635
+ exports.CodeLocation = void 0;
417
636
  (function (CodeLocation) {
418
637
  CodeLocation["Below"] = "Below";
419
638
  CodeLocation["Above"] = "Above";
420
639
  CodeLocation["None"] = "None";
421
640
  })(exports.CodeLocation || (exports.CodeLocation = {}));
422
- /**
423
- * Coupon parameters. Used for UpcaGs1DatabarCoupon, UpcaGs1Code128Coupon.
641
+ /**
642
+ * Coupon parameters. Used for UpcaGs1DatabarCoupon, UpcaGs1Code128Coupon.
424
643
  */
425
644
  class CouponParams {
645
+ constructor() {
646
+ /**
647
+ * Space between main the BarCode and supplement BarCode in Unit value.
648
+ */
649
+ this['supplementSpace'] = void 0;
650
+ }
426
651
  static getAttributeTypeMap() {
427
652
  return CouponParams.attributeTypeMap;
428
653
  }
429
654
  }
655
+ /**
656
+ *
657
+ */
430
658
  CouponParams.attributeTypeMap = [{
431
659
  name: 'supplementSpace',
432
660
  baseName: 'SupplementSpace',
433
661
  type: 'number'
434
662
  }];
663
+ exports.CustomerInformationInterpretingType = void 0;
435
664
  (function (CustomerInformationInterpretingType) {
436
665
  CustomerInformationInterpretingType["CTable"] = "CTable";
437
666
  CustomerInformationInterpretingType["NTable"] = "NTable";
438
667
  CustomerInformationInterpretingType["Other"] = "Other";
439
668
  })(exports.CustomerInformationInterpretingType || (exports.CustomerInformationInterpretingType = {}));
440
- /**
441
- * Databar parameters.
669
+ /**
670
+ * Databar parameters.
442
671
  */
443
672
  class DataBarParams {
673
+ constructor() {
674
+ /**
675
+ * Height/Width ratio of 2D BarCode module. Used for DataBar stacked.
676
+ */
677
+ this['aspectRatio'] = void 0;
678
+ /**
679
+ * Columns count.
680
+ */
681
+ this['columns'] = void 0;
682
+ /**
683
+ * Rows count.
684
+ */
685
+ this['rows'] = void 0;
686
+ /**
687
+ * Enables flag of 2D composite component with DataBar barcode
688
+ */
689
+ this['is2DCompositeComponent'] = void 0;
690
+ /**
691
+ * If this flag is set, it allows only GS1 encoding standard for Databar barcode types
692
+ */
693
+ this['isAllowOnlyGS1Encoding'] = void 0;
694
+ }
444
695
  static getAttributeTypeMap() {
445
696
  return DataBarParams.attributeTypeMap;
446
697
  }
447
698
  }
699
+ /**
700
+ *
701
+ */
448
702
  DataBarParams.attributeTypeMap = [{
449
703
  name: 'aspectRatio',
450
704
  baseName: 'AspectRatio',
@@ -466,6 +720,7 @@ DataBarParams.attributeTypeMap = [{
466
720
  baseName: 'IsAllowOnlyGS1Encoding',
467
721
  type: 'boolean'
468
722
  }];
723
+ exports.DataMatrixEccType = void 0;
469
724
  (function (DataMatrixEccType) {
470
725
  DataMatrixEccType["EccAuto"] = "EccAuto";
471
726
  DataMatrixEccType["Ecc000"] = "Ecc000";
@@ -475,6 +730,10 @@ DataBarParams.attributeTypeMap = [{
475
730
  DataMatrixEccType["Ecc140"] = "Ecc140";
476
731
  DataMatrixEccType["Ecc200"] = "Ecc200";
477
732
  })(exports.DataMatrixEccType || (exports.DataMatrixEccType = {}));
733
+ /**
734
+ * DataMatrix encoder's encoding mode, default to Auto
735
+ */
736
+ exports.DataMatrixEncodeMode = void 0;
478
737
  (function (DataMatrixEncodeMode) {
479
738
  DataMatrixEncodeMode["Auto"] = "Auto";
480
739
  DataMatrixEncodeMode["ASCII"] = "ASCII";
@@ -486,14 +745,51 @@ DataBarParams.attributeTypeMap = [{
486
745
  DataMatrixEncodeMode["ANSIX12"] = "ANSIX12";
487
746
  DataMatrixEncodeMode["ExtendedCodetext"] = "ExtendedCodetext";
488
747
  })(exports.DataMatrixEncodeMode || (exports.DataMatrixEncodeMode = {}));
489
- /**
490
- * DataMatrix parameters.
748
+ /**
749
+ * DataMatrix parameters.
491
750
  */
492
751
  class DataMatrixParams {
752
+ constructor() {
753
+ /**
754
+ * Height/Width ratio of 2D BarCode module
755
+ */
756
+ this['aspectRatio'] = void 0;
757
+ /**
758
+ * @deprecated This property is obsolete and will be removed in future releases. Unicode symbols detection and encoding will be processed in Auto mode with Extended Channel Interpretation charset designator. Using of own encodings requires manual CodeText encoding into byte[] array. Sets the encoding of codetext.
759
+ */
760
+ this['textEncoding'] = void 0;
761
+ /**
762
+ * @deprecated Will be replaced with 'DataMatrix.Version' in the next release Columns count.
763
+ */
764
+ this['columns'] = void 0;
765
+ /**
766
+ * Datamatrix ECC type. Default value: DataMatrixEccType.Ecc200.
767
+ */
768
+ this['dataMatrixEcc'] = void 0;
769
+ /**
770
+ * Encode mode of Datamatrix barcode. Default value: DataMatrixEncodeMode.Auto.
771
+ */
772
+ this['dataMatrixEncodeMode'] = void 0;
773
+ /**
774
+ * @deprecated Will be replaced with 'DataMatrix.Version' in the next release Rows count.
775
+ */
776
+ this['rows'] = void 0;
777
+ /**
778
+ * Macro Characters 05 and 06 values are used to obtain more compact encoding in special modes. Can be used only with DataMatrixEccType.Ecc200 or DataMatrixEccType.EccAuto. Cannot be used with EncodeTypes.GS1DataMatrix Default value: MacroCharacters.None.
779
+ */
780
+ this['macroCharacters'] = void 0;
781
+ /**
782
+ * Sets a Datamatrix symbol size. Default value: DataMatrixVersion.Auto.
783
+ */
784
+ this['version'] = void 0;
785
+ }
493
786
  static getAttributeTypeMap() {
494
787
  return DataMatrixParams.attributeTypeMap;
495
788
  }
496
789
  }
790
+ /**
791
+ *
792
+ */
497
793
  DataMatrixParams.attributeTypeMap = [{
498
794
  name: 'aspectRatio',
499
795
  baseName: 'AspectRatio',
@@ -527,6 +823,7 @@ DataMatrixParams.attributeTypeMap = [{
527
823
  baseName: 'Version',
528
824
  type: 'DataMatrixVersion'
529
825
  }];
826
+ exports.DataMatrixVersion = void 0;
530
827
  (function (DataMatrixVersion) {
531
828
  DataMatrixVersion["Auto"] = "Auto";
532
829
  DataMatrixVersion["RowsColumns"] = "RowsColumns";
@@ -600,6 +897,10 @@ DataMatrixParams.attributeTypeMap = [{
600
897
  DataMatrixVersion["DMRE26x48"] = "DMRE_26x48";
601
898
  DataMatrixVersion["DMRE26x64"] = "DMRE_26x64";
602
899
  })(exports.DataMatrixVersion || (exports.DataMatrixVersion = {}));
900
+ /**
901
+ * See DecodeType
902
+ */
903
+ exports.DecodeBarcodeType = void 0;
603
904
  (function (DecodeBarcodeType) {
604
905
  DecodeBarcodeType["All"] = "all";
605
906
  DecodeBarcodeType["AustraliaPost"] = "AustraliaPost";
@@ -687,14 +988,27 @@ DataMatrixParams.attributeTypeMap = [{
687
988
  DecodeBarcodeType["GS1MicroPdf417"] = "GS1MicroPdf417";
688
989
  DecodeBarcodeType["MostCommonlyUsed"] = "mostCommonlyUsed";
689
990
  })(exports.DecodeBarcodeType || (exports.DecodeBarcodeType = {}));
690
- /**
691
- * Class for disc space information.
991
+ /**
992
+ * Class for disc space information.
692
993
  */
693
994
  class DiscUsage {
995
+ constructor() {
996
+ /**
997
+ * Application used disc space.
998
+ */
999
+ this['usedSize'] = void 0;
1000
+ /**
1001
+ * Total disc space.
1002
+ */
1003
+ this['totalSize'] = void 0;
1004
+ }
694
1005
  static getAttributeTypeMap() {
695
1006
  return DiscUsage.attributeTypeMap;
696
1007
  }
697
1008
  }
1009
+ /**
1010
+ *
1011
+ */
698
1012
  DiscUsage.attributeTypeMap = [{
699
1013
  name: 'usedSize',
700
1014
  baseName: 'UsedSize',
@@ -704,19 +1018,49 @@ DiscUsage.attributeTypeMap = [{
704
1018
  baseName: 'TotalSize',
705
1019
  type: 'number'
706
1020
  }];
1021
+ exports.DotCodeEncodeMode = void 0;
707
1022
  (function (DotCodeEncodeMode) {
708
1023
  DotCodeEncodeMode["Auto"] = "Auto";
709
1024
  DotCodeEncodeMode["Bytes"] = "Bytes";
710
1025
  DotCodeEncodeMode["ExtendedCodetext"] = "ExtendedCodetext";
711
1026
  })(exports.DotCodeEncodeMode || (exports.DotCodeEncodeMode = {}));
712
- /**
713
- * DotCode parameters.
1027
+ /**
1028
+ * DotCode parameters.
714
1029
  */
715
1030
  class DotCodeParams {
1031
+ constructor() {
1032
+ /**
1033
+ * Height/Width ratio of 2D BarCode module.
1034
+ */
1035
+ this['aspectRatio'] = void 0;
1036
+ /**
1037
+ * Identifies columns count. Sum of the number of rows plus the number of columns of a DotCode symbol must be odd. Number of columns must be at least 5.
1038
+ */
1039
+ this['columns'] = void 0;
1040
+ /**
1041
+ * Identifies DotCode encode mode. Default value: Auto.
1042
+ */
1043
+ this['encodeMode'] = void 0;
1044
+ /**
1045
+ * Identifies ECI encoding. Used when DotCodeEncodeMode is Auto. Default value: ISO-8859-1.
1046
+ */
1047
+ this['eCIEncoding'] = void 0;
1048
+ /**
1049
+ * Indicates whether code is used for instruct reader to interpret the following data as instructions for initialization or reprogramming of the bar code reader. Default value is false.
1050
+ */
1051
+ this['isReaderInitialization'] = void 0;
1052
+ /**
1053
+ * Identifies rows count. Sum of the number of rows plus the number of columns of a DotCode symbol must be odd. Number of rows must be at least 5.
1054
+ */
1055
+ this['rows'] = void 0;
1056
+ }
716
1057
  static getAttributeTypeMap() {
717
1058
  return DotCodeParams.attributeTypeMap;
718
1059
  }
719
1060
  }
1061
+ /**
1062
+ *
1063
+ */
720
1064
  DotCodeParams.attributeTypeMap = [{
721
1065
  name: 'aspectRatio',
722
1066
  baseName: 'AspectRatio',
@@ -742,6 +1086,7 @@ DotCodeParams.attributeTypeMap = [{
742
1086
  baseName: 'Rows',
743
1087
  type: 'number'
744
1088
  }];
1089
+ exports.ECIEncodings = void 0;
745
1090
  (function (ECIEncodings) {
746
1091
  ECIEncodings["NONE"] = "NONE";
747
1092
  ECIEncodings["ISO88591"] = "ISO_8859_1";
@@ -771,11 +1116,19 @@ DotCodeParams.attributeTypeMap = [{
771
1116
  ECIEncodings["GB18030"] = "GB18030";
772
1117
  ECIEncodings["EUCKR"] = "EUC_KR";
773
1118
  })(exports.ECIEncodings || (exports.ECIEncodings = {}));
1119
+ /**
1120
+ *
1121
+ */
1122
+ exports.EnableChecksum = void 0;
774
1123
  (function (EnableChecksum) {
775
1124
  EnableChecksum["Default"] = "Default";
776
1125
  EnableChecksum["Yes"] = "Yes";
777
1126
  EnableChecksum["No"] = "No";
778
1127
  })(exports.EnableChecksum || (exports.EnableChecksum = {}));
1128
+ /**
1129
+ * See EncodeTypes
1130
+ */
1131
+ exports.EncodeBarcodeType = void 0;
779
1132
  (function (EncodeBarcodeType) {
780
1133
  EncodeBarcodeType["Codabar"] = "Codabar";
781
1134
  EncodeBarcodeType["Code11"] = "Code11";
@@ -850,14 +1203,27 @@ DotCodeParams.attributeTypeMap = [{
850
1203
  EncodeBarcodeType["GS1Aztec"] = "GS1Aztec";
851
1204
  EncodeBarcodeType["GS1MicroPdf417"] = "GS1MicroPdf417";
852
1205
  })(exports.EncodeBarcodeType || (exports.EncodeBarcodeType = {}));
853
- /**
854
- * The error details
1206
+ /**
1207
+ * The error details
855
1208
  */
856
1209
  class ErrorDetails {
1210
+ constructor() {
1211
+ /**
1212
+ * The request id
1213
+ */
1214
+ this['requestId'] = void 0;
1215
+ /**
1216
+ * Date
1217
+ */
1218
+ this['date'] = void 0;
1219
+ }
857
1220
  static getAttributeTypeMap() {
858
1221
  return ErrorDetails.attributeTypeMap;
859
1222
  }
860
1223
  }
1224
+ /**
1225
+ * File versions FileVersion.
1226
+ */
861
1227
  ErrorDetails.attributeTypeMap = [{
862
1228
  name: 'requestId',
863
1229
  baseName: 'RequestId',
@@ -867,40 +1233,62 @@ ErrorDetails.attributeTypeMap = [{
867
1233
  baseName: 'Date',
868
1234
  type: 'Date'
869
1235
  }];
870
- /**
871
- * File versions FileVersion.
872
- */
873
1236
  class FileVersions {
1237
+ constructor() {
1238
+ /**
1239
+ * File versions FileVersion.
1240
+ */
1241
+ this['value'] = void 0;
1242
+ }
874
1243
  static getAttributeTypeMap() {
875
1244
  return FileVersions.attributeTypeMap;
876
1245
  }
877
1246
  }
1247
+ /**
1248
+ * Files list
1249
+ */
878
1250
  FileVersions.attributeTypeMap = [{
879
1251
  name: 'value',
880
1252
  baseName: 'Value',
881
1253
  type: 'Array<FileVersion>'
882
1254
  }];
883
- /**
884
- * Files list
885
- */
886
1255
  class FilesList {
1256
+ constructor() {
1257
+ /**
1258
+ * Files and folders contained by folder StorageFile.
1259
+ */
1260
+ this['value'] = void 0;
1261
+ }
887
1262
  static getAttributeTypeMap() {
888
1263
  return FilesList.attributeTypeMap;
889
1264
  }
890
1265
  }
1266
+ /**
1267
+ * File upload result
1268
+ */
891
1269
  FilesList.attributeTypeMap = [{
892
1270
  name: 'value',
893
1271
  baseName: 'Value',
894
1272
  type: 'Array<StorageFile>'
895
1273
  }];
896
- /**
897
- * File upload result
898
- */
899
1274
  class FilesUploadResult {
1275
+ constructor() {
1276
+ /**
1277
+ * List of uploaded file names
1278
+ */
1279
+ this['uploaded'] = void 0;
1280
+ /**
1281
+ * List of errors.
1282
+ */
1283
+ this['errors'] = void 0;
1284
+ }
900
1285
  static getAttributeTypeMap() {
901
1286
  return FilesUploadResult.attributeTypeMap;
902
1287
  }
903
1288
  }
1289
+ /**
1290
+ *
1291
+ */
904
1292
  FilesUploadResult.attributeTypeMap = [{
905
1293
  name: 'uploaded',
906
1294
  baseName: 'Uploaded',
@@ -910,18 +1298,36 @@ FilesUploadResult.attributeTypeMap = [{
910
1298
  baseName: 'Errors',
911
1299
  type: 'Array<Error>'
912
1300
  }];
1301
+ exports.FontMode = void 0;
913
1302
  (function (FontMode) {
914
1303
  FontMode["Auto"] = "Auto";
915
1304
  FontMode["Manual"] = "Manual";
916
1305
  })(exports.FontMode || (exports.FontMode = {}));
917
- /**
918
- * Font.
1306
+ /**
1307
+ * Font.
919
1308
  */
920
1309
  class FontParams {
1310
+ constructor() {
1311
+ /**
1312
+ * Font family.
1313
+ */
1314
+ this['family'] = void 0;
1315
+ /**
1316
+ * Font size in units.
1317
+ */
1318
+ this['size'] = void 0;
1319
+ /**
1320
+ * Font style.
1321
+ */
1322
+ this['style'] = void 0;
1323
+ }
921
1324
  static getAttributeTypeMap() {
922
1325
  return FontParams.attributeTypeMap;
923
1326
  }
924
1327
  }
1328
+ /**
1329
+ *
1330
+ */
925
1331
  FontParams.attributeTypeMap = [{
926
1332
  name: 'family',
927
1333
  baseName: 'Family',
@@ -935,6 +1341,7 @@ FontParams.attributeTypeMap = [{
935
1341
  baseName: 'Style',
936
1342
  type: 'FontStyle'
937
1343
  }];
1344
+ exports.FontStyle = void 0;
938
1345
  (function (FontStyle) {
939
1346
  FontStyle["Regular"] = "Regular";
940
1347
  FontStyle["Bold"] = "Bold";
@@ -942,14 +1349,243 @@ FontParams.attributeTypeMap = [{
942
1349
  FontStyle["Underline"] = "Underline";
943
1350
  FontStyle["Strikeout"] = "Strikeout";
944
1351
  })(exports.FontStyle || (exports.FontStyle = {}));
945
- /**
946
- * Represents extended BarcodeGenerator params.
1352
+ /**
1353
+ * Represents extended BarcodeGenerator params.
947
1354
  */
948
1355
  class GeneratorParams {
1356
+ constructor() {
1357
+ /**
1358
+ * Type of barcode to generate.
1359
+ */
1360
+ this['typeOfBarcode'] = void 0;
1361
+ /**
1362
+ * Text to encode.
1363
+ */
1364
+ this['text'] = void 0;
1365
+ /**
1366
+ * Text that will be displayed instead of codetext in 2D barcodes. Used for: Aztec, Pdf417, DataMatrix, QR, MaxiCode, DotCode
1367
+ */
1368
+ this['twoDDisplayText'] = void 0;
1369
+ /**
1370
+ * Specify the displaying Text Location, set to CodeLocation.None to hide CodeText. Default value: CodeLocation.Below.
1371
+ */
1372
+ this['textLocation'] = void 0;
1373
+ /**
1374
+ * Text alignment.
1375
+ */
1376
+ this['textAlignment'] = void 0;
1377
+ /**
1378
+ * Specify the displaying CodeText's Color. Default value: Color.Black.
1379
+ */
1380
+ this['textColor'] = void 0;
1381
+ /**
1382
+ * Specify the displaying Text's font. Default value: Arial 5pt regular. Ignored if FontSizeMode is set to FontSizeMode.Auto.
1383
+ */
1384
+ this['font'] = void 0;
1385
+ /**
1386
+ * Specify FontSizeMode. If FontSizeMode is set to Auto, font size will be calculated automatically based on xDimension value. It is recommended to use FontSizeMode.Auto especially in AutoSizeMode.Nearest or AutoSizeMode.Interpolation. Default value: FontSizeMode.Auto.
1387
+ */
1388
+ this['fontSizeMode'] = void 0;
1389
+ /**
1390
+ * Specify word wraps (line breaks) within text. Default value: false.
1391
+ */
1392
+ this['noWrap'] = void 0;
1393
+ /**
1394
+ * Resolution of the BarCode image. One value for both dimensions. Default value: 96 dpi.
1395
+ */
1396
+ this['resolution'] = void 0;
1397
+ /**
1398
+ * @deprecated Use 'Resolution' instead.
1399
+ */
1400
+ this['resolutionX'] = void 0;
1401
+ /**
1402
+ * @deprecated Use 'Resolution' instead.
1403
+ */
1404
+ this['resolutionY'] = void 0;
1405
+ /**
1406
+ * The smallest width of the unit of BarCode bars or spaces. Increase this will increase the whole barcode image width. Ignored if AutoSizeMode property is set to AutoSizeMode.Nearest or AutoSizeMode.Interpolation.
1407
+ */
1408
+ this['dimensionX'] = void 0;
1409
+ /**
1410
+ * Space between the CodeText and the BarCode in Unit value. Default value: 2pt. Ignored for EAN8, EAN13, UPCE, UPCA, ISBN, ISMN, ISSN, UpcaGs1DatabarCoupon.
1411
+ */
1412
+ this['textSpace'] = void 0;
1413
+ /**
1414
+ * Common Units for all measuring in query. Default units: pixel.
1415
+ */
1416
+ this['units'] = void 0;
1417
+ /**
1418
+ * Specifies the different types of automatic sizing modes. Default value: AutoSizeMode.None.
1419
+ */
1420
+ this['sizeMode'] = void 0;
1421
+ /**
1422
+ * Height of the barcode in given units. Default units: pixel.
1423
+ */
1424
+ this['barHeight'] = void 0;
1425
+ /**
1426
+ * Height of the barcode image in given units. Default units: pixel.
1427
+ */
1428
+ this['imageHeight'] = void 0;
1429
+ /**
1430
+ * Width of the barcode image in given units. Default units: pixel.
1431
+ */
1432
+ this['imageWidth'] = void 0;
1433
+ /**
1434
+ * BarCode image rotation angle, measured in degree, e.g. RotationAngle = 0 or RotationAngle = 360 means no rotation. If RotationAngle NOT equal to 90, 180, 270 or 0, it may increase the difficulty for the scanner to read the image. Default value: 0.
1435
+ */
1436
+ this['rotationAngle'] = void 0;
1437
+ /**
1438
+ * Barcode paddings. Default value: 5pt 5pt 5pt 5pt.
1439
+ */
1440
+ this['padding'] = void 0;
1441
+ /**
1442
+ * Additional caption above barcode.
1443
+ */
1444
+ this['captionAbove'] = void 0;
1445
+ /**
1446
+ * Additional caption below barcode.
1447
+ */
1448
+ this['captionBelow'] = void 0;
1449
+ /**
1450
+ * Background color of the barcode image. Default value: Color.White.
1451
+ */
1452
+ this['backColor'] = void 0;
1453
+ /**
1454
+ * Bars color. Default value: Color.Black.
1455
+ */
1456
+ this['barColor'] = void 0;
1457
+ /**
1458
+ * Border color. Default value: Color.Black.
1459
+ */
1460
+ this['borderColor'] = void 0;
1461
+ /**
1462
+ * Border width. Default value: 0. Ignored if Visible is set to false.
1463
+ */
1464
+ this['borderWidth'] = void 0;
1465
+ /**
1466
+ * Border dash style. Default value: BorderDashStyle.Solid.
1467
+ */
1468
+ this['borderDashStyle'] = void 0;
1469
+ /**
1470
+ * Border visibility. If false than parameter Width is always ignored (0). Default value: false.
1471
+ */
1472
+ this['borderVisible'] = void 0;
1473
+ /**
1474
+ * Enable checksum during generation 1D barcodes. Default is treated as Yes for symbology which must contain checksum, as No where checksum only possible. Checksum is possible: Code39 Standard/Extended, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN, Codabar Checksum always used: Rest symbology
1475
+ */
1476
+ this['enableChecksum'] = void 0;
1477
+ /**
1478
+ * Indicates whether explains the character \"\\\" as an escape character in CodeText property. Used for Pdf417, DataMatrix, Code128 only If the EnableEscape is true, \"\\\" will be explained as a special escape character. Otherwise, \"\\\" acts as normal characters. Aspose.BarCode supports input decimal ascii code and mnemonic for ASCII control-code characters. For example, \\013 and \\\\CR stands for CR.
1479
+ */
1480
+ this['enableEscape'] = void 0;
1481
+ /**
1482
+ * Value indicating whether bars are filled. Only for 1D barcodes. Default value: true.
1483
+ */
1484
+ this['filledBars'] = void 0;
1485
+ /**
1486
+ * Always display checksum digit in the human readable text for Code128 and GS1Code128 barcodes.
1487
+ */
1488
+ this['alwaysShowChecksum'] = void 0;
1489
+ /**
1490
+ * Wide bars to Narrow bars ratio. Default value: 3, that is, wide bars are 3 times as wide as narrow bars. Used for ITF, PZN, PharmaCode, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, IATA2of5, VIN, DeutschePost, OPC, Code32, DataLogic2of5, PatchCode, Code39Extended, Code39Standard
1491
+ */
1492
+ this['wideNarrowRatio'] = void 0;
1493
+ /**
1494
+ * Only for 1D barcodes. If codetext is incorrect and value set to true - exception will be thrown. Otherwise codetext will be corrected to match barcode's specification. Exception always will be thrown for: Databar symbology if codetext is incorrect. Exception always will not be thrown for: AustraliaPost, SingaporePost, Code39Extended, Code93Extended, Code16K, Code128 symbology if codetext is incorrect.
1495
+ */
1496
+ this['validateText'] = void 0;
1497
+ /**
1498
+ * Supplement parameters. Used for Interleaved2of5, Standard2of5, EAN13, EAN8, UPCA, UPCE, ISBN, ISSN, ISMN.
1499
+ */
1500
+ this['supplementData'] = void 0;
1501
+ /**
1502
+ * Space between main the BarCode and supplement BarCode.
1503
+ */
1504
+ this['supplementSpace'] = void 0;
1505
+ /**
1506
+ * Bars reduction value that is used to compensate ink spread while printing.
1507
+ */
1508
+ this['barWidthReduction'] = void 0;
1509
+ /**
1510
+ * Indicates whether is used anti-aliasing mode to render image. Anti-aliasing mode is applied to barcode and text drawing.
1511
+ */
1512
+ this['useAntiAlias'] = void 0;
1513
+ /**
1514
+ * AustralianPost params.
1515
+ */
1516
+ this['australianPost'] = void 0;
1517
+ /**
1518
+ * Aztec params.
1519
+ */
1520
+ this['aztec'] = void 0;
1521
+ /**
1522
+ * Codabar params.
1523
+ */
1524
+ this['codabar'] = void 0;
1525
+ /**
1526
+ * Codablock params.
1527
+ */
1528
+ this['codablock'] = void 0;
1529
+ /**
1530
+ * Code16K params.
1531
+ */
1532
+ this['code16K'] = void 0;
1533
+ /**
1534
+ * Coupon params.
1535
+ */
1536
+ this['coupon'] = void 0;
1537
+ /**
1538
+ * DataBar params.
1539
+ */
1540
+ this['dataBar'] = void 0;
1541
+ /**
1542
+ * DataMatrix params.
1543
+ */
1544
+ this['dataMatrix'] = void 0;
1545
+ /**
1546
+ * DotCode params.
1547
+ */
1548
+ this['dotCode'] = void 0;
1549
+ /**
1550
+ * ITF params.
1551
+ */
1552
+ this['ITF'] = void 0;
1553
+ /**
1554
+ * MaxiCode params.
1555
+ */
1556
+ this['maxiCode'] = void 0;
1557
+ /**
1558
+ * Pdf417 params.
1559
+ */
1560
+ this['pdf417'] = void 0;
1561
+ /**
1562
+ * Postal params.
1563
+ */
1564
+ this['postal'] = void 0;
1565
+ /**
1566
+ * QR params.
1567
+ */
1568
+ this['QR'] = void 0;
1569
+ /**
1570
+ * PatchCode params.
1571
+ */
1572
+ this['patchCode'] = void 0;
1573
+ /**
1574
+ * Code128 params.
1575
+ */
1576
+ this['code128'] = void 0;
1577
+ /**
1578
+ * HanXin params.
1579
+ */
1580
+ this['hanXin'] = void 0;
1581
+ }
949
1582
  static getAttributeTypeMap() {
950
1583
  return GeneratorParams.attributeTypeMap;
951
1584
  }
952
1585
  }
1586
+ /**
1587
+ * Represents list of barcode generators
1588
+ */
953
1589
  GeneratorParams.attributeTypeMap = [{
954
1590
  name: 'typeOfBarcode',
955
1591
  baseName: 'TypeOfBarcode',
@@ -1175,14 +1811,28 @@ GeneratorParams.attributeTypeMap = [{
1175
1811
  baseName: 'HanXin',
1176
1812
  type: 'HanXinParams'
1177
1813
  }];
1178
- /**
1179
- * Represents list of barcode generators
1180
- */
1181
1814
  class GeneratorParamsList {
1815
+ constructor() {
1816
+ /**
1817
+ * List of barcode generators
1818
+ */
1819
+ this['barcodeBuilders'] = void 0;
1820
+ /**
1821
+ * Shift step according to X axis
1822
+ */
1823
+ this['xStep'] = void 0;
1824
+ /**
1825
+ * Shift step according to Y axis
1826
+ */
1827
+ this['yStep'] = void 0;
1828
+ }
1182
1829
  static getAttributeTypeMap() {
1183
1830
  return GeneratorParamsList.attributeTypeMap;
1184
1831
  }
1185
1832
  }
1833
+ /**
1834
+ *
1835
+ */
1186
1836
  GeneratorParamsList.attributeTypeMap = [{
1187
1837
  name: 'barcodeBuilders',
1188
1838
  baseName: 'BarcodeBuilders',
@@ -1196,6 +1846,7 @@ GeneratorParamsList.attributeTypeMap = [{
1196
1846
  baseName: 'YStep',
1197
1847
  type: 'number'
1198
1848
  }];
1849
+ exports.HanXinEncodeMode = void 0;
1199
1850
  (function (HanXinEncodeMode) {
1200
1851
  HanXinEncodeMode["Auto"] = "Auto";
1201
1852
  HanXinEncodeMode["Binary"] = "Binary";
@@ -1204,20 +1855,45 @@ GeneratorParamsList.attributeTypeMap = [{
1204
1855
  HanXinEncodeMode["URI"] = "URI";
1205
1856
  HanXinEncodeMode["Extended"] = "Extended";
1206
1857
  })(exports.HanXinEncodeMode || (exports.HanXinEncodeMode = {}));
1858
+ /**
1859
+ *
1860
+ */
1861
+ exports.HanXinErrorLevel = void 0;
1207
1862
  (function (HanXinErrorLevel) {
1208
1863
  HanXinErrorLevel["L1"] = "L1";
1209
1864
  HanXinErrorLevel["L2"] = "L2";
1210
1865
  HanXinErrorLevel["L3"] = "L3";
1211
1866
  HanXinErrorLevel["L4"] = "L4";
1212
1867
  })(exports.HanXinErrorLevel || (exports.HanXinErrorLevel = {}));
1213
- /**
1214
- * HanXin params.
1868
+ /**
1869
+ * HanXin params.
1215
1870
  */
1216
1871
  class HanXinParams {
1872
+ constructor() {
1873
+ /**
1874
+ * Encoding mode for XanXin barcodes. Default value: HanXinEncodeMode.Auto.
1875
+ */
1876
+ this['encodeMode'] = void 0;
1877
+ /**
1878
+ * Allowed Han Xin error correction levels from L1 to L4. Default value: HanXinErrorLevel.L1.
1879
+ */
1880
+ this['errorLevel'] = void 0;
1881
+ /**
1882
+ * Allowed Han Xin versions, Auto and Version01 - Version84. Default value: HanXinVersion.Auto.
1883
+ */
1884
+ this['version'] = void 0;
1885
+ /**
1886
+ * Extended Channel Interpretation Identifiers. It is used to tell the barcode reader details about the used references for encoding the data in the symbol. Current implementation consists all well known charset encodings. Default value: ECIEncodings.ISO_8859_1
1887
+ */
1888
+ this['eCIEncoding'] = void 0;
1889
+ }
1217
1890
  static getAttributeTypeMap() {
1218
1891
  return HanXinParams.attributeTypeMap;
1219
1892
  }
1220
1893
  }
1894
+ /**
1895
+ *
1896
+ */
1221
1897
  HanXinParams.attributeTypeMap = [{
1222
1898
  name: 'encodeMode',
1223
1899
  baseName: 'EncodeMode',
@@ -1235,6 +1911,7 @@ HanXinParams.attributeTypeMap = [{
1235
1911
  baseName: 'ECIEncoding',
1236
1912
  type: 'ECIEncodings'
1237
1913
  }];
1914
+ exports.HanXinVersion = void 0;
1238
1915
  (function (HanXinVersion) {
1239
1916
  HanXinVersion["Auto"] = "Auto";
1240
1917
  HanXinVersion["Version01"] = "Version01";
@@ -1322,6 +1999,10 @@ HanXinParams.attributeTypeMap = [{
1322
1999
  HanXinVersion["Version83"] = "Version83";
1323
2000
  HanXinVersion["Version84"] = "Version84";
1324
2001
  })(exports.HanXinVersion || (exports.HanXinVersion = {}));
2002
+ /**
2003
+ *
2004
+ */
2005
+ exports.ITF14BorderType = void 0;
1325
2006
  (function (ITF14BorderType) {
1326
2007
  ITF14BorderType["None"] = "None";
1327
2008
  ITF14BorderType["Frame"] = "Frame";
@@ -1329,14 +2010,31 @@ HanXinParams.attributeTypeMap = [{
1329
2010
  ITF14BorderType["FrameOut"] = "FrameOut";
1330
2011
  ITF14BorderType["BarOut"] = "BarOut";
1331
2012
  })(exports.ITF14BorderType || (exports.ITF14BorderType = {}));
1332
- /**
1333
- * ITF parameters.
2013
+ /**
2014
+ * ITF parameters.
1334
2015
  */
1335
2016
  class ITFParams {
2017
+ constructor() {
2018
+ /**
2019
+ * ITF border (bearer bar) thickness in Unit value. Default value: 12pt.
2020
+ */
2021
+ this['borderThickness'] = void 0;
2022
+ /**
2023
+ * Border type of ITF barcode. Default value: ITF14BorderType.Bar.
2024
+ */
2025
+ this['borderType'] = void 0;
2026
+ /**
2027
+ * Size of the quiet zones in xDimension. Default value: 10, meaning if xDimension = 2px than quiet zones will be 20px.
2028
+ */
2029
+ this['quietZoneCoef'] = void 0;
2030
+ }
1336
2031
  static getAttributeTypeMap() {
1337
2032
  return ITFParams.attributeTypeMap;
1338
2033
  }
1339
2034
  }
2035
+ /**
2036
+ *
2037
+ */
1340
2038
  ITFParams.attributeTypeMap = [{
1341
2039
  name: 'borderThickness',
1342
2040
  baseName: 'BorderThickness',
@@ -1350,16 +2048,25 @@ ITFParams.attributeTypeMap = [{
1350
2048
  baseName: 'QuietZoneCoef',
1351
2049
  type: 'number'
1352
2050
  }];
2051
+ exports.MacroCharacter = void 0;
1353
2052
  (function (MacroCharacter) {
1354
2053
  MacroCharacter["None"] = "None";
1355
2054
  MacroCharacter["Macro05"] = "Macro05";
1356
2055
  MacroCharacter["Macro06"] = "Macro06";
1357
2056
  })(exports.MacroCharacter || (exports.MacroCharacter = {}));
2057
+ /**
2058
+ *
2059
+ */
2060
+ exports.MaxiCodeEncodeMode = void 0;
1358
2061
  (function (MaxiCodeEncodeMode) {
1359
2062
  MaxiCodeEncodeMode["Auto"] = "Auto";
1360
2063
  MaxiCodeEncodeMode["Bytes"] = "Bytes";
1361
2064
  MaxiCodeEncodeMode["ExtendedCodetext"] = "ExtendedCodetext";
1362
2065
  })(exports.MaxiCodeEncodeMode || (exports.MaxiCodeEncodeMode = {}));
2066
+ /**
2067
+ *
2068
+ */
2069
+ exports.MaxiCodeMode = void 0;
1363
2070
  (function (MaxiCodeMode) {
1364
2071
  MaxiCodeMode["Mode2"] = "Mode2";
1365
2072
  MaxiCodeMode["Mode3"] = "Mode3";
@@ -1367,14 +2074,31 @@ ITFParams.attributeTypeMap = [{
1367
2074
  MaxiCodeMode["Mode5"] = "Mode5";
1368
2075
  MaxiCodeMode["Mode6"] = "Mode6";
1369
2076
  })(exports.MaxiCodeMode || (exports.MaxiCodeMode = {}));
1370
- /**
1371
- * MaxiCode parameters.
2077
+ /**
2078
+ * MaxiCode parameters.
1372
2079
  */
1373
2080
  class MaxiCodeParams {
2081
+ constructor() {
2082
+ /**
2083
+ * Height/Width ratio of 2D BarCode module.
2084
+ */
2085
+ this['aspectRatio'] = void 0;
2086
+ /**
2087
+ * Mode for MaxiCode barcodes.
2088
+ */
2089
+ this['mode'] = void 0;
2090
+ /**
2091
+ * Encoding mode for MaxiCode barcodes.
2092
+ */
2093
+ this['encodeMode'] = void 0;
2094
+ }
1374
2095
  static getAttributeTypeMap() {
1375
2096
  return MaxiCodeParams.attributeTypeMap;
1376
2097
  }
1377
2098
  }
2099
+ /**
2100
+ * Error
2101
+ */
1378
2102
  MaxiCodeParams.attributeTypeMap = [{
1379
2103
  name: 'aspectRatio',
1380
2104
  baseName: 'AspectRatio',
@@ -1388,14 +2112,32 @@ MaxiCodeParams.attributeTypeMap = [{
1388
2112
  baseName: 'EncodeMode',
1389
2113
  type: 'MaxiCodeEncodeMode'
1390
2114
  }];
1391
- /**
1392
- * Error
1393
- */
1394
2115
  class ModelError {
2116
+ constructor() {
2117
+ /**
2118
+ * Code
2119
+ */
2120
+ this['code'] = void 0;
2121
+ /**
2122
+ * Message
2123
+ */
2124
+ this['message'] = void 0;
2125
+ /**
2126
+ * Description
2127
+ */
2128
+ this['description'] = void 0;
2129
+ /**
2130
+ * Inner Error
2131
+ */
2132
+ this['innerError'] = void 0;
2133
+ }
1395
2134
  static getAttributeTypeMap() {
1396
2135
  return ModelError.attributeTypeMap;
1397
2136
  }
1398
2137
  }
2138
+ /**
2139
+ * Object exists
2140
+ */
1399
2141
  ModelError.attributeTypeMap = [{
1400
2142
  name: 'code',
1401
2143
  baseName: 'Code',
@@ -1413,14 +2155,24 @@ ModelError.attributeTypeMap = [{
1413
2155
  baseName: 'InnerError',
1414
2156
  type: 'ErrorDetails'
1415
2157
  }];
1416
- /**
1417
- * Object exists
1418
- */
1419
2158
  class ObjectExist {
2159
+ constructor() {
2160
+ /**
2161
+ * Indicates that the file or folder exists.
2162
+ */
2163
+ this['exists'] = void 0;
2164
+ /**
2165
+ * True if it is a folder, false if it is a file.
2166
+ */
2167
+ this['isFolder'] = void 0;
2168
+ }
1420
2169
  static getAttributeTypeMap() {
1421
2170
  return ObjectExist.attributeTypeMap;
1422
2171
  }
1423
2172
  }
2173
+ /**
2174
+ * Padding around barcode.
2175
+ */
1424
2176
  ObjectExist.attributeTypeMap = [{
1425
2177
  name: 'exists',
1426
2178
  baseName: 'Exists',
@@ -1430,14 +2182,32 @@ ObjectExist.attributeTypeMap = [{
1430
2182
  baseName: 'IsFolder',
1431
2183
  type: 'boolean'
1432
2184
  }];
1433
- /**
1434
- * Padding around barcode.
1435
- */
1436
2185
  class Padding {
2186
+ constructor() {
2187
+ /**
2188
+ * Left padding.
2189
+ */
2190
+ this['left'] = void 0;
2191
+ /**
2192
+ * Right padding.
2193
+ */
2194
+ this['right'] = void 0;
2195
+ /**
2196
+ * Top padding.
2197
+ */
2198
+ this['top'] = void 0;
2199
+ /**
2200
+ * Bottom padding.
2201
+ */
2202
+ this['bottom'] = void 0;
2203
+ }
1437
2204
  static getAttributeTypeMap() {
1438
2205
  return Padding.attributeTypeMap;
1439
2206
  }
1440
2207
  }
2208
+ /**
2209
+ * PatchCode parameters.
2210
+ */
1441
2211
  Padding.attributeTypeMap = [{
1442
2212
  name: 'left',
1443
2213
  baseName: 'Left',
@@ -1455,14 +2225,24 @@ Padding.attributeTypeMap = [{
1455
2225
  baseName: 'Bottom',
1456
2226
  type: 'number'
1457
2227
  }];
1458
- /**
1459
- * PatchCode parameters.
1460
- */
1461
2228
  class PatchCodeParams {
2229
+ constructor() {
2230
+ /**
2231
+ * Specifies codetext for an extra QR barcode, when PatchCode is generated in page mode.
2232
+ */
2233
+ this['extraBarcodeText'] = void 0;
2234
+ /**
2235
+ * PatchCode format. Choose PatchOnly to generate single PatchCode. Use page format to generate Patch page with PatchCodes as borders. Default value: PatchFormat.PatchOnly
2236
+ */
2237
+ this['patchFormat'] = void 0;
2238
+ }
1462
2239
  static getAttributeTypeMap() {
1463
2240
  return PatchCodeParams.attributeTypeMap;
1464
2241
  }
1465
2242
  }
2243
+ /**
2244
+ *
2245
+ */
1466
2246
  PatchCodeParams.attributeTypeMap = [{
1467
2247
  name: 'extraBarcodeText',
1468
2248
  baseName: 'ExtraBarcodeText',
@@ -1472,6 +2252,7 @@ PatchCodeParams.attributeTypeMap = [{
1472
2252
  baseName: 'PatchFormat',
1473
2253
  type: 'PatchFormat'
1474
2254
  }];
2255
+ exports.PatchFormat = void 0;
1475
2256
  (function (PatchFormat) {
1476
2257
  PatchFormat["PatchOnly"] = "PatchOnly";
1477
2258
  PatchFormat["A4"] = "A4";
@@ -1479,12 +2260,20 @@ PatchCodeParams.attributeTypeMap = [{
1479
2260
  PatchFormat["USLetter"] = "US_Letter";
1480
2261
  PatchFormat["USLetterLANDSCAPE"] = "US_Letter_LANDSCAPE";
1481
2262
  })(exports.PatchFormat || (exports.PatchFormat = {}));
2263
+ /**
2264
+ *
2265
+ */
2266
+ exports.Pdf417CompactionMode = void 0;
1482
2267
  (function (Pdf417CompactionMode) {
1483
2268
  Pdf417CompactionMode["Auto"] = "Auto";
1484
2269
  Pdf417CompactionMode["Text"] = "Text";
1485
2270
  Pdf417CompactionMode["Numeric"] = "Numeric";
1486
2271
  Pdf417CompactionMode["Binary"] = "Binary";
1487
2272
  })(exports.Pdf417CompactionMode || (exports.Pdf417CompactionMode = {}));
2273
+ /**
2274
+ *
2275
+ */
2276
+ exports.Pdf417ErrorLevel = void 0;
1488
2277
  (function (Pdf417ErrorLevel) {
1489
2278
  Pdf417ErrorLevel["Level0"] = "Level0";
1490
2279
  Pdf417ErrorLevel["Level1"] = "Level1";
@@ -1496,19 +2285,124 @@ PatchCodeParams.attributeTypeMap = [{
1496
2285
  Pdf417ErrorLevel["Level7"] = "Level7";
1497
2286
  Pdf417ErrorLevel["Level8"] = "Level8";
1498
2287
  })(exports.Pdf417ErrorLevel || (exports.Pdf417ErrorLevel = {}));
2288
+ /**
2289
+ *
2290
+ */
2291
+ exports.Pdf417MacroTerminator = void 0;
1499
2292
  (function (Pdf417MacroTerminator) {
1500
2293
  Pdf417MacroTerminator["Auto"] = "Auto";
1501
2294
  Pdf417MacroTerminator["None"] = "None";
1502
2295
  Pdf417MacroTerminator["Set"] = "Set";
1503
2296
  })(exports.Pdf417MacroTerminator || (exports.Pdf417MacroTerminator = {}));
1504
- /**
1505
- * PDF417 parameters.
2297
+ /**
2298
+ * PDF417 parameters.
1506
2299
  */
1507
2300
  class Pdf417Params {
2301
+ constructor() {
2302
+ /**
2303
+ * Height/Width ratio of 2D BarCode module.
2304
+ */
2305
+ this['aspectRatio'] = void 0;
2306
+ /**
2307
+ * @deprecated This property is obsolete and will be removed in future releases. Unicode symbols detection and encoding will be processed in Auto mode with Extended Channel Interpretation charset designator. Using of own encodings requires manual CodeText encoding into byte[] array. Sets the encoding of codetext.
2308
+ */
2309
+ this['textEncoding'] = void 0;
2310
+ /**
2311
+ * Columns count.
2312
+ */
2313
+ this['columns'] = void 0;
2314
+ /**
2315
+ * Pdf417 symbology type of BarCode's compaction mode. Default value: Pdf417CompactionMode.Auto.
2316
+ */
2317
+ this['compactionMode'] = void 0;
2318
+ /**
2319
+ * Pdf417 symbology type of BarCode's error correction level ranging from level0 to level8, level0 means no error correction info, level8 means best error correction which means a larger picture.
2320
+ */
2321
+ this['errorLevel'] = void 0;
2322
+ /**
2323
+ * Macro Pdf417 barcode's file ID. Used for MacroPdf417.
2324
+ */
2325
+ this['macroFileID'] = void 0;
2326
+ /**
2327
+ * Macro Pdf417 barcode's segment ID, which starts from 0, to MacroSegmentsCount - 1.
2328
+ */
2329
+ this['macroSegmentID'] = void 0;
2330
+ /**
2331
+ * Macro Pdf417 barcode segments count.
2332
+ */
2333
+ this['macroSegmentsCount'] = void 0;
2334
+ /**
2335
+ * Rows count.
2336
+ */
2337
+ this['rows'] = void 0;
2338
+ /**
2339
+ * Whether Pdf417 symbology type of BarCode is truncated (to reduce space).
2340
+ */
2341
+ this['truncate'] = void 0;
2342
+ /**
2343
+ * Extended Channel Interpretation Identifiers. It is used to tell the barcode reader details about the used references for encoding the data in the symbol. Current implementation consists all well known charset encodings.
2344
+ */
2345
+ this['pdf417ECIEncoding'] = void 0;
2346
+ /**
2347
+ * Used to instruct the reader to interpret the data contained within the symbol as programming for reader initialization
2348
+ */
2349
+ this['isReaderInitialization'] = void 0;
2350
+ /**
2351
+ * Macro Pdf417 barcode time stamp
2352
+ */
2353
+ this['macroTimeStamp'] = void 0;
2354
+ /**
2355
+ * Macro Pdf417 barcode sender name
2356
+ */
2357
+ this['macroSender'] = void 0;
2358
+ /**
2359
+ * Macro Pdf417 file size. The file size field contains the size in bytes of the entire source file
2360
+ */
2361
+ this['macroFileSize'] = void 0;
2362
+ /**
2363
+ * Macro Pdf417 barcode checksum. The checksum field contains the value of the 16-bit (2 bytes) CRC checksum using the CCITT-16 polynomial
2364
+ */
2365
+ this['macroChecksum'] = void 0;
2366
+ /**
2367
+ * Macro Pdf417 barcode file name
2368
+ */
2369
+ this['macroFileName'] = void 0;
2370
+ /**
2371
+ * Macro Pdf417 barcode addressee name
2372
+ */
2373
+ this['macroAddressee'] = void 0;
2374
+ /**
2375
+ * Extended Channel Interpretation Identifiers. Applies for Macro PDF417 text fields.
2376
+ */
2377
+ this['macroECIEncoding'] = void 0;
2378
+ /**
2379
+ * @deprecated This property is obsolete and will be removed in future releases. See samples of using new parameters on https://releases.aspose.com/barcode/net/release-notes/2023/aspose-barcode-for-net-23-10-release-notes/ Function codeword for Code 128 emulation. Applied for MicroPDF417 only. Ignored for PDF417 and MacroPDF417 barcodes.
2380
+ */
2381
+ this['code128Emulation'] = void 0;
2382
+ /**
2383
+ * Can be used only with MicroPdf417 and encodes Code 128 emulation modes. Can encode FNC1 in second position modes 908 and 909, also can encode 910 and 911 which just indicate that recognized MicroPdf417 can be interpret as Code 128.
2384
+ */
2385
+ this['isCode128Emulation'] = void 0;
2386
+ /**
2387
+ * Used to tell the encoder whether to add Macro PDF417 Terminator (codeword 922) to the segment. Applied only for Macro PDF417.
2388
+ */
2389
+ this['pdf417MacroTerminator'] = void 0;
2390
+ /**
2391
+ * Defines linked modes with GS1MicroPdf417, MicroPdf417 and Pdf417 barcodes. With GS1MicroPdf417 symbology encodes 906, 907, 912, 913, 914, 915 “Linked” UCC/EAN-128 modes. With MicroPdf417 and Pdf417 symbologies encodes 918 linkage flag to associated linear component other than an EAN.UCC.
2392
+ */
2393
+ this['isLinked'] = void 0;
2394
+ /**
2395
+ * Macro Characters 05 and 06 values are used to obtain more compact encoding in special modes. Can be used only with MicroPdf417 and encodes 916 and 917 MicroPdf417 modes. Default value: MacroCharacters.None.
2396
+ */
2397
+ this['macroCharacters'] = void 0;
2398
+ }
1508
2399
  static getAttributeTypeMap() {
1509
2400
  return Pdf417Params.attributeTypeMap;
1510
2401
  }
1511
2402
  }
2403
+ /**
2404
+ * Postal parameters. Used for Postnet, Planet.
2405
+ */
1512
2406
  Pdf417Params.attributeTypeMap = [{
1513
2407
  name: 'aspectRatio',
1514
2408
  baseName: 'AspectRatio',
@@ -1606,19 +2500,26 @@ Pdf417Params.attributeTypeMap = [{
1606
2500
  baseName: 'MacroCharacters',
1607
2501
  type: 'MacroCharacter'
1608
2502
  }];
1609
- /**
1610
- * Postal parameters. Used for Postnet, Planet.
1611
- */
1612
2503
  class PostalParams {
2504
+ constructor() {
2505
+ /**
2506
+ * Short bar's height of Postal barcodes.
2507
+ */
2508
+ this['shortBarHeight'] = void 0;
2509
+ }
1613
2510
  static getAttributeTypeMap() {
1614
2511
  return PostalParams.attributeTypeMap;
1615
2512
  }
1616
2513
  }
2514
+ /**
2515
+ * See QualitySettings allows to configure recognition quality and speed manually.
2516
+ */
1617
2517
  PostalParams.attributeTypeMap = [{
1618
2518
  name: 'shortBarHeight',
1619
2519
  baseName: 'ShortBarHeight',
1620
2520
  type: 'number'
1621
2521
  }];
2522
+ exports.PresetType = void 0;
1622
2523
  (function (PresetType) {
1623
2524
  PresetType["HighPerformance"] = "HighPerformance";
1624
2525
  PresetType["NormalQuality"] = "NormalQuality";
@@ -1627,6 +2528,10 @@ PostalParams.attributeTypeMap = [{
1627
2528
  PresetType["HighQuality"] = "HighQuality";
1628
2529
  PresetType["MaxBarCodes"] = "MaxBarCodes";
1629
2530
  })(exports.PresetType || (exports.PresetType = {}));
2531
+ /**
2532
+ *
2533
+ */
2534
+ exports.QREncodeMode = void 0;
1630
2535
  (function (QREncodeMode) {
1631
2536
  QREncodeMode["Auto"] = "Auto";
1632
2537
  QREncodeMode["Bytes"] = "Bytes";
@@ -1635,17 +2540,29 @@ PostalParams.attributeTypeMap = [{
1635
2540
  QREncodeMode["ECIEncoding"] = "ECIEncoding";
1636
2541
  QREncodeMode["ExtendedCodetext"] = "ExtendedCodetext";
1637
2542
  })(exports.QREncodeMode || (exports.QREncodeMode = {}));
2543
+ /**
2544
+ *
2545
+ */
2546
+ exports.QREncodeType = void 0;
1638
2547
  (function (QREncodeType) {
1639
2548
  QREncodeType["Auto"] = "Auto";
1640
2549
  QREncodeType["ForceQR"] = "ForceQR";
1641
2550
  QREncodeType["ForceMicroQR"] = "ForceMicroQR";
1642
2551
  })(exports.QREncodeType || (exports.QREncodeType = {}));
2552
+ /**
2553
+ *
2554
+ */
2555
+ exports.QRErrorLevel = void 0;
1643
2556
  (function (QRErrorLevel) {
1644
2557
  QRErrorLevel["LevelL"] = "LevelL";
1645
2558
  QRErrorLevel["LevelM"] = "LevelM";
1646
2559
  QRErrorLevel["LevelQ"] = "LevelQ";
1647
2560
  QRErrorLevel["LevelH"] = "LevelH";
1648
2561
  })(exports.QRErrorLevel || (exports.QRErrorLevel = {}));
2562
+ /**
2563
+ *
2564
+ */
2565
+ exports.QRVersion = void 0;
1649
2566
  (function (QRVersion) {
1650
2567
  QRVersion["Auto"] = "Auto";
1651
2568
  QRVersion["Version01"] = "Version01";
@@ -1693,14 +2610,51 @@ PostalParams.attributeTypeMap = [{
1693
2610
  QRVersion["VersionM3"] = "VersionM3";
1694
2611
  QRVersion["VersionM4"] = "VersionM4";
1695
2612
  })(exports.QRVersion || (exports.QRVersion = {}));
1696
- /**
1697
- * QR parameters.
2613
+ /**
2614
+ * QR parameters.
1698
2615
  */
1699
2616
  class QrParams {
2617
+ constructor() {
2618
+ /**
2619
+ * Height/Width ratio of 2D BarCode module.
2620
+ */
2621
+ this['aspectRatio'] = void 0;
2622
+ /**
2623
+ * @deprecated This property is obsolete and will be removed in future releases. Unicode symbols detection and encoding will be processed in Auto mode with Extended Channel Interpretation charset designator. Using of own encodings requires manual CodeText encoding into byte[] array. Sets the encoding of codetext.
2624
+ */
2625
+ this['textEncoding'] = void 0;
2626
+ /**
2627
+ * QR / MicroQR selector mode. Select ForceQR for standard QR symbols, Auto for MicroQR.
2628
+ */
2629
+ this['encodeType'] = void 0;
2630
+ /**
2631
+ * Extended Channel Interpretation Identifiers. It is used to tell the barcode reader details about the used references for encoding the data in the symbol. Current implementation consists all well known charset encodings.
2632
+ */
2633
+ this['eCIEncoding'] = void 0;
2634
+ /**
2635
+ * QR symbology type of BarCode's encoding mode. Default value: QREncodeMode.Auto.
2636
+ */
2637
+ this['encodeMode'] = void 0;
2638
+ /**
2639
+ * Level of Reed-Solomon error correction for QR barcode. From low to high: LevelL, LevelM, LevelQ, LevelH. see QRErrorLevel.
2640
+ */
2641
+ this['errorLevel'] = void 0;
2642
+ /**
2643
+ * Version of QR Code. From Version1 to Version40 for QR code and from M1 to M4 for MicroQr. Default value is QRVersion.Auto.
2644
+ */
2645
+ this['version'] = void 0;
2646
+ /**
2647
+ * QR structured append parameters.
2648
+ */
2649
+ this['structuredAppend'] = void 0;
2650
+ }
1700
2651
  static getAttributeTypeMap() {
1701
2652
  return QrParams.attributeTypeMap;
1702
2653
  }
1703
2654
  }
2655
+ /**
2656
+ * Represents BarcodeReader object.
2657
+ */
1704
2658
  QrParams.attributeTypeMap = [{
1705
2659
  name: 'aspectRatio',
1706
2660
  baseName: 'AspectRatio',
@@ -1734,14 +2688,160 @@ QrParams.attributeTypeMap = [{
1734
2688
  baseName: 'StructuredAppend',
1735
2689
  type: 'StructuredAppend'
1736
2690
  }];
1737
- /**
1738
- * Represents BarcodeReader object.
1739
- */
1740
2691
  class ReaderParams {
2692
+ constructor() {
2693
+ /**
2694
+ * The type of barcode to read.
2695
+ */
2696
+ this['type'] = void 0;
2697
+ /**
2698
+ * Multiple barcode types to read.
2699
+ */
2700
+ this['types'] = void 0;
2701
+ /**
2702
+ * Enable checksum validation during recognition for 1D barcodes. Default is treated as Yes for symbologies which must contain checksum, as No where checksum only possible. Checksum never used: Codabar Checksum is possible: Code39 Standard/Extended, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN Checksum always used: Rest symbologies
2703
+ */
2704
+ this['checksumValidation'] = void 0;
2705
+ /**
2706
+ * A flag which force engine to detect codetext encoding for Unicode.
2707
+ */
2708
+ this['detectEncoding'] = void 0;
2709
+ /**
2710
+ * Preset allows to configure recognition quality and speed manually. You can quickly set up Preset by embedded presets: HighPerformance, NormalQuality, HighQuality, MaxBarCodes or you can manually configure separate options. Default value of Preset is NormalQuality.
2711
+ */
2712
+ this['preset'] = void 0;
2713
+ /**
2714
+ * Set X of top left corner of area for recognition.
2715
+ */
2716
+ this['rectX'] = void 0;
2717
+ /**
2718
+ * Set Y of top left corner of area for recognition.
2719
+ */
2720
+ this['rectY'] = void 0;
2721
+ /**
2722
+ * Set Width of area for recognition.
2723
+ */
2724
+ this['rectWidth'] = void 0;
2725
+ /**
2726
+ * Set Height of area for recognition.
2727
+ */
2728
+ this['rectHeight'] = void 0;
2729
+ /**
2730
+ * Value indicating whether FNC symbol strip must be done.
2731
+ */
2732
+ this['stripFNC'] = void 0;
2733
+ /**
2734
+ * Timeout of recognition process in milliseconds. Default value is 15_000 (15 seconds). Maximum value is 30_000 (1/2 minute). In case of a timeout RequestTimeout (408) status will be returned. Try reducing the image size to avoid timeout.
2735
+ */
2736
+ this['timeout'] = void 0;
2737
+ /**
2738
+ * Window size for median smoothing. Typical values are 3 or 4. Default value is 3. AllowMedianSmoothing must be set.
2739
+ */
2740
+ this['medianSmoothingWindowSize'] = void 0;
2741
+ /**
2742
+ * Allows engine to enable median smoothing as additional scan. Mode helps to recognize noised barcodes.
2743
+ */
2744
+ this['allowMedianSmoothing'] = void 0;
2745
+ /**
2746
+ * Allows engine to recognize color barcodes on color background as additional scan. Extremely slow mode.
2747
+ */
2748
+ this['allowComplexBackground'] = void 0;
2749
+ /**
2750
+ * Allows engine for Datamatrix to recognize dashed industrial Datamatrix barcodes. Slow mode which helps only for dashed barcodes which consist from spots.
2751
+ */
2752
+ this['allowDatamatrixIndustrialBarcodes'] = void 0;
2753
+ /**
2754
+ * Allows engine to recognize decreased image as additional scan. Size for decreasing is selected by internal engine algorithms. Mode helps to recognize barcodes which are noised and blurred but captured with high resolution.
2755
+ */
2756
+ this['allowDecreasedImage'] = void 0;
2757
+ /**
2758
+ * Allows engine to use gap between scans to increase recognition speed. Mode can make recognition problems with low height barcodes.
2759
+ */
2760
+ this['allowDetectScanGap'] = void 0;
2761
+ /**
2762
+ * Allows engine to recognize barcodes which has incorrect checksum or incorrect values. Mode can be used to recognize damaged barcodes with incorrect text.
2763
+ */
2764
+ this['allowIncorrectBarcodes'] = void 0;
2765
+ /**
2766
+ * Allows engine to recognize inverse color image as additional scan. Mode can be used when barcode is white on black background.
2767
+ */
2768
+ this['allowInvertImage'] = void 0;
2769
+ /**
2770
+ * Allows engine for Postal barcodes to recognize slightly noised images. Mode helps to recognize slightly damaged Postal barcodes.
2771
+ */
2772
+ this['allowMicroWhiteSpotsRemoving'] = void 0;
2773
+ /**
2774
+ * Allows engine for 1D barcodes to quickly recognize high quality barcodes which fill almost whole image. Mode helps to quickly recognize generated barcodes from Internet.
2775
+ */
2776
+ this['allowOneDFastBarcodesDetector'] = void 0;
2777
+ /**
2778
+ * Allows engine for 1D barcodes to recognize barcodes with single wiped/glued bars in pattern.
2779
+ */
2780
+ this['allowOneDWipedBarsRestoration'] = void 0;
2781
+ /**
2782
+ * Allows engine for QR/MicroQR to recognize damaged MicroQR barcodes.
2783
+ */
2784
+ this['allowQRMicroQrRestoration'] = void 0;
2785
+ /**
2786
+ * Allows engine to recognize regular image without any restorations as main scan. Mode to recognize image as is.
2787
+ */
2788
+ this['allowRegularImage'] = void 0;
2789
+ /**
2790
+ * Allows engine to recognize barcodes with salt and pepper noise type. Mode can remove small noise with white and black dots.
2791
+ */
2792
+ this['allowSaltAndPepperFiltering'] = void 0;
2793
+ /**
2794
+ * Allows engine to recognize image without small white spots as additional scan. Mode helps to recognize noised image as well as median smoothing filtering.
2795
+ */
2796
+ this['allowWhiteSpotsRemoving'] = void 0;
2797
+ /**
2798
+ * Allows engine to recognize 1D barcodes with checksum by checking more recognition variants. Default value: False.
2799
+ */
2800
+ this['checkMore1DVariants'] = void 0;
2801
+ /**
2802
+ * Allows engine for 1D barcodes to quickly recognize middle slice of an image and return result without using any time-consuming algorithms. Default value: False.
2803
+ */
2804
+ this['fastScanOnly'] = void 0;
2805
+ /**
2806
+ * Allows engine using additional image restorations to recognize corrupted barcodes. At this time, it is used only in MicroPdf417 barcode type. Default value: False.
2807
+ */
2808
+ this['allowAdditionalRestorations'] = void 0;
2809
+ /**
2810
+ * Sets threshold for detected regions that may contain barcodes. Value 0.7 means that bottom 70% of possible regions are filtered out and not processed further. Region likelihood threshold must be between [0.05, 0.9] Use high values for clear images with few barcodes. Use low values for images with many barcodes or for noisy images. Low value may lead to a bigger recognition time.
2811
+ */
2812
+ this['regionLikelihoodThresholdPercent'] = void 0;
2813
+ /**
2814
+ * Scan window sizes in pixels. Allowed sizes are 10, 15, 20, 25, 30. Scanning with small window size takes more time and provides more accuracy but may fail in detecting very big barcodes. Combining of several window sizes can improve detection quality.
2815
+ */
2816
+ this['scanWindowSizes'] = void 0;
2817
+ /**
2818
+ * Similarity coefficient depends on how homogeneous barcodes are. Use high value for clear barcodes. Use low values to detect barcodes that ara partly damaged or not lighten evenly. Similarity coefficient must be between [0.5, 0.9]
2819
+ */
2820
+ this['similarity'] = void 0;
2821
+ /**
2822
+ * Allows detector to skip search for diagonal barcodes. Setting it to false will increase detection time but allow to find diagonal barcodes that can be missed otherwise. Enabling of diagonal search leads to a bigger detection time.
2823
+ */
2824
+ this['skipDiagonalSearch'] = void 0;
2825
+ /**
2826
+ * Allows engine to recognize tiny barcodes on large images. Ignored if AllowIncorrectBarcodes is set to True. Default value: False.
2827
+ */
2828
+ this['readTinyBarcodes'] = void 0;
2829
+ /**
2830
+ * Interpreting Type for the Customer Information of AustralianPost BarCode.Default is CustomerInformationInterpretingType.Other.
2831
+ */
2832
+ this['australianPostEncodingTable'] = void 0;
2833
+ /**
2834
+ * The flag which force AustraliaPost decoder to ignore last filling patterns in Customer Information Field during decoding as CTable method. CTable encoding method does not have any gaps in encoding table and sequence \"333\" of filling patterns is decoded as letter \"z\".
2835
+ */
2836
+ this['ignoreEndingFillingPatternsForCTable'] = void 0;
2837
+ }
1741
2838
  static getAttributeTypeMap() {
1742
2839
  return ReaderParams.attributeTypeMap;
1743
2840
  }
1744
2841
  }
2842
+ /**
2843
+ * Wrapper around Drawing.Point for proper specification.
2844
+ */
1745
2845
  ReaderParams.attributeTypeMap = [{
1746
2846
  name: 'type',
1747
2847
  baseName: 'Type',
@@ -1887,14 +2987,24 @@ ReaderParams.attributeTypeMap = [{
1887
2987
  baseName: 'IgnoreEndingFillingPatternsForCTable',
1888
2988
  type: 'boolean'
1889
2989
  }];
1890
- /**
1891
- * Wrapper around Drawing.Point for proper specification.
1892
- */
1893
2990
  class RegionPoint {
2991
+ constructor() {
2992
+ /**
2993
+ * X-coordinate
2994
+ */
2995
+ this['X'] = void 0;
2996
+ /**
2997
+ * Y-coordinate
2998
+ */
2999
+ this['Y'] = void 0;
3000
+ }
1894
3001
  static getAttributeTypeMap() {
1895
3002
  return RegionPoint.attributeTypeMap;
1896
3003
  }
1897
3004
  }
3005
+ /**
3006
+ * Created image info.
3007
+ */
1898
3008
  RegionPoint.attributeTypeMap = [{
1899
3009
  name: 'X',
1900
3010
  baseName: 'X',
@@ -1904,14 +3014,28 @@ RegionPoint.attributeTypeMap = [{
1904
3014
  baseName: 'Y',
1905
3015
  type: 'number'
1906
3016
  }];
1907
- /**
1908
- * Created image info.
1909
- */
1910
3017
  class ResultImageInfo {
3018
+ constructor() {
3019
+ /**
3020
+ * Result file size.
3021
+ */
3022
+ this['fileSize'] = void 0;
3023
+ /**
3024
+ * Result image width.
3025
+ */
3026
+ this['imageWidth'] = void 0;
3027
+ /**
3028
+ * Result image height.
3029
+ */
3030
+ this['imageHeight'] = void 0;
3031
+ }
1911
3032
  static getAttributeTypeMap() {
1912
3033
  return ResultImageInfo.attributeTypeMap;
1913
3034
  }
1914
3035
  }
3036
+ /**
3037
+ * Storage exists
3038
+ */
1915
3039
  ResultImageInfo.attributeTypeMap = [{
1916
3040
  name: 'fileSize',
1917
3041
  baseName: 'FileSize',
@@ -1925,27 +3049,55 @@ ResultImageInfo.attributeTypeMap = [{
1925
3049
  baseName: 'ImageHeight',
1926
3050
  type: 'number'
1927
3051
  }];
1928
- /**
1929
- * Storage exists
1930
- */
1931
3052
  class StorageExist {
3053
+ constructor() {
3054
+ /**
3055
+ * Shows that the storage exists.
3056
+ */
3057
+ this['exists'] = void 0;
3058
+ }
1932
3059
  static getAttributeTypeMap() {
1933
3060
  return StorageExist.attributeTypeMap;
1934
3061
  }
1935
3062
  }
3063
+ /**
3064
+ * File or folder information
3065
+ */
1936
3066
  StorageExist.attributeTypeMap = [{
1937
3067
  name: 'exists',
1938
3068
  baseName: 'Exists',
1939
3069
  type: 'boolean'
1940
3070
  }];
1941
- /**
1942
- * File or folder information
1943
- */
1944
3071
  class StorageFile {
3072
+ constructor() {
3073
+ /**
3074
+ * File or folder name.
3075
+ */
3076
+ this['name'] = void 0;
3077
+ /**
3078
+ * True if it is a folder.
3079
+ */
3080
+ this['isFolder'] = void 0;
3081
+ /**
3082
+ * File or folder last modified DateTime.
3083
+ */
3084
+ this['modifiedDate'] = void 0;
3085
+ /**
3086
+ * File or folder size.
3087
+ */
3088
+ this['size'] = void 0;
3089
+ /**
3090
+ * File or folder path.
3091
+ */
3092
+ this['path'] = void 0;
3093
+ }
1945
3094
  static getAttributeTypeMap() {
1946
3095
  return StorageFile.attributeTypeMap;
1947
3096
  }
1948
3097
  }
3098
+ /**
3099
+ * QR structured append parameters.
3100
+ */
1949
3101
  StorageFile.attributeTypeMap = [{
1950
3102
  name: 'name',
1951
3103
  baseName: 'Name',
@@ -1967,14 +3119,28 @@ StorageFile.attributeTypeMap = [{
1967
3119
  baseName: 'Path',
1968
3120
  type: 'string'
1969
3121
  }];
1970
- /**
1971
- * QR structured append parameters.
1972
- */
1973
3122
  class StructuredAppend {
3123
+ constructor() {
3124
+ /**
3125
+ * The index of the QR structured append mode barcode. Index starts from 0.
3126
+ */
3127
+ this['sequenceIndicator'] = void 0;
3128
+ /**
3129
+ * QR structured append mode barcodes quantity. Max value is 16.
3130
+ */
3131
+ this['totalCount'] = void 0;
3132
+ /**
3133
+ * QR structured append mode parity data.
3134
+ */
3135
+ this['parityByte'] = void 0;
3136
+ }
1974
3137
  static getAttributeTypeMap() {
1975
3138
  return StructuredAppend.attributeTypeMap;
1976
3139
  }
1977
3140
  }
3141
+ /**
3142
+ *
3143
+ */
1978
3144
  StructuredAppend.attributeTypeMap = [{
1979
3145
  name: 'sequenceIndicator',
1980
3146
  baseName: 'SequenceIndicator',
@@ -1988,16 +3154,51 @@ StructuredAppend.attributeTypeMap = [{
1988
3154
  baseName: 'ParityByte',
1989
3155
  type: 'number'
1990
3156
  }];
3157
+ exports.TextAlignment = void 0;
1991
3158
  (function (TextAlignment) {
1992
3159
  TextAlignment["Left"] = "Left";
1993
3160
  TextAlignment["Center"] = "Center";
1994
3161
  TextAlignment["Right"] = "Right";
1995
3162
  })(exports.TextAlignment || (exports.TextAlignment = {}));
1996
3163
  class FileVersion {
3164
+ constructor() {
3165
+ /**
3166
+ * File or folder name.
3167
+ */
3168
+ this['name'] = void 0;
3169
+ /**
3170
+ * True if it is a folder.
3171
+ */
3172
+ this['isFolder'] = void 0;
3173
+ /**
3174
+ * File or folder last modified DateTime.
3175
+ */
3176
+ this['modifiedDate'] = void 0;
3177
+ /**
3178
+ * File or folder size.
3179
+ */
3180
+ this['size'] = void 0;
3181
+ /**
3182
+ * File or folder path.
3183
+ */
3184
+ this['path'] = void 0;
3185
+ /**
3186
+ * File Version ID.
3187
+ */
3188
+ this['versionId'] = void 0;
3189
+ /**
3190
+ * Specifies whether the file is (true) or is not (false) the latest version of an file.
3191
+ */
3192
+ this['isLatest'] = void 0;
3193
+ }
1997
3194
  static getAttributeTypeMap() {
1998
3195
  return FileVersion.attributeTypeMap;
1999
3196
  }
2000
3197
  }
3198
+ // BarcodeApi
3199
+ /**
3200
+ * Generate barcode.
3201
+ */
2001
3202
  FileVersion.attributeTypeMap = [{
2002
3203
  name: 'name',
2003
3204
  baseName: 'Name',
@@ -2027,295 +3228,1243 @@ FileVersion.attributeTypeMap = [{
2027
3228
  baseName: 'IsLatest',
2028
3229
  type: 'boolean'
2029
3230
  }];
2030
- // BarcodeApi
2031
- /**
2032
- * Generate barcode.
2033
- */
2034
3231
  class GetBarcodeGenerateRequest {
2035
- /**
2036
- * @param type Type of barcode to generate.
3232
+ /**
3233
+ * @param type Type of barcode to generate.
2037
3234
 
2038
- * @param text Text to encode.
3235
+ * @param text Text to encode.
2039
3236
  */
2040
3237
  constructor(type, text) {
3238
+ /**
3239
+ * Type of barcode to generate.
3240
+ */
3241
+ this['type'] = void 0;
3242
+ /**
3243
+ * Text to encode.
3244
+ */
3245
+ this['text'] = void 0;
3246
+ /**
3247
+ * Text that will be displayed instead of codetext in 2D barcodes.
3248
+ Used for: Aztec, Pdf417, DataMatrix, QR, MaxiCode, DotCode
3249
+ */
3250
+ this['twoDDisplayText'] = void 0;
3251
+ /**
3252
+ * Specify the displaying Text Location, set to CodeLocation.None to hide CodeText.
3253
+ Default value: CodeLocation.Below.
3254
+ */
3255
+ this['textLocation'] = void 0;
3256
+ /**
3257
+ * Text alignment.
3258
+ */
3259
+ this['textAlignment'] = void 0;
3260
+ /**
3261
+ * Specify the displaying CodeText's Color.
3262
+ Default value: Color.Black.
3263
+ */
3264
+ this['textColor'] = void 0;
3265
+ /**
3266
+ * Specify FontSizeMode. If FontSizeMode is set to Auto, font size will be calculated automatically based on xDimension value.
3267
+ It is recommended to use FontSizeMode.Auto especially in AutoSizeMode.Nearest or AutoSizeMode.Interpolation.
3268
+ Default value: FontSizeMode.Auto.
3269
+ */
3270
+ this['fontSizeMode'] = void 0;
3271
+ /**
3272
+ * Specify word wraps (line breaks) within text.
3273
+ Default value: false.
3274
+ */
3275
+ this['noWrap'] = void 0;
3276
+ /**
3277
+ * Resolution of the BarCode image.
3278
+ One value for both dimensions.
3279
+ Default value: 96 dpi.
3280
+ */
3281
+ this['resolution'] = void 0;
3282
+ /**
3283
+ * @deprecated Use 'Resolution' instead.
3284
+ */
3285
+ this['resolutionX'] = void 0;
3286
+ /**
3287
+ * @deprecated Use 'Resolution' instead.
3288
+ */
3289
+ this['resolutionY'] = void 0;
3290
+ /**
3291
+ * The smallest width of the unit of BarCode bars or spaces.
3292
+ Increase this will increase the whole barcode image width.
3293
+ Ignored if AutoSizeMode property is set to AutoSizeMode.Nearest or AutoSizeMode.Interpolation.
3294
+ */
3295
+ this['dimensionX'] = void 0;
3296
+ /**
3297
+ * Space between the CodeText and the BarCode in Unit value.
3298
+ Default value: 2pt.
3299
+ Ignored for EAN8, EAN13, UPCE, UPCA, ISBN, ISMN, ISSN, UpcaGs1DatabarCoupon.
3300
+ */
3301
+ this['textSpace'] = void 0;
3302
+ /**
3303
+ * Common Units for all measuring in query. Default units: pixel.
3304
+ */
3305
+ this['units'] = void 0;
3306
+ /**
3307
+ * Specifies the different types of automatic sizing modes.
3308
+ Default value: AutoSizeMode.None.
3309
+ */
3310
+ this['sizeMode'] = void 0;
3311
+ /**
3312
+ * Height of the barcode in given units. Default units: pixel.
3313
+ */
3314
+ this['barHeight'] = void 0;
3315
+ /**
3316
+ * Height of the barcode image in given units. Default units: pixel.
3317
+ */
3318
+ this['imageHeight'] = void 0;
3319
+ /**
3320
+ * Width of the barcode image in given units. Default units: pixel.
3321
+ */
3322
+ this['imageWidth'] = void 0;
3323
+ /**
3324
+ * BarCode image rotation angle, measured in degree, e.g. RotationAngle = 0 or RotationAngle = 360 means no rotation.
3325
+ If RotationAngle NOT equal to 90, 180, 270 or 0, it may increase the difficulty for the scanner to read the image.
3326
+ Default value: 0.
3327
+ */
3328
+ this['rotationAngle'] = void 0;
3329
+ /**
3330
+ * Background color of the barcode image.
3331
+ Default value: Color.White.
3332
+ */
3333
+ this['backColor'] = void 0;
3334
+ /**
3335
+ * Bars color.
3336
+ Default value: Color.Black.
3337
+ */
3338
+ this['barColor'] = void 0;
3339
+ /**
3340
+ * Border color.
3341
+ Default value: Color.Black.
3342
+ */
3343
+ this['borderColor'] = void 0;
3344
+ /**
3345
+ * Border width.
3346
+ Default value: 0.
3347
+ Ignored if Visible is set to false.
3348
+ */
3349
+ this['borderWidth'] = void 0;
3350
+ /**
3351
+ * Border dash style.
3352
+ Default value: BorderDashStyle.Solid.
3353
+ */
3354
+ this['borderDashStyle'] = void 0;
3355
+ /**
3356
+ * Border visibility. If false than parameter Width is always ignored (0).
3357
+ Default value: false.
3358
+ */
3359
+ this['borderVisible'] = void 0;
3360
+ /**
3361
+ * Enable checksum during generation 1D barcodes.
3362
+ Default is treated as Yes for symbology which must contain checksum, as No where checksum only possible.
3363
+ Checksum is possible: Code39 Standard/Extended, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN, Codabar
3364
+ Checksum always used: Rest symbology
3365
+ */
3366
+ this['enableChecksum'] = void 0;
3367
+ /**
3368
+ * Indicates whether explains the character "\" as an escape character in CodeText property. Used for Pdf417, DataMatrix, Code128 only
3369
+ If the EnableEscape is true, "\" will be explained as a special escape character. Otherwise, "\" acts as normal characters.
3370
+ Aspose.BarCode supports input decimal ascii code and mnemonic for ASCII control-code characters. For example, \013 and \\CR stands for CR.
3371
+ */
3372
+ this['enableEscape'] = void 0;
3373
+ /**
3374
+ * Value indicating whether bars are filled.
3375
+ Only for 1D barcodes.
3376
+ Default value: true.
3377
+ */
3378
+ this['filledBars'] = void 0;
3379
+ /**
3380
+ * Always display checksum digit in the human readable text for Code128 and GS1Code128 barcodes.
3381
+ */
3382
+ this['alwaysShowChecksum'] = void 0;
3383
+ /**
3384
+ * Wide bars to Narrow bars ratio.
3385
+ Default value: 3, that is, wide bars are 3 times as wide as narrow bars.
3386
+ Used for ITF, PZN, PharmaCode, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, IATA2of5, VIN, DeutschePost, OPC, Code32, DataLogic2of5, PatchCode, Code39Extended, Code39Standard
3387
+ */
3388
+ this['wideNarrowRatio'] = void 0;
3389
+ /**
3390
+ * Only for 1D barcodes.
3391
+ If codetext is incorrect and value set to true - exception will be thrown. Otherwise codetext will be corrected to match barcode's specification.
3392
+ Exception always will be thrown for: Databar symbology if codetext is incorrect.
3393
+ Exception always will not be thrown for: AustraliaPost, SingaporePost, Code39Extended, Code93Extended, Code16K, Code128 symbology if codetext is incorrect.
3394
+ */
3395
+ this['validateText'] = void 0;
3396
+ /**
3397
+ * Supplement parameters.
3398
+ Used for Interleaved2of5, Standard2of5, EAN13, EAN8, UPCA, UPCE, ISBN, ISSN, ISMN.
3399
+ */
3400
+ this['supplementData'] = void 0;
3401
+ /**
3402
+ * Space between main the BarCode and supplement BarCode.
3403
+ */
3404
+ this['supplementSpace'] = void 0;
3405
+ /**
3406
+ * Bars reduction value that is used to compensate ink spread while printing.
3407
+ */
3408
+ this['barWidthReduction'] = void 0;
3409
+ /**
3410
+ * Indicates whether is used anti-aliasing mode to render image. Anti-aliasing mode is applied to barcode and text drawing.
3411
+ */
3412
+ this['useAntiAlias'] = void 0;
3413
+ /**
3414
+ * Result image format.
3415
+ */
3416
+ this['format'] = void 0;
2041
3417
  this.type = type;
2042
3418
  this.text = text;
2043
3419
  }
2044
3420
  }
2045
- /**
2046
- * Recognize barcode from a file on server.
3421
+ /**
3422
+ * Recognize barcode from a file on server.
2047
3423
  */
2048
3424
  class GetBarcodeRecognizeRequest {
2049
- /**
2050
- * @param name The image file name.
3425
+ /**
3426
+ * @param name The image file name.
2051
3427
  */
2052
3428
  constructor(name) {
3429
+ /**
3430
+ * The image file name.
3431
+ */
3432
+ this['name'] = void 0;
3433
+ /**
3434
+ * The type of barcode to read.
3435
+ */
3436
+ this['type'] = void 0;
3437
+ /**
3438
+ * Multiple barcode types to read.
3439
+ */
3440
+ this['types'] = void 0;
3441
+ /**
3442
+ * Enable checksum validation during recognition for 1D barcodes.
3443
+ Default is treated as Yes for symbologies which must contain checksum, as No where checksum only possible.
3444
+ Checksum never used: Codabar
3445
+ Checksum is possible: Code39 Standard/Extended, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN
3446
+ Checksum always used: Rest symbologies
3447
+ */
3448
+ this['checksumValidation'] = void 0;
3449
+ /**
3450
+ * A flag which force engine to detect codetext encoding for Unicode.
3451
+ */
3452
+ this['detectEncoding'] = void 0;
3453
+ /**
3454
+ * Preset allows to configure recognition quality and speed manually.
3455
+ You can quickly set up Preset by embedded presets: HighPerformance, NormalQuality,
3456
+ HighQuality, MaxBarCodes or you can manually configure separate options.
3457
+ Default value of Preset is NormalQuality.
3458
+ */
3459
+ this['preset'] = void 0;
3460
+ /**
3461
+ * Set X of top left corner of area for recognition.
3462
+ */
3463
+ this['rectX'] = void 0;
3464
+ /**
3465
+ * Set Y of top left corner of area for recognition.
3466
+ */
3467
+ this['rectY'] = void 0;
3468
+ /**
3469
+ * Set Width of area for recognition.
3470
+ */
3471
+ this['rectWidth'] = void 0;
3472
+ /**
3473
+ * Set Height of area for recognition.
3474
+ */
3475
+ this['rectHeight'] = void 0;
3476
+ /**
3477
+ * Value indicating whether FNC symbol strip must be done.
3478
+ */
3479
+ this['stripFNC'] = void 0;
3480
+ /**
3481
+ * Timeout of recognition process in milliseconds.
3482
+ Default value is 15_000 (15 seconds).
3483
+ Maximum value is 30_000 (1/2 minute).
3484
+ In case of a timeout RequestTimeout (408) status will be returned.
3485
+ Try reducing the image size to avoid timeout.
3486
+ */
3487
+ this['timeout'] = void 0;
3488
+ /**
3489
+ * Window size for median smoothing. Typical values are 3 or 4. Default value is 3. AllowMedianSmoothing must be set.
3490
+ */
3491
+ this['medianSmoothingWindowSize'] = void 0;
3492
+ /**
3493
+ * Allows engine to enable median smoothing as additional scan. Mode helps to recognize noised barcodes.
3494
+ */
3495
+ this['allowMedianSmoothing'] = void 0;
3496
+ /**
3497
+ * Allows engine to recognize color barcodes on color background as additional scan. Extremely slow mode.
3498
+ */
3499
+ this['allowComplexBackground'] = void 0;
3500
+ /**
3501
+ * Allows engine for Datamatrix to recognize dashed industrial Datamatrix barcodes.
3502
+ Slow mode which helps only for dashed barcodes which consist from spots.
3503
+ */
3504
+ this['allowDatamatrixIndustrialBarcodes'] = void 0;
3505
+ /**
3506
+ * Allows engine to recognize decreased image as additional scan. Size for decreasing is selected by internal engine algorithms.
3507
+ Mode helps to recognize barcodes which are noised and blurred but captured with high resolution.
3508
+ */
3509
+ this['allowDecreasedImage'] = void 0;
3510
+ /**
3511
+ * Allows engine to use gap between scans to increase recognition speed. Mode can make recognition problems with low height barcodes.
3512
+ */
3513
+ this['allowDetectScanGap'] = void 0;
3514
+ /**
3515
+ * Allows engine to recognize barcodes which has incorrect checksum or incorrect values.
3516
+ Mode can be used to recognize damaged barcodes with incorrect text.
3517
+ */
3518
+ this['allowIncorrectBarcodes'] = void 0;
3519
+ /**
3520
+ * Allows engine to recognize inverse color image as additional scan. Mode can be used when barcode is white on black background.
3521
+ */
3522
+ this['allowInvertImage'] = void 0;
3523
+ /**
3524
+ * Allows engine for Postal barcodes to recognize slightly noised images. Mode helps to recognize slightly damaged Postal barcodes.
3525
+ */
3526
+ this['allowMicroWhiteSpotsRemoving'] = void 0;
3527
+ /**
3528
+ * Allows engine for 1D barcodes to quickly recognize high quality barcodes which fill almost whole image.
3529
+ Mode helps to quickly recognize generated barcodes from Internet.
3530
+ */
3531
+ this['allowOneDFastBarcodesDetector'] = void 0;
3532
+ /**
3533
+ * Allows engine for 1D barcodes to recognize barcodes with single wiped/glued bars in pattern.
3534
+ */
3535
+ this['allowOneDWipedBarsRestoration'] = void 0;
3536
+ /**
3537
+ * Allows engine for QR/MicroQR to recognize damaged MicroQR barcodes.
3538
+ */
3539
+ this['allowQRMicroQrRestoration'] = void 0;
3540
+ /**
3541
+ * Allows engine to recognize regular image without any restorations as main scan. Mode to recognize image as is.
3542
+ */
3543
+ this['allowRegularImage'] = void 0;
3544
+ /**
3545
+ * Allows engine to recognize barcodes with salt and pepper noise type. Mode can remove small noise with white and black dots.
3546
+ */
3547
+ this['allowSaltAndPepperFiltering'] = void 0;
3548
+ /**
3549
+ * Allows engine to recognize image without small white spots as additional scan. Mode helps to recognize noised image as well as median smoothing filtering.
3550
+ */
3551
+ this['allowWhiteSpotsRemoving'] = void 0;
3552
+ /**
3553
+ * Allows engine to recognize 1D barcodes with checksum by checking more recognition variants. Default value: False.
3554
+ */
3555
+ this['checkMore1DVariants'] = void 0;
3556
+ /**
3557
+ * Allows engine for 1D barcodes to quickly recognize middle slice of an image and return result without using any time-consuming algorithms.
3558
+ Default value: False.
3559
+ */
3560
+ this['fastScanOnly'] = void 0;
3561
+ /**
3562
+ * Allows engine using additional image restorations to recognize corrupted barcodes. At this time, it is used only in MicroPdf417 barcode type.
3563
+ Default value: False.
3564
+ */
3565
+ this['allowAdditionalRestorations'] = void 0;
3566
+ /**
3567
+ * Sets threshold for detected regions that may contain barcodes.
3568
+ Value 0.7 means that bottom 70% of possible regions are filtered out and not processed further.
3569
+ Region likelihood threshold must be between [0.05, 0.9]
3570
+ Use high values for clear images with few barcodes.
3571
+ Use low values for images with many barcodes or for noisy images.
3572
+ Low value may lead to a bigger recognition time.
3573
+ */
3574
+ this['regionLikelihoodThresholdPercent'] = void 0;
3575
+ /**
3576
+ * Scan window sizes in pixels.
3577
+ Allowed sizes are 10, 15, 20, 25, 30.
3578
+ Scanning with small window size takes more time and provides more accuracy but may fail in detecting very big barcodes.
3579
+ Combining of several window sizes can improve detection quality.
3580
+ */
3581
+ this['scanWindowSizes'] = void 0;
3582
+ /**
3583
+ * Similarity coefficient depends on how homogeneous barcodes are.
3584
+ Use high value for clear barcodes.
3585
+ Use low values to detect barcodes that ara partly damaged or not lighten evenly.
3586
+ Similarity coefficient must be between [0.5, 0.9]
3587
+ */
3588
+ this['similarity'] = void 0;
3589
+ /**
3590
+ * Allows detector to skip search for diagonal barcodes.
3591
+ Setting it to false will increase detection time but allow to find diagonal barcodes that can be missed otherwise.
3592
+ Enabling of diagonal search leads to a bigger detection time.
3593
+ */
3594
+ this['skipDiagonalSearch'] = void 0;
3595
+ /**
3596
+ * Allows engine to recognize tiny barcodes on large images. Ignored if AllowIncorrectBarcodes is set to True. Default value: False.
3597
+ */
3598
+ this['readTinyBarcodes'] = void 0;
3599
+ /**
3600
+ * Interpreting Type for the Customer Information of AustralianPost BarCode.Default is CustomerInformationInterpretingType.Other.
3601
+ */
3602
+ this['australianPostEncodingTable'] = void 0;
3603
+ /**
3604
+ * The flag which force AustraliaPost decoder to ignore last filling patterns in Customer Information Field during decoding as CTable method.
3605
+ CTable encoding method does not have any gaps in encoding table and sequence "333" of filling patterns is decoded as letter "z".
3606
+ */
3607
+ this['ignoreEndingFillingPatternsForCTable'] = void 0;
3608
+ /**
3609
+ * The image storage.
3610
+ */
3611
+ this['storage'] = void 0;
3612
+ /**
3613
+ * The image folder.
3614
+ */
3615
+ this['folder'] = void 0;
2053
3616
  this.name = name;
2054
3617
  }
2055
3618
  }
2056
- /**
2057
- * Recognize barcode from an url or from request body. Request body can contain raw data bytes of the image with content-type \"application/octet-stream\". An image can also be passed as a form field.
3619
+ /**
3620
+ * Recognize barcode from an url or from request body. Request body can contain raw data bytes of the image with content-type \"application/octet-stream\". An image can also be passed as a form field.
2058
3621
  */
2059
- class PostBarcodeRecognizeFromUrlOrContentRequest {}
2060
- /**
2061
- * Generate multiple barcodes and return in response stream
3622
+ class PostBarcodeRecognizeFromUrlOrContentRequest {
3623
+ constructor() {
3624
+ /**
3625
+ * The type of barcode to read.
3626
+ */
3627
+ this['type'] = void 0;
3628
+ /**
3629
+ * Multiple barcode types to read.
3630
+ */
3631
+ this['types'] = void 0;
3632
+ /**
3633
+ * Enable checksum validation during recognition for 1D barcodes.
3634
+ Default is treated as Yes for symbologies which must contain checksum, as No where checksum only possible.
3635
+ Checksum never used: Codabar
3636
+ Checksum is possible: Code39 Standard/Extended, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN
3637
+ Checksum always used: Rest symbologies
3638
+ */
3639
+ this['checksumValidation'] = void 0;
3640
+ /**
3641
+ * A flag which force engine to detect codetext encoding for Unicode.
3642
+ */
3643
+ this['detectEncoding'] = void 0;
3644
+ /**
3645
+ * Preset allows to configure recognition quality and speed manually.
3646
+ You can quickly set up Preset by embedded presets: HighPerformance, NormalQuality,
3647
+ HighQuality, MaxBarCodes or you can manually configure separate options.
3648
+ Default value of Preset is NormalQuality.
3649
+ */
3650
+ this['preset'] = void 0;
3651
+ /**
3652
+ * Set X of top left corner of area for recognition.
3653
+ */
3654
+ this['rectX'] = void 0;
3655
+ /**
3656
+ * Set Y of top left corner of area for recognition.
3657
+ */
3658
+ this['rectY'] = void 0;
3659
+ /**
3660
+ * Set Width of area for recognition.
3661
+ */
3662
+ this['rectWidth'] = void 0;
3663
+ /**
3664
+ * Set Height of area for recognition.
3665
+ */
3666
+ this['rectHeight'] = void 0;
3667
+ /**
3668
+ * Value indicating whether FNC symbol strip must be done.
3669
+ */
3670
+ this['stripFNC'] = void 0;
3671
+ /**
3672
+ * Timeout of recognition process in milliseconds.
3673
+ Default value is 15_000 (15 seconds).
3674
+ Maximum value is 30_000 (1/2 minute).
3675
+ In case of a timeout RequestTimeout (408) status will be returned.
3676
+ Try reducing the image size to avoid timeout.
3677
+ */
3678
+ this['timeout'] = void 0;
3679
+ /**
3680
+ * Window size for median smoothing. Typical values are 3 or 4. Default value is 3. AllowMedianSmoothing must be set.
3681
+ */
3682
+ this['medianSmoothingWindowSize'] = void 0;
3683
+ /**
3684
+ * Allows engine to enable median smoothing as additional scan. Mode helps to recognize noised barcodes.
3685
+ */
3686
+ this['allowMedianSmoothing'] = void 0;
3687
+ /**
3688
+ * Allows engine to recognize color barcodes on color background as additional scan. Extremely slow mode.
3689
+ */
3690
+ this['allowComplexBackground'] = void 0;
3691
+ /**
3692
+ * Allows engine for Datamatrix to recognize dashed industrial Datamatrix barcodes.
3693
+ Slow mode which helps only for dashed barcodes which consist from spots.
3694
+ */
3695
+ this['allowDatamatrixIndustrialBarcodes'] = void 0;
3696
+ /**
3697
+ * Allows engine to recognize decreased image as additional scan. Size for decreasing is selected by internal engine algorithms.
3698
+ Mode helps to recognize barcodes which are noised and blurred but captured with high resolution.
3699
+ */
3700
+ this['allowDecreasedImage'] = void 0;
3701
+ /**
3702
+ * Allows engine to use gap between scans to increase recognition speed. Mode can make recognition problems with low height barcodes.
3703
+ */
3704
+ this['allowDetectScanGap'] = void 0;
3705
+ /**
3706
+ * Allows engine to recognize barcodes which has incorrect checksum or incorrect values.
3707
+ Mode can be used to recognize damaged barcodes with incorrect text.
3708
+ */
3709
+ this['allowIncorrectBarcodes'] = void 0;
3710
+ /**
3711
+ * Allows engine to recognize inverse color image as additional scan. Mode can be used when barcode is white on black background.
3712
+ */
3713
+ this['allowInvertImage'] = void 0;
3714
+ /**
3715
+ * Allows engine for Postal barcodes to recognize slightly noised images. Mode helps to recognize slightly damaged Postal barcodes.
3716
+ */
3717
+ this['allowMicroWhiteSpotsRemoving'] = void 0;
3718
+ /**
3719
+ * Allows engine for 1D barcodes to quickly recognize high quality barcodes which fill almost whole image.
3720
+ Mode helps to quickly recognize generated barcodes from Internet.
3721
+ */
3722
+ this['allowOneDFastBarcodesDetector'] = void 0;
3723
+ /**
3724
+ * Allows engine for 1D barcodes to recognize barcodes with single wiped/glued bars in pattern.
3725
+ */
3726
+ this['allowOneDWipedBarsRestoration'] = void 0;
3727
+ /**
3728
+ * Allows engine for QR/MicroQR to recognize damaged MicroQR barcodes.
3729
+ */
3730
+ this['allowQRMicroQrRestoration'] = void 0;
3731
+ /**
3732
+ * Allows engine to recognize regular image without any restorations as main scan. Mode to recognize image as is.
3733
+ */
3734
+ this['allowRegularImage'] = void 0;
3735
+ /**
3736
+ * Allows engine to recognize barcodes with salt and pepper noise type. Mode can remove small noise with white and black dots.
3737
+ */
3738
+ this['allowSaltAndPepperFiltering'] = void 0;
3739
+ /**
3740
+ * Allows engine to recognize image without small white spots as additional scan. Mode helps to recognize noised image as well as median smoothing filtering.
3741
+ */
3742
+ this['allowWhiteSpotsRemoving'] = void 0;
3743
+ /**
3744
+ * Allows engine to recognize 1D barcodes with checksum by checking more recognition variants. Default value: False.
3745
+ */
3746
+ this['checkMore1DVariants'] = void 0;
3747
+ /**
3748
+ * Allows engine for 1D barcodes to quickly recognize middle slice of an image and return result without using any time-consuming algorithms.
3749
+ Default value: False.
3750
+ */
3751
+ this['fastScanOnly'] = void 0;
3752
+ /**
3753
+ * Allows engine using additional image restorations to recognize corrupted barcodes. At this time, it is used only in MicroPdf417 barcode type.
3754
+ Default value: False.
3755
+ */
3756
+ this['allowAdditionalRestorations'] = void 0;
3757
+ /**
3758
+ * Sets threshold for detected regions that may contain barcodes.
3759
+ Value 0.7 means that bottom 70% of possible regions are filtered out and not processed further.
3760
+ Region likelihood threshold must be between [0.05, 0.9]
3761
+ Use high values for clear images with few barcodes.
3762
+ Use low values for images with many barcodes or for noisy images.
3763
+ Low value may lead to a bigger recognition time.
3764
+ */
3765
+ this['regionLikelihoodThresholdPercent'] = void 0;
3766
+ /**
3767
+ * Scan window sizes in pixels.
3768
+ Allowed sizes are 10, 15, 20, 25, 30.
3769
+ Scanning with small window size takes more time and provides more accuracy but may fail in detecting very big barcodes.
3770
+ Combining of several window sizes can improve detection quality.
3771
+ */
3772
+ this['scanWindowSizes'] = void 0;
3773
+ /**
3774
+ * Similarity coefficient depends on how homogeneous barcodes are.
3775
+ Use high value for clear barcodes.
3776
+ Use low values to detect barcodes that ara partly damaged or not lighten evenly.
3777
+ Similarity coefficient must be between [0.5, 0.9]
3778
+ */
3779
+ this['similarity'] = void 0;
3780
+ /**
3781
+ * Allows detector to skip search for diagonal barcodes.
3782
+ Setting it to false will increase detection time but allow to find diagonal barcodes that can be missed otherwise.
3783
+ Enabling of diagonal search leads to a bigger detection time.
3784
+ */
3785
+ this['skipDiagonalSearch'] = void 0;
3786
+ /**
3787
+ * Allows engine to recognize tiny barcodes on large images. Ignored if AllowIncorrectBarcodes is set to True. Default value: False.
3788
+ */
3789
+ this['readTinyBarcodes'] = void 0;
3790
+ /**
3791
+ * Interpreting Type for the Customer Information of AustralianPost BarCode.Default is CustomerInformationInterpretingType.Other.
3792
+ */
3793
+ this['australianPostEncodingTable'] = void 0;
3794
+ /**
3795
+ * The flag which force AustraliaPost decoder to ignore last filling patterns in Customer Information Field during decoding as CTable method.
3796
+ CTable encoding method does not have any gaps in encoding table and sequence "333" of filling patterns is decoded as letter "z".
3797
+ */
3798
+ this['ignoreEndingFillingPatternsForCTable'] = void 0;
3799
+ /**
3800
+ * The image file url.
3801
+ */
3802
+ this['url'] = void 0;
3803
+ /**
3804
+ * Image data
3805
+ */
3806
+ this['image'] = void 0;
3807
+ }
3808
+ }
3809
+ /**
3810
+ * Generate multiple barcodes and return in response stream
2062
3811
  */
2063
3812
  class PostGenerateMultipleRequest {
2064
- /**
2065
- * @param generatorParamsList List of barcodes
3813
+ /**
3814
+ * @param generatorParamsList List of barcodes
2066
3815
  */
2067
3816
  constructor(generatorParamsList) {
2068
- /**
2069
- * Format to return stream in
3817
+ /**
3818
+ * List of barcodes
3819
+ */
3820
+ this['generatorParamsList'] = void 0;
3821
+ /**
3822
+ * Format to return stream in
2070
3823
  */
2071
3824
  this['format'] = 'png';
2072
3825
  this.generatorParamsList = generatorParamsList;
2073
3826
  }
2074
3827
  }
2075
- /**
2076
- * Generate barcode and save on server (from query params or from file with json or xml content)
3828
+ /**
3829
+ * Generate barcode and save on server (from query params or from file with json or xml content)
2077
3830
  */
2078
3831
  class PutBarcodeGenerateFileRequest {
2079
- /**
2080
- * @param name The image file name.
3832
+ /**
3833
+ * @param name The image file name.
2081
3834
 
2082
- * @param type Type of barcode to generate.
3835
+ * @param type Type of barcode to generate.
2083
3836
 
2084
- * @param text Text to encode.
3837
+ * @param text Text to encode.
2085
3838
  */
2086
3839
  constructor(name, type, text) {
3840
+ /**
3841
+ * The image file name.
3842
+ */
3843
+ this['name'] = void 0;
3844
+ /**
3845
+ * Type of barcode to generate.
3846
+ */
3847
+ this['type'] = void 0;
3848
+ /**
3849
+ * Text to encode.
3850
+ */
3851
+ this['text'] = void 0;
3852
+ /**
3853
+ * Text that will be displayed instead of codetext in 2D barcodes.
3854
+ Used for: Aztec, Pdf417, DataMatrix, QR, MaxiCode, DotCode
3855
+ */
3856
+ this['twoDDisplayText'] = void 0;
3857
+ /**
3858
+ * Specify the displaying Text Location, set to CodeLocation.None to hide CodeText.
3859
+ Default value: CodeLocation.Below.
3860
+ */
3861
+ this['textLocation'] = void 0;
3862
+ /**
3863
+ * Text alignment.
3864
+ */
3865
+ this['textAlignment'] = void 0;
3866
+ /**
3867
+ * Specify the displaying CodeText's Color.
3868
+ Default value: Color.Black.
3869
+ */
3870
+ this['textColor'] = void 0;
3871
+ /**
3872
+ * Specify FontSizeMode. If FontSizeMode is set to Auto, font size will be calculated automatically based on xDimension value.
3873
+ It is recommended to use FontSizeMode.Auto especially in AutoSizeMode.Nearest or AutoSizeMode.Interpolation.
3874
+ Default value: FontSizeMode.Auto.
3875
+ */
3876
+ this['fontSizeMode'] = void 0;
3877
+ /**
3878
+ * Specify word wraps (line breaks) within text.
3879
+ Default value: false.
3880
+ */
3881
+ this['noWrap'] = void 0;
3882
+ /**
3883
+ * Resolution of the BarCode image.
3884
+ One value for both dimensions.
3885
+ Default value: 96 dpi.
3886
+ */
3887
+ this['resolution'] = void 0;
3888
+ /**
3889
+ * @deprecated Use 'Resolution' instead.
3890
+ */
3891
+ this['resolutionX'] = void 0;
3892
+ /**
3893
+ * @deprecated Use 'Resolution' instead.
3894
+ */
3895
+ this['resolutionY'] = void 0;
3896
+ /**
3897
+ * The smallest width of the unit of BarCode bars or spaces.
3898
+ Increase this will increase the whole barcode image width.
3899
+ Ignored if AutoSizeMode property is set to AutoSizeMode.Nearest or AutoSizeMode.Interpolation.
3900
+ */
3901
+ this['dimensionX'] = void 0;
3902
+ /**
3903
+ * Space between the CodeText and the BarCode in Unit value.
3904
+ Default value: 2pt.
3905
+ Ignored for EAN8, EAN13, UPCE, UPCA, ISBN, ISMN, ISSN, UpcaGs1DatabarCoupon.
3906
+ */
3907
+ this['textSpace'] = void 0;
3908
+ /**
3909
+ * Common Units for all measuring in query. Default units: pixel.
3910
+ */
3911
+ this['units'] = void 0;
3912
+ /**
3913
+ * Specifies the different types of automatic sizing modes.
3914
+ Default value: AutoSizeMode.None.
3915
+ */
3916
+ this['sizeMode'] = void 0;
3917
+ /**
3918
+ * Height of the barcode in given units. Default units: pixel.
3919
+ */
3920
+ this['barHeight'] = void 0;
3921
+ /**
3922
+ * Height of the barcode image in given units. Default units: pixel.
3923
+ */
3924
+ this['imageHeight'] = void 0;
3925
+ /**
3926
+ * Width of the barcode image in given units. Default units: pixel.
3927
+ */
3928
+ this['imageWidth'] = void 0;
3929
+ /**
3930
+ * BarCode image rotation angle, measured in degree, e.g. RotationAngle = 0 or RotationAngle = 360 means no rotation.
3931
+ If RotationAngle NOT equal to 90, 180, 270 or 0, it may increase the difficulty for the scanner to read the image.
3932
+ Default value: 0.
3933
+ */
3934
+ this['rotationAngle'] = void 0;
3935
+ /**
3936
+ * Background color of the barcode image.
3937
+ Default value: Color.White.
3938
+ */
3939
+ this['backColor'] = void 0;
3940
+ /**
3941
+ * Bars color.
3942
+ Default value: Color.Black.
3943
+ */
3944
+ this['barColor'] = void 0;
3945
+ /**
3946
+ * Border color.
3947
+ Default value: Color.Black.
3948
+ */
3949
+ this['borderColor'] = void 0;
3950
+ /**
3951
+ * Border width.
3952
+ Default value: 0.
3953
+ Ignored if Visible is set to false.
3954
+ */
3955
+ this['borderWidth'] = void 0;
3956
+ /**
3957
+ * Border dash style.
3958
+ Default value: BorderDashStyle.Solid.
3959
+ */
3960
+ this['borderDashStyle'] = void 0;
3961
+ /**
3962
+ * Border visibility. If false than parameter Width is always ignored (0).
3963
+ Default value: false.
3964
+ */
3965
+ this['borderVisible'] = void 0;
3966
+ /**
3967
+ * Enable checksum during generation 1D barcodes.
3968
+ Default is treated as Yes for symbology which must contain checksum, as No where checksum only possible.
3969
+ Checksum is possible: Code39 Standard/Extended, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, DeutschePostIdentcode, DeutschePostLeitcode, VIN, Codabar
3970
+ Checksum always used: Rest symbology
3971
+ */
3972
+ this['enableChecksum'] = void 0;
3973
+ /**
3974
+ * Indicates whether explains the character "\" as an escape character in CodeText property. Used for Pdf417, DataMatrix, Code128 only
3975
+ If the EnableEscape is true, "\" will be explained as a special escape character. Otherwise, "\" acts as normal characters.
3976
+ Aspose.BarCode supports input decimal ascii code and mnemonic for ASCII control-code characters. For example, \013 and \\CR stands for CR.
3977
+ */
3978
+ this['enableEscape'] = void 0;
3979
+ /**
3980
+ * Value indicating whether bars are filled.
3981
+ Only for 1D barcodes.
3982
+ Default value: true.
3983
+ */
3984
+ this['filledBars'] = void 0;
3985
+ /**
3986
+ * Always display checksum digit in the human readable text for Code128 and GS1Code128 barcodes.
3987
+ */
3988
+ this['alwaysShowChecksum'] = void 0;
3989
+ /**
3990
+ * Wide bars to Narrow bars ratio.
3991
+ Default value: 3, that is, wide bars are 3 times as wide as narrow bars.
3992
+ Used for ITF, PZN, PharmaCode, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, IATA2of5, VIN, DeutschePost, OPC, Code32, DataLogic2of5, PatchCode, Code39Extended, Code39Standard
3993
+ */
3994
+ this['wideNarrowRatio'] = void 0;
3995
+ /**
3996
+ * Only for 1D barcodes.
3997
+ If codetext is incorrect and value set to true - exception will be thrown. Otherwise codetext will be corrected to match barcode's specification.
3998
+ Exception always will be thrown for: Databar symbology if codetext is incorrect.
3999
+ Exception always will not be thrown for: AustraliaPost, SingaporePost, Code39Extended, Code93Extended, Code16K, Code128 symbology if codetext is incorrect.
4000
+ */
4001
+ this['validateText'] = void 0;
4002
+ /**
4003
+ * Supplement parameters.
4004
+ Used for Interleaved2of5, Standard2of5, EAN13, EAN8, UPCA, UPCE, ISBN, ISSN, ISMN.
4005
+ */
4006
+ this['supplementData'] = void 0;
4007
+ /**
4008
+ * Space between main the BarCode and supplement BarCode.
4009
+ */
4010
+ this['supplementSpace'] = void 0;
4011
+ /**
4012
+ * Bars reduction value that is used to compensate ink spread while printing.
4013
+ */
4014
+ this['barWidthReduction'] = void 0;
4015
+ /**
4016
+ * Indicates whether is used anti-aliasing mode to render image. Anti-aliasing mode is applied to barcode and text drawing.
4017
+ */
4018
+ this['useAntiAlias'] = void 0;
4019
+ /**
4020
+ * Image's storage.
4021
+ */
4022
+ this['storage'] = void 0;
4023
+ /**
4024
+ * Image's folder.
4025
+ */
4026
+ this['folder'] = void 0;
4027
+ /**
4028
+ * The image format.
4029
+ */
4030
+ this['format'] = void 0;
2087
4031
  this.name = name;
2088
4032
  this.type = type;
2089
4033
  this.text = text;
2090
4034
  }
2091
4035
  }
2092
- /**
2093
- * Recognition of a barcode from file on server with parameters in body.
4036
+ /**
4037
+ * Recognition of a barcode from file on server with parameters in body.
2094
4038
  */
2095
4039
  class PutBarcodeRecognizeFromBodyRequest {
2096
- /**
2097
- * @param name The image file name.
4040
+ /**
4041
+ * @param name The image file name.
2098
4042
 
2099
- * @param readerParams BarcodeReader object with parameters.
4043
+ * @param readerParams BarcodeReader object with parameters.
2100
4044
  */
2101
4045
  constructor(name, readerParams) {
4046
+ /**
4047
+ * The image file name.
4048
+ */
4049
+ this['name'] = void 0;
4050
+ /**
4051
+ * BarcodeReader object with parameters.
4052
+ */
4053
+ this['readerParams'] = void 0;
4054
+ /**
4055
+ *
4056
+ */
4057
+ this['type'] = void 0;
4058
+ /**
4059
+ * The storage name
4060
+ */
4061
+ this['storage'] = void 0;
4062
+ /**
4063
+ * The image folder.
4064
+ */
4065
+ this['folder'] = void 0;
2102
4066
  this.name = name;
2103
4067
  this.readerParams = readerParams;
2104
4068
  }
2105
4069
  }
2106
- /**
2107
- * Generate image with multiple barcodes and put new file on server
4070
+ /**
4071
+ * Generate image with multiple barcodes and put new file on server
2108
4072
  */
2109
4073
  class PutGenerateMultipleRequest {
2110
- /**
2111
- * @param name New filename
4074
+ /**
4075
+ * @param name New filename
2112
4076
 
2113
- * @param generatorParamsList List of barcodes
4077
+ * @param generatorParamsList List of barcodes
2114
4078
  */
2115
4079
  constructor(name, generatorParamsList) {
2116
- /**
2117
- * Format of file
4080
+ /**
4081
+ * New filename
4082
+ */
4083
+ this['name'] = void 0;
4084
+ /**
4085
+ * List of barcodes
4086
+ */
4087
+ this['generatorParamsList'] = void 0;
4088
+ /**
4089
+ * Format of file
2118
4090
  */
2119
4091
  this['format'] = 'png';
4092
+ /**
4093
+ * Folder to place file to
4094
+ */
4095
+ this['folder'] = void 0;
4096
+ /**
4097
+ * The storage name
4098
+ */
4099
+ this['storage'] = void 0;
2120
4100
  this.name = name;
2121
4101
  this.generatorParamsList = generatorParamsList;
2122
4102
  }
2123
4103
  }
4104
+ /**
4105
+ * Quickly scan a barcode from an image.
4106
+ */
4107
+ class ScanBarcodeRequest {
4108
+ /**
4109
+ * @param imageFile Image as file
4110
+ */
4111
+ constructor(imageFile) {
4112
+ /**
4113
+ * Image as file
4114
+ */
4115
+ this['imageFile'] = void 0;
4116
+ /**
4117
+ * Types of barcode to recognize
4118
+ */
4119
+ this['decodeTypes'] = void 0;
4120
+ /**
4121
+ * Timeout of recognition process in milliseconds.
4122
+ Default value is 15_000 (15 seconds).
4123
+ Maximum value is 30_000 (1/2 minute).
4124
+ In case of a timeout RequestTimeout (408) status will be returned.
4125
+ Try reducing the image size to avoid timeout.
4126
+ */
4127
+ this['timeout'] = void 0;
4128
+ this.imageFile = imageFile;
4129
+ }
4130
+ }
2124
4131
  // FileApi
2125
- /**
2126
- * Copy file
4132
+ /**
4133
+ * Copy file
2127
4134
  */
2128
4135
  class CopyFileRequest {
2129
- /**
2130
- * @param srcPath Source file path e.g. '/folder/file.ext'
4136
+ /**
4137
+ * @param srcPath Source file path e.g. '/folder/file.ext'
2131
4138
 
2132
- * @param destPath Destination file path
4139
+ * @param destPath Destination file path
2133
4140
  */
2134
4141
  constructor(srcPath, destPath) {
4142
+ /**
4143
+ * Source file path e.g. '/folder/file.ext'
4144
+ */
4145
+ this['srcPath'] = void 0;
4146
+ /**
4147
+ * Destination file path
4148
+ */
4149
+ this['destPath'] = void 0;
4150
+ /**
4151
+ * Source storage name
4152
+ */
4153
+ this['srcStorageName'] = void 0;
4154
+ /**
4155
+ * Destination storage name
4156
+ */
4157
+ this['destStorageName'] = void 0;
4158
+ /**
4159
+ * File version ID to copy
4160
+ */
4161
+ this['versionId'] = void 0;
2135
4162
  this.srcPath = srcPath;
2136
4163
  this.destPath = destPath;
2137
4164
  }
2138
4165
  }
2139
- /**
2140
- * Delete file
4166
+ /**
4167
+ * Delete file
2141
4168
  */
2142
4169
  class DeleteFileRequest {
2143
- /**
2144
- * @param path File path e.g. '/folder/file.ext'
4170
+ /**
4171
+ * @param path File path e.g. '/folder/file.ext'
2145
4172
  */
2146
4173
  constructor(path) {
4174
+ /**
4175
+ * File path e.g. '/folder/file.ext'
4176
+ */
4177
+ this['path'] = void 0;
4178
+ /**
4179
+ * Storage name
4180
+ */
4181
+ this['storageName'] = void 0;
4182
+ /**
4183
+ * File version ID to delete
4184
+ */
4185
+ this['versionId'] = void 0;
2147
4186
  this.path = path;
2148
4187
  }
2149
4188
  }
2150
- /**
2151
- * Download file
4189
+ /**
4190
+ * Download file
2152
4191
  */
2153
4192
  class DownloadFileRequest {
2154
- /**
2155
- * @param path File path e.g. '/folder/file.ext'
4193
+ /**
4194
+ * @param path File path e.g. '/folder/file.ext'
2156
4195
  */
2157
4196
  constructor(path) {
4197
+ /**
4198
+ * File path e.g. '/folder/file.ext'
4199
+ */
4200
+ this['path'] = void 0;
4201
+ /**
4202
+ * Storage name
4203
+ */
4204
+ this['storageName'] = void 0;
4205
+ /**
4206
+ * File version ID to download
4207
+ */
4208
+ this['versionId'] = void 0;
2158
4209
  this.path = path;
2159
4210
  }
2160
4211
  }
2161
- /**
2162
- * Move file
4212
+ /**
4213
+ * Move file
2163
4214
  */
2164
4215
  class MoveFileRequest {
2165
- /**
2166
- * @param srcPath Source file path e.g. '/src.ext'
4216
+ /**
4217
+ * @param srcPath Source file path e.g. '/src.ext'
2167
4218
 
2168
- * @param destPath Destination file path e.g. '/dest.ext'
4219
+ * @param destPath Destination file path e.g. '/dest.ext'
2169
4220
  */
2170
4221
  constructor(srcPath, destPath) {
4222
+ /**
4223
+ * Source file path e.g. '/src.ext'
4224
+ */
4225
+ this['srcPath'] = void 0;
4226
+ /**
4227
+ * Destination file path e.g. '/dest.ext'
4228
+ */
4229
+ this['destPath'] = void 0;
4230
+ /**
4231
+ * Source storage name
4232
+ */
4233
+ this['srcStorageName'] = void 0;
4234
+ /**
4235
+ * Destination storage name
4236
+ */
4237
+ this['destStorageName'] = void 0;
4238
+ /**
4239
+ * File version ID to move
4240
+ */
4241
+ this['versionId'] = void 0;
2171
4242
  this.srcPath = srcPath;
2172
4243
  this.destPath = destPath;
2173
4244
  }
2174
4245
  }
2175
- /**
2176
- * Upload file
4246
+ /**
4247
+ * Upload file
2177
4248
  */
2178
4249
  class UploadFileRequest {
2179
- /**
2180
- * @param path Path where to upload including filename and extension e.g. /file.ext or /Folder 1/file.ext
2181
- If the content is multipart and path does not contains the file name it tries to get them from filename parameter
2182
- from Content-Disposition header.
4250
+ /**
4251
+ * @param path Path where to upload including filename and extension e.g. /file.ext or /Folder 1/file.ext
4252
+ If the content is multipart and path does not contains the file name it tries to get them from filename parameter
4253
+ from Content-Disposition header.
2183
4254
 
2184
- * @param file File to upload
4255
+ * @param file File to upload
2185
4256
  */
2186
4257
  constructor(path, file) {
4258
+ /**
4259
+ * Path where to upload including filename and extension e.g. /file.ext or /Folder 1/file.ext
4260
+ If the content is multipart and path does not contains the file name it tries to get them from filename parameter
4261
+ from Content-Disposition header.
4262
+ */
4263
+ this['path'] = void 0;
4264
+ /**
4265
+ * File to upload
4266
+ */
4267
+ this['file'] = void 0;
4268
+ /**
4269
+ * Storage name
4270
+ */
4271
+ this['storageName'] = void 0;
2187
4272
  this.path = path;
2188
4273
  this.file = file;
2189
4274
  }
2190
4275
  }
2191
4276
  // FolderApi
2192
- /**
2193
- * Copy folder
4277
+ /**
4278
+ * Copy folder
2194
4279
  */
2195
4280
  class CopyFolderRequest {
2196
- /**
2197
- * @param srcPath Source folder path e.g. '/src'
4281
+ /**
4282
+ * @param srcPath Source folder path e.g. '/src'
2198
4283
 
2199
- * @param destPath Destination folder path e.g. '/dst'
4284
+ * @param destPath Destination folder path e.g. '/dst'
2200
4285
  */
2201
4286
  constructor(srcPath, destPath) {
4287
+ /**
4288
+ * Source folder path e.g. '/src'
4289
+ */
4290
+ this['srcPath'] = void 0;
4291
+ /**
4292
+ * Destination folder path e.g. '/dst'
4293
+ */
4294
+ this['destPath'] = void 0;
4295
+ /**
4296
+ * Source storage name
4297
+ */
4298
+ this['srcStorageName'] = void 0;
4299
+ /**
4300
+ * Destination storage name
4301
+ */
4302
+ this['destStorageName'] = void 0;
2202
4303
  this.srcPath = srcPath;
2203
4304
  this.destPath = destPath;
2204
4305
  }
2205
4306
  }
2206
- /**
2207
- * Create the folder
4307
+ /**
4308
+ * Create the folder
2208
4309
  */
2209
4310
  class CreateFolderRequest {
2210
- /**
2211
- * @param path Folder path to create e.g. 'folder_1/folder_2/'
4311
+ /**
4312
+ * @param path Folder path to create e.g. 'folder_1/folder_2/'
2212
4313
  */
2213
4314
  constructor(path) {
4315
+ /**
4316
+ * Folder path to create e.g. 'folder_1/folder_2/'
4317
+ */
4318
+ this['path'] = void 0;
4319
+ /**
4320
+ * Storage name
4321
+ */
4322
+ this['storageName'] = void 0;
2214
4323
  this.path = path;
2215
4324
  }
2216
4325
  }
2217
- /**
2218
- * Delete folder
4326
+ /**
4327
+ * Delete folder
2219
4328
  */
2220
4329
  class DeleteFolderRequest {
2221
- /**
2222
- * @param path Folder path e.g. '/folder'
4330
+ /**
4331
+ * @param path Folder path e.g. '/folder'
2223
4332
  */
2224
4333
  constructor(path) {
2225
- /**
2226
- * Enable to delete folders, subfolders and files
4334
+ /**
4335
+ * Folder path e.g. '/folder'
4336
+ */
4337
+ this['path'] = void 0;
4338
+ /**
4339
+ * Storage name
4340
+ */
4341
+ this['storageName'] = void 0;
4342
+ /**
4343
+ * Enable to delete folders, subfolders and files
2227
4344
  */
2228
4345
  this['recursive'] = false;
2229
4346
  this.path = path;
2230
4347
  }
2231
4348
  }
2232
- /**
2233
- * Get all files and folders within a folder
4349
+ /**
4350
+ * Get all files and folders within a folder
2234
4351
  */
2235
4352
  class GetFilesListRequest {
2236
- /**
2237
- * @param path Folder path e.g. '/folder'
4353
+ /**
4354
+ * @param path Folder path e.g. '/folder'
2238
4355
  */
2239
4356
  constructor(path) {
4357
+ /**
4358
+ * Folder path e.g. '/folder'
4359
+ */
4360
+ this['path'] = void 0;
4361
+ /**
4362
+ * Storage name
4363
+ */
4364
+ this['storageName'] = void 0;
2240
4365
  this.path = path;
2241
4366
  }
2242
4367
  }
2243
- /**
2244
- * Move folder
4368
+ /**
4369
+ * Move folder
2245
4370
  */
2246
4371
  class MoveFolderRequest {
2247
- /**
2248
- * @param srcPath Folder path to move e.g. '/folder'
4372
+ /**
4373
+ * @param srcPath Folder path to move e.g. '/folder'
2249
4374
 
2250
- * @param destPath Destination folder path to move to e.g '/dst'
4375
+ * @param destPath Destination folder path to move to e.g '/dst'
2251
4376
  */
2252
4377
  constructor(srcPath, destPath) {
4378
+ /**
4379
+ * Folder path to move e.g. '/folder'
4380
+ */
4381
+ this['srcPath'] = void 0;
4382
+ /**
4383
+ * Destination folder path to move to e.g '/dst'
4384
+ */
4385
+ this['destPath'] = void 0;
4386
+ /**
4387
+ * Source storage name
4388
+ */
4389
+ this['srcStorageName'] = void 0;
4390
+ /**
4391
+ * Destination storage name
4392
+ */
4393
+ this['destStorageName'] = void 0;
2253
4394
  this.srcPath = srcPath;
2254
4395
  this.destPath = destPath;
2255
4396
  }
2256
4397
  }
2257
4398
  // StorageApi
2258
- /**
2259
- * Get disc usage
4399
+ /**
4400
+ * Get disc usage
2260
4401
  */
2261
- class GetDiscUsageRequest {}
2262
- /**
2263
- * Get file versions
4402
+ class GetDiscUsageRequest {
4403
+ constructor() {
4404
+ /**
4405
+ * Storage name
4406
+ */
4407
+ this['storageName'] = void 0;
4408
+ }
4409
+ }
4410
+ /**
4411
+ * Get file versions
2264
4412
  */
2265
4413
  class GetFileVersionsRequest {
2266
- /**
2267
- * @param path File path e.g. '/file.ext'
4414
+ /**
4415
+ * @param path File path e.g. '/file.ext'
2268
4416
  */
2269
4417
  constructor(path) {
4418
+ /**
4419
+ * File path e.g. '/file.ext'
4420
+ */
4421
+ this['path'] = void 0;
4422
+ /**
4423
+ * Storage name
4424
+ */
4425
+ this['storageName'] = void 0;
2270
4426
  this.path = path;
2271
4427
  }
2272
4428
  }
2273
- /**
2274
- * Check if file or folder exists
4429
+ /**
4430
+ * Check if file or folder exists
2275
4431
  */
2276
4432
  class ObjectExistsRequest {
2277
- /**
2278
- * @param path File or folder path e.g. '/file.ext' or '/folder'
4433
+ /**
4434
+ * @param path File or folder path e.g. '/file.ext' or '/folder'
2279
4435
  */
2280
4436
  constructor(path) {
4437
+ /**
4438
+ * File or folder path e.g. '/file.ext' or '/folder'
4439
+ */
4440
+ this['path'] = void 0;
4441
+ /**
4442
+ * Storage name
4443
+ */
4444
+ this['storageName'] = void 0;
4445
+ /**
4446
+ * File version ID
4447
+ */
4448
+ this['versionId'] = void 0;
2281
4449
  this.path = path;
2282
4450
  }
2283
4451
  }
2284
- /**
2285
- * Check if storage exists
4452
+ /**
4453
+ * Check if storage exists
2286
4454
  */
2287
4455
  class StorageExistsRequest {
2288
- /**
2289
- * @param storageName Storage name
4456
+ /**
4457
+ * @param storageName Storage name
2290
4458
  */
2291
4459
  constructor(storageName) {
4460
+ /**
4461
+ * Storage name
4462
+ */
4463
+ this['storageName'] = void 0;
2292
4464
  this.storageName = storageName;
2293
4465
  }
2294
4466
  }
2295
4467
 
2296
- /*
2297
- * MIT License
2298
-
2299
- * Copyright (c) 2024 Aspose Pty Ltd
2300
-
2301
- * Permission is hereby granted, free of charge, to any person obtaining a copy
2302
- * of this software and associated documentation files (the "Software"), to deal
2303
- * in the Software without restriction, including without limitation the rights
2304
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
2305
- * copies of the Software, and to permit persons to whom the Software is
2306
- * furnished to do so, subject to the following conditions:
2307
-
2308
- * The above copyright notice and this permission notice shall be included in all
2309
- * copies or substantial portions of the Software.
2310
-
2311
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2312
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2313
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2314
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2315
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2316
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2317
- * SOFTWARE.
2318
- */
2319
4468
  let primitives = ['string', 'boolean', 'double', 'integer', 'long', 'float', 'number', 'any'];
2320
4469
  class ObjectSerializer {
2321
4470
  static findCorrectType(data, expectedType) {
@@ -2514,15 +4663,17 @@ class BarcodeApi {
2514
4663
  constructor(configuration) {
2515
4664
  this.defaultHeaders = {
2516
4665
  'x-aspose-client': 'nodejs sdk',
2517
- 'x-aspose-client-version': '24.3.0'
4666
+ 'x-aspose-client-version': '24.5.0'
2518
4667
  };
4668
+ this._configuration = void 0;
4669
+ this._client = void 0;
2519
4670
  this._configuration = configuration;
2520
4671
  this._client = new HttpClient();
2521
4672
  }
2522
- /**
2523
- *
2524
- * @summary Generate barcode.
2525
- * @param request GetBarcodeGenerateRequest
4673
+ /**
4674
+ *
4675
+ * @summary Generate barcode.
4676
+ * @param request GetBarcodeGenerateRequest
2526
4677
  */
2527
4678
  async getBarcodeGenerate(request) {
2528
4679
  const requestPath = this._configuration.getApiBaseUrl() + '/barcode/generate';
@@ -2644,7 +4795,7 @@ class BarcodeApi {
2644
4795
  if (request.format != null) {
2645
4796
  queryParameters['format'] = ObjectSerializer.serialize(request.format, 'string');
2646
4797
  }
2647
- let requestOptions = {
4798
+ const requestOptions = {
2648
4799
  method: 'GET',
2649
4800
  qs: queryParameters,
2650
4801
  headers: headerParams,
@@ -2658,10 +4809,10 @@ class BarcodeApi {
2658
4809
  body: ObjectSerializer.deserialize(result.body, 'Buffer')
2659
4810
  };
2660
4811
  }
2661
- /**
2662
- *
2663
- * @summary Recognize barcode from a file on server.
2664
- * @param request GetBarcodeRecognizeRequest
4812
+ /**
4813
+ *
4814
+ * @summary Recognize barcode from a file on server.
4815
+ * @param request GetBarcodeRecognizeRequest
2665
4816
  */
2666
4817
  async getBarcodeRecognize(request) {
2667
4818
  const requestPath = this._configuration.getApiBaseUrl() + '/barcode/{name}/recognize'.replace('{' + 'name' + '}', String(request.name));
@@ -2785,7 +4936,7 @@ class BarcodeApi {
2785
4936
  if (request.folder != null) {
2786
4937
  queryParameters['folder'] = ObjectSerializer.serialize(request.folder, 'string');
2787
4938
  }
2788
- let requestOptions = {
4939
+ const requestOptions = {
2789
4940
  method: 'GET',
2790
4941
  qs: queryParameters,
2791
4942
  headers: headerParams,
@@ -2798,15 +4949,17 @@ class BarcodeApi {
2798
4949
  body: ObjectSerializer.deserialize(result.body, 'BarcodeResponseList')
2799
4950
  };
2800
4951
  }
2801
- /**
2802
- *
2803
- * @summary Recognize barcode from an url or from request body. Request body can contain raw data bytes of the image with content-type \"application/octet-stream\". An image can also be passed as a form field.
2804
- * @param request PostBarcodeRecognizeFromUrlOrContentRequest
4952
+ /**
4953
+ *
4954
+ * @summary Recognize barcode from an url or from request body. Request body can contain raw data bytes of the image with content-type \"application/octet-stream\". An image can also be passed as a form field.
4955
+ * @param request PostBarcodeRecognizeFromUrlOrContentRequest
2805
4956
  */
2806
4957
  async postBarcodeRecognizeFromUrlOrContent(request) {
2807
4958
  const requestPath = this._configuration.getApiBaseUrl() + '/barcode/recognize';
2808
4959
  let queryParameters = {};
2809
4960
  let headerParams = Object.assign({}, this.defaultHeaders);
4961
+ const formParams = [];
4962
+ const fileToUpload = request.image == null ? null : new FormFile('image', 'image.png', request.image);
2810
4963
  if (request.type != null) {
2811
4964
  queryParameters['Type'] = ObjectSerializer.serialize(request.type, "'all' | 'AustraliaPost' | 'Aztec' | 'ISBN' | 'Codabar' | 'Code11' | 'Code128' | 'GS1Code128' | 'Code39Extended' | 'Code39Standard' | 'Code93Extended' | 'Code93Standard' | 'DataMatrix' | 'DeutschePostIdentcode' | 'DeutschePostLeitcode' | 'EAN13' | 'EAN14' | 'EAN8' | 'IATA2of5' | 'Interleaved2of5' | 'ISSN' | 'ISMN' | 'ItalianPost25' | 'ITF14' | 'ITF6' | 'MacroPdf417' | 'Matrix2of5' | 'MSI' | 'OneCode' | 'OPC' | 'PatchCode' | 'Pdf417' | 'MicroPdf417' | 'Planet' | 'Postnet' | 'PZN' | 'QR' | 'MicroQR' | 'RM4SCC' | 'SCC14' | 'SSCC18' | 'Standard2of5' | 'Supplement' | 'UPCA' | 'UPCE' | 'VIN' | 'Pharmacode' | 'GS1DataMatrix' | 'DatabarOmniDirectional' | 'DatabarTruncated' | 'DatabarLimited' | 'DatabarExpanded' | 'SwissPostParcel' | 'AustralianPosteParcel' | 'Code16K' | 'DatabarStackedOmniDirectional' | 'DatabarStacked' | 'DatabarExpandedStacked' | 'CompactPdf417' | 'GS1QR' | 'MaxiCode' | 'MicrE13B' | 'Code32' | 'DataLogic2of5' | 'DotCode' | 'DutchKIX' | 'CodablockF' | 'Mailmark' | 'GS1DotCode' | 'HIBCCode39LIC' | 'HIBCCode128LIC' | 'HIBCAztecLIC' | 'HIBCDataMatrixLIC' | 'HIBCQRLIC' | 'HIBCCode39PAS' | 'HIBCCode128PAS' | 'HIBCAztecPAS' | 'HIBCDataMatrixPAS' | 'HIBCQRPAS' | 'HanXin' | 'GS1HanXin' | 'GS1Aztec' | 'GS1CompositeBar' | 'GS1MicroPdf417' | 'mostCommonlyUsed'");
2812
4965
  }
@@ -2918,12 +5071,17 @@ class BarcodeApi {
2918
5071
  if (request.url != null) {
2919
5072
  queryParameters['url'] = ObjectSerializer.serialize(request.url, 'string');
2920
5073
  }
2921
- let requestOptions = {
5074
+ const requestOptions = {
2922
5075
  method: 'POST',
2923
5076
  qs: queryParameters,
2924
5077
  headers: headerParams,
2925
- uri: requestPath,
2926
- body: request.image
5078
+ uri: requestPath
5079
+ };
5080
+ const multipartForm = new Multipart(formParams, fileToUpload == null ? [] : [fileToUpload]);
5081
+ requestOptions.body = multipartForm.body;
5082
+ requestOptions.headers = {
5083
+ ...requestOptions.headers,
5084
+ ...multipartForm.headers
2927
5085
  };
2928
5086
  await this._configuration.authentication.applyToRequestAsync(requestOptions);
2929
5087
  const result = await this._client.requestAsync(requestOptions);
@@ -2932,10 +5090,10 @@ class BarcodeApi {
2932
5090
  body: ObjectSerializer.deserialize(result.body, 'BarcodeResponseList')
2933
5091
  };
2934
5092
  }
2935
- /**
2936
- *
2937
- * @summary Generate multiple barcodes and return in response stream
2938
- * @param request PostGenerateMultipleRequest
5093
+ /**
5094
+ *
5095
+ * @summary Generate multiple barcodes and return in response stream
5096
+ * @param request PostGenerateMultipleRequest
2939
5097
  */
2940
5098
  async postGenerateMultiple(request) {
2941
5099
  const requestPath = this._configuration.getApiBaseUrl() + '/barcode/generateMultiple';
@@ -2948,7 +5106,7 @@ class BarcodeApi {
2948
5106
  if (request.format != null) {
2949
5107
  queryParameters['format'] = ObjectSerializer.serialize(request.format, 'string');
2950
5108
  }
2951
- let requestOptions = {
5109
+ const requestOptions = {
2952
5110
  method: 'POST',
2953
5111
  qs: queryParameters,
2954
5112
  headers: headerParams,
@@ -2964,10 +5122,10 @@ class BarcodeApi {
2964
5122
  body: ObjectSerializer.deserialize(result.body, 'Buffer')
2965
5123
  };
2966
5124
  }
2967
- /**
2968
- *
2969
- * @summary Generate barcode and save on server (from query params or from file with json or xml content)
2970
- * @param request PutBarcodeGenerateFileRequest
5125
+ /**
5126
+ *
5127
+ * @summary Generate barcode and save on server (from query params or from file with json or xml content)
5128
+ * @param request PutBarcodeGenerateFileRequest
2971
5129
  */
2972
5130
  async putBarcodeGenerateFile(request) {
2973
5131
  const requestPath = this._configuration.getApiBaseUrl() + '/barcode/{name}/generate'.replace('{' + 'name' + '}', String(request.name));
@@ -3099,7 +5257,7 @@ class BarcodeApi {
3099
5257
  if (request.format != null) {
3100
5258
  queryParameters['format'] = ObjectSerializer.serialize(request.format, 'string');
3101
5259
  }
3102
- let requestOptions = {
5260
+ const requestOptions = {
3103
5261
  method: 'PUT',
3104
5262
  qs: queryParameters,
3105
5263
  headers: headerParams,
@@ -3112,10 +5270,10 @@ class BarcodeApi {
3112
5270
  body: ObjectSerializer.deserialize(result.body, 'ResultImageInfo')
3113
5271
  };
3114
5272
  }
3115
- /**
3116
- *
3117
- * @summary Recognition of a barcode from file on server with parameters in body.
3118
- * @param request PutBarcodeRecognizeFromBodyRequest
5273
+ /**
5274
+ *
5275
+ * @summary Recognition of a barcode from file on server with parameters in body.
5276
+ * @param request PutBarcodeRecognizeFromBodyRequest
3119
5277
  */
3120
5278
  async putBarcodeRecognizeFromBody(request) {
3121
5279
  const requestPath = this._configuration.getApiBaseUrl() + '/barcode/{name}/recognize'.replace('{' + 'name' + '}', String(request.name));
@@ -3138,7 +5296,7 @@ class BarcodeApi {
3138
5296
  if (request.folder != null) {
3139
5297
  queryParameters['folder'] = ObjectSerializer.serialize(request.folder, 'string');
3140
5298
  }
3141
- let requestOptions = {
5299
+ const requestOptions = {
3142
5300
  method: 'PUT',
3143
5301
  qs: queryParameters,
3144
5302
  headers: headerParams,
@@ -3153,10 +5311,10 @@ class BarcodeApi {
3153
5311
  body: ObjectSerializer.deserialize(result.body, 'BarcodeResponseList')
3154
5312
  };
3155
5313
  }
3156
- /**
3157
- *
3158
- * @summary Generate image with multiple barcodes and put new file on server
3159
- * @param request PutGenerateMultipleRequest
5314
+ /**
5315
+ *
5316
+ * @summary Generate image with multiple barcodes and put new file on server
5317
+ * @param request PutGenerateMultipleRequest
3160
5318
  */
3161
5319
  async putGenerateMultiple(request) {
3162
5320
  const requestPath = this._configuration.getApiBaseUrl() + '/barcode/{name}/generateMultiple'.replace('{' + 'name' + '}', String(request.name));
@@ -3179,7 +5337,7 @@ class BarcodeApi {
3179
5337
  if (request.storage != null) {
3180
5338
  queryParameters['storage'] = ObjectSerializer.serialize(request.storage, 'string');
3181
5339
  }
3182
- let requestOptions = {
5340
+ const requestOptions = {
3183
5341
  method: 'PUT',
3184
5342
  qs: queryParameters,
3185
5343
  headers: headerParams,
@@ -3194,20 +5352,64 @@ class BarcodeApi {
3194
5352
  body: ObjectSerializer.deserialize(result.body, 'ResultImageInfo')
3195
5353
  };
3196
5354
  }
5355
+ /**
5356
+ *
5357
+ * @summary Quickly scan a barcode from an image.
5358
+ * @param request ScanBarcodeRequest
5359
+ */
5360
+ async scanBarcode(request) {
5361
+ const requestPath = this._configuration.getApiBaseUrl() + '/barcode/scan';
5362
+ let queryParameters = {};
5363
+ let headerParams = Object.assign({}, this.defaultHeaders);
5364
+ const formParams = [];
5365
+ const fileToUpload = request.imageFile == null ? null : new FormFile('imageFile', 'imageFile.png', request.imageFile);
5366
+ // verify required parameter 'request.imageFile' is not null or undefined
5367
+ if (request.imageFile == null) {
5368
+ throw new Error('Required parameter request.imageFile was null or undefined when calling scanBarcode.');
5369
+ }
5370
+ if (request.decodeTypes != null) {
5371
+ for (const oneParam of request.decodeTypes) {
5372
+ formParams.push(['decodeTypes', ObjectSerializer.serialize(oneParam, 'DecodeBarcodeType')]);
5373
+ }
5374
+ }
5375
+ if (request.timeout != null) {
5376
+ formParams.push(['timeout', ObjectSerializer.serialize(request.timeout, 'number')]);
5377
+ }
5378
+ const requestOptions = {
5379
+ method: 'POST',
5380
+ qs: queryParameters,
5381
+ headers: headerParams,
5382
+ uri: requestPath
5383
+ };
5384
+ const multipartForm = new Multipart(formParams, fileToUpload == null ? [] : [fileToUpload]);
5385
+ requestOptions.body = multipartForm.body;
5386
+ requestOptions.headers = {
5387
+ ...requestOptions.headers,
5388
+ ...multipartForm.headers
5389
+ };
5390
+ await this._configuration.authentication.applyToRequestAsync(requestOptions);
5391
+ const result = await this._client.requestAsync(requestOptions);
5392
+ return {
5393
+ response: result.response,
5394
+ body: ObjectSerializer.deserialize(result.body, 'BarcodeResponseList')
5395
+ };
5396
+ }
3197
5397
  }
3198
5398
  class FileApi {
3199
5399
  constructor(configuration) {
3200
5400
  this.defaultHeaders = {
3201
5401
  'x-aspose-client': 'nodejs sdk',
3202
- 'x-aspose-client-version': '24.3.0'
5402
+ 'x-aspose-client-version': '24.5.0'
3203
5403
  };
5404
+ this._configuration = void 0;
5405
+ this._client = void 0;
3204
5406
  this._configuration = configuration;
3205
5407
  this._client = new HttpClient();
3206
5408
  }
3207
- /**
3208
- *
3209
- * @summary Copy file
3210
- * @param request CopyFileRequest
5409
+ /**
5410
+ *
5411
+ * @summary Copy file
5412
+ * @param request CopyFileRequest
3211
5413
  */
3212
5414
  async copyFile(request) {
3213
5415
  const requestPath = this._configuration.getApiBaseUrl() + '/barcode/storage/file/copy/{srcPath}'.replace('{' + 'srcPath' + '}', String(request.srcPath));
@@ -3233,7 +5435,7 @@ class FileApi {
3233
5435
  if (request.versionId != null) {
3234
5436
  queryParameters['versionId'] = ObjectSerializer.serialize(request.versionId, 'string');
3235
5437
  }
3236
- let requestOptions = {
5438
+ const requestOptions = {
3237
5439
  method: 'PUT',
3238
5440
  qs: queryParameters,
3239
5441
  headers: headerParams,
@@ -3243,10 +5445,10 @@ class FileApi {
3243
5445
  const result = await this._client.requestAsync(requestOptions);
3244
5446
  return result;
3245
5447
  }
3246
- /**
3247
- *
3248
- * @summary Delete file
3249
- * @param request DeleteFileRequest
5448
+ /**
5449
+ *
5450
+ * @summary Delete file
5451
+ * @param request DeleteFileRequest
3250
5452
  */
3251
5453
  async deleteFile(request) {
3252
5454
  const requestPath = this._configuration.getApiBaseUrl() + '/barcode/storage/file/{path}'.replace('{' + 'path' + '}', String(request.path));
@@ -3262,7 +5464,7 @@ class FileApi {
3262
5464
  if (request.versionId != null) {
3263
5465
  queryParameters['versionId'] = ObjectSerializer.serialize(request.versionId, 'string');
3264
5466
  }
3265
- let requestOptions = {
5467
+ const requestOptions = {
3266
5468
  method: 'DELETE',
3267
5469
  qs: queryParameters,
3268
5470
  headers: headerParams,
@@ -3272,10 +5474,10 @@ class FileApi {
3272
5474
  const result = await this._client.requestAsync(requestOptions);
3273
5475
  return result;
3274
5476
  }
3275
- /**
3276
- *
3277
- * @summary Download file
3278
- * @param request DownloadFileRequest
5477
+ /**
5478
+ *
5479
+ * @summary Download file
5480
+ * @param request DownloadFileRequest
3279
5481
  */
3280
5482
  async downloadFile(request) {
3281
5483
  const requestPath = this._configuration.getApiBaseUrl() + '/barcode/storage/file/{path}'.replace('{' + 'path' + '}', String(request.path));
@@ -3291,7 +5493,7 @@ class FileApi {
3291
5493
  if (request.versionId != null) {
3292
5494
  queryParameters['versionId'] = ObjectSerializer.serialize(request.versionId, 'string');
3293
5495
  }
3294
- let requestOptions = {
5496
+ const requestOptions = {
3295
5497
  method: 'GET',
3296
5498
  qs: queryParameters,
3297
5499
  headers: headerParams,
@@ -3305,10 +5507,10 @@ class FileApi {
3305
5507
  body: ObjectSerializer.deserialize(result.body, 'Buffer')
3306
5508
  };
3307
5509
  }
3308
- /**
3309
- *
3310
- * @summary Move file
3311
- * @param request MoveFileRequest
5510
+ /**
5511
+ *
5512
+ * @summary Move file
5513
+ * @param request MoveFileRequest
3312
5514
  */
3313
5515
  async moveFile(request) {
3314
5516
  const requestPath = this._configuration.getApiBaseUrl() + '/barcode/storage/file/move/{srcPath}'.replace('{' + 'srcPath' + '}', String(request.srcPath));
@@ -3334,7 +5536,7 @@ class FileApi {
3334
5536
  if (request.versionId != null) {
3335
5537
  queryParameters['versionId'] = ObjectSerializer.serialize(request.versionId, 'string');
3336
5538
  }
3337
- let requestOptions = {
5539
+ const requestOptions = {
3338
5540
  method: 'PUT',
3339
5541
  qs: queryParameters,
3340
5542
  headers: headerParams,
@@ -3344,15 +5546,17 @@ class FileApi {
3344
5546
  const result = await this._client.requestAsync(requestOptions);
3345
5547
  return result;
3346
5548
  }
3347
- /**
3348
- *
3349
- * @summary Upload file
3350
- * @param request UploadFileRequest
5549
+ /**
5550
+ *
5551
+ * @summary Upload file
5552
+ * @param request UploadFileRequest
3351
5553
  */
3352
5554
  async uploadFile(request) {
3353
5555
  const requestPath = this._configuration.getApiBaseUrl() + '/barcode/storage/file/{path}'.replace('{' + 'path' + '}', String(request.path));
3354
5556
  let queryParameters = {};
3355
5557
  let headerParams = Object.assign({}, this.defaultHeaders);
5558
+ const formParams = [];
5559
+ const fileToUpload = request.file == null ? null : new FormFile('file', 'file.png', request.file);
3356
5560
  // verify required parameter 'request.path' is not null or undefined
3357
5561
  if (request.path == null) {
3358
5562
  throw new Error('Required parameter request.path was null or undefined when calling uploadFile.');
@@ -3364,12 +5568,17 @@ class FileApi {
3364
5568
  if (request.storageName != null) {
3365
5569
  queryParameters['storageName'] = ObjectSerializer.serialize(request.storageName, 'string');
3366
5570
  }
3367
- let requestOptions = {
5571
+ const requestOptions = {
3368
5572
  method: 'PUT',
3369
5573
  qs: queryParameters,
3370
5574
  headers: headerParams,
3371
- uri: requestPath,
3372
- body: request.file
5575
+ uri: requestPath
5576
+ };
5577
+ const multipartForm = new Multipart(formParams, fileToUpload == null ? [] : [fileToUpload]);
5578
+ requestOptions.body = multipartForm.body;
5579
+ requestOptions.headers = {
5580
+ ...requestOptions.headers,
5581
+ ...multipartForm.headers
3373
5582
  };
3374
5583
  await this._configuration.authentication.applyToRequestAsync(requestOptions);
3375
5584
  const result = await this._client.requestAsync(requestOptions);
@@ -3383,15 +5592,17 @@ class FolderApi {
3383
5592
  constructor(configuration) {
3384
5593
  this.defaultHeaders = {
3385
5594
  'x-aspose-client': 'nodejs sdk',
3386
- 'x-aspose-client-version': '24.3.0'
5595
+ 'x-aspose-client-version': '24.5.0'
3387
5596
  };
5597
+ this._configuration = void 0;
5598
+ this._client = void 0;
3388
5599
  this._configuration = configuration;
3389
5600
  this._client = new HttpClient();
3390
5601
  }
3391
- /**
3392
- *
3393
- * @summary Copy folder
3394
- * @param request CopyFolderRequest
5602
+ /**
5603
+ *
5604
+ * @summary Copy folder
5605
+ * @param request CopyFolderRequest
3395
5606
  */
3396
5607
  async copyFolder(request) {
3397
5608
  const requestPath = this._configuration.getApiBaseUrl() + '/barcode/storage/folder/copy/{srcPath}'.replace('{' + 'srcPath' + '}', String(request.srcPath));
@@ -3414,7 +5625,7 @@ class FolderApi {
3414
5625
  if (request.destStorageName != null) {
3415
5626
  queryParameters['destStorageName'] = ObjectSerializer.serialize(request.destStorageName, 'string');
3416
5627
  }
3417
- let requestOptions = {
5628
+ const requestOptions = {
3418
5629
  method: 'PUT',
3419
5630
  qs: queryParameters,
3420
5631
  headers: headerParams,
@@ -3424,10 +5635,10 @@ class FolderApi {
3424
5635
  const result = await this._client.requestAsync(requestOptions);
3425
5636
  return result;
3426
5637
  }
3427
- /**
3428
- *
3429
- * @summary Create the folder
3430
- * @param request CreateFolderRequest
5638
+ /**
5639
+ *
5640
+ * @summary Create the folder
5641
+ * @param request CreateFolderRequest
3431
5642
  */
3432
5643
  async createFolder(request) {
3433
5644
  const requestPath = this._configuration.getApiBaseUrl() + '/barcode/storage/folder/{path}'.replace('{' + 'path' + '}', String(request.path));
@@ -3440,7 +5651,7 @@ class FolderApi {
3440
5651
  if (request.storageName != null) {
3441
5652
  queryParameters['storageName'] = ObjectSerializer.serialize(request.storageName, 'string');
3442
5653
  }
3443
- let requestOptions = {
5654
+ const requestOptions = {
3444
5655
  method: 'PUT',
3445
5656
  qs: queryParameters,
3446
5657
  headers: headerParams,
@@ -3450,10 +5661,10 @@ class FolderApi {
3450
5661
  const result = await this._client.requestAsync(requestOptions);
3451
5662
  return result;
3452
5663
  }
3453
- /**
3454
- *
3455
- * @summary Delete folder
3456
- * @param request DeleteFolderRequest
5664
+ /**
5665
+ *
5666
+ * @summary Delete folder
5667
+ * @param request DeleteFolderRequest
3457
5668
  */
3458
5669
  async deleteFolder(request) {
3459
5670
  const requestPath = this._configuration.getApiBaseUrl() + '/barcode/storage/folder/{path}'.replace('{' + 'path' + '}', String(request.path));
@@ -3469,7 +5680,7 @@ class FolderApi {
3469
5680
  if (request.recursive != null) {
3470
5681
  queryParameters['recursive'] = ObjectSerializer.serialize(request.recursive, 'boolean');
3471
5682
  }
3472
- let requestOptions = {
5683
+ const requestOptions = {
3473
5684
  method: 'DELETE',
3474
5685
  qs: queryParameters,
3475
5686
  headers: headerParams,
@@ -3479,10 +5690,10 @@ class FolderApi {
3479
5690
  const result = await this._client.requestAsync(requestOptions);
3480
5691
  return result;
3481
5692
  }
3482
- /**
3483
- *
3484
- * @summary Get all files and folders within a folder
3485
- * @param request GetFilesListRequest
5693
+ /**
5694
+ *
5695
+ * @summary Get all files and folders within a folder
5696
+ * @param request GetFilesListRequest
3486
5697
  */
3487
5698
  async getFilesList(request) {
3488
5699
  const requestPath = this._configuration.getApiBaseUrl() + '/barcode/storage/folder/{path}'.replace('{' + 'path' + '}', String(request.path));
@@ -3495,7 +5706,7 @@ class FolderApi {
3495
5706
  if (request.storageName != null) {
3496
5707
  queryParameters['storageName'] = ObjectSerializer.serialize(request.storageName, 'string');
3497
5708
  }
3498
- let requestOptions = {
5709
+ const requestOptions = {
3499
5710
  method: 'GET',
3500
5711
  qs: queryParameters,
3501
5712
  headers: headerParams,
@@ -3508,10 +5719,10 @@ class FolderApi {
3508
5719
  body: ObjectSerializer.deserialize(result.body, 'FilesList')
3509
5720
  };
3510
5721
  }
3511
- /**
3512
- *
3513
- * @summary Move folder
3514
- * @param request MoveFolderRequest
5722
+ /**
5723
+ *
5724
+ * @summary Move folder
5725
+ * @param request MoveFolderRequest
3515
5726
  */
3516
5727
  async moveFolder(request) {
3517
5728
  const requestPath = this._configuration.getApiBaseUrl() + '/barcode/storage/folder/move/{srcPath}'.replace('{' + 'srcPath' + '}', String(request.srcPath));
@@ -3534,7 +5745,7 @@ class FolderApi {
3534
5745
  if (request.destStorageName != null) {
3535
5746
  queryParameters['destStorageName'] = ObjectSerializer.serialize(request.destStorageName, 'string');
3536
5747
  }
3537
- let requestOptions = {
5748
+ const requestOptions = {
3538
5749
  method: 'PUT',
3539
5750
  qs: queryParameters,
3540
5751
  headers: headerParams,
@@ -3549,15 +5760,17 @@ class StorageApi {
3549
5760
  constructor(configuration) {
3550
5761
  this.defaultHeaders = {
3551
5762
  'x-aspose-client': 'nodejs sdk',
3552
- 'x-aspose-client-version': '24.3.0'
5763
+ 'x-aspose-client-version': '24.5.0'
3553
5764
  };
5765
+ this._configuration = void 0;
5766
+ this._client = void 0;
3554
5767
  this._configuration = configuration;
3555
5768
  this._client = new HttpClient();
3556
5769
  }
3557
- /**
3558
- *
3559
- * @summary Get disc usage
3560
- * @param request GetDiscUsageRequest
5770
+ /**
5771
+ *
5772
+ * @summary Get disc usage
5773
+ * @param request GetDiscUsageRequest
3561
5774
  */
3562
5775
  async getDiscUsage(request) {
3563
5776
  const requestPath = this._configuration.getApiBaseUrl() + '/barcode/storage/disc';
@@ -3566,7 +5779,7 @@ class StorageApi {
3566
5779
  if (request.storageName != null) {
3567
5780
  queryParameters['storageName'] = ObjectSerializer.serialize(request.storageName, 'string');
3568
5781
  }
3569
- let requestOptions = {
5782
+ const requestOptions = {
3570
5783
  method: 'GET',
3571
5784
  qs: queryParameters,
3572
5785
  headers: headerParams,
@@ -3579,10 +5792,10 @@ class StorageApi {
3579
5792
  body: ObjectSerializer.deserialize(result.body, 'DiscUsage')
3580
5793
  };
3581
5794
  }
3582
- /**
3583
- *
3584
- * @summary Get file versions
3585
- * @param request GetFileVersionsRequest
5795
+ /**
5796
+ *
5797
+ * @summary Get file versions
5798
+ * @param request GetFileVersionsRequest
3586
5799
  */
3587
5800
  async getFileVersions(request) {
3588
5801
  const requestPath = this._configuration.getApiBaseUrl() + '/barcode/storage/version/{path}'.replace('{' + 'path' + '}', String(request.path));
@@ -3595,7 +5808,7 @@ class StorageApi {
3595
5808
  if (request.storageName != null) {
3596
5809
  queryParameters['storageName'] = ObjectSerializer.serialize(request.storageName, 'string');
3597
5810
  }
3598
- let requestOptions = {
5811
+ const requestOptions = {
3599
5812
  method: 'GET',
3600
5813
  qs: queryParameters,
3601
5814
  headers: headerParams,
@@ -3608,10 +5821,10 @@ class StorageApi {
3608
5821
  body: ObjectSerializer.deserialize(result.body, 'FileVersions')
3609
5822
  };
3610
5823
  }
3611
- /**
3612
- *
3613
- * @summary Check if file or folder exists
3614
- * @param request ObjectExistsRequest
5824
+ /**
5825
+ *
5826
+ * @summary Check if file or folder exists
5827
+ * @param request ObjectExistsRequest
3615
5828
  */
3616
5829
  async objectExists(request) {
3617
5830
  const requestPath = this._configuration.getApiBaseUrl() + '/barcode/storage/exist/{path}'.replace('{' + 'path' + '}', String(request.path));
@@ -3627,7 +5840,7 @@ class StorageApi {
3627
5840
  if (request.versionId != null) {
3628
5841
  queryParameters['versionId'] = ObjectSerializer.serialize(request.versionId, 'string');
3629
5842
  }
3630
- let requestOptions = {
5843
+ const requestOptions = {
3631
5844
  method: 'GET',
3632
5845
  qs: queryParameters,
3633
5846
  headers: headerParams,
@@ -3640,10 +5853,10 @@ class StorageApi {
3640
5853
  body: ObjectSerializer.deserialize(result.body, 'ObjectExist')
3641
5854
  };
3642
5855
  }
3643
- /**
3644
- *
3645
- * @summary Check if storage exists
3646
- * @param request StorageExistsRequest
5856
+ /**
5857
+ *
5858
+ * @summary Check if storage exists
5859
+ * @param request StorageExistsRequest
3647
5860
  */
3648
5861
  async storageExists(request) {
3649
5862
  const requestPath = this._configuration.getApiBaseUrl() + '/barcode/storage/{storageName}/exist'.replace('{' + 'storageName' + '}', String(request.storageName));
@@ -3653,7 +5866,7 @@ class StorageApi {
3653
5866
  if (request.storageName == null) {
3654
5867
  throw new Error('Required parameter request.storageName was null or undefined when calling storageExists.');
3655
5868
  }
3656
- let requestOptions = {
5869
+ const requestOptions = {
3657
5870
  method: 'GET',
3658
5871
  qs: queryParameters,
3659
5872
  headers: headerParams,
@@ -3670,6 +5883,9 @@ class StorageApi {
3670
5883
 
3671
5884
  class JWTAuth {
3672
5885
  constructor(configuration) {
5886
+ this._accessToken = void 0;
5887
+ this._configuration = void 0;
5888
+ this._client = void 0;
3673
5889
  this._configuration = configuration;
3674
5890
  if (configuration.accessToken) {
3675
5891
  // Use saved token
@@ -3677,8 +5893,8 @@ class JWTAuth {
3677
5893
  }
3678
5894
  this._client = new HttpClient();
3679
5895
  }
3680
- /**
3681
- * Apply authentication settings to header and query params.
5896
+ /**
5897
+ * Apply authentication settings to header and query params.
3682
5898
  */
3683
5899
  async applyToRequestAsync(requestOptions) {
3684
5900
  if (this._accessToken == null) {
@@ -3708,12 +5924,31 @@ class JWTAuth {
3708
5924
  }
3709
5925
  }
3710
5926
 
5927
+ exports.ApiVersion = void 0;
3711
5928
  (function (ApiVersion) {
3712
5929
  ApiVersion["v3"] = "v3.0";
3713
5930
  })(exports.ApiVersion || (exports.ApiVersion = {}));
3714
5931
  class Configuration {
3715
5932
  constructor(clientId, clientSecret, baseUrl, accessToken, tokenUrl) {
5933
+ /**
5934
+ * Authentication type.
5935
+ */
5936
+ this.authentication = void 0;
5937
+ /**
5938
+ * Client Id.
5939
+ */
5940
+ this.clientId = void 0;
5941
+ /**
5942
+ * Client Secret.
5943
+ */
5944
+ this.clientSecret = void 0;
5945
+ /**
5946
+ * Base Url.
5947
+ */
5948
+ this.baseUrl = void 0;
3716
5949
  this.version = exports.ApiVersion.v3;
5950
+ this.accessToken = void 0;
5951
+ this.tokenUrl = void 0;
3717
5952
  this.clientId = clientId;
3718
5953
  this.clientSecret = clientSecret;
3719
5954
  if (baseUrl) {
@@ -3729,8 +5964,8 @@ class Configuration {
3729
5964
  }
3730
5965
  this.authentication = new JWTAuth(this);
3731
5966
  }
3732
- /**
3733
- * Returns api base url
5967
+ /**
5968
+ * Returns api base url
3734
5969
  */
3735
5970
  getApiBaseUrl() {
3736
5971
  return this.baseUrl + '/' + this.version;
@@ -3797,6 +6032,7 @@ exports.QrParams = QrParams;
3797
6032
  exports.ReaderParams = ReaderParams;
3798
6033
  exports.RegionPoint = RegionPoint;
3799
6034
  exports.ResultImageInfo = ResultImageInfo;
6035
+ exports.ScanBarcodeRequest = ScanBarcodeRequest;
3800
6036
  exports.StorageApi = StorageApi;
3801
6037
  exports.StorageExist = StorageExist;
3802
6038
  exports.StorageExistsRequest = StorageExistsRequest;