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.
@@ -1,5 +1,5 @@
1
1
  /// <reference types="node" />
2
- interface StringKeyWithStringValue {
2
+ export interface StringKeyWithStringValue {
3
3
  [key: string]: string;
4
4
  }
5
5
  export interface HttpOptions {
@@ -31,4 +31,3 @@ export declare class HttpClient {
31
31
  private buildRequestBody;
32
32
  private doHttpRequest;
33
33
  }
34
- export {};
package/dist/models.d.ts CHANGED
@@ -35,7 +35,7 @@ export declare class ApiErrorResponse {
35
35
  */
36
36
  export declare class AustralianPostParams {
37
37
  /**
38
- * Interpreting type for the Customer Information of AustralianPost, default to CustomerInformationInterpretingType.Other\"
38
+ * Interpreting type for the Customer Information of AustralianPost, default to CustomerInformationInterpretingType.Other
39
39
  */
40
40
  'encodingTable'?: CustomerInformationInterpretingType;
41
41
  /**
@@ -2047,7 +2047,7 @@ export declare class ReaderParams {
2047
2047
  */
2048
2048
  'scanWindowSizes'?: Array<number>;
2049
2049
  /**
2050
- * Similarity coefficient depends on how homogeneous barcodes are. Use high value for for clear barcodes. Use low values to detect barcodes that ara partly damaged or not lighten evenly. Similarity coefficient must be between [0.5, 0.9]
2050
+ * Similarity coefficient depends on how homogeneous barcodes are. Use high value for clear barcodes. Use low values to detect barcodes that ara partly damaged or not lighten evenly. Similarity coefficient must be between [0.5, 0.9]
2051
2051
  */
2052
2052
  'similarity'?: number;
2053
2053
  /**
@@ -2605,7 +2605,7 @@ Combining of several window sizes can improve detection quality.
2605
2605
  'scanWindowSizes'?: Array<number>;
2606
2606
  /**
2607
2607
  * Similarity coefficient depends on how homogeneous barcodes are.
2608
- Use high value for for clear barcodes.
2608
+ Use high value for clear barcodes.
2609
2609
  Use low values to detect barcodes that ara partly damaged or not lighten evenly.
2610
2610
  Similarity coefficient must be between [0.5, 0.9]
2611
2611
  */
@@ -2797,7 +2797,7 @@ Combining of several window sizes can improve detection quality.
2797
2797
  'scanWindowSizes'?: Array<number>;
2798
2798
  /**
2799
2799
  * Similarity coefficient depends on how homogeneous barcodes are.
2800
- Use high value for for clear barcodes.
2800
+ Use high value for clear barcodes.
2801
2801
  Use low values to detect barcodes that ara partly damaged or not lighten evenly.
2802
2802
  Similarity coefficient must be between [0.5, 0.9]
2803
2803
  */
@@ -3113,6 +3113,31 @@ export declare class PutGenerateMultipleRequest {
3113
3113
  */
3114
3114
  constructor(name: string, generatorParamsList: GeneratorParamsList);
3115
3115
  }
3116
+ /**
3117
+ * Quickly scan a barcode from an image.
3118
+ */
3119
+ export declare class ScanBarcodeRequest {
3120
+ /**
3121
+ * Image as file
3122
+ */
3123
+ 'imageFile': Buffer;
3124
+ /**
3125
+ * Types of barcode to recognize
3126
+ */
3127
+ 'decodeTypes'?: Array<DecodeBarcodeType>;
3128
+ /**
3129
+ * Timeout of recognition process in milliseconds.
3130
+ Default value is 15_000 (15 seconds).
3131
+ Maximum value is 30_000 (1/2 minute).
3132
+ In case of a timeout RequestTimeout (408) status will be returned.
3133
+ Try reducing the image size to avoid timeout.
3134
+ */
3135
+ 'timeout'?: number;
3136
+ /**
3137
+ * @param imageFile Image as file
3138
+ */
3139
+ constructor(imageFile: Buffer);
3140
+ }
3116
3141
  /**
3117
3142
  * Copy file
3118
3143
  */
@@ -0,0 +1,24 @@
1
+ /// <reference types="node" />
2
+ import { StringKeyWithStringValue } from 'httpClient';
3
+ export interface FormParamsType extends Array<Array<string>> {
4
+ }
5
+ interface IFormFile {
6
+ name: string;
7
+ filename: string;
8
+ data: Buffer;
9
+ contentType?: string;
10
+ }
11
+ export declare class FormFile implements IFormFile {
12
+ readonly name: string;
13
+ readonly filename: string;
14
+ readonly data: Buffer;
15
+ readonly contentType?: string | undefined;
16
+ constructor(name: string, filename: string, data: Buffer, contentType?: string | undefined);
17
+ }
18
+ export declare class Multipart {
19
+ readonly boundary: string;
20
+ readonly body: Buffer;
21
+ readonly headers: StringKeyWithStringValue;
22
+ constructor(textFields: FormParamsType, files?: IFormFile[]);
23
+ }
24
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aspose-barcode-cloud-node",
3
- "version": "24.3.0",
3
+ "version": "24.4.0",
4
4
  "description": "Aspose.BarCode Cloud SDK for Node.js",
5
5
  "homepage": "https://products.aspose.cloud/barcode/nodejs",
6
6
  "repository": {