aspose-barcode-cloud-node 24.3.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 +9 -11
- package/dist/api.d.ts +10 -1
- package/dist/aspose-barcode-cloud-node.cjs.development.js +132 -74
- package/dist/aspose-barcode-cloud-node.cjs.development.js.map +1 -1
- package/dist/aspose-barcode-cloud-node.cjs.production.min.js +1 -1
- package/dist/aspose-barcode-cloud-node.cjs.production.min.js.map +1 -1
- package/dist/aspose-barcode-cloud-node.esm.js +132 -75
- package/dist/aspose-barcode-cloud-node.esm.js.map +1 -1
- package/dist/httpClient.d.ts +1 -2
- package/dist/models.d.ts +29 -4
- package/dist/multipart.d.ts +24 -0
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import http from 'http';
|
|
2
2
|
import https from 'https';
|
|
3
|
+
import crypto from 'crypto';
|
|
3
4
|
|
|
4
5
|
class HttpClient {
|
|
5
6
|
requestAsync(options) {
|
|
@@ -77,29 +78,41 @@ class HttpClient {
|
|
|
77
78
|
}
|
|
78
79
|
}
|
|
79
80
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
81
|
+
class FormFile {
|
|
82
|
+
constructor(name, filename, data, contentType) {
|
|
83
|
+
this.name = name;
|
|
84
|
+
this.filename = filename;
|
|
85
|
+
this.data = data;
|
|
86
|
+
this.contentType = contentType;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
class Multipart {
|
|
90
|
+
constructor(textFields, files) {
|
|
91
|
+
const random = crypto.randomUUID();
|
|
92
|
+
this.boundary = '------------------------' + random.replace(/-/g, '');
|
|
93
|
+
const bodyLines = [];
|
|
94
|
+
for (const tuple of textFields) {
|
|
95
|
+
bodyLines.push(`--${this.boundary}`);
|
|
96
|
+
bodyLines.push(`Content-Disposition: form-data; name="${tuple[0]}"`);
|
|
97
|
+
bodyLines.push('');
|
|
98
|
+
bodyLines.push(tuple[1]);
|
|
99
|
+
}
|
|
100
|
+
for (const file of files || []) {
|
|
101
|
+
bodyLines.push(`--${this.boundary}`);
|
|
102
|
+
bodyLines.push(`Content-Disposition: form-data; name="${file.name}"; filename="${file.filename}"`);
|
|
103
|
+
bodyLines.push(`Content-Type: ${file.contentType || 'application/octet-stream'}`);
|
|
104
|
+
bodyLines.push('');
|
|
105
|
+
bodyLines.push(file.data.toString('binary'));
|
|
106
|
+
}
|
|
107
|
+
bodyLines.push(`--${this.boundary}--`);
|
|
108
|
+
this.body = Buffer.from(bodyLines.join('\r\n'), 'binary');
|
|
109
|
+
this.headers = {
|
|
110
|
+
'Content-Type': `multipart/form-data; boundary=${this.boundary}`,
|
|
111
|
+
'Content-Length': this.body.length.toString()
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
}
|
|
94
115
|
|
|
95
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
96
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
97
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
98
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
99
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
100
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
101
|
-
* SOFTWARE.
|
|
102
|
-
*/
|
|
103
116
|
class ApiError {
|
|
104
117
|
static getAttributeTypeMap() {
|
|
105
118
|
return ApiError.attributeTypeMap;
|
|
@@ -2271,6 +2284,17 @@ class PutGenerateMultipleRequest {
|
|
|
2271
2284
|
this.generatorParamsList = generatorParamsList;
|
|
2272
2285
|
}
|
|
2273
2286
|
}
|
|
2287
|
+
/**
|
|
2288
|
+
* Quickly scan a barcode from an image.
|
|
2289
|
+
*/
|
|
2290
|
+
class ScanBarcodeRequest {
|
|
2291
|
+
/**
|
|
2292
|
+
* @param imageFile Image as file
|
|
2293
|
+
*/
|
|
2294
|
+
constructor(imageFile) {
|
|
2295
|
+
this.imageFile = imageFile;
|
|
2296
|
+
}
|
|
2297
|
+
}
|
|
2274
2298
|
// FileApi
|
|
2275
2299
|
/**
|
|
2276
2300
|
* Copy file
|
|
@@ -2443,29 +2467,6 @@ class StorageExistsRequest {
|
|
|
2443
2467
|
}
|
|
2444
2468
|
}
|
|
2445
2469
|
|
|
2446
|
-
/*
|
|
2447
|
-
* MIT License
|
|
2448
|
-
|
|
2449
|
-
* Copyright (c) 2024 Aspose Pty Ltd
|
|
2450
|
-
|
|
2451
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
2452
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
2453
|
-
* in the Software without restriction, including without limitation the rights
|
|
2454
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
2455
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
2456
|
-
* furnished to do so, subject to the following conditions:
|
|
2457
|
-
|
|
2458
|
-
* The above copyright notice and this permission notice shall be included in all
|
|
2459
|
-
* copies or substantial portions of the Software.
|
|
2460
|
-
|
|
2461
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
2462
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
2463
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
2464
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
2465
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
2466
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
2467
|
-
* SOFTWARE.
|
|
2468
|
-
*/
|
|
2469
2470
|
let primitives = ['string', 'boolean', 'double', 'integer', 'long', 'float', 'number', 'any'];
|
|
2470
2471
|
class ObjectSerializer {
|
|
2471
2472
|
static findCorrectType(data, expectedType) {
|
|
@@ -2664,7 +2665,7 @@ class BarcodeApi {
|
|
|
2664
2665
|
constructor(configuration) {
|
|
2665
2666
|
this.defaultHeaders = {
|
|
2666
2667
|
'x-aspose-client': 'nodejs sdk',
|
|
2667
|
-
'x-aspose-client-version': '24.
|
|
2668
|
+
'x-aspose-client-version': '24.4.0'
|
|
2668
2669
|
};
|
|
2669
2670
|
this._configuration = configuration;
|
|
2670
2671
|
this._client = new HttpClient();
|
|
@@ -2794,7 +2795,7 @@ class BarcodeApi {
|
|
|
2794
2795
|
if (request.format != null) {
|
|
2795
2796
|
queryParameters['format'] = ObjectSerializer.serialize(request.format, 'string');
|
|
2796
2797
|
}
|
|
2797
|
-
|
|
2798
|
+
const requestOptions = {
|
|
2798
2799
|
method: 'GET',
|
|
2799
2800
|
qs: queryParameters,
|
|
2800
2801
|
headers: headerParams,
|
|
@@ -2935,7 +2936,7 @@ class BarcodeApi {
|
|
|
2935
2936
|
if (request.folder != null) {
|
|
2936
2937
|
queryParameters['folder'] = ObjectSerializer.serialize(request.folder, 'string');
|
|
2937
2938
|
}
|
|
2938
|
-
|
|
2939
|
+
const requestOptions = {
|
|
2939
2940
|
method: 'GET',
|
|
2940
2941
|
qs: queryParameters,
|
|
2941
2942
|
headers: headerParams,
|
|
@@ -2957,6 +2958,8 @@ class BarcodeApi {
|
|
|
2957
2958
|
const requestPath = this._configuration.getApiBaseUrl() + '/barcode/recognize';
|
|
2958
2959
|
let queryParameters = {};
|
|
2959
2960
|
let headerParams = Object.assign({}, this.defaultHeaders);
|
|
2961
|
+
const formParams = [];
|
|
2962
|
+
const fileToUpload = request.image == null ? null : new FormFile('image', 'image.png', request.image);
|
|
2960
2963
|
if (request.type != null) {
|
|
2961
2964
|
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'");
|
|
2962
2965
|
}
|
|
@@ -3068,12 +3071,17 @@ class BarcodeApi {
|
|
|
3068
3071
|
if (request.url != null) {
|
|
3069
3072
|
queryParameters['url'] = ObjectSerializer.serialize(request.url, 'string');
|
|
3070
3073
|
}
|
|
3071
|
-
|
|
3074
|
+
const requestOptions = {
|
|
3072
3075
|
method: 'POST',
|
|
3073
3076
|
qs: queryParameters,
|
|
3074
3077
|
headers: headerParams,
|
|
3075
|
-
uri: requestPath
|
|
3076
|
-
|
|
3078
|
+
uri: requestPath
|
|
3079
|
+
};
|
|
3080
|
+
const multipartForm = new Multipart(formParams, fileToUpload == null ? [] : [fileToUpload]);
|
|
3081
|
+
requestOptions.body = multipartForm.body;
|
|
3082
|
+
requestOptions.headers = {
|
|
3083
|
+
...requestOptions.headers,
|
|
3084
|
+
...multipartForm.headers
|
|
3077
3085
|
};
|
|
3078
3086
|
await this._configuration.authentication.applyToRequestAsync(requestOptions);
|
|
3079
3087
|
const result = await this._client.requestAsync(requestOptions);
|
|
@@ -3098,7 +3106,7 @@ class BarcodeApi {
|
|
|
3098
3106
|
if (request.format != null) {
|
|
3099
3107
|
queryParameters['format'] = ObjectSerializer.serialize(request.format, 'string');
|
|
3100
3108
|
}
|
|
3101
|
-
|
|
3109
|
+
const requestOptions = {
|
|
3102
3110
|
method: 'POST',
|
|
3103
3111
|
qs: queryParameters,
|
|
3104
3112
|
headers: headerParams,
|
|
@@ -3249,7 +3257,7 @@ class BarcodeApi {
|
|
|
3249
3257
|
if (request.format != null) {
|
|
3250
3258
|
queryParameters['format'] = ObjectSerializer.serialize(request.format, 'string');
|
|
3251
3259
|
}
|
|
3252
|
-
|
|
3260
|
+
const requestOptions = {
|
|
3253
3261
|
method: 'PUT',
|
|
3254
3262
|
qs: queryParameters,
|
|
3255
3263
|
headers: headerParams,
|
|
@@ -3288,7 +3296,7 @@ class BarcodeApi {
|
|
|
3288
3296
|
if (request.folder != null) {
|
|
3289
3297
|
queryParameters['folder'] = ObjectSerializer.serialize(request.folder, 'string');
|
|
3290
3298
|
}
|
|
3291
|
-
|
|
3299
|
+
const requestOptions = {
|
|
3292
3300
|
method: 'PUT',
|
|
3293
3301
|
qs: queryParameters,
|
|
3294
3302
|
headers: headerParams,
|
|
@@ -3329,7 +3337,7 @@ class BarcodeApi {
|
|
|
3329
3337
|
if (request.storage != null) {
|
|
3330
3338
|
queryParameters['storage'] = ObjectSerializer.serialize(request.storage, 'string');
|
|
3331
3339
|
}
|
|
3332
|
-
|
|
3340
|
+
const requestOptions = {
|
|
3333
3341
|
method: 'PUT',
|
|
3334
3342
|
qs: queryParameters,
|
|
3335
3343
|
headers: headerParams,
|
|
@@ -3344,12 +3352,54 @@ class BarcodeApi {
|
|
|
3344
3352
|
body: ObjectSerializer.deserialize(result.body, 'ResultImageInfo')
|
|
3345
3353
|
};
|
|
3346
3354
|
}
|
|
3355
|
+
/**
|
|
3356
|
+
*
|
|
3357
|
+
* @summary Quickly scan a barcode from an image.
|
|
3358
|
+
* @param request ScanBarcodeRequest
|
|
3359
|
+
*/
|
|
3360
|
+
async scanBarcode(request) {
|
|
3361
|
+
const requestPath = this._configuration.getApiBaseUrl() + '/barcode/scan';
|
|
3362
|
+
let queryParameters = {};
|
|
3363
|
+
let headerParams = Object.assign({}, this.defaultHeaders);
|
|
3364
|
+
const formParams = [];
|
|
3365
|
+
const fileToUpload = request.imageFile == null ? null : new FormFile('imageFile', 'imageFile.png', request.imageFile);
|
|
3366
|
+
// verify required parameter 'request.imageFile' is not null or undefined
|
|
3367
|
+
if (request.imageFile == null) {
|
|
3368
|
+
throw new Error('Required parameter request.imageFile was null or undefined when calling scanBarcode.');
|
|
3369
|
+
}
|
|
3370
|
+
if (request.decodeTypes != null) {
|
|
3371
|
+
for (const oneParam of request.decodeTypes) {
|
|
3372
|
+
formParams.push(['decodeTypes', ObjectSerializer.serialize(oneParam, 'DecodeBarcodeType')]);
|
|
3373
|
+
}
|
|
3374
|
+
}
|
|
3375
|
+
if (request.timeout != null) {
|
|
3376
|
+
formParams.push(['timeout', ObjectSerializer.serialize(request.timeout, 'number')]);
|
|
3377
|
+
}
|
|
3378
|
+
const requestOptions = {
|
|
3379
|
+
method: 'POST',
|
|
3380
|
+
qs: queryParameters,
|
|
3381
|
+
headers: headerParams,
|
|
3382
|
+
uri: requestPath
|
|
3383
|
+
};
|
|
3384
|
+
const multipartForm = new Multipart(formParams, fileToUpload == null ? [] : [fileToUpload]);
|
|
3385
|
+
requestOptions.body = multipartForm.body;
|
|
3386
|
+
requestOptions.headers = {
|
|
3387
|
+
...requestOptions.headers,
|
|
3388
|
+
...multipartForm.headers
|
|
3389
|
+
};
|
|
3390
|
+
await this._configuration.authentication.applyToRequestAsync(requestOptions);
|
|
3391
|
+
const result = await this._client.requestAsync(requestOptions);
|
|
3392
|
+
return {
|
|
3393
|
+
response: result.response,
|
|
3394
|
+
body: ObjectSerializer.deserialize(result.body, 'BarcodeResponseList')
|
|
3395
|
+
};
|
|
3396
|
+
}
|
|
3347
3397
|
}
|
|
3348
3398
|
class FileApi {
|
|
3349
3399
|
constructor(configuration) {
|
|
3350
3400
|
this.defaultHeaders = {
|
|
3351
3401
|
'x-aspose-client': 'nodejs sdk',
|
|
3352
|
-
'x-aspose-client-version': '24.
|
|
3402
|
+
'x-aspose-client-version': '24.4.0'
|
|
3353
3403
|
};
|
|
3354
3404
|
this._configuration = configuration;
|
|
3355
3405
|
this._client = new HttpClient();
|
|
@@ -3383,7 +3433,7 @@ class FileApi {
|
|
|
3383
3433
|
if (request.versionId != null) {
|
|
3384
3434
|
queryParameters['versionId'] = ObjectSerializer.serialize(request.versionId, 'string');
|
|
3385
3435
|
}
|
|
3386
|
-
|
|
3436
|
+
const requestOptions = {
|
|
3387
3437
|
method: 'PUT',
|
|
3388
3438
|
qs: queryParameters,
|
|
3389
3439
|
headers: headerParams,
|
|
@@ -3412,7 +3462,7 @@ class FileApi {
|
|
|
3412
3462
|
if (request.versionId != null) {
|
|
3413
3463
|
queryParameters['versionId'] = ObjectSerializer.serialize(request.versionId, 'string');
|
|
3414
3464
|
}
|
|
3415
|
-
|
|
3465
|
+
const requestOptions = {
|
|
3416
3466
|
method: 'DELETE',
|
|
3417
3467
|
qs: queryParameters,
|
|
3418
3468
|
headers: headerParams,
|
|
@@ -3441,7 +3491,7 @@ class FileApi {
|
|
|
3441
3491
|
if (request.versionId != null) {
|
|
3442
3492
|
queryParameters['versionId'] = ObjectSerializer.serialize(request.versionId, 'string');
|
|
3443
3493
|
}
|
|
3444
|
-
|
|
3494
|
+
const requestOptions = {
|
|
3445
3495
|
method: 'GET',
|
|
3446
3496
|
qs: queryParameters,
|
|
3447
3497
|
headers: headerParams,
|
|
@@ -3484,7 +3534,7 @@ class FileApi {
|
|
|
3484
3534
|
if (request.versionId != null) {
|
|
3485
3535
|
queryParameters['versionId'] = ObjectSerializer.serialize(request.versionId, 'string');
|
|
3486
3536
|
}
|
|
3487
|
-
|
|
3537
|
+
const requestOptions = {
|
|
3488
3538
|
method: 'PUT',
|
|
3489
3539
|
qs: queryParameters,
|
|
3490
3540
|
headers: headerParams,
|
|
@@ -3503,6 +3553,8 @@ class FileApi {
|
|
|
3503
3553
|
const requestPath = this._configuration.getApiBaseUrl() + '/barcode/storage/file/{path}'.replace('{' + 'path' + '}', String(request.path));
|
|
3504
3554
|
let queryParameters = {};
|
|
3505
3555
|
let headerParams = Object.assign({}, this.defaultHeaders);
|
|
3556
|
+
const formParams = [];
|
|
3557
|
+
const fileToUpload = request.file == null ? null : new FormFile('file', 'file.png', request.file);
|
|
3506
3558
|
// verify required parameter 'request.path' is not null or undefined
|
|
3507
3559
|
if (request.path == null) {
|
|
3508
3560
|
throw new Error('Required parameter request.path was null or undefined when calling uploadFile.');
|
|
@@ -3514,12 +3566,17 @@ class FileApi {
|
|
|
3514
3566
|
if (request.storageName != null) {
|
|
3515
3567
|
queryParameters['storageName'] = ObjectSerializer.serialize(request.storageName, 'string');
|
|
3516
3568
|
}
|
|
3517
|
-
|
|
3569
|
+
const requestOptions = {
|
|
3518
3570
|
method: 'PUT',
|
|
3519
3571
|
qs: queryParameters,
|
|
3520
3572
|
headers: headerParams,
|
|
3521
|
-
uri: requestPath
|
|
3522
|
-
|
|
3573
|
+
uri: requestPath
|
|
3574
|
+
};
|
|
3575
|
+
const multipartForm = new Multipart(formParams, fileToUpload == null ? [] : [fileToUpload]);
|
|
3576
|
+
requestOptions.body = multipartForm.body;
|
|
3577
|
+
requestOptions.headers = {
|
|
3578
|
+
...requestOptions.headers,
|
|
3579
|
+
...multipartForm.headers
|
|
3523
3580
|
};
|
|
3524
3581
|
await this._configuration.authentication.applyToRequestAsync(requestOptions);
|
|
3525
3582
|
const result = await this._client.requestAsync(requestOptions);
|
|
@@ -3533,7 +3590,7 @@ class FolderApi {
|
|
|
3533
3590
|
constructor(configuration) {
|
|
3534
3591
|
this.defaultHeaders = {
|
|
3535
3592
|
'x-aspose-client': 'nodejs sdk',
|
|
3536
|
-
'x-aspose-client-version': '24.
|
|
3593
|
+
'x-aspose-client-version': '24.4.0'
|
|
3537
3594
|
};
|
|
3538
3595
|
this._configuration = configuration;
|
|
3539
3596
|
this._client = new HttpClient();
|
|
@@ -3564,7 +3621,7 @@ class FolderApi {
|
|
|
3564
3621
|
if (request.destStorageName != null) {
|
|
3565
3622
|
queryParameters['destStorageName'] = ObjectSerializer.serialize(request.destStorageName, 'string');
|
|
3566
3623
|
}
|
|
3567
|
-
|
|
3624
|
+
const requestOptions = {
|
|
3568
3625
|
method: 'PUT',
|
|
3569
3626
|
qs: queryParameters,
|
|
3570
3627
|
headers: headerParams,
|
|
@@ -3590,7 +3647,7 @@ class FolderApi {
|
|
|
3590
3647
|
if (request.storageName != null) {
|
|
3591
3648
|
queryParameters['storageName'] = ObjectSerializer.serialize(request.storageName, 'string');
|
|
3592
3649
|
}
|
|
3593
|
-
|
|
3650
|
+
const requestOptions = {
|
|
3594
3651
|
method: 'PUT',
|
|
3595
3652
|
qs: queryParameters,
|
|
3596
3653
|
headers: headerParams,
|
|
@@ -3619,7 +3676,7 @@ class FolderApi {
|
|
|
3619
3676
|
if (request.recursive != null) {
|
|
3620
3677
|
queryParameters['recursive'] = ObjectSerializer.serialize(request.recursive, 'boolean');
|
|
3621
3678
|
}
|
|
3622
|
-
|
|
3679
|
+
const requestOptions = {
|
|
3623
3680
|
method: 'DELETE',
|
|
3624
3681
|
qs: queryParameters,
|
|
3625
3682
|
headers: headerParams,
|
|
@@ -3645,7 +3702,7 @@ class FolderApi {
|
|
|
3645
3702
|
if (request.storageName != null) {
|
|
3646
3703
|
queryParameters['storageName'] = ObjectSerializer.serialize(request.storageName, 'string');
|
|
3647
3704
|
}
|
|
3648
|
-
|
|
3705
|
+
const requestOptions = {
|
|
3649
3706
|
method: 'GET',
|
|
3650
3707
|
qs: queryParameters,
|
|
3651
3708
|
headers: headerParams,
|
|
@@ -3684,7 +3741,7 @@ class FolderApi {
|
|
|
3684
3741
|
if (request.destStorageName != null) {
|
|
3685
3742
|
queryParameters['destStorageName'] = ObjectSerializer.serialize(request.destStorageName, 'string');
|
|
3686
3743
|
}
|
|
3687
|
-
|
|
3744
|
+
const requestOptions = {
|
|
3688
3745
|
method: 'PUT',
|
|
3689
3746
|
qs: queryParameters,
|
|
3690
3747
|
headers: headerParams,
|
|
@@ -3699,7 +3756,7 @@ class StorageApi {
|
|
|
3699
3756
|
constructor(configuration) {
|
|
3700
3757
|
this.defaultHeaders = {
|
|
3701
3758
|
'x-aspose-client': 'nodejs sdk',
|
|
3702
|
-
'x-aspose-client-version': '24.
|
|
3759
|
+
'x-aspose-client-version': '24.4.0'
|
|
3703
3760
|
};
|
|
3704
3761
|
this._configuration = configuration;
|
|
3705
3762
|
this._client = new HttpClient();
|
|
@@ -3716,7 +3773,7 @@ class StorageApi {
|
|
|
3716
3773
|
if (request.storageName != null) {
|
|
3717
3774
|
queryParameters['storageName'] = ObjectSerializer.serialize(request.storageName, 'string');
|
|
3718
3775
|
}
|
|
3719
|
-
|
|
3776
|
+
const requestOptions = {
|
|
3720
3777
|
method: 'GET',
|
|
3721
3778
|
qs: queryParameters,
|
|
3722
3779
|
headers: headerParams,
|
|
@@ -3745,7 +3802,7 @@ class StorageApi {
|
|
|
3745
3802
|
if (request.storageName != null) {
|
|
3746
3803
|
queryParameters['storageName'] = ObjectSerializer.serialize(request.storageName, 'string');
|
|
3747
3804
|
}
|
|
3748
|
-
|
|
3805
|
+
const requestOptions = {
|
|
3749
3806
|
method: 'GET',
|
|
3750
3807
|
qs: queryParameters,
|
|
3751
3808
|
headers: headerParams,
|
|
@@ -3777,7 +3834,7 @@ class StorageApi {
|
|
|
3777
3834
|
if (request.versionId != null) {
|
|
3778
3835
|
queryParameters['versionId'] = ObjectSerializer.serialize(request.versionId, 'string');
|
|
3779
3836
|
}
|
|
3780
|
-
|
|
3837
|
+
const requestOptions = {
|
|
3781
3838
|
method: 'GET',
|
|
3782
3839
|
qs: queryParameters,
|
|
3783
3840
|
headers: headerParams,
|
|
@@ -3803,7 +3860,7 @@ class StorageApi {
|
|
|
3803
3860
|
if (request.storageName == null) {
|
|
3804
3861
|
throw new Error('Required parameter request.storageName was null or undefined when calling storageExists.');
|
|
3805
3862
|
}
|
|
3806
|
-
|
|
3863
|
+
const requestOptions = {
|
|
3807
3864
|
method: 'GET',
|
|
3808
3865
|
qs: queryParameters,
|
|
3809
3866
|
headers: headerParams,
|
|
@@ -3888,5 +3945,5 @@ class Configuration {
|
|
|
3888
3945
|
}
|
|
3889
3946
|
}
|
|
3890
3947
|
|
|
3891
|
-
export { ApiError, ApiErrorResponse, ApiVersion, AustralianPostParams, AutoSizeMode, AvailableGraphicsUnit, AztecEncodeMode, AztecParams, AztecSymbolMode, BarcodeApi, BarcodeResponse, BarcodeResponseList, BorderDashStyle, CaptionParams, ChecksumValidation, CodabarChecksumMode, CodabarParams, CodabarSymbol, CodablockParams, Code128Emulation, Code128EncodeMode, Code128Params, Code16KParams, CodeLocation, Configuration, CopyFileRequest, CopyFolderRequest, CouponParams, CreateFolderRequest, CustomerInformationInterpretingType, DataBarParams, DataMatrixEccType, DataMatrixEncodeMode, DataMatrixParams, DataMatrixVersion, DecodeBarcodeType, DeleteFileRequest, DeleteFolderRequest, DiscUsage, DotCodeEncodeMode, DotCodeParams, DownloadFileRequest, ECIEncodings, EnableChecksum, EncodeBarcodeType, ErrorDetails, FileApi, FileVersion, FileVersions, FilesList, FilesUploadResult, FolderApi, FontMode, FontParams, FontStyle, GeneratorParams, GeneratorParamsList, GetBarcodeGenerateRequest, GetBarcodeRecognizeRequest, GetDiscUsageRequest, GetFileVersionsRequest, GetFilesListRequest, HanXinEncodeMode, HanXinErrorLevel, HanXinParams, HanXinVersion, ITF14BorderType, ITFParams, MacroCharacter, MaxiCodeEncodeMode, MaxiCodeMode, MaxiCodeParams, ModelError, MoveFileRequest, MoveFolderRequest, ObjectExist, ObjectExistsRequest, Padding, PatchCodeParams, PatchFormat, Pdf417CompactionMode, Pdf417ErrorLevel, Pdf417MacroTerminator, Pdf417Params, PostBarcodeRecognizeFromUrlOrContentRequest, PostGenerateMultipleRequest, PostalParams, PresetType, PutBarcodeGenerateFileRequest, PutBarcodeRecognizeFromBodyRequest, PutGenerateMultipleRequest, QREncodeMode, QREncodeType, QRErrorLevel, QRVersion, QrParams, ReaderParams, RegionPoint, ResultImageInfo, StorageApi, StorageExist, StorageExistsRequest, StorageFile, StructuredAppend, TextAlignment, UploadFileRequest };
|
|
3948
|
+
export { ApiError, ApiErrorResponse, ApiVersion, AustralianPostParams, AutoSizeMode, AvailableGraphicsUnit, AztecEncodeMode, AztecParams, AztecSymbolMode, BarcodeApi, BarcodeResponse, BarcodeResponseList, BorderDashStyle, CaptionParams, ChecksumValidation, CodabarChecksumMode, CodabarParams, CodabarSymbol, CodablockParams, Code128Emulation, Code128EncodeMode, Code128Params, Code16KParams, CodeLocation, Configuration, CopyFileRequest, CopyFolderRequest, CouponParams, CreateFolderRequest, CustomerInformationInterpretingType, DataBarParams, DataMatrixEccType, DataMatrixEncodeMode, DataMatrixParams, DataMatrixVersion, DecodeBarcodeType, DeleteFileRequest, DeleteFolderRequest, DiscUsage, DotCodeEncodeMode, DotCodeParams, DownloadFileRequest, ECIEncodings, EnableChecksum, EncodeBarcodeType, ErrorDetails, FileApi, FileVersion, FileVersions, FilesList, FilesUploadResult, FolderApi, FontMode, FontParams, FontStyle, GeneratorParams, GeneratorParamsList, GetBarcodeGenerateRequest, GetBarcodeRecognizeRequest, GetDiscUsageRequest, GetFileVersionsRequest, GetFilesListRequest, HanXinEncodeMode, HanXinErrorLevel, HanXinParams, HanXinVersion, ITF14BorderType, ITFParams, MacroCharacter, MaxiCodeEncodeMode, MaxiCodeMode, MaxiCodeParams, ModelError, MoveFileRequest, MoveFolderRequest, ObjectExist, ObjectExistsRequest, Padding, PatchCodeParams, PatchFormat, Pdf417CompactionMode, Pdf417ErrorLevel, Pdf417MacroTerminator, Pdf417Params, PostBarcodeRecognizeFromUrlOrContentRequest, PostGenerateMultipleRequest, PostalParams, PresetType, PutBarcodeGenerateFileRequest, PutBarcodeRecognizeFromBodyRequest, PutGenerateMultipleRequest, QREncodeMode, QREncodeType, QRErrorLevel, QRVersion, QrParams, ReaderParams, RegionPoint, ResultImageInfo, ScanBarcodeRequest, StorageApi, StorageExist, StorageExistsRequest, StorageFile, StructuredAppend, TextAlignment, UploadFileRequest };
|
|
3892
3949
|
//# sourceMappingURL=aspose-barcode-cloud-node.esm.js.map
|