aspose-barcode-cloud-node 23.8.0 → 23.9.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 +1 -1
- package/dist/Authentication.d.ts +1 -1
- package/dist/JWTAuth.d.ts +1 -1
- package/dist/aspose-barcode-cloud-node.cjs.development.js +333 -298
- 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 +338 -299
- package/dist/aspose-barcode-cloud-node.esm.js.map +1 -1
- package/dist/httpClient.d.ts +0 -1
- package/dist/models.d.ts +40 -13
- package/package.json +1 -1
|
@@ -4,14 +4,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
6
6
|
|
|
7
|
-
var http = _interopDefault(require('
|
|
7
|
+
var http = _interopDefault(require('http'));
|
|
8
|
+
var https = _interopDefault(require('https'));
|
|
8
9
|
|
|
9
10
|
class HttpClient {
|
|
10
11
|
requestAsync(options) {
|
|
11
|
-
//return this.doWithRequest(options);
|
|
12
|
-
return this.doWithHttp(options);
|
|
13
|
-
}
|
|
14
|
-
doWithHttp(options) {
|
|
15
12
|
const url = options.qs ? new URL(`?${new URLSearchParams(options.qs).toString()}`, options.uri) : new URL(options.uri);
|
|
16
13
|
const requestBody = this.buildRequestBody(options);
|
|
17
14
|
const requestOptions = {
|
|
@@ -41,7 +38,7 @@ class HttpClient {
|
|
|
41
38
|
}
|
|
42
39
|
doHttpRequest(url, requestBody, requestOptions, responseEncoding) {
|
|
43
40
|
return new Promise((resolve, reject) => {
|
|
44
|
-
|
|
41
|
+
function requestCallback(res) {
|
|
45
42
|
if (responseEncoding) {
|
|
46
43
|
// encoding = null for binary responses
|
|
47
44
|
res.setEncoding(responseEncoding);
|
|
@@ -70,7 +67,8 @@ class HttpClient {
|
|
|
70
67
|
});
|
|
71
68
|
}
|
|
72
69
|
});
|
|
73
|
-
}
|
|
70
|
+
}
|
|
71
|
+
const req = url.protocol === 'http:' ? http.request(url, requestOptions, requestCallback) : https.request(url, requestOptions, requestCallback);
|
|
74
72
|
req.on('error', error => {
|
|
75
73
|
reject({
|
|
76
74
|
response: null,
|
|
@@ -176,6 +174,11 @@ AustralianPostParams.attributeTypeMap = [{
|
|
|
176
174
|
AvailableGraphicsUnit["Inch"] = "Inch";
|
|
177
175
|
AvailableGraphicsUnit["Millimeter"] = "Millimeter";
|
|
178
176
|
})(exports.AvailableGraphicsUnit || (exports.AvailableGraphicsUnit = {}));
|
|
177
|
+
(function (AztecEncodeMode) {
|
|
178
|
+
AztecEncodeMode["Auto"] = "Auto";
|
|
179
|
+
AztecEncodeMode["Bytes"] = "Bytes";
|
|
180
|
+
AztecEncodeMode["ExtendedCodetext"] = "ExtendedCodetext";
|
|
181
|
+
})(exports.AztecEncodeMode || (exports.AztecEncodeMode = {}));
|
|
179
182
|
/**
|
|
180
183
|
* Aztec parameters.
|
|
181
184
|
*/
|
|
@@ -200,6 +203,22 @@ AztecParams.attributeTypeMap = [{
|
|
|
200
203
|
name: 'textEncoding',
|
|
201
204
|
baseName: 'TextEncoding',
|
|
202
205
|
type: 'string'
|
|
206
|
+
}, {
|
|
207
|
+
name: 'encodeMode',
|
|
208
|
+
baseName: 'EncodeMode',
|
|
209
|
+
type: 'AztecEncodeMode'
|
|
210
|
+
}, {
|
|
211
|
+
name: 'eCIEncoding',
|
|
212
|
+
baseName: 'ECIEncoding',
|
|
213
|
+
type: 'ECIEncodings'
|
|
214
|
+
}, {
|
|
215
|
+
name: 'isReaderInitialization',
|
|
216
|
+
baseName: 'IsReaderInitialization',
|
|
217
|
+
type: 'boolean'
|
|
218
|
+
}, {
|
|
219
|
+
name: 'layersCount',
|
|
220
|
+
baseName: 'LayersCount',
|
|
221
|
+
type: 'number'
|
|
203
222
|
}];
|
|
204
223
|
(function (AztecSymbolMode) {
|
|
205
224
|
AztecSymbolMode["Auto"] = "Auto";
|
|
@@ -663,6 +682,8 @@ DataMatrixParams.attributeTypeMap = [{
|
|
|
663
682
|
DecodeBarcodeType["HIBCQRPAS"] = "HIBCQRPAS";
|
|
664
683
|
DecodeBarcodeType["HanXin"] = "HanXin";
|
|
665
684
|
DecodeBarcodeType["GS1HanXin"] = "GS1HanXin";
|
|
685
|
+
DecodeBarcodeType["GS1Aztec"] = "GS1Aztec";
|
|
686
|
+
DecodeBarcodeType["GS1CompositeBar"] = "GS1CompositeBar";
|
|
666
687
|
})(exports.DecodeBarcodeType || (exports.DecodeBarcodeType = {}));
|
|
667
688
|
/**
|
|
668
689
|
* Class for disc space information.
|
|
@@ -824,6 +845,7 @@ DotCodeParams.attributeTypeMap = [{
|
|
|
824
845
|
EncodeBarcodeType["GS1DotCode"] = "GS1DotCode";
|
|
825
846
|
EncodeBarcodeType["HanXin"] = "HanXin";
|
|
826
847
|
EncodeBarcodeType["GS1HanXin"] = "GS1HanXin";
|
|
848
|
+
EncodeBarcodeType["GS1Aztec"] = "GS1Aztec";
|
|
827
849
|
})(exports.EncodeBarcodeType || (exports.EncodeBarcodeType = {}));
|
|
828
850
|
/**
|
|
829
851
|
* The error details
|
|
@@ -2392,6 +2414,7 @@ class ObjectSerializer {
|
|
|
2392
2414
|
let enumsMap = {
|
|
2393
2415
|
AutoSizeMode: exports.AutoSizeMode,
|
|
2394
2416
|
AvailableGraphicsUnit: exports.AvailableGraphicsUnit,
|
|
2417
|
+
AztecEncodeMode: exports.AztecEncodeMode,
|
|
2395
2418
|
AztecSymbolMode: exports.AztecSymbolMode,
|
|
2396
2419
|
BorderDashStyle: exports.BorderDashStyle,
|
|
2397
2420
|
ChecksumValidation: exports.ChecksumValidation,
|
|
@@ -2473,7 +2496,10 @@ let typeMap = {
|
|
|
2473
2496
|
};
|
|
2474
2497
|
class BarcodeApi {
|
|
2475
2498
|
constructor(configuration) {
|
|
2476
|
-
this.defaultHeaders = {
|
|
2499
|
+
this.defaultHeaders = {
|
|
2500
|
+
'x-aspose-client': 'nodejs sdk',
|
|
2501
|
+
'x-aspose-client-version': '23.9.0'
|
|
2502
|
+
};
|
|
2477
2503
|
this._configuration = configuration;
|
|
2478
2504
|
this._client = new HttpClient();
|
|
2479
2505
|
}
|
|
@@ -2484,8 +2510,8 @@ class BarcodeApi {
|
|
|
2484
2510
|
*/
|
|
2485
2511
|
async getBarcodeGenerate(request) {
|
|
2486
2512
|
const requestPath = this._configuration.getApiBaseUrl() + '/barcode/generate';
|
|
2487
|
-
let
|
|
2488
|
-
let
|
|
2513
|
+
let queryParameters = {};
|
|
2514
|
+
let headerParams = Object.assign({}, this.defaultHeaders);
|
|
2489
2515
|
// verify required parameter 'request.type' is not null or undefined
|
|
2490
2516
|
if (request.type == null) {
|
|
2491
2517
|
throw new Error('Required parameter request.type was null or undefined when calling getBarcodeGenerate.');
|
|
@@ -2495,121 +2521,121 @@ class BarcodeApi {
|
|
|
2495
2521
|
throw new Error('Required parameter request.text was null or undefined when calling getBarcodeGenerate.');
|
|
2496
2522
|
}
|
|
2497
2523
|
if (request.type != null) {
|
|
2498
|
-
|
|
2524
|
+
queryParameters['Type'] = ObjectSerializer.serialize(request.type, "'Codabar' | 'Code11' | 'Code39Standard' | 'Code39Extended' | 'Code93Standard' | 'Code93Extended' | 'Code128' | 'GS1Code128' | 'EAN8' | 'EAN13' | 'EAN14' | 'SCC14' | 'SSCC18' | 'UPCA' | 'UPCE' | 'ISBN' | 'ISSN' | 'ISMN' | 'Standard2of5' | 'Interleaved2of5' | 'Matrix2of5' | 'ItalianPost25' | 'IATA2of5' | 'ITF14' | 'ITF6' | 'MSI' | 'VIN' | 'DeutschePostIdentcode' | 'DeutschePostLeitcode' | 'OPC' | 'PZN' | 'Code16K' | 'Pharmacode' | 'DataMatrix' | 'QR' | 'Aztec' | 'Pdf417' | 'MacroPdf417' | 'AustraliaPost' | 'Postnet' | 'Planet' | 'OneCode' | 'RM4SCC' | 'DatabarOmniDirectional' | 'DatabarTruncated' | 'DatabarLimited' | 'DatabarExpanded' | 'SingaporePost' | 'GS1DataMatrix' | 'AustralianPosteParcel' | 'SwissPostParcel' | 'PatchCode' | 'DatabarExpandedStacked' | 'DatabarStacked' | 'DatabarStackedOmniDirectional' | 'MicroPdf417' | 'GS1QR' | 'MaxiCode' | 'Code32' | 'DataLogic2of5' | 'DotCode' | 'DutchKIX' | 'UpcaGs1Code128Coupon' | 'UpcaGs1DatabarCoupon' | 'CodablockF' | 'GS1CodablockF' | 'Mailmark' | 'GS1DotCode' | 'HanXin' | 'GS1HanXin' | 'GS1Aztec'");
|
|
2499
2525
|
}
|
|
2500
2526
|
if (request.text != null) {
|
|
2501
|
-
|
|
2527
|
+
queryParameters['Text'] = ObjectSerializer.serialize(request.text, 'string');
|
|
2502
2528
|
}
|
|
2503
2529
|
if (request.twoDDisplayText != null) {
|
|
2504
|
-
|
|
2530
|
+
queryParameters['TwoDDisplayText'] = ObjectSerializer.serialize(request.twoDDisplayText, 'string');
|
|
2505
2531
|
}
|
|
2506
2532
|
if (request.textLocation != null) {
|
|
2507
|
-
|
|
2533
|
+
queryParameters['TextLocation'] = ObjectSerializer.serialize(request.textLocation, "'Below' | 'Above' | 'None'");
|
|
2508
2534
|
}
|
|
2509
2535
|
if (request.textAlignment != null) {
|
|
2510
|
-
|
|
2536
|
+
queryParameters['TextAlignment'] = ObjectSerializer.serialize(request.textAlignment, "'Left' | 'Center' | 'Right'");
|
|
2511
2537
|
}
|
|
2512
2538
|
if (request.textColor != null) {
|
|
2513
|
-
|
|
2539
|
+
queryParameters['TextColor'] = ObjectSerializer.serialize(request.textColor, 'string');
|
|
2514
2540
|
}
|
|
2515
2541
|
if (request.fontSizeMode != null) {
|
|
2516
|
-
|
|
2542
|
+
queryParameters['FontSizeMode'] = ObjectSerializer.serialize(request.fontSizeMode, "'Auto' | 'Manual'");
|
|
2517
2543
|
}
|
|
2518
2544
|
if (request.noWrap != null) {
|
|
2519
|
-
|
|
2545
|
+
queryParameters['NoWrap'] = ObjectSerializer.serialize(request.noWrap, 'boolean');
|
|
2520
2546
|
}
|
|
2521
2547
|
if (request.resolution != null) {
|
|
2522
|
-
|
|
2548
|
+
queryParameters['Resolution'] = ObjectSerializer.serialize(request.resolution, 'number');
|
|
2523
2549
|
}
|
|
2524
2550
|
if (request.resolutionX != null) {
|
|
2525
|
-
|
|
2551
|
+
queryParameters['ResolutionX'] = ObjectSerializer.serialize(request.resolutionX, 'number');
|
|
2526
2552
|
}
|
|
2527
2553
|
if (request.resolutionY != null) {
|
|
2528
|
-
|
|
2554
|
+
queryParameters['ResolutionY'] = ObjectSerializer.serialize(request.resolutionY, 'number');
|
|
2529
2555
|
}
|
|
2530
2556
|
if (request.dimensionX != null) {
|
|
2531
|
-
|
|
2557
|
+
queryParameters['DimensionX'] = ObjectSerializer.serialize(request.dimensionX, 'number');
|
|
2532
2558
|
}
|
|
2533
2559
|
if (request.textSpace != null) {
|
|
2534
|
-
|
|
2560
|
+
queryParameters['TextSpace'] = ObjectSerializer.serialize(request.textSpace, 'number');
|
|
2535
2561
|
}
|
|
2536
2562
|
if (request.units != null) {
|
|
2537
|
-
|
|
2563
|
+
queryParameters['Units'] = ObjectSerializer.serialize(request.units, "'Pixel' | 'Point' | 'Inch' | 'Millimeter'");
|
|
2538
2564
|
}
|
|
2539
2565
|
if (request.sizeMode != null) {
|
|
2540
|
-
|
|
2566
|
+
queryParameters['SizeMode'] = ObjectSerializer.serialize(request.sizeMode, "'None' | 'Nearest' | 'Interpolation'");
|
|
2541
2567
|
}
|
|
2542
2568
|
if (request.barHeight != null) {
|
|
2543
|
-
|
|
2569
|
+
queryParameters['BarHeight'] = ObjectSerializer.serialize(request.barHeight, 'number');
|
|
2544
2570
|
}
|
|
2545
2571
|
if (request.imageHeight != null) {
|
|
2546
|
-
|
|
2572
|
+
queryParameters['ImageHeight'] = ObjectSerializer.serialize(request.imageHeight, 'number');
|
|
2547
2573
|
}
|
|
2548
2574
|
if (request.imageWidth != null) {
|
|
2549
|
-
|
|
2575
|
+
queryParameters['ImageWidth'] = ObjectSerializer.serialize(request.imageWidth, 'number');
|
|
2550
2576
|
}
|
|
2551
2577
|
if (request.rotationAngle != null) {
|
|
2552
|
-
|
|
2578
|
+
queryParameters['RotationAngle'] = ObjectSerializer.serialize(request.rotationAngle, 'number');
|
|
2553
2579
|
}
|
|
2554
2580
|
if (request.backColor != null) {
|
|
2555
|
-
|
|
2581
|
+
queryParameters['BackColor'] = ObjectSerializer.serialize(request.backColor, 'string');
|
|
2556
2582
|
}
|
|
2557
2583
|
if (request.barColor != null) {
|
|
2558
|
-
|
|
2584
|
+
queryParameters['BarColor'] = ObjectSerializer.serialize(request.barColor, 'string');
|
|
2559
2585
|
}
|
|
2560
2586
|
if (request.borderColor != null) {
|
|
2561
|
-
|
|
2587
|
+
queryParameters['BorderColor'] = ObjectSerializer.serialize(request.borderColor, 'string');
|
|
2562
2588
|
}
|
|
2563
2589
|
if (request.borderWidth != null) {
|
|
2564
|
-
|
|
2590
|
+
queryParameters['BorderWidth'] = ObjectSerializer.serialize(request.borderWidth, 'number');
|
|
2565
2591
|
}
|
|
2566
2592
|
if (request.borderDashStyle != null) {
|
|
2567
|
-
|
|
2593
|
+
queryParameters['BorderDashStyle'] = ObjectSerializer.serialize(request.borderDashStyle, "'Solid' | 'Dash' | 'Dot' | 'DashDot' | 'DashDotDot'");
|
|
2568
2594
|
}
|
|
2569
2595
|
if (request.borderVisible != null) {
|
|
2570
|
-
|
|
2596
|
+
queryParameters['BorderVisible'] = ObjectSerializer.serialize(request.borderVisible, 'boolean');
|
|
2571
2597
|
}
|
|
2572
2598
|
if (request.enableChecksum != null) {
|
|
2573
|
-
|
|
2599
|
+
queryParameters['EnableChecksum'] = ObjectSerializer.serialize(request.enableChecksum, "'Default' | 'Yes' | 'No'");
|
|
2574
2600
|
}
|
|
2575
2601
|
if (request.enableEscape != null) {
|
|
2576
|
-
|
|
2602
|
+
queryParameters['EnableEscape'] = ObjectSerializer.serialize(request.enableEscape, 'boolean');
|
|
2577
2603
|
}
|
|
2578
2604
|
if (request.filledBars != null) {
|
|
2579
|
-
|
|
2605
|
+
queryParameters['FilledBars'] = ObjectSerializer.serialize(request.filledBars, 'boolean');
|
|
2580
2606
|
}
|
|
2581
2607
|
if (request.alwaysShowChecksum != null) {
|
|
2582
|
-
|
|
2608
|
+
queryParameters['AlwaysShowChecksum'] = ObjectSerializer.serialize(request.alwaysShowChecksum, 'boolean');
|
|
2583
2609
|
}
|
|
2584
2610
|
if (request.wideNarrowRatio != null) {
|
|
2585
|
-
|
|
2611
|
+
queryParameters['WideNarrowRatio'] = ObjectSerializer.serialize(request.wideNarrowRatio, 'number');
|
|
2586
2612
|
}
|
|
2587
2613
|
if (request.validateText != null) {
|
|
2588
|
-
|
|
2614
|
+
queryParameters['ValidateText'] = ObjectSerializer.serialize(request.validateText, 'boolean');
|
|
2589
2615
|
}
|
|
2590
2616
|
if (request.supplementData != null) {
|
|
2591
|
-
|
|
2617
|
+
queryParameters['SupplementData'] = ObjectSerializer.serialize(request.supplementData, 'string');
|
|
2592
2618
|
}
|
|
2593
2619
|
if (request.supplementSpace != null) {
|
|
2594
|
-
|
|
2620
|
+
queryParameters['SupplementSpace'] = ObjectSerializer.serialize(request.supplementSpace, 'number');
|
|
2595
2621
|
}
|
|
2596
2622
|
if (request.barWidthReduction != null) {
|
|
2597
|
-
|
|
2623
|
+
queryParameters['BarWidthReduction'] = ObjectSerializer.serialize(request.barWidthReduction, 'number');
|
|
2598
2624
|
}
|
|
2599
2625
|
if (request.useAntiAlias != null) {
|
|
2600
|
-
|
|
2626
|
+
queryParameters['UseAntiAlias'] = ObjectSerializer.serialize(request.useAntiAlias, 'boolean');
|
|
2601
2627
|
}
|
|
2602
2628
|
if (request.format != null) {
|
|
2603
|
-
|
|
2629
|
+
queryParameters['format'] = ObjectSerializer.serialize(request.format, 'string');
|
|
2604
2630
|
}
|
|
2605
2631
|
let requestOptions = {
|
|
2606
2632
|
method: 'GET',
|
|
2607
|
-
qs:
|
|
2608
|
-
headers:
|
|
2633
|
+
qs: queryParameters,
|
|
2634
|
+
headers: headerParams,
|
|
2609
2635
|
uri: requestPath,
|
|
2610
2636
|
encoding: null
|
|
2611
2637
|
};
|
|
2612
|
-
await this._configuration.authentication.
|
|
2638
|
+
await this._configuration.authentication.applyToRequestAsync(requestOptions);
|
|
2613
2639
|
const result = await this._client.requestAsync(requestOptions);
|
|
2614
2640
|
return {
|
|
2615
2641
|
response: result.response,
|
|
@@ -2623,130 +2649,130 @@ class BarcodeApi {
|
|
|
2623
2649
|
*/
|
|
2624
2650
|
async getBarcodeRecognize(request) {
|
|
2625
2651
|
const requestPath = this._configuration.getApiBaseUrl() + '/barcode/{name}/recognize'.replace('{' + 'name' + '}', String(request.name));
|
|
2626
|
-
let
|
|
2627
|
-
let
|
|
2652
|
+
let queryParameters = {};
|
|
2653
|
+
let headerParams = Object.assign({}, this.defaultHeaders);
|
|
2628
2654
|
// verify required parameter 'request.name' is not null or undefined
|
|
2629
2655
|
if (request.name == null) {
|
|
2630
2656
|
throw new Error('Required parameter request.name was null or undefined when calling getBarcodeRecognize.');
|
|
2631
2657
|
}
|
|
2632
2658
|
if (request.type != null) {
|
|
2633
|
-
|
|
2659
|
+
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'");
|
|
2634
2660
|
}
|
|
2635
2661
|
if (request.checksumValidation != null) {
|
|
2636
|
-
|
|
2662
|
+
queryParameters['ChecksumValidation'] = ObjectSerializer.serialize(request.checksumValidation, "'Default' | 'On' | 'Off'");
|
|
2637
2663
|
}
|
|
2638
2664
|
if (request.detectEncoding != null) {
|
|
2639
|
-
|
|
2665
|
+
queryParameters['DetectEncoding'] = ObjectSerializer.serialize(request.detectEncoding, 'boolean');
|
|
2640
2666
|
}
|
|
2641
2667
|
if (request.preset != null) {
|
|
2642
|
-
|
|
2668
|
+
queryParameters['Preset'] = ObjectSerializer.serialize(request.preset, "'HighPerformance' | 'NormalQuality' | 'HighQualityDetection' | 'MaxQualityDetection' | 'HighQuality' | 'MaxBarCodes'");
|
|
2643
2669
|
}
|
|
2644
2670
|
if (request.rectX != null) {
|
|
2645
|
-
|
|
2671
|
+
queryParameters['RectX'] = ObjectSerializer.serialize(request.rectX, 'number');
|
|
2646
2672
|
}
|
|
2647
2673
|
if (request.rectY != null) {
|
|
2648
|
-
|
|
2674
|
+
queryParameters['RectY'] = ObjectSerializer.serialize(request.rectY, 'number');
|
|
2649
2675
|
}
|
|
2650
2676
|
if (request.rectWidth != null) {
|
|
2651
|
-
|
|
2677
|
+
queryParameters['RectWidth'] = ObjectSerializer.serialize(request.rectWidth, 'number');
|
|
2652
2678
|
}
|
|
2653
2679
|
if (request.rectHeight != null) {
|
|
2654
|
-
|
|
2680
|
+
queryParameters['RectHeight'] = ObjectSerializer.serialize(request.rectHeight, 'number');
|
|
2655
2681
|
}
|
|
2656
2682
|
if (request.stripFNC != null) {
|
|
2657
|
-
|
|
2683
|
+
queryParameters['StripFNC'] = ObjectSerializer.serialize(request.stripFNC, 'boolean');
|
|
2658
2684
|
}
|
|
2659
2685
|
if (request.timeout != null) {
|
|
2660
|
-
|
|
2686
|
+
queryParameters['Timeout'] = ObjectSerializer.serialize(request.timeout, 'number');
|
|
2661
2687
|
}
|
|
2662
2688
|
if (request.medianSmoothingWindowSize != null) {
|
|
2663
|
-
|
|
2689
|
+
queryParameters['MedianSmoothingWindowSize'] = ObjectSerializer.serialize(request.medianSmoothingWindowSize, 'number');
|
|
2664
2690
|
}
|
|
2665
2691
|
if (request.allowMedianSmoothing != null) {
|
|
2666
|
-
|
|
2692
|
+
queryParameters['AllowMedianSmoothing'] = ObjectSerializer.serialize(request.allowMedianSmoothing, 'boolean');
|
|
2667
2693
|
}
|
|
2668
2694
|
if (request.allowComplexBackground != null) {
|
|
2669
|
-
|
|
2695
|
+
queryParameters['AllowComplexBackground'] = ObjectSerializer.serialize(request.allowComplexBackground, 'boolean');
|
|
2670
2696
|
}
|
|
2671
2697
|
if (request.allowDatamatrixIndustrialBarcodes != null) {
|
|
2672
|
-
|
|
2698
|
+
queryParameters['AllowDatamatrixIndustrialBarcodes'] = ObjectSerializer.serialize(request.allowDatamatrixIndustrialBarcodes, 'boolean');
|
|
2673
2699
|
}
|
|
2674
2700
|
if (request.allowDecreasedImage != null) {
|
|
2675
|
-
|
|
2701
|
+
queryParameters['AllowDecreasedImage'] = ObjectSerializer.serialize(request.allowDecreasedImage, 'boolean');
|
|
2676
2702
|
}
|
|
2677
2703
|
if (request.allowDetectScanGap != null) {
|
|
2678
|
-
|
|
2704
|
+
queryParameters['AllowDetectScanGap'] = ObjectSerializer.serialize(request.allowDetectScanGap, 'boolean');
|
|
2679
2705
|
}
|
|
2680
2706
|
if (request.allowIncorrectBarcodes != null) {
|
|
2681
|
-
|
|
2707
|
+
queryParameters['AllowIncorrectBarcodes'] = ObjectSerializer.serialize(request.allowIncorrectBarcodes, 'boolean');
|
|
2682
2708
|
}
|
|
2683
2709
|
if (request.allowInvertImage != null) {
|
|
2684
|
-
|
|
2710
|
+
queryParameters['AllowInvertImage'] = ObjectSerializer.serialize(request.allowInvertImage, 'boolean');
|
|
2685
2711
|
}
|
|
2686
2712
|
if (request.allowMicroWhiteSpotsRemoving != null) {
|
|
2687
|
-
|
|
2713
|
+
queryParameters['AllowMicroWhiteSpotsRemoving'] = ObjectSerializer.serialize(request.allowMicroWhiteSpotsRemoving, 'boolean');
|
|
2688
2714
|
}
|
|
2689
2715
|
if (request.allowOneDFastBarcodesDetector != null) {
|
|
2690
|
-
|
|
2716
|
+
queryParameters['AllowOneDFastBarcodesDetector'] = ObjectSerializer.serialize(request.allowOneDFastBarcodesDetector, 'boolean');
|
|
2691
2717
|
}
|
|
2692
2718
|
if (request.allowOneDWipedBarsRestoration != null) {
|
|
2693
|
-
|
|
2719
|
+
queryParameters['AllowOneDWipedBarsRestoration'] = ObjectSerializer.serialize(request.allowOneDWipedBarsRestoration, 'boolean');
|
|
2694
2720
|
}
|
|
2695
2721
|
if (request.allowQRMicroQrRestoration != null) {
|
|
2696
|
-
|
|
2722
|
+
queryParameters['AllowQRMicroQrRestoration'] = ObjectSerializer.serialize(request.allowQRMicroQrRestoration, 'boolean');
|
|
2697
2723
|
}
|
|
2698
2724
|
if (request.allowRegularImage != null) {
|
|
2699
|
-
|
|
2725
|
+
queryParameters['AllowRegularImage'] = ObjectSerializer.serialize(request.allowRegularImage, 'boolean');
|
|
2700
2726
|
}
|
|
2701
2727
|
if (request.allowSaltAndPepperFiltering != null) {
|
|
2702
|
-
|
|
2728
|
+
queryParameters['AllowSaltAndPepperFiltering'] = ObjectSerializer.serialize(request.allowSaltAndPepperFiltering, 'boolean');
|
|
2703
2729
|
}
|
|
2704
2730
|
if (request.allowWhiteSpotsRemoving != null) {
|
|
2705
|
-
|
|
2731
|
+
queryParameters['AllowWhiteSpotsRemoving'] = ObjectSerializer.serialize(request.allowWhiteSpotsRemoving, 'boolean');
|
|
2706
2732
|
}
|
|
2707
2733
|
if (request.checkMore1DVariants != null) {
|
|
2708
|
-
|
|
2734
|
+
queryParameters['CheckMore1DVariants'] = ObjectSerializer.serialize(request.checkMore1DVariants, 'boolean');
|
|
2709
2735
|
}
|
|
2710
2736
|
if (request.fastScanOnly != null) {
|
|
2711
|
-
|
|
2737
|
+
queryParameters['FastScanOnly'] = ObjectSerializer.serialize(request.fastScanOnly, 'boolean');
|
|
2712
2738
|
}
|
|
2713
2739
|
if (request.allowAdditionalRestorations != null) {
|
|
2714
|
-
|
|
2740
|
+
queryParameters['AllowAdditionalRestorations'] = ObjectSerializer.serialize(request.allowAdditionalRestorations, 'boolean');
|
|
2715
2741
|
}
|
|
2716
2742
|
if (request.regionLikelihoodThresholdPercent != null) {
|
|
2717
|
-
|
|
2743
|
+
queryParameters['RegionLikelihoodThresholdPercent'] = ObjectSerializer.serialize(request.regionLikelihoodThresholdPercent, 'number');
|
|
2718
2744
|
}
|
|
2719
2745
|
if (request.scanWindowSizes != null) {
|
|
2720
|
-
|
|
2746
|
+
queryParameters['ScanWindowSizes'] = ObjectSerializer.serialize(request.scanWindowSizes, 'Array<number>');
|
|
2721
2747
|
}
|
|
2722
2748
|
if (request.similarity != null) {
|
|
2723
|
-
|
|
2749
|
+
queryParameters['Similarity'] = ObjectSerializer.serialize(request.similarity, 'number');
|
|
2724
2750
|
}
|
|
2725
2751
|
if (request.skipDiagonalSearch != null) {
|
|
2726
|
-
|
|
2752
|
+
queryParameters['SkipDiagonalSearch'] = ObjectSerializer.serialize(request.skipDiagonalSearch, 'boolean');
|
|
2727
2753
|
}
|
|
2728
2754
|
if (request.readTinyBarcodes != null) {
|
|
2729
|
-
|
|
2755
|
+
queryParameters['ReadTinyBarcodes'] = ObjectSerializer.serialize(request.readTinyBarcodes, 'boolean');
|
|
2730
2756
|
}
|
|
2731
2757
|
if (request.australianPostEncodingTable != null) {
|
|
2732
|
-
|
|
2758
|
+
queryParameters['AustralianPostEncodingTable'] = ObjectSerializer.serialize(request.australianPostEncodingTable, "'CTable' | 'NTable' | 'Other'");
|
|
2733
2759
|
}
|
|
2734
2760
|
if (request.ignoreEndingFillingPatternsForCTable != null) {
|
|
2735
|
-
|
|
2761
|
+
queryParameters['IgnoreEndingFillingPatternsForCTable'] = ObjectSerializer.serialize(request.ignoreEndingFillingPatternsForCTable, 'boolean');
|
|
2736
2762
|
}
|
|
2737
2763
|
if (request.storage != null) {
|
|
2738
|
-
|
|
2764
|
+
queryParameters['storage'] = ObjectSerializer.serialize(request.storage, 'string');
|
|
2739
2765
|
}
|
|
2740
2766
|
if (request.folder != null) {
|
|
2741
|
-
|
|
2767
|
+
queryParameters['folder'] = ObjectSerializer.serialize(request.folder, 'string');
|
|
2742
2768
|
}
|
|
2743
2769
|
let requestOptions = {
|
|
2744
2770
|
method: 'GET',
|
|
2745
|
-
qs:
|
|
2746
|
-
headers:
|
|
2771
|
+
qs: queryParameters,
|
|
2772
|
+
headers: headerParams,
|
|
2747
2773
|
uri: requestPath
|
|
2748
2774
|
};
|
|
2749
|
-
await this._configuration.authentication.
|
|
2775
|
+
await this._configuration.authentication.applyToRequestAsync(requestOptions);
|
|
2750
2776
|
const result = await this._client.requestAsync(requestOptions);
|
|
2751
2777
|
return {
|
|
2752
2778
|
response: result.response,
|
|
@@ -2760,124 +2786,124 @@ class BarcodeApi {
|
|
|
2760
2786
|
*/
|
|
2761
2787
|
async postBarcodeRecognizeFromUrlOrContent(request) {
|
|
2762
2788
|
const requestPath = this._configuration.getApiBaseUrl() + '/barcode/recognize';
|
|
2763
|
-
let
|
|
2764
|
-
let
|
|
2789
|
+
let queryParameters = {};
|
|
2790
|
+
let headerParams = Object.assign({}, this.defaultHeaders);
|
|
2765
2791
|
if (request.type != null) {
|
|
2766
|
-
|
|
2792
|
+
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'");
|
|
2767
2793
|
}
|
|
2768
2794
|
if (request.checksumValidation != null) {
|
|
2769
|
-
|
|
2795
|
+
queryParameters['ChecksumValidation'] = ObjectSerializer.serialize(request.checksumValidation, "'Default' | 'On' | 'Off'");
|
|
2770
2796
|
}
|
|
2771
2797
|
if (request.detectEncoding != null) {
|
|
2772
|
-
|
|
2798
|
+
queryParameters['DetectEncoding'] = ObjectSerializer.serialize(request.detectEncoding, 'boolean');
|
|
2773
2799
|
}
|
|
2774
2800
|
if (request.preset != null) {
|
|
2775
|
-
|
|
2801
|
+
queryParameters['Preset'] = ObjectSerializer.serialize(request.preset, "'HighPerformance' | 'NormalQuality' | 'HighQualityDetection' | 'MaxQualityDetection' | 'HighQuality' | 'MaxBarCodes'");
|
|
2776
2802
|
}
|
|
2777
2803
|
if (request.rectX != null) {
|
|
2778
|
-
|
|
2804
|
+
queryParameters['RectX'] = ObjectSerializer.serialize(request.rectX, 'number');
|
|
2779
2805
|
}
|
|
2780
2806
|
if (request.rectY != null) {
|
|
2781
|
-
|
|
2807
|
+
queryParameters['RectY'] = ObjectSerializer.serialize(request.rectY, 'number');
|
|
2782
2808
|
}
|
|
2783
2809
|
if (request.rectWidth != null) {
|
|
2784
|
-
|
|
2810
|
+
queryParameters['RectWidth'] = ObjectSerializer.serialize(request.rectWidth, 'number');
|
|
2785
2811
|
}
|
|
2786
2812
|
if (request.rectHeight != null) {
|
|
2787
|
-
|
|
2813
|
+
queryParameters['RectHeight'] = ObjectSerializer.serialize(request.rectHeight, 'number');
|
|
2788
2814
|
}
|
|
2789
2815
|
if (request.stripFNC != null) {
|
|
2790
|
-
|
|
2816
|
+
queryParameters['StripFNC'] = ObjectSerializer.serialize(request.stripFNC, 'boolean');
|
|
2791
2817
|
}
|
|
2792
2818
|
if (request.timeout != null) {
|
|
2793
|
-
|
|
2819
|
+
queryParameters['Timeout'] = ObjectSerializer.serialize(request.timeout, 'number');
|
|
2794
2820
|
}
|
|
2795
2821
|
if (request.medianSmoothingWindowSize != null) {
|
|
2796
|
-
|
|
2822
|
+
queryParameters['MedianSmoothingWindowSize'] = ObjectSerializer.serialize(request.medianSmoothingWindowSize, 'number');
|
|
2797
2823
|
}
|
|
2798
2824
|
if (request.allowMedianSmoothing != null) {
|
|
2799
|
-
|
|
2825
|
+
queryParameters['AllowMedianSmoothing'] = ObjectSerializer.serialize(request.allowMedianSmoothing, 'boolean');
|
|
2800
2826
|
}
|
|
2801
2827
|
if (request.allowComplexBackground != null) {
|
|
2802
|
-
|
|
2828
|
+
queryParameters['AllowComplexBackground'] = ObjectSerializer.serialize(request.allowComplexBackground, 'boolean');
|
|
2803
2829
|
}
|
|
2804
2830
|
if (request.allowDatamatrixIndustrialBarcodes != null) {
|
|
2805
|
-
|
|
2831
|
+
queryParameters['AllowDatamatrixIndustrialBarcodes'] = ObjectSerializer.serialize(request.allowDatamatrixIndustrialBarcodes, 'boolean');
|
|
2806
2832
|
}
|
|
2807
2833
|
if (request.allowDecreasedImage != null) {
|
|
2808
|
-
|
|
2834
|
+
queryParameters['AllowDecreasedImage'] = ObjectSerializer.serialize(request.allowDecreasedImage, 'boolean');
|
|
2809
2835
|
}
|
|
2810
2836
|
if (request.allowDetectScanGap != null) {
|
|
2811
|
-
|
|
2837
|
+
queryParameters['AllowDetectScanGap'] = ObjectSerializer.serialize(request.allowDetectScanGap, 'boolean');
|
|
2812
2838
|
}
|
|
2813
2839
|
if (request.allowIncorrectBarcodes != null) {
|
|
2814
|
-
|
|
2840
|
+
queryParameters['AllowIncorrectBarcodes'] = ObjectSerializer.serialize(request.allowIncorrectBarcodes, 'boolean');
|
|
2815
2841
|
}
|
|
2816
2842
|
if (request.allowInvertImage != null) {
|
|
2817
|
-
|
|
2843
|
+
queryParameters['AllowInvertImage'] = ObjectSerializer.serialize(request.allowInvertImage, 'boolean');
|
|
2818
2844
|
}
|
|
2819
2845
|
if (request.allowMicroWhiteSpotsRemoving != null) {
|
|
2820
|
-
|
|
2846
|
+
queryParameters['AllowMicroWhiteSpotsRemoving'] = ObjectSerializer.serialize(request.allowMicroWhiteSpotsRemoving, 'boolean');
|
|
2821
2847
|
}
|
|
2822
2848
|
if (request.allowOneDFastBarcodesDetector != null) {
|
|
2823
|
-
|
|
2849
|
+
queryParameters['AllowOneDFastBarcodesDetector'] = ObjectSerializer.serialize(request.allowOneDFastBarcodesDetector, 'boolean');
|
|
2824
2850
|
}
|
|
2825
2851
|
if (request.allowOneDWipedBarsRestoration != null) {
|
|
2826
|
-
|
|
2852
|
+
queryParameters['AllowOneDWipedBarsRestoration'] = ObjectSerializer.serialize(request.allowOneDWipedBarsRestoration, 'boolean');
|
|
2827
2853
|
}
|
|
2828
2854
|
if (request.allowQRMicroQrRestoration != null) {
|
|
2829
|
-
|
|
2855
|
+
queryParameters['AllowQRMicroQrRestoration'] = ObjectSerializer.serialize(request.allowQRMicroQrRestoration, 'boolean');
|
|
2830
2856
|
}
|
|
2831
2857
|
if (request.allowRegularImage != null) {
|
|
2832
|
-
|
|
2858
|
+
queryParameters['AllowRegularImage'] = ObjectSerializer.serialize(request.allowRegularImage, 'boolean');
|
|
2833
2859
|
}
|
|
2834
2860
|
if (request.allowSaltAndPepperFiltering != null) {
|
|
2835
|
-
|
|
2861
|
+
queryParameters['AllowSaltAndPepperFiltering'] = ObjectSerializer.serialize(request.allowSaltAndPepperFiltering, 'boolean');
|
|
2836
2862
|
}
|
|
2837
2863
|
if (request.allowWhiteSpotsRemoving != null) {
|
|
2838
|
-
|
|
2864
|
+
queryParameters['AllowWhiteSpotsRemoving'] = ObjectSerializer.serialize(request.allowWhiteSpotsRemoving, 'boolean');
|
|
2839
2865
|
}
|
|
2840
2866
|
if (request.checkMore1DVariants != null) {
|
|
2841
|
-
|
|
2867
|
+
queryParameters['CheckMore1DVariants'] = ObjectSerializer.serialize(request.checkMore1DVariants, 'boolean');
|
|
2842
2868
|
}
|
|
2843
2869
|
if (request.fastScanOnly != null) {
|
|
2844
|
-
|
|
2870
|
+
queryParameters['FastScanOnly'] = ObjectSerializer.serialize(request.fastScanOnly, 'boolean');
|
|
2845
2871
|
}
|
|
2846
2872
|
if (request.allowAdditionalRestorations != null) {
|
|
2847
|
-
|
|
2873
|
+
queryParameters['AllowAdditionalRestorations'] = ObjectSerializer.serialize(request.allowAdditionalRestorations, 'boolean');
|
|
2848
2874
|
}
|
|
2849
2875
|
if (request.regionLikelihoodThresholdPercent != null) {
|
|
2850
|
-
|
|
2876
|
+
queryParameters['RegionLikelihoodThresholdPercent'] = ObjectSerializer.serialize(request.regionLikelihoodThresholdPercent, 'number');
|
|
2851
2877
|
}
|
|
2852
2878
|
if (request.scanWindowSizes != null) {
|
|
2853
|
-
|
|
2879
|
+
queryParameters['ScanWindowSizes'] = ObjectSerializer.serialize(request.scanWindowSizes, 'Array<number>');
|
|
2854
2880
|
}
|
|
2855
2881
|
if (request.similarity != null) {
|
|
2856
|
-
|
|
2882
|
+
queryParameters['Similarity'] = ObjectSerializer.serialize(request.similarity, 'number');
|
|
2857
2883
|
}
|
|
2858
2884
|
if (request.skipDiagonalSearch != null) {
|
|
2859
|
-
|
|
2885
|
+
queryParameters['SkipDiagonalSearch'] = ObjectSerializer.serialize(request.skipDiagonalSearch, 'boolean');
|
|
2860
2886
|
}
|
|
2861
2887
|
if (request.readTinyBarcodes != null) {
|
|
2862
|
-
|
|
2888
|
+
queryParameters['ReadTinyBarcodes'] = ObjectSerializer.serialize(request.readTinyBarcodes, 'boolean');
|
|
2863
2889
|
}
|
|
2864
2890
|
if (request.australianPostEncodingTable != null) {
|
|
2865
|
-
|
|
2891
|
+
queryParameters['AustralianPostEncodingTable'] = ObjectSerializer.serialize(request.australianPostEncodingTable, "'CTable' | 'NTable' | 'Other'");
|
|
2866
2892
|
}
|
|
2867
2893
|
if (request.ignoreEndingFillingPatternsForCTable != null) {
|
|
2868
|
-
|
|
2894
|
+
queryParameters['IgnoreEndingFillingPatternsForCTable'] = ObjectSerializer.serialize(request.ignoreEndingFillingPatternsForCTable, 'boolean');
|
|
2869
2895
|
}
|
|
2870
2896
|
if (request.url != null) {
|
|
2871
|
-
|
|
2897
|
+
queryParameters['url'] = ObjectSerializer.serialize(request.url, 'string');
|
|
2872
2898
|
}
|
|
2873
2899
|
let requestOptions = {
|
|
2874
2900
|
method: 'POST',
|
|
2875
|
-
qs:
|
|
2876
|
-
headers:
|
|
2901
|
+
qs: queryParameters,
|
|
2902
|
+
headers: headerParams,
|
|
2877
2903
|
uri: requestPath,
|
|
2878
2904
|
body: request.image
|
|
2879
2905
|
};
|
|
2880
|
-
await this._configuration.authentication.
|
|
2906
|
+
await this._configuration.authentication.applyToRequestAsync(requestOptions);
|
|
2881
2907
|
const result = await this._client.requestAsync(requestOptions);
|
|
2882
2908
|
return {
|
|
2883
2909
|
response: result.response,
|
|
@@ -2891,25 +2917,25 @@ class BarcodeApi {
|
|
|
2891
2917
|
*/
|
|
2892
2918
|
async postGenerateMultiple(request) {
|
|
2893
2919
|
const requestPath = this._configuration.getApiBaseUrl() + '/barcode/generateMultiple';
|
|
2894
|
-
let
|
|
2895
|
-
let
|
|
2920
|
+
let queryParameters = {};
|
|
2921
|
+
let headerParams = Object.assign({}, this.defaultHeaders);
|
|
2896
2922
|
// verify required parameter 'request.generatorParamsList' is not null or undefined
|
|
2897
2923
|
if (request.generatorParamsList == null) {
|
|
2898
2924
|
throw new Error('Required parameter request.generatorParamsList was null or undefined when calling postGenerateMultiple.');
|
|
2899
2925
|
}
|
|
2900
2926
|
if (request.format != null) {
|
|
2901
|
-
|
|
2927
|
+
queryParameters['format'] = ObjectSerializer.serialize(request.format, 'string');
|
|
2902
2928
|
}
|
|
2903
2929
|
let requestOptions = {
|
|
2904
2930
|
method: 'POST',
|
|
2905
|
-
qs:
|
|
2906
|
-
headers:
|
|
2931
|
+
qs: queryParameters,
|
|
2932
|
+
headers: headerParams,
|
|
2907
2933
|
uri: requestPath,
|
|
2908
2934
|
body: ObjectSerializer.serialize(request.generatorParamsList, 'GeneratorParamsList'),
|
|
2909
2935
|
json: true,
|
|
2910
2936
|
encoding: null
|
|
2911
2937
|
};
|
|
2912
|
-
await this._configuration.authentication.
|
|
2938
|
+
await this._configuration.authentication.applyToRequestAsync(requestOptions);
|
|
2913
2939
|
const result = await this._client.requestAsync(requestOptions);
|
|
2914
2940
|
return {
|
|
2915
2941
|
response: result.response,
|
|
@@ -2923,8 +2949,8 @@ class BarcodeApi {
|
|
|
2923
2949
|
*/
|
|
2924
2950
|
async putBarcodeGenerateFile(request) {
|
|
2925
2951
|
const requestPath = this._configuration.getApiBaseUrl() + '/barcode/{name}/generate'.replace('{' + 'name' + '}', String(request.name));
|
|
2926
|
-
let
|
|
2927
|
-
let
|
|
2952
|
+
let queryParameters = {};
|
|
2953
|
+
let headerParams = Object.assign({}, this.defaultHeaders);
|
|
2928
2954
|
// verify required parameter 'request.name' is not null or undefined
|
|
2929
2955
|
if (request.name == null) {
|
|
2930
2956
|
throw new Error('Required parameter request.name was null or undefined when calling putBarcodeGenerateFile.');
|
|
@@ -2938,126 +2964,126 @@ class BarcodeApi {
|
|
|
2938
2964
|
throw new Error('Required parameter request.text was null or undefined when calling putBarcodeGenerateFile.');
|
|
2939
2965
|
}
|
|
2940
2966
|
if (request.type != null) {
|
|
2941
|
-
|
|
2967
|
+
queryParameters['Type'] = ObjectSerializer.serialize(request.type, "'Codabar' | 'Code11' | 'Code39Standard' | 'Code39Extended' | 'Code93Standard' | 'Code93Extended' | 'Code128' | 'GS1Code128' | 'EAN8' | 'EAN13' | 'EAN14' | 'SCC14' | 'SSCC18' | 'UPCA' | 'UPCE' | 'ISBN' | 'ISSN' | 'ISMN' | 'Standard2of5' | 'Interleaved2of5' | 'Matrix2of5' | 'ItalianPost25' | 'IATA2of5' | 'ITF14' | 'ITF6' | 'MSI' | 'VIN' | 'DeutschePostIdentcode' | 'DeutschePostLeitcode' | 'OPC' | 'PZN' | 'Code16K' | 'Pharmacode' | 'DataMatrix' | 'QR' | 'Aztec' | 'Pdf417' | 'MacroPdf417' | 'AustraliaPost' | 'Postnet' | 'Planet' | 'OneCode' | 'RM4SCC' | 'DatabarOmniDirectional' | 'DatabarTruncated' | 'DatabarLimited' | 'DatabarExpanded' | 'SingaporePost' | 'GS1DataMatrix' | 'AustralianPosteParcel' | 'SwissPostParcel' | 'PatchCode' | 'DatabarExpandedStacked' | 'DatabarStacked' | 'DatabarStackedOmniDirectional' | 'MicroPdf417' | 'GS1QR' | 'MaxiCode' | 'Code32' | 'DataLogic2of5' | 'DotCode' | 'DutchKIX' | 'UpcaGs1Code128Coupon' | 'UpcaGs1DatabarCoupon' | 'CodablockF' | 'GS1CodablockF' | 'Mailmark' | 'GS1DotCode' | 'HanXin' | 'GS1HanXin' | 'GS1Aztec'");
|
|
2942
2968
|
}
|
|
2943
2969
|
if (request.text != null) {
|
|
2944
|
-
|
|
2970
|
+
queryParameters['Text'] = ObjectSerializer.serialize(request.text, 'string');
|
|
2945
2971
|
}
|
|
2946
2972
|
if (request.twoDDisplayText != null) {
|
|
2947
|
-
|
|
2973
|
+
queryParameters['TwoDDisplayText'] = ObjectSerializer.serialize(request.twoDDisplayText, 'string');
|
|
2948
2974
|
}
|
|
2949
2975
|
if (request.textLocation != null) {
|
|
2950
|
-
|
|
2976
|
+
queryParameters['TextLocation'] = ObjectSerializer.serialize(request.textLocation, "'Below' | 'Above' | 'None'");
|
|
2951
2977
|
}
|
|
2952
2978
|
if (request.textAlignment != null) {
|
|
2953
|
-
|
|
2979
|
+
queryParameters['TextAlignment'] = ObjectSerializer.serialize(request.textAlignment, "'Left' | 'Center' | 'Right'");
|
|
2954
2980
|
}
|
|
2955
2981
|
if (request.textColor != null) {
|
|
2956
|
-
|
|
2982
|
+
queryParameters['TextColor'] = ObjectSerializer.serialize(request.textColor, 'string');
|
|
2957
2983
|
}
|
|
2958
2984
|
if (request.fontSizeMode != null) {
|
|
2959
|
-
|
|
2985
|
+
queryParameters['FontSizeMode'] = ObjectSerializer.serialize(request.fontSizeMode, "'Auto' | 'Manual'");
|
|
2960
2986
|
}
|
|
2961
2987
|
if (request.noWrap != null) {
|
|
2962
|
-
|
|
2988
|
+
queryParameters['NoWrap'] = ObjectSerializer.serialize(request.noWrap, 'boolean');
|
|
2963
2989
|
}
|
|
2964
2990
|
if (request.resolution != null) {
|
|
2965
|
-
|
|
2991
|
+
queryParameters['Resolution'] = ObjectSerializer.serialize(request.resolution, 'number');
|
|
2966
2992
|
}
|
|
2967
2993
|
if (request.resolutionX != null) {
|
|
2968
|
-
|
|
2994
|
+
queryParameters['ResolutionX'] = ObjectSerializer.serialize(request.resolutionX, 'number');
|
|
2969
2995
|
}
|
|
2970
2996
|
if (request.resolutionY != null) {
|
|
2971
|
-
|
|
2997
|
+
queryParameters['ResolutionY'] = ObjectSerializer.serialize(request.resolutionY, 'number');
|
|
2972
2998
|
}
|
|
2973
2999
|
if (request.dimensionX != null) {
|
|
2974
|
-
|
|
3000
|
+
queryParameters['DimensionX'] = ObjectSerializer.serialize(request.dimensionX, 'number');
|
|
2975
3001
|
}
|
|
2976
3002
|
if (request.textSpace != null) {
|
|
2977
|
-
|
|
3003
|
+
queryParameters['TextSpace'] = ObjectSerializer.serialize(request.textSpace, 'number');
|
|
2978
3004
|
}
|
|
2979
3005
|
if (request.units != null) {
|
|
2980
|
-
|
|
3006
|
+
queryParameters['Units'] = ObjectSerializer.serialize(request.units, "'Pixel' | 'Point' | 'Inch' | 'Millimeter'");
|
|
2981
3007
|
}
|
|
2982
3008
|
if (request.sizeMode != null) {
|
|
2983
|
-
|
|
3009
|
+
queryParameters['SizeMode'] = ObjectSerializer.serialize(request.sizeMode, "'None' | 'Nearest' | 'Interpolation'");
|
|
2984
3010
|
}
|
|
2985
3011
|
if (request.barHeight != null) {
|
|
2986
|
-
|
|
3012
|
+
queryParameters['BarHeight'] = ObjectSerializer.serialize(request.barHeight, 'number');
|
|
2987
3013
|
}
|
|
2988
3014
|
if (request.imageHeight != null) {
|
|
2989
|
-
|
|
3015
|
+
queryParameters['ImageHeight'] = ObjectSerializer.serialize(request.imageHeight, 'number');
|
|
2990
3016
|
}
|
|
2991
3017
|
if (request.imageWidth != null) {
|
|
2992
|
-
|
|
3018
|
+
queryParameters['ImageWidth'] = ObjectSerializer.serialize(request.imageWidth, 'number');
|
|
2993
3019
|
}
|
|
2994
3020
|
if (request.rotationAngle != null) {
|
|
2995
|
-
|
|
3021
|
+
queryParameters['RotationAngle'] = ObjectSerializer.serialize(request.rotationAngle, 'number');
|
|
2996
3022
|
}
|
|
2997
3023
|
if (request.backColor != null) {
|
|
2998
|
-
|
|
3024
|
+
queryParameters['BackColor'] = ObjectSerializer.serialize(request.backColor, 'string');
|
|
2999
3025
|
}
|
|
3000
3026
|
if (request.barColor != null) {
|
|
3001
|
-
|
|
3027
|
+
queryParameters['BarColor'] = ObjectSerializer.serialize(request.barColor, 'string');
|
|
3002
3028
|
}
|
|
3003
3029
|
if (request.borderColor != null) {
|
|
3004
|
-
|
|
3030
|
+
queryParameters['BorderColor'] = ObjectSerializer.serialize(request.borderColor, 'string');
|
|
3005
3031
|
}
|
|
3006
3032
|
if (request.borderWidth != null) {
|
|
3007
|
-
|
|
3033
|
+
queryParameters['BorderWidth'] = ObjectSerializer.serialize(request.borderWidth, 'number');
|
|
3008
3034
|
}
|
|
3009
3035
|
if (request.borderDashStyle != null) {
|
|
3010
|
-
|
|
3036
|
+
queryParameters['BorderDashStyle'] = ObjectSerializer.serialize(request.borderDashStyle, "'Solid' | 'Dash' | 'Dot' | 'DashDot' | 'DashDotDot'");
|
|
3011
3037
|
}
|
|
3012
3038
|
if (request.borderVisible != null) {
|
|
3013
|
-
|
|
3039
|
+
queryParameters['BorderVisible'] = ObjectSerializer.serialize(request.borderVisible, 'boolean');
|
|
3014
3040
|
}
|
|
3015
3041
|
if (request.enableChecksum != null) {
|
|
3016
|
-
|
|
3042
|
+
queryParameters['EnableChecksum'] = ObjectSerializer.serialize(request.enableChecksum, "'Default' | 'Yes' | 'No'");
|
|
3017
3043
|
}
|
|
3018
3044
|
if (request.enableEscape != null) {
|
|
3019
|
-
|
|
3045
|
+
queryParameters['EnableEscape'] = ObjectSerializer.serialize(request.enableEscape, 'boolean');
|
|
3020
3046
|
}
|
|
3021
3047
|
if (request.filledBars != null) {
|
|
3022
|
-
|
|
3048
|
+
queryParameters['FilledBars'] = ObjectSerializer.serialize(request.filledBars, 'boolean');
|
|
3023
3049
|
}
|
|
3024
3050
|
if (request.alwaysShowChecksum != null) {
|
|
3025
|
-
|
|
3051
|
+
queryParameters['AlwaysShowChecksum'] = ObjectSerializer.serialize(request.alwaysShowChecksum, 'boolean');
|
|
3026
3052
|
}
|
|
3027
3053
|
if (request.wideNarrowRatio != null) {
|
|
3028
|
-
|
|
3054
|
+
queryParameters['WideNarrowRatio'] = ObjectSerializer.serialize(request.wideNarrowRatio, 'number');
|
|
3029
3055
|
}
|
|
3030
3056
|
if (request.validateText != null) {
|
|
3031
|
-
|
|
3057
|
+
queryParameters['ValidateText'] = ObjectSerializer.serialize(request.validateText, 'boolean');
|
|
3032
3058
|
}
|
|
3033
3059
|
if (request.supplementData != null) {
|
|
3034
|
-
|
|
3060
|
+
queryParameters['SupplementData'] = ObjectSerializer.serialize(request.supplementData, 'string');
|
|
3035
3061
|
}
|
|
3036
3062
|
if (request.supplementSpace != null) {
|
|
3037
|
-
|
|
3063
|
+
queryParameters['SupplementSpace'] = ObjectSerializer.serialize(request.supplementSpace, 'number');
|
|
3038
3064
|
}
|
|
3039
3065
|
if (request.barWidthReduction != null) {
|
|
3040
|
-
|
|
3066
|
+
queryParameters['BarWidthReduction'] = ObjectSerializer.serialize(request.barWidthReduction, 'number');
|
|
3041
3067
|
}
|
|
3042
3068
|
if (request.useAntiAlias != null) {
|
|
3043
|
-
|
|
3069
|
+
queryParameters['UseAntiAlias'] = ObjectSerializer.serialize(request.useAntiAlias, 'boolean');
|
|
3044
3070
|
}
|
|
3045
3071
|
if (request.storage != null) {
|
|
3046
|
-
|
|
3072
|
+
queryParameters['storage'] = ObjectSerializer.serialize(request.storage, 'string');
|
|
3047
3073
|
}
|
|
3048
3074
|
if (request.folder != null) {
|
|
3049
|
-
|
|
3075
|
+
queryParameters['folder'] = ObjectSerializer.serialize(request.folder, 'string');
|
|
3050
3076
|
}
|
|
3051
3077
|
if (request.format != null) {
|
|
3052
|
-
|
|
3078
|
+
queryParameters['format'] = ObjectSerializer.serialize(request.format, 'string');
|
|
3053
3079
|
}
|
|
3054
3080
|
let requestOptions = {
|
|
3055
3081
|
method: 'PUT',
|
|
3056
|
-
qs:
|
|
3057
|
-
headers:
|
|
3082
|
+
qs: queryParameters,
|
|
3083
|
+
headers: headerParams,
|
|
3058
3084
|
uri: requestPath
|
|
3059
3085
|
};
|
|
3060
|
-
await this._configuration.authentication.
|
|
3086
|
+
await this._configuration.authentication.applyToRequestAsync(requestOptions);
|
|
3061
3087
|
const result = await this._client.requestAsync(requestOptions);
|
|
3062
3088
|
return {
|
|
3063
3089
|
response: result.response,
|
|
@@ -3071,8 +3097,8 @@ class BarcodeApi {
|
|
|
3071
3097
|
*/
|
|
3072
3098
|
async putBarcodeRecognizeFromBody(request) {
|
|
3073
3099
|
const requestPath = this._configuration.getApiBaseUrl() + '/barcode/{name}/recognize'.replace('{' + 'name' + '}', String(request.name));
|
|
3074
|
-
let
|
|
3075
|
-
let
|
|
3100
|
+
let queryParameters = {};
|
|
3101
|
+
let headerParams = Object.assign({}, this.defaultHeaders);
|
|
3076
3102
|
// verify required parameter 'request.name' is not null or undefined
|
|
3077
3103
|
if (request.name == null) {
|
|
3078
3104
|
throw new Error('Required parameter request.name was null or undefined when calling putBarcodeRecognizeFromBody.');
|
|
@@ -3082,23 +3108,23 @@ class BarcodeApi {
|
|
|
3082
3108
|
throw new Error('Required parameter request.readerParams was null or undefined when calling putBarcodeRecognizeFromBody.');
|
|
3083
3109
|
}
|
|
3084
3110
|
if (request.type != null) {
|
|
3085
|
-
|
|
3111
|
+
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'");
|
|
3086
3112
|
}
|
|
3087
3113
|
if (request.storage != null) {
|
|
3088
|
-
|
|
3114
|
+
queryParameters['storage'] = ObjectSerializer.serialize(request.storage, 'string');
|
|
3089
3115
|
}
|
|
3090
3116
|
if (request.folder != null) {
|
|
3091
|
-
|
|
3117
|
+
queryParameters['folder'] = ObjectSerializer.serialize(request.folder, 'string');
|
|
3092
3118
|
}
|
|
3093
3119
|
let requestOptions = {
|
|
3094
3120
|
method: 'PUT',
|
|
3095
|
-
qs:
|
|
3096
|
-
headers:
|
|
3121
|
+
qs: queryParameters,
|
|
3122
|
+
headers: headerParams,
|
|
3097
3123
|
uri: requestPath,
|
|
3098
3124
|
body: ObjectSerializer.serialize(request.readerParams, 'ReaderParams'),
|
|
3099
3125
|
json: true
|
|
3100
3126
|
};
|
|
3101
|
-
await this._configuration.authentication.
|
|
3127
|
+
await this._configuration.authentication.applyToRequestAsync(requestOptions);
|
|
3102
3128
|
const result = await this._client.requestAsync(requestOptions);
|
|
3103
3129
|
return {
|
|
3104
3130
|
response: result.response,
|
|
@@ -3112,8 +3138,8 @@ class BarcodeApi {
|
|
|
3112
3138
|
*/
|
|
3113
3139
|
async putGenerateMultiple(request) {
|
|
3114
3140
|
const requestPath = this._configuration.getApiBaseUrl() + '/barcode/{name}/generateMultiple'.replace('{' + 'name' + '}', String(request.name));
|
|
3115
|
-
let
|
|
3116
|
-
let
|
|
3141
|
+
let queryParameters = {};
|
|
3142
|
+
let headerParams = Object.assign({}, this.defaultHeaders);
|
|
3117
3143
|
// verify required parameter 'request.name' is not null or undefined
|
|
3118
3144
|
if (request.name == null) {
|
|
3119
3145
|
throw new Error('Required parameter request.name was null or undefined when calling putGenerateMultiple.');
|
|
@@ -3123,23 +3149,23 @@ class BarcodeApi {
|
|
|
3123
3149
|
throw new Error('Required parameter request.generatorParamsList was null or undefined when calling putGenerateMultiple.');
|
|
3124
3150
|
}
|
|
3125
3151
|
if (request.format != null) {
|
|
3126
|
-
|
|
3152
|
+
queryParameters['format'] = ObjectSerializer.serialize(request.format, 'string');
|
|
3127
3153
|
}
|
|
3128
3154
|
if (request.folder != null) {
|
|
3129
|
-
|
|
3155
|
+
queryParameters['folder'] = ObjectSerializer.serialize(request.folder, 'string');
|
|
3130
3156
|
}
|
|
3131
3157
|
if (request.storage != null) {
|
|
3132
|
-
|
|
3158
|
+
queryParameters['storage'] = ObjectSerializer.serialize(request.storage, 'string');
|
|
3133
3159
|
}
|
|
3134
3160
|
let requestOptions = {
|
|
3135
3161
|
method: 'PUT',
|
|
3136
|
-
qs:
|
|
3137
|
-
headers:
|
|
3162
|
+
qs: queryParameters,
|
|
3163
|
+
headers: headerParams,
|
|
3138
3164
|
uri: requestPath,
|
|
3139
3165
|
body: ObjectSerializer.serialize(request.generatorParamsList, 'GeneratorParamsList'),
|
|
3140
3166
|
json: true
|
|
3141
3167
|
};
|
|
3142
|
-
await this._configuration.authentication.
|
|
3168
|
+
await this._configuration.authentication.applyToRequestAsync(requestOptions);
|
|
3143
3169
|
const result = await this._client.requestAsync(requestOptions);
|
|
3144
3170
|
return {
|
|
3145
3171
|
response: result.response,
|
|
@@ -3149,7 +3175,10 @@ class BarcodeApi {
|
|
|
3149
3175
|
}
|
|
3150
3176
|
class FileApi {
|
|
3151
3177
|
constructor(configuration) {
|
|
3152
|
-
this.defaultHeaders = {
|
|
3178
|
+
this.defaultHeaders = {
|
|
3179
|
+
'x-aspose-client': 'nodejs sdk',
|
|
3180
|
+
'x-aspose-client-version': '23.9.0'
|
|
3181
|
+
};
|
|
3153
3182
|
this._configuration = configuration;
|
|
3154
3183
|
this._client = new HttpClient();
|
|
3155
3184
|
}
|
|
@@ -3160,8 +3189,8 @@ class FileApi {
|
|
|
3160
3189
|
*/
|
|
3161
3190
|
async copyFile(request) {
|
|
3162
3191
|
const requestPath = this._configuration.getApiBaseUrl() + '/barcode/storage/file/copy/{srcPath}'.replace('{' + 'srcPath' + '}', String(request.srcPath));
|
|
3163
|
-
let
|
|
3164
|
-
let
|
|
3192
|
+
let queryParameters = {};
|
|
3193
|
+
let headerParams = Object.assign({}, this.defaultHeaders);
|
|
3165
3194
|
// verify required parameter 'request.srcPath' is not null or undefined
|
|
3166
3195
|
if (request.srcPath == null) {
|
|
3167
3196
|
throw new Error('Required parameter request.srcPath was null or undefined when calling copyFile.');
|
|
@@ -3171,24 +3200,24 @@ class FileApi {
|
|
|
3171
3200
|
throw new Error('Required parameter request.destPath was null or undefined when calling copyFile.');
|
|
3172
3201
|
}
|
|
3173
3202
|
if (request.destPath != null) {
|
|
3174
|
-
|
|
3203
|
+
queryParameters['destPath'] = ObjectSerializer.serialize(request.destPath, 'string');
|
|
3175
3204
|
}
|
|
3176
3205
|
if (request.srcStorageName != null) {
|
|
3177
|
-
|
|
3206
|
+
queryParameters['srcStorageName'] = ObjectSerializer.serialize(request.srcStorageName, 'string');
|
|
3178
3207
|
}
|
|
3179
3208
|
if (request.destStorageName != null) {
|
|
3180
|
-
|
|
3209
|
+
queryParameters['destStorageName'] = ObjectSerializer.serialize(request.destStorageName, 'string');
|
|
3181
3210
|
}
|
|
3182
3211
|
if (request.versionId != null) {
|
|
3183
|
-
|
|
3212
|
+
queryParameters['versionId'] = ObjectSerializer.serialize(request.versionId, 'string');
|
|
3184
3213
|
}
|
|
3185
3214
|
let requestOptions = {
|
|
3186
3215
|
method: 'PUT',
|
|
3187
|
-
qs:
|
|
3188
|
-
headers:
|
|
3216
|
+
qs: queryParameters,
|
|
3217
|
+
headers: headerParams,
|
|
3189
3218
|
uri: requestPath
|
|
3190
3219
|
};
|
|
3191
|
-
await this._configuration.authentication.
|
|
3220
|
+
await this._configuration.authentication.applyToRequestAsync(requestOptions);
|
|
3192
3221
|
const result = await this._client.requestAsync(requestOptions);
|
|
3193
3222
|
return result;
|
|
3194
3223
|
}
|
|
@@ -3199,25 +3228,25 @@ class FileApi {
|
|
|
3199
3228
|
*/
|
|
3200
3229
|
async deleteFile(request) {
|
|
3201
3230
|
const requestPath = this._configuration.getApiBaseUrl() + '/barcode/storage/file/{path}'.replace('{' + 'path' + '}', String(request.path));
|
|
3202
|
-
let
|
|
3203
|
-
let
|
|
3231
|
+
let queryParameters = {};
|
|
3232
|
+
let headerParams = Object.assign({}, this.defaultHeaders);
|
|
3204
3233
|
// verify required parameter 'request.path' is not null or undefined
|
|
3205
3234
|
if (request.path == null) {
|
|
3206
3235
|
throw new Error('Required parameter request.path was null or undefined when calling deleteFile.');
|
|
3207
3236
|
}
|
|
3208
3237
|
if (request.storageName != null) {
|
|
3209
|
-
|
|
3238
|
+
queryParameters['storageName'] = ObjectSerializer.serialize(request.storageName, 'string');
|
|
3210
3239
|
}
|
|
3211
3240
|
if (request.versionId != null) {
|
|
3212
|
-
|
|
3241
|
+
queryParameters['versionId'] = ObjectSerializer.serialize(request.versionId, 'string');
|
|
3213
3242
|
}
|
|
3214
3243
|
let requestOptions = {
|
|
3215
3244
|
method: 'DELETE',
|
|
3216
|
-
qs:
|
|
3217
|
-
headers:
|
|
3245
|
+
qs: queryParameters,
|
|
3246
|
+
headers: headerParams,
|
|
3218
3247
|
uri: requestPath
|
|
3219
3248
|
};
|
|
3220
|
-
await this._configuration.authentication.
|
|
3249
|
+
await this._configuration.authentication.applyToRequestAsync(requestOptions);
|
|
3221
3250
|
const result = await this._client.requestAsync(requestOptions);
|
|
3222
3251
|
return result;
|
|
3223
3252
|
}
|
|
@@ -3228,26 +3257,26 @@ class FileApi {
|
|
|
3228
3257
|
*/
|
|
3229
3258
|
async downloadFile(request) {
|
|
3230
3259
|
const requestPath = this._configuration.getApiBaseUrl() + '/barcode/storage/file/{path}'.replace('{' + 'path' + '}', String(request.path));
|
|
3231
|
-
let
|
|
3232
|
-
let
|
|
3260
|
+
let queryParameters = {};
|
|
3261
|
+
let headerParams = Object.assign({}, this.defaultHeaders);
|
|
3233
3262
|
// verify required parameter 'request.path' is not null or undefined
|
|
3234
3263
|
if (request.path == null) {
|
|
3235
3264
|
throw new Error('Required parameter request.path was null or undefined when calling downloadFile.');
|
|
3236
3265
|
}
|
|
3237
3266
|
if (request.storageName != null) {
|
|
3238
|
-
|
|
3267
|
+
queryParameters['storageName'] = ObjectSerializer.serialize(request.storageName, 'string');
|
|
3239
3268
|
}
|
|
3240
3269
|
if (request.versionId != null) {
|
|
3241
|
-
|
|
3270
|
+
queryParameters['versionId'] = ObjectSerializer.serialize(request.versionId, 'string');
|
|
3242
3271
|
}
|
|
3243
3272
|
let requestOptions = {
|
|
3244
3273
|
method: 'GET',
|
|
3245
|
-
qs:
|
|
3246
|
-
headers:
|
|
3274
|
+
qs: queryParameters,
|
|
3275
|
+
headers: headerParams,
|
|
3247
3276
|
uri: requestPath,
|
|
3248
3277
|
encoding: null
|
|
3249
3278
|
};
|
|
3250
|
-
await this._configuration.authentication.
|
|
3279
|
+
await this._configuration.authentication.applyToRequestAsync(requestOptions);
|
|
3251
3280
|
const result = await this._client.requestAsync(requestOptions);
|
|
3252
3281
|
return {
|
|
3253
3282
|
response: result.response,
|
|
@@ -3261,8 +3290,8 @@ class FileApi {
|
|
|
3261
3290
|
*/
|
|
3262
3291
|
async moveFile(request) {
|
|
3263
3292
|
const requestPath = this._configuration.getApiBaseUrl() + '/barcode/storage/file/move/{srcPath}'.replace('{' + 'srcPath' + '}', String(request.srcPath));
|
|
3264
|
-
let
|
|
3265
|
-
let
|
|
3293
|
+
let queryParameters = {};
|
|
3294
|
+
let headerParams = Object.assign({}, this.defaultHeaders);
|
|
3266
3295
|
// verify required parameter 'request.srcPath' is not null or undefined
|
|
3267
3296
|
if (request.srcPath == null) {
|
|
3268
3297
|
throw new Error('Required parameter request.srcPath was null or undefined when calling moveFile.');
|
|
@@ -3272,24 +3301,24 @@ class FileApi {
|
|
|
3272
3301
|
throw new Error('Required parameter request.destPath was null or undefined when calling moveFile.');
|
|
3273
3302
|
}
|
|
3274
3303
|
if (request.destPath != null) {
|
|
3275
|
-
|
|
3304
|
+
queryParameters['destPath'] = ObjectSerializer.serialize(request.destPath, 'string');
|
|
3276
3305
|
}
|
|
3277
3306
|
if (request.srcStorageName != null) {
|
|
3278
|
-
|
|
3307
|
+
queryParameters['srcStorageName'] = ObjectSerializer.serialize(request.srcStorageName, 'string');
|
|
3279
3308
|
}
|
|
3280
3309
|
if (request.destStorageName != null) {
|
|
3281
|
-
|
|
3310
|
+
queryParameters['destStorageName'] = ObjectSerializer.serialize(request.destStorageName, 'string');
|
|
3282
3311
|
}
|
|
3283
3312
|
if (request.versionId != null) {
|
|
3284
|
-
|
|
3313
|
+
queryParameters['versionId'] = ObjectSerializer.serialize(request.versionId, 'string');
|
|
3285
3314
|
}
|
|
3286
3315
|
let requestOptions = {
|
|
3287
3316
|
method: 'PUT',
|
|
3288
|
-
qs:
|
|
3289
|
-
headers:
|
|
3317
|
+
qs: queryParameters,
|
|
3318
|
+
headers: headerParams,
|
|
3290
3319
|
uri: requestPath
|
|
3291
3320
|
};
|
|
3292
|
-
await this._configuration.authentication.
|
|
3321
|
+
await this._configuration.authentication.applyToRequestAsync(requestOptions);
|
|
3293
3322
|
const result = await this._client.requestAsync(requestOptions);
|
|
3294
3323
|
return result;
|
|
3295
3324
|
}
|
|
@@ -3300,8 +3329,8 @@ class FileApi {
|
|
|
3300
3329
|
*/
|
|
3301
3330
|
async uploadFile(request) {
|
|
3302
3331
|
const requestPath = this._configuration.getApiBaseUrl() + '/barcode/storage/file/{path}'.replace('{' + 'path' + '}', String(request.path));
|
|
3303
|
-
let
|
|
3304
|
-
let
|
|
3332
|
+
let queryParameters = {};
|
|
3333
|
+
let headerParams = Object.assign({}, this.defaultHeaders);
|
|
3305
3334
|
// verify required parameter 'request.path' is not null or undefined
|
|
3306
3335
|
if (request.path == null) {
|
|
3307
3336
|
throw new Error('Required parameter request.path was null or undefined when calling uploadFile.');
|
|
@@ -3311,16 +3340,16 @@ class FileApi {
|
|
|
3311
3340
|
throw new Error('Required parameter request.file was null or undefined when calling uploadFile.');
|
|
3312
3341
|
}
|
|
3313
3342
|
if (request.storageName != null) {
|
|
3314
|
-
|
|
3343
|
+
queryParameters['storageName'] = ObjectSerializer.serialize(request.storageName, 'string');
|
|
3315
3344
|
}
|
|
3316
3345
|
let requestOptions = {
|
|
3317
3346
|
method: 'PUT',
|
|
3318
|
-
qs:
|
|
3319
|
-
headers:
|
|
3347
|
+
qs: queryParameters,
|
|
3348
|
+
headers: headerParams,
|
|
3320
3349
|
uri: requestPath,
|
|
3321
3350
|
body: request.file
|
|
3322
3351
|
};
|
|
3323
|
-
await this._configuration.authentication.
|
|
3352
|
+
await this._configuration.authentication.applyToRequestAsync(requestOptions);
|
|
3324
3353
|
const result = await this._client.requestAsync(requestOptions);
|
|
3325
3354
|
return {
|
|
3326
3355
|
response: result.response,
|
|
@@ -3330,7 +3359,10 @@ class FileApi {
|
|
|
3330
3359
|
}
|
|
3331
3360
|
class FolderApi {
|
|
3332
3361
|
constructor(configuration) {
|
|
3333
|
-
this.defaultHeaders = {
|
|
3362
|
+
this.defaultHeaders = {
|
|
3363
|
+
'x-aspose-client': 'nodejs sdk',
|
|
3364
|
+
'x-aspose-client-version': '23.9.0'
|
|
3365
|
+
};
|
|
3334
3366
|
this._configuration = configuration;
|
|
3335
3367
|
this._client = new HttpClient();
|
|
3336
3368
|
}
|
|
@@ -3341,8 +3373,8 @@ class FolderApi {
|
|
|
3341
3373
|
*/
|
|
3342
3374
|
async copyFolder(request) {
|
|
3343
3375
|
const requestPath = this._configuration.getApiBaseUrl() + '/barcode/storage/folder/copy/{srcPath}'.replace('{' + 'srcPath' + '}', String(request.srcPath));
|
|
3344
|
-
let
|
|
3345
|
-
let
|
|
3376
|
+
let queryParameters = {};
|
|
3377
|
+
let headerParams = Object.assign({}, this.defaultHeaders);
|
|
3346
3378
|
// verify required parameter 'request.srcPath' is not null or undefined
|
|
3347
3379
|
if (request.srcPath == null) {
|
|
3348
3380
|
throw new Error('Required parameter request.srcPath was null or undefined when calling copyFolder.');
|
|
@@ -3352,21 +3384,21 @@ class FolderApi {
|
|
|
3352
3384
|
throw new Error('Required parameter request.destPath was null or undefined when calling copyFolder.');
|
|
3353
3385
|
}
|
|
3354
3386
|
if (request.destPath != null) {
|
|
3355
|
-
|
|
3387
|
+
queryParameters['destPath'] = ObjectSerializer.serialize(request.destPath, 'string');
|
|
3356
3388
|
}
|
|
3357
3389
|
if (request.srcStorageName != null) {
|
|
3358
|
-
|
|
3390
|
+
queryParameters['srcStorageName'] = ObjectSerializer.serialize(request.srcStorageName, 'string');
|
|
3359
3391
|
}
|
|
3360
3392
|
if (request.destStorageName != null) {
|
|
3361
|
-
|
|
3393
|
+
queryParameters['destStorageName'] = ObjectSerializer.serialize(request.destStorageName, 'string');
|
|
3362
3394
|
}
|
|
3363
3395
|
let requestOptions = {
|
|
3364
3396
|
method: 'PUT',
|
|
3365
|
-
qs:
|
|
3366
|
-
headers:
|
|
3397
|
+
qs: queryParameters,
|
|
3398
|
+
headers: headerParams,
|
|
3367
3399
|
uri: requestPath
|
|
3368
3400
|
};
|
|
3369
|
-
await this._configuration.authentication.
|
|
3401
|
+
await this._configuration.authentication.applyToRequestAsync(requestOptions);
|
|
3370
3402
|
const result = await this._client.requestAsync(requestOptions);
|
|
3371
3403
|
return result;
|
|
3372
3404
|
}
|
|
@@ -3377,22 +3409,22 @@ class FolderApi {
|
|
|
3377
3409
|
*/
|
|
3378
3410
|
async createFolder(request) {
|
|
3379
3411
|
const requestPath = this._configuration.getApiBaseUrl() + '/barcode/storage/folder/{path}'.replace('{' + 'path' + '}', String(request.path));
|
|
3380
|
-
let
|
|
3381
|
-
let
|
|
3412
|
+
let queryParameters = {};
|
|
3413
|
+
let headerParams = Object.assign({}, this.defaultHeaders);
|
|
3382
3414
|
// verify required parameter 'request.path' is not null or undefined
|
|
3383
3415
|
if (request.path == null) {
|
|
3384
3416
|
throw new Error('Required parameter request.path was null or undefined when calling createFolder.');
|
|
3385
3417
|
}
|
|
3386
3418
|
if (request.storageName != null) {
|
|
3387
|
-
|
|
3419
|
+
queryParameters['storageName'] = ObjectSerializer.serialize(request.storageName, 'string');
|
|
3388
3420
|
}
|
|
3389
3421
|
let requestOptions = {
|
|
3390
3422
|
method: 'PUT',
|
|
3391
|
-
qs:
|
|
3392
|
-
headers:
|
|
3423
|
+
qs: queryParameters,
|
|
3424
|
+
headers: headerParams,
|
|
3393
3425
|
uri: requestPath
|
|
3394
3426
|
};
|
|
3395
|
-
await this._configuration.authentication.
|
|
3427
|
+
await this._configuration.authentication.applyToRequestAsync(requestOptions);
|
|
3396
3428
|
const result = await this._client.requestAsync(requestOptions);
|
|
3397
3429
|
return result;
|
|
3398
3430
|
}
|
|
@@ -3403,25 +3435,25 @@ class FolderApi {
|
|
|
3403
3435
|
*/
|
|
3404
3436
|
async deleteFolder(request) {
|
|
3405
3437
|
const requestPath = this._configuration.getApiBaseUrl() + '/barcode/storage/folder/{path}'.replace('{' + 'path' + '}', String(request.path));
|
|
3406
|
-
let
|
|
3407
|
-
let
|
|
3438
|
+
let queryParameters = {};
|
|
3439
|
+
let headerParams = Object.assign({}, this.defaultHeaders);
|
|
3408
3440
|
// verify required parameter 'request.path' is not null or undefined
|
|
3409
3441
|
if (request.path == null) {
|
|
3410
3442
|
throw new Error('Required parameter request.path was null or undefined when calling deleteFolder.');
|
|
3411
3443
|
}
|
|
3412
3444
|
if (request.storageName != null) {
|
|
3413
|
-
|
|
3445
|
+
queryParameters['storageName'] = ObjectSerializer.serialize(request.storageName, 'string');
|
|
3414
3446
|
}
|
|
3415
3447
|
if (request.recursive != null) {
|
|
3416
|
-
|
|
3448
|
+
queryParameters['recursive'] = ObjectSerializer.serialize(request.recursive, 'boolean');
|
|
3417
3449
|
}
|
|
3418
3450
|
let requestOptions = {
|
|
3419
3451
|
method: 'DELETE',
|
|
3420
|
-
qs:
|
|
3421
|
-
headers:
|
|
3452
|
+
qs: queryParameters,
|
|
3453
|
+
headers: headerParams,
|
|
3422
3454
|
uri: requestPath
|
|
3423
3455
|
};
|
|
3424
|
-
await this._configuration.authentication.
|
|
3456
|
+
await this._configuration.authentication.applyToRequestAsync(requestOptions);
|
|
3425
3457
|
const result = await this._client.requestAsync(requestOptions);
|
|
3426
3458
|
return result;
|
|
3427
3459
|
}
|
|
@@ -3432,22 +3464,22 @@ class FolderApi {
|
|
|
3432
3464
|
*/
|
|
3433
3465
|
async getFilesList(request) {
|
|
3434
3466
|
const requestPath = this._configuration.getApiBaseUrl() + '/barcode/storage/folder/{path}'.replace('{' + 'path' + '}', String(request.path));
|
|
3435
|
-
let
|
|
3436
|
-
let
|
|
3467
|
+
let queryParameters = {};
|
|
3468
|
+
let headerParams = Object.assign({}, this.defaultHeaders);
|
|
3437
3469
|
// verify required parameter 'request.path' is not null or undefined
|
|
3438
3470
|
if (request.path == null) {
|
|
3439
3471
|
throw new Error('Required parameter request.path was null or undefined when calling getFilesList.');
|
|
3440
3472
|
}
|
|
3441
3473
|
if (request.storageName != null) {
|
|
3442
|
-
|
|
3474
|
+
queryParameters['storageName'] = ObjectSerializer.serialize(request.storageName, 'string');
|
|
3443
3475
|
}
|
|
3444
3476
|
let requestOptions = {
|
|
3445
3477
|
method: 'GET',
|
|
3446
|
-
qs:
|
|
3447
|
-
headers:
|
|
3478
|
+
qs: queryParameters,
|
|
3479
|
+
headers: headerParams,
|
|
3448
3480
|
uri: requestPath
|
|
3449
3481
|
};
|
|
3450
|
-
await this._configuration.authentication.
|
|
3482
|
+
await this._configuration.authentication.applyToRequestAsync(requestOptions);
|
|
3451
3483
|
const result = await this._client.requestAsync(requestOptions);
|
|
3452
3484
|
return {
|
|
3453
3485
|
response: result.response,
|
|
@@ -3461,8 +3493,8 @@ class FolderApi {
|
|
|
3461
3493
|
*/
|
|
3462
3494
|
async moveFolder(request) {
|
|
3463
3495
|
const requestPath = this._configuration.getApiBaseUrl() + '/barcode/storage/folder/move/{srcPath}'.replace('{' + 'srcPath' + '}', String(request.srcPath));
|
|
3464
|
-
let
|
|
3465
|
-
let
|
|
3496
|
+
let queryParameters = {};
|
|
3497
|
+
let headerParams = Object.assign({}, this.defaultHeaders);
|
|
3466
3498
|
// verify required parameter 'request.srcPath' is not null or undefined
|
|
3467
3499
|
if (request.srcPath == null) {
|
|
3468
3500
|
throw new Error('Required parameter request.srcPath was null or undefined when calling moveFolder.');
|
|
@@ -3472,28 +3504,31 @@ class FolderApi {
|
|
|
3472
3504
|
throw new Error('Required parameter request.destPath was null or undefined when calling moveFolder.');
|
|
3473
3505
|
}
|
|
3474
3506
|
if (request.destPath != null) {
|
|
3475
|
-
|
|
3507
|
+
queryParameters['destPath'] = ObjectSerializer.serialize(request.destPath, 'string');
|
|
3476
3508
|
}
|
|
3477
3509
|
if (request.srcStorageName != null) {
|
|
3478
|
-
|
|
3510
|
+
queryParameters['srcStorageName'] = ObjectSerializer.serialize(request.srcStorageName, 'string');
|
|
3479
3511
|
}
|
|
3480
3512
|
if (request.destStorageName != null) {
|
|
3481
|
-
|
|
3513
|
+
queryParameters['destStorageName'] = ObjectSerializer.serialize(request.destStorageName, 'string');
|
|
3482
3514
|
}
|
|
3483
3515
|
let requestOptions = {
|
|
3484
3516
|
method: 'PUT',
|
|
3485
|
-
qs:
|
|
3486
|
-
headers:
|
|
3517
|
+
qs: queryParameters,
|
|
3518
|
+
headers: headerParams,
|
|
3487
3519
|
uri: requestPath
|
|
3488
3520
|
};
|
|
3489
|
-
await this._configuration.authentication.
|
|
3521
|
+
await this._configuration.authentication.applyToRequestAsync(requestOptions);
|
|
3490
3522
|
const result = await this._client.requestAsync(requestOptions);
|
|
3491
3523
|
return result;
|
|
3492
3524
|
}
|
|
3493
3525
|
}
|
|
3494
3526
|
class StorageApi {
|
|
3495
3527
|
constructor(configuration) {
|
|
3496
|
-
this.defaultHeaders = {
|
|
3528
|
+
this.defaultHeaders = {
|
|
3529
|
+
'x-aspose-client': 'nodejs sdk',
|
|
3530
|
+
'x-aspose-client-version': '23.9.0'
|
|
3531
|
+
};
|
|
3497
3532
|
this._configuration = configuration;
|
|
3498
3533
|
this._client = new HttpClient();
|
|
3499
3534
|
}
|
|
@@ -3504,18 +3539,18 @@ class StorageApi {
|
|
|
3504
3539
|
*/
|
|
3505
3540
|
async getDiscUsage(request) {
|
|
3506
3541
|
const requestPath = this._configuration.getApiBaseUrl() + '/barcode/storage/disc';
|
|
3507
|
-
let
|
|
3508
|
-
let
|
|
3542
|
+
let queryParameters = {};
|
|
3543
|
+
let headerParams = Object.assign({}, this.defaultHeaders);
|
|
3509
3544
|
if (request.storageName != null) {
|
|
3510
|
-
|
|
3545
|
+
queryParameters['storageName'] = ObjectSerializer.serialize(request.storageName, 'string');
|
|
3511
3546
|
}
|
|
3512
3547
|
let requestOptions = {
|
|
3513
3548
|
method: 'GET',
|
|
3514
|
-
qs:
|
|
3515
|
-
headers:
|
|
3549
|
+
qs: queryParameters,
|
|
3550
|
+
headers: headerParams,
|
|
3516
3551
|
uri: requestPath
|
|
3517
3552
|
};
|
|
3518
|
-
await this._configuration.authentication.
|
|
3553
|
+
await this._configuration.authentication.applyToRequestAsync(requestOptions);
|
|
3519
3554
|
const result = await this._client.requestAsync(requestOptions);
|
|
3520
3555
|
return {
|
|
3521
3556
|
response: result.response,
|
|
@@ -3529,22 +3564,22 @@ class StorageApi {
|
|
|
3529
3564
|
*/
|
|
3530
3565
|
async getFileVersions(request) {
|
|
3531
3566
|
const requestPath = this._configuration.getApiBaseUrl() + '/barcode/storage/version/{path}'.replace('{' + 'path' + '}', String(request.path));
|
|
3532
|
-
let
|
|
3533
|
-
let
|
|
3567
|
+
let queryParameters = {};
|
|
3568
|
+
let headerParams = Object.assign({}, this.defaultHeaders);
|
|
3534
3569
|
// verify required parameter 'request.path' is not null or undefined
|
|
3535
3570
|
if (request.path == null) {
|
|
3536
3571
|
throw new Error('Required parameter request.path was null or undefined when calling getFileVersions.');
|
|
3537
3572
|
}
|
|
3538
3573
|
if (request.storageName != null) {
|
|
3539
|
-
|
|
3574
|
+
queryParameters['storageName'] = ObjectSerializer.serialize(request.storageName, 'string');
|
|
3540
3575
|
}
|
|
3541
3576
|
let requestOptions = {
|
|
3542
3577
|
method: 'GET',
|
|
3543
|
-
qs:
|
|
3544
|
-
headers:
|
|
3578
|
+
qs: queryParameters,
|
|
3579
|
+
headers: headerParams,
|
|
3545
3580
|
uri: requestPath
|
|
3546
3581
|
};
|
|
3547
|
-
await this._configuration.authentication.
|
|
3582
|
+
await this._configuration.authentication.applyToRequestAsync(requestOptions);
|
|
3548
3583
|
const result = await this._client.requestAsync(requestOptions);
|
|
3549
3584
|
return {
|
|
3550
3585
|
response: result.response,
|
|
@@ -3558,25 +3593,25 @@ class StorageApi {
|
|
|
3558
3593
|
*/
|
|
3559
3594
|
async objectExists(request) {
|
|
3560
3595
|
const requestPath = this._configuration.getApiBaseUrl() + '/barcode/storage/exist/{path}'.replace('{' + 'path' + '}', String(request.path));
|
|
3561
|
-
let
|
|
3562
|
-
let
|
|
3596
|
+
let queryParameters = {};
|
|
3597
|
+
let headerParams = Object.assign({}, this.defaultHeaders);
|
|
3563
3598
|
// verify required parameter 'request.path' is not null or undefined
|
|
3564
3599
|
if (request.path == null) {
|
|
3565
3600
|
throw new Error('Required parameter request.path was null or undefined when calling objectExists.');
|
|
3566
3601
|
}
|
|
3567
3602
|
if (request.storageName != null) {
|
|
3568
|
-
|
|
3603
|
+
queryParameters['storageName'] = ObjectSerializer.serialize(request.storageName, 'string');
|
|
3569
3604
|
}
|
|
3570
3605
|
if (request.versionId != null) {
|
|
3571
|
-
|
|
3606
|
+
queryParameters['versionId'] = ObjectSerializer.serialize(request.versionId, 'string');
|
|
3572
3607
|
}
|
|
3573
3608
|
let requestOptions = {
|
|
3574
3609
|
method: 'GET',
|
|
3575
|
-
qs:
|
|
3576
|
-
headers:
|
|
3610
|
+
qs: queryParameters,
|
|
3611
|
+
headers: headerParams,
|
|
3577
3612
|
uri: requestPath
|
|
3578
3613
|
};
|
|
3579
|
-
await this._configuration.authentication.
|
|
3614
|
+
await this._configuration.authentication.applyToRequestAsync(requestOptions);
|
|
3580
3615
|
const result = await this._client.requestAsync(requestOptions);
|
|
3581
3616
|
return {
|
|
3582
3617
|
response: result.response,
|
|
@@ -3590,19 +3625,19 @@ class StorageApi {
|
|
|
3590
3625
|
*/
|
|
3591
3626
|
async storageExists(request) {
|
|
3592
3627
|
const requestPath = this._configuration.getApiBaseUrl() + '/barcode/storage/{storageName}/exist'.replace('{' + 'storageName' + '}', String(request.storageName));
|
|
3593
|
-
let
|
|
3594
|
-
let
|
|
3628
|
+
let queryParameters = {};
|
|
3629
|
+
let headerParams = Object.assign({}, this.defaultHeaders);
|
|
3595
3630
|
// verify required parameter 'request.storageName' is not null or undefined
|
|
3596
3631
|
if (request.storageName == null) {
|
|
3597
3632
|
throw new Error('Required parameter request.storageName was null or undefined when calling storageExists.');
|
|
3598
3633
|
}
|
|
3599
3634
|
let requestOptions = {
|
|
3600
3635
|
method: 'GET',
|
|
3601
|
-
qs:
|
|
3602
|
-
headers:
|
|
3636
|
+
qs: queryParameters,
|
|
3637
|
+
headers: headerParams,
|
|
3603
3638
|
uri: requestPath
|
|
3604
3639
|
};
|
|
3605
|
-
await this._configuration.authentication.
|
|
3640
|
+
await this._configuration.authentication.applyToRequestAsync(requestOptions);
|
|
3606
3641
|
const result = await this._client.requestAsync(requestOptions);
|
|
3607
3642
|
return {
|
|
3608
3643
|
response: result.response,
|
|
@@ -3623,7 +3658,7 @@ class JWTAuth {
|
|
|
3623
3658
|
/**
|
|
3624
3659
|
* Apply authentication settings to header and query params.
|
|
3625
3660
|
*/
|
|
3626
|
-
async
|
|
3661
|
+
async applyToRequestAsync(requestOptions) {
|
|
3627
3662
|
if (this._accessToken == null) {
|
|
3628
3663
|
this._accessToken = await this.requestToken();
|
|
3629
3664
|
}
|