aspose-barcode-cloud-node 24.2.0 → 24.4.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.
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  [![npm](https://img.shields.io/npm/v/aspose-barcode-cloud-node)](https://www.npmjs.com/package/aspose-barcode-cloud-node)
6
6
 
7
7
  + API version: 3.0
8
- + Package version: 24.2.0
8
+ + Package version: 24.4.0
9
9
 
10
10
  ## Demo applications
11
11
 
@@ -52,6 +52,8 @@ async function generateBarcode(api) {
52
52
  const request = new Barcode.GetBarcodeGenerateRequest(
53
53
  Barcode.EncodeBarcodeType.QR,
54
54
  'Aspose.BarCode for Cloud Sample');
55
+ request.textLocation = Barcode.CodeLocation.None;
56
+
55
57
  const oneBarcode = await api.getBarcodeGenerate(request);
56
58
 
57
59
  const fileName = 'QR.png'
@@ -60,14 +62,11 @@ async function generateBarcode(api) {
60
62
  return fileName;
61
63
  }
62
64
 
63
- async function recognizeBarcode(api, fileName) {
64
- const request = new Barcode.PostBarcodeRecognizeFromUrlOrContentRequest();
65
- request.image = fs.readFileSync(fileName);
66
- request.type = Barcode.DecodeBarcodeType.QR;
67
- request.preset = Barcode.PresetType.HighPerformance;
68
- request.fastScanOnly = true;
65
+ async function scanBarcode(api, fileName) {
66
+ const request = new Barcode.ScanBarcodeRequest(fs.readFileSync(fileName));
67
+ request.decodeTypes = [Barcode.DecodeBarcodeType.QR];
69
68
 
70
- const result = await api.postBarcodeRecognizeFromUrlOrContent(request);
69
+ const result = await api.scanBarcode(request);
71
70
 
72
71
  return result.body.barcodes;
73
72
  }
@@ -80,7 +79,7 @@ generateBarcode(api)
80
79
  console.log('Barcode saved to ' + fileName);
81
80
 
82
81
  console.log('Trying to recognize barcode...');
83
- recognizeBarcode(api, fileName)
82
+ scanBarcode(api, fileName)
84
83
  .then(barcodes => {
85
84
  console.log('Recognized barcodes are:');
86
85
  console.log(JSON.stringify(barcodes, null, 2));
@@ -120,6 +119,7 @@ BarcodeApi | [**postGenerateMultiple**](docs/index.md#postgeneratemultiple) | **
120
119
  BarcodeApi | [**putBarcodeGenerateFile**](docs/index.md#putbarcodegeneratefile) | **PUT** /barcode/{name}/generate | Generate barcode and save on server (from query params or from file with json or xml content)
121
120
  BarcodeApi | [**putBarcodeRecognizeFromBody**](docs/index.md#putbarcoderecognizefrombody) | **PUT** /barcode/{name}/recognize | Recognition of a barcode from file on server with parameters in body.
122
121
  BarcodeApi | [**putGenerateMultiple**](docs/index.md#putgeneratemultiple) | **PUT** /barcode/{name}/generateMultiple | Generate image with multiple barcodes and put new file on server
122
+ BarcodeApi | [**scanBarcode**](docs/index.md#scanbarcode) | **POST** /barcode/scan | Quickly scan a barcode from an image.
123
123
  FileApi | [**copyFile**](docs/index.md#copyfile) | **PUT** /barcode/storage/file/copy/{srcPath} | Copy file
124
124
  FileApi | [**deleteFile**](docs/index.md#deletefile) | **DELETE** /barcode/storage/file/{path} | Delete file
125
125
  FileApi | [**downloadFile**](docs/index.md#downloadfile) | **GET** /barcode/storage/file/{path} | Download file
package/dist/api.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  import { Configuration } from './Configuration';
3
3
  import { HttpResponse } from './httpClient';
4
4
  import { BarcodeResponseList, DiscUsage, FileVersions, FilesList, FilesUploadResult, ObjectExist, ResultImageInfo, StorageExist } from './models';
5
- import { GetBarcodeGenerateRequest, GetBarcodeRecognizeRequest, PostBarcodeRecognizeFromUrlOrContentRequest, PostGenerateMultipleRequest, PutBarcodeGenerateFileRequest, PutBarcodeRecognizeFromBodyRequest, PutGenerateMultipleRequest, CopyFileRequest, DeleteFileRequest, DownloadFileRequest, MoveFileRequest, UploadFileRequest, CopyFolderRequest, CreateFolderRequest, DeleteFolderRequest, GetFilesListRequest, MoveFolderRequest, GetDiscUsageRequest, GetFileVersionsRequest, ObjectExistsRequest, StorageExistsRequest } from './models';
5
+ import { GetBarcodeGenerateRequest, GetBarcodeRecognizeRequest, PostBarcodeRecognizeFromUrlOrContentRequest, PostGenerateMultipleRequest, PutBarcodeGenerateFileRequest, PutBarcodeRecognizeFromBodyRequest, PutGenerateMultipleRequest, ScanBarcodeRequest, CopyFileRequest, DeleteFileRequest, DownloadFileRequest, MoveFileRequest, UploadFileRequest, CopyFolderRequest, CreateFolderRequest, DeleteFolderRequest, GetFilesListRequest, MoveFolderRequest, GetDiscUsageRequest, GetFileVersionsRequest, ObjectExistsRequest, StorageExistsRequest } from './models';
6
6
  export * from './models';
7
7
  export declare class BarcodeApi {
8
8
  protected defaultHeaders: any;
@@ -72,6 +72,15 @@ export declare class BarcodeApi {
72
72
  response: HttpResponse;
73
73
  body: ResultImageInfo;
74
74
  }>;
75
+ /**
76
+ *
77
+ * @summary Quickly scan a barcode from an image.
78
+ * @param request ScanBarcodeRequest
79
+ */
80
+ scanBarcode(request: ScanBarcodeRequest): Promise<{
81
+ response: HttpResponse;
82
+ body: BarcodeResponseList;
83
+ }>;
75
84
  }
76
85
  export declare class FileApi {
77
86
  protected defaultHeaders: any;
@@ -6,6 +6,7 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'defau
6
6
 
7
7
  var http = _interopDefault(require('http'));
8
8
  var https = _interopDefault(require('https'));
9
+ var crypto = _interopDefault(require('crypto'));
9
10
 
10
11
  class HttpClient {
11
12
  requestAsync(options) {
@@ -83,29 +84,41 @@ class HttpClient {
83
84
  }
84
85
  }
85
86
 
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.
87
+ class FormFile {
88
+ constructor(name, filename, data, contentType) {
89
+ this.name = name;
90
+ this.filename = filename;
91
+ this.data = data;
92
+ this.contentType = contentType;
93
+ }
94
+ }
95
+ class Multipart {
96
+ constructor(textFields, files) {
97
+ const random = crypto.randomUUID();
98
+ this.boundary = '------------------------' + random.replace(/-/g, '');
99
+ const bodyLines = [];
100
+ for (const tuple of textFields) {
101
+ bodyLines.push(`--${this.boundary}`);
102
+ bodyLines.push(`Content-Disposition: form-data; name="${tuple[0]}"`);
103
+ bodyLines.push('');
104
+ bodyLines.push(tuple[1]);
105
+ }
106
+ for (const file of files || []) {
107
+ bodyLines.push(`--${this.boundary}`);
108
+ bodyLines.push(`Content-Disposition: form-data; name="${file.name}"; filename="${file.filename}"`);
109
+ bodyLines.push(`Content-Type: ${file.contentType || 'application/octet-stream'}`);
110
+ bodyLines.push('');
111
+ bodyLines.push(file.data.toString('binary'));
112
+ }
113
+ bodyLines.push(`--${this.boundary}--`);
114
+ this.body = Buffer.from(bodyLines.join('\r\n'), 'binary');
115
+ this.headers = {
116
+ 'Content-Type': `multipart/form-data; boundary=${this.boundary}`,
117
+ 'Content-Length': this.body.length.toString()
118
+ };
119
+ }
120
+ }
100
121
 
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
122
  class ApiError {
110
123
  static getAttributeTypeMap() {
111
124
  return ApiError.attributeTypeMap;
@@ -2121,6 +2134,17 @@ class PutGenerateMultipleRequest {
2121
2134
  this.generatorParamsList = generatorParamsList;
2122
2135
  }
2123
2136
  }
2137
+ /**
2138
+ * Quickly scan a barcode from an image.
2139
+ */
2140
+ class ScanBarcodeRequest {
2141
+ /**
2142
+ * @param imageFile Image as file
2143
+ */
2144
+ constructor(imageFile) {
2145
+ this.imageFile = imageFile;
2146
+ }
2147
+ }
2124
2148
  // FileApi
2125
2149
  /**
2126
2150
  * Copy file
@@ -2293,29 +2317,6 @@ class StorageExistsRequest {
2293
2317
  }
2294
2318
  }
2295
2319
 
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
2320
  let primitives = ['string', 'boolean', 'double', 'integer', 'long', 'float', 'number', 'any'];
2320
2321
  class ObjectSerializer {
2321
2322
  static findCorrectType(data, expectedType) {
@@ -2514,7 +2515,7 @@ class BarcodeApi {
2514
2515
  constructor(configuration) {
2515
2516
  this.defaultHeaders = {
2516
2517
  'x-aspose-client': 'nodejs sdk',
2517
- 'x-aspose-client-version': '24.2.0'
2518
+ 'x-aspose-client-version': '24.4.0'
2518
2519
  };
2519
2520
  this._configuration = configuration;
2520
2521
  this._client = new HttpClient();
@@ -2644,7 +2645,7 @@ class BarcodeApi {
2644
2645
  if (request.format != null) {
2645
2646
  queryParameters['format'] = ObjectSerializer.serialize(request.format, 'string');
2646
2647
  }
2647
- let requestOptions = {
2648
+ const requestOptions = {
2648
2649
  method: 'GET',
2649
2650
  qs: queryParameters,
2650
2651
  headers: headerParams,
@@ -2785,7 +2786,7 @@ class BarcodeApi {
2785
2786
  if (request.folder != null) {
2786
2787
  queryParameters['folder'] = ObjectSerializer.serialize(request.folder, 'string');
2787
2788
  }
2788
- let requestOptions = {
2789
+ const requestOptions = {
2789
2790
  method: 'GET',
2790
2791
  qs: queryParameters,
2791
2792
  headers: headerParams,
@@ -2807,6 +2808,8 @@ class BarcodeApi {
2807
2808
  const requestPath = this._configuration.getApiBaseUrl() + '/barcode/recognize';
2808
2809
  let queryParameters = {};
2809
2810
  let headerParams = Object.assign({}, this.defaultHeaders);
2811
+ const formParams = [];
2812
+ const fileToUpload = request.image == null ? null : new FormFile('image', 'image.png', request.image);
2810
2813
  if (request.type != null) {
2811
2814
  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
2815
  }
@@ -2918,12 +2921,17 @@ class BarcodeApi {
2918
2921
  if (request.url != null) {
2919
2922
  queryParameters['url'] = ObjectSerializer.serialize(request.url, 'string');
2920
2923
  }
2921
- let requestOptions = {
2924
+ const requestOptions = {
2922
2925
  method: 'POST',
2923
2926
  qs: queryParameters,
2924
2927
  headers: headerParams,
2925
- uri: requestPath,
2926
- body: request.image
2928
+ uri: requestPath
2929
+ };
2930
+ const multipartForm = new Multipart(formParams, fileToUpload == null ? [] : [fileToUpload]);
2931
+ requestOptions.body = multipartForm.body;
2932
+ requestOptions.headers = {
2933
+ ...requestOptions.headers,
2934
+ ...multipartForm.headers
2927
2935
  };
2928
2936
  await this._configuration.authentication.applyToRequestAsync(requestOptions);
2929
2937
  const result = await this._client.requestAsync(requestOptions);
@@ -2948,7 +2956,7 @@ class BarcodeApi {
2948
2956
  if (request.format != null) {
2949
2957
  queryParameters['format'] = ObjectSerializer.serialize(request.format, 'string');
2950
2958
  }
2951
- let requestOptions = {
2959
+ const requestOptions = {
2952
2960
  method: 'POST',
2953
2961
  qs: queryParameters,
2954
2962
  headers: headerParams,
@@ -3099,7 +3107,7 @@ class BarcodeApi {
3099
3107
  if (request.format != null) {
3100
3108
  queryParameters['format'] = ObjectSerializer.serialize(request.format, 'string');
3101
3109
  }
3102
- let requestOptions = {
3110
+ const requestOptions = {
3103
3111
  method: 'PUT',
3104
3112
  qs: queryParameters,
3105
3113
  headers: headerParams,
@@ -3138,7 +3146,7 @@ class BarcodeApi {
3138
3146
  if (request.folder != null) {
3139
3147
  queryParameters['folder'] = ObjectSerializer.serialize(request.folder, 'string');
3140
3148
  }
3141
- let requestOptions = {
3149
+ const requestOptions = {
3142
3150
  method: 'PUT',
3143
3151
  qs: queryParameters,
3144
3152
  headers: headerParams,
@@ -3179,7 +3187,7 @@ class BarcodeApi {
3179
3187
  if (request.storage != null) {
3180
3188
  queryParameters['storage'] = ObjectSerializer.serialize(request.storage, 'string');
3181
3189
  }
3182
- let requestOptions = {
3190
+ const requestOptions = {
3183
3191
  method: 'PUT',
3184
3192
  qs: queryParameters,
3185
3193
  headers: headerParams,
@@ -3194,12 +3202,54 @@ class BarcodeApi {
3194
3202
  body: ObjectSerializer.deserialize(result.body, 'ResultImageInfo')
3195
3203
  };
3196
3204
  }
3205
+ /**
3206
+ *
3207
+ * @summary Quickly scan a barcode from an image.
3208
+ * @param request ScanBarcodeRequest
3209
+ */
3210
+ async scanBarcode(request) {
3211
+ const requestPath = this._configuration.getApiBaseUrl() + '/barcode/scan';
3212
+ let queryParameters = {};
3213
+ let headerParams = Object.assign({}, this.defaultHeaders);
3214
+ const formParams = [];
3215
+ const fileToUpload = request.imageFile == null ? null : new FormFile('imageFile', 'imageFile.png', request.imageFile);
3216
+ // verify required parameter 'request.imageFile' is not null or undefined
3217
+ if (request.imageFile == null) {
3218
+ throw new Error('Required parameter request.imageFile was null or undefined when calling scanBarcode.');
3219
+ }
3220
+ if (request.decodeTypes != null) {
3221
+ for (const oneParam of request.decodeTypes) {
3222
+ formParams.push(['decodeTypes', ObjectSerializer.serialize(oneParam, 'DecodeBarcodeType')]);
3223
+ }
3224
+ }
3225
+ if (request.timeout != null) {
3226
+ formParams.push(['timeout', ObjectSerializer.serialize(request.timeout, 'number')]);
3227
+ }
3228
+ const requestOptions = {
3229
+ method: 'POST',
3230
+ qs: queryParameters,
3231
+ headers: headerParams,
3232
+ uri: requestPath
3233
+ };
3234
+ const multipartForm = new Multipart(formParams, fileToUpload == null ? [] : [fileToUpload]);
3235
+ requestOptions.body = multipartForm.body;
3236
+ requestOptions.headers = {
3237
+ ...requestOptions.headers,
3238
+ ...multipartForm.headers
3239
+ };
3240
+ await this._configuration.authentication.applyToRequestAsync(requestOptions);
3241
+ const result = await this._client.requestAsync(requestOptions);
3242
+ return {
3243
+ response: result.response,
3244
+ body: ObjectSerializer.deserialize(result.body, 'BarcodeResponseList')
3245
+ };
3246
+ }
3197
3247
  }
3198
3248
  class FileApi {
3199
3249
  constructor(configuration) {
3200
3250
  this.defaultHeaders = {
3201
3251
  'x-aspose-client': 'nodejs sdk',
3202
- 'x-aspose-client-version': '24.2.0'
3252
+ 'x-aspose-client-version': '24.4.0'
3203
3253
  };
3204
3254
  this._configuration = configuration;
3205
3255
  this._client = new HttpClient();
@@ -3233,7 +3283,7 @@ class FileApi {
3233
3283
  if (request.versionId != null) {
3234
3284
  queryParameters['versionId'] = ObjectSerializer.serialize(request.versionId, 'string');
3235
3285
  }
3236
- let requestOptions = {
3286
+ const requestOptions = {
3237
3287
  method: 'PUT',
3238
3288
  qs: queryParameters,
3239
3289
  headers: headerParams,
@@ -3262,7 +3312,7 @@ class FileApi {
3262
3312
  if (request.versionId != null) {
3263
3313
  queryParameters['versionId'] = ObjectSerializer.serialize(request.versionId, 'string');
3264
3314
  }
3265
- let requestOptions = {
3315
+ const requestOptions = {
3266
3316
  method: 'DELETE',
3267
3317
  qs: queryParameters,
3268
3318
  headers: headerParams,
@@ -3291,7 +3341,7 @@ class FileApi {
3291
3341
  if (request.versionId != null) {
3292
3342
  queryParameters['versionId'] = ObjectSerializer.serialize(request.versionId, 'string');
3293
3343
  }
3294
- let requestOptions = {
3344
+ const requestOptions = {
3295
3345
  method: 'GET',
3296
3346
  qs: queryParameters,
3297
3347
  headers: headerParams,
@@ -3334,7 +3384,7 @@ class FileApi {
3334
3384
  if (request.versionId != null) {
3335
3385
  queryParameters['versionId'] = ObjectSerializer.serialize(request.versionId, 'string');
3336
3386
  }
3337
- let requestOptions = {
3387
+ const requestOptions = {
3338
3388
  method: 'PUT',
3339
3389
  qs: queryParameters,
3340
3390
  headers: headerParams,
@@ -3353,6 +3403,8 @@ class FileApi {
3353
3403
  const requestPath = this._configuration.getApiBaseUrl() + '/barcode/storage/file/{path}'.replace('{' + 'path' + '}', String(request.path));
3354
3404
  let queryParameters = {};
3355
3405
  let headerParams = Object.assign({}, this.defaultHeaders);
3406
+ const formParams = [];
3407
+ const fileToUpload = request.file == null ? null : new FormFile('file', 'file.png', request.file);
3356
3408
  // verify required parameter 'request.path' is not null or undefined
3357
3409
  if (request.path == null) {
3358
3410
  throw new Error('Required parameter request.path was null or undefined when calling uploadFile.');
@@ -3364,12 +3416,17 @@ class FileApi {
3364
3416
  if (request.storageName != null) {
3365
3417
  queryParameters['storageName'] = ObjectSerializer.serialize(request.storageName, 'string');
3366
3418
  }
3367
- let requestOptions = {
3419
+ const requestOptions = {
3368
3420
  method: 'PUT',
3369
3421
  qs: queryParameters,
3370
3422
  headers: headerParams,
3371
- uri: requestPath,
3372
- body: request.file
3423
+ uri: requestPath
3424
+ };
3425
+ const multipartForm = new Multipart(formParams, fileToUpload == null ? [] : [fileToUpload]);
3426
+ requestOptions.body = multipartForm.body;
3427
+ requestOptions.headers = {
3428
+ ...requestOptions.headers,
3429
+ ...multipartForm.headers
3373
3430
  };
3374
3431
  await this._configuration.authentication.applyToRequestAsync(requestOptions);
3375
3432
  const result = await this._client.requestAsync(requestOptions);
@@ -3383,7 +3440,7 @@ class FolderApi {
3383
3440
  constructor(configuration) {
3384
3441
  this.defaultHeaders = {
3385
3442
  'x-aspose-client': 'nodejs sdk',
3386
- 'x-aspose-client-version': '24.2.0'
3443
+ 'x-aspose-client-version': '24.4.0'
3387
3444
  };
3388
3445
  this._configuration = configuration;
3389
3446
  this._client = new HttpClient();
@@ -3414,7 +3471,7 @@ class FolderApi {
3414
3471
  if (request.destStorageName != null) {
3415
3472
  queryParameters['destStorageName'] = ObjectSerializer.serialize(request.destStorageName, 'string');
3416
3473
  }
3417
- let requestOptions = {
3474
+ const requestOptions = {
3418
3475
  method: 'PUT',
3419
3476
  qs: queryParameters,
3420
3477
  headers: headerParams,
@@ -3440,7 +3497,7 @@ class FolderApi {
3440
3497
  if (request.storageName != null) {
3441
3498
  queryParameters['storageName'] = ObjectSerializer.serialize(request.storageName, 'string');
3442
3499
  }
3443
- let requestOptions = {
3500
+ const requestOptions = {
3444
3501
  method: 'PUT',
3445
3502
  qs: queryParameters,
3446
3503
  headers: headerParams,
@@ -3469,7 +3526,7 @@ class FolderApi {
3469
3526
  if (request.recursive != null) {
3470
3527
  queryParameters['recursive'] = ObjectSerializer.serialize(request.recursive, 'boolean');
3471
3528
  }
3472
- let requestOptions = {
3529
+ const requestOptions = {
3473
3530
  method: 'DELETE',
3474
3531
  qs: queryParameters,
3475
3532
  headers: headerParams,
@@ -3495,7 +3552,7 @@ class FolderApi {
3495
3552
  if (request.storageName != null) {
3496
3553
  queryParameters['storageName'] = ObjectSerializer.serialize(request.storageName, 'string');
3497
3554
  }
3498
- let requestOptions = {
3555
+ const requestOptions = {
3499
3556
  method: 'GET',
3500
3557
  qs: queryParameters,
3501
3558
  headers: headerParams,
@@ -3534,7 +3591,7 @@ class FolderApi {
3534
3591
  if (request.destStorageName != null) {
3535
3592
  queryParameters['destStorageName'] = ObjectSerializer.serialize(request.destStorageName, 'string');
3536
3593
  }
3537
- let requestOptions = {
3594
+ const requestOptions = {
3538
3595
  method: 'PUT',
3539
3596
  qs: queryParameters,
3540
3597
  headers: headerParams,
@@ -3549,7 +3606,7 @@ class StorageApi {
3549
3606
  constructor(configuration) {
3550
3607
  this.defaultHeaders = {
3551
3608
  'x-aspose-client': 'nodejs sdk',
3552
- 'x-aspose-client-version': '24.2.0'
3609
+ 'x-aspose-client-version': '24.4.0'
3553
3610
  };
3554
3611
  this._configuration = configuration;
3555
3612
  this._client = new HttpClient();
@@ -3566,7 +3623,7 @@ class StorageApi {
3566
3623
  if (request.storageName != null) {
3567
3624
  queryParameters['storageName'] = ObjectSerializer.serialize(request.storageName, 'string');
3568
3625
  }
3569
- let requestOptions = {
3626
+ const requestOptions = {
3570
3627
  method: 'GET',
3571
3628
  qs: queryParameters,
3572
3629
  headers: headerParams,
@@ -3595,7 +3652,7 @@ class StorageApi {
3595
3652
  if (request.storageName != null) {
3596
3653
  queryParameters['storageName'] = ObjectSerializer.serialize(request.storageName, 'string');
3597
3654
  }
3598
- let requestOptions = {
3655
+ const requestOptions = {
3599
3656
  method: 'GET',
3600
3657
  qs: queryParameters,
3601
3658
  headers: headerParams,
@@ -3627,7 +3684,7 @@ class StorageApi {
3627
3684
  if (request.versionId != null) {
3628
3685
  queryParameters['versionId'] = ObjectSerializer.serialize(request.versionId, 'string');
3629
3686
  }
3630
- let requestOptions = {
3687
+ const requestOptions = {
3631
3688
  method: 'GET',
3632
3689
  qs: queryParameters,
3633
3690
  headers: headerParams,
@@ -3653,7 +3710,7 @@ class StorageApi {
3653
3710
  if (request.storageName == null) {
3654
3711
  throw new Error('Required parameter request.storageName was null or undefined when calling storageExists.');
3655
3712
  }
3656
- let requestOptions = {
3713
+ const requestOptions = {
3657
3714
  method: 'GET',
3658
3715
  qs: queryParameters,
3659
3716
  headers: headerParams,
@@ -3797,6 +3854,7 @@ exports.QrParams = QrParams;
3797
3854
  exports.ReaderParams = ReaderParams;
3798
3855
  exports.RegionPoint = RegionPoint;
3799
3856
  exports.ResultImageInfo = ResultImageInfo;
3857
+ exports.ScanBarcodeRequest = ScanBarcodeRequest;
3800
3858
  exports.StorageApi = StorageApi;
3801
3859
  exports.StorageExist = StorageExist;
3802
3860
  exports.StorageExistsRequest = StorageExistsRequest;