aspose-barcode-cloud-node
Advanced tools
Comparing version 24.3.0 to 24.4.0
@@ -5,3 +5,3 @@ /// <reference types="node" /> | ||
import { BarcodeResponseList, DiscUsage, FileVersions, FilesList, FilesUploadResult, ObjectExist, ResultImageInfo, StorageExist } from './models'; | ||
import { GetBarcodeGenerateRequest, GetBarcodeRecognizeRequest, PostBarcodeRecognizeFromUrlOrContentRequest, PostGenerateMultipleRequest, PutBarcodeGenerateFileRequest, PutBarcodeRecognizeFromBodyRequest, PutGenerateMultipleRequest, CopyFileRequest, DeleteFileRequest, DownloadFileRequest, MoveFileRequest, UploadFileRequest, CopyFolderRequest, CreateFolderRequest, DeleteFolderRequest, GetFilesListRequest, MoveFolderRequest, GetDiscUsageRequest, GetFileVersionsRequest, ObjectExistsRequest, StorageExistsRequest } from './models'; | ||
import { GetBarcodeGenerateRequest, GetBarcodeRecognizeRequest, PostBarcodeRecognizeFromUrlOrContentRequest, PostGenerateMultipleRequest, PutBarcodeGenerateFileRequest, PutBarcodeRecognizeFromBodyRequest, PutGenerateMultipleRequest, ScanBarcodeRequest, CopyFileRequest, DeleteFileRequest, DownloadFileRequest, MoveFileRequest, UploadFileRequest, CopyFolderRequest, CreateFolderRequest, DeleteFolderRequest, GetFilesListRequest, MoveFolderRequest, GetDiscUsageRequest, GetFileVersionsRequest, ObjectExistsRequest, StorageExistsRequest } from './models'; | ||
export * from './models'; | ||
@@ -76,2 +76,11 @@ export declare class BarcodeApi { | ||
}>; | ||
/** | ||
* | ||
* @summary Quickly scan a barcode from an image. | ||
* @param request ScanBarcodeRequest | ||
*/ | ||
scanBarcode(request: ScanBarcodeRequest): Promise<{ | ||
response: HttpResponse; | ||
body: BarcodeResponseList; | ||
}>; | ||
} | ||
@@ -78,0 +87,0 @@ export declare class FileApi { |
/// <reference types="node" /> | ||
interface StringKeyWithStringValue { | ||
export interface StringKeyWithStringValue { | ||
[key: string]: string; | ||
@@ -34,2 +34,1 @@ } | ||
} | ||
export {}; |
{ | ||
"name": "aspose-barcode-cloud-node", | ||
"version": "24.3.0", | ||
"version": "24.4.0", | ||
"description": "Aspose.BarCode Cloud SDK for Node.js", | ||
@@ -5,0 +5,0 @@ "homepage": "https://products.aspose.cloud/barcode/nodejs", |
@@ -8,3 +8,3 @@ # Aspose.BarCode Cloud SDK for Node.js | ||
+ API version: 3.0 | ||
+ Package version: 24.3.0 | ||
+ Package version: 24.4.0 | ||
@@ -56,4 +56,4 @@ ## Demo applications | ||
'Aspose.BarCode for Cloud Sample'); | ||
request.textLocation = "None"; | ||
request.textLocation = Barcode.CodeLocation.None; | ||
const oneBarcode = await api.getBarcodeGenerate(request); | ||
@@ -67,10 +67,7 @@ | ||
async function recognizeBarcode(api, fileName) { | ||
const request = new Barcode.PostBarcodeRecognizeFromUrlOrContentRequest(); | ||
request.image = fs.readFileSync(fileName); | ||
request.type = Barcode.DecodeBarcodeType.QR; | ||
request.preset = Barcode.PresetType.HighPerformance; | ||
request.fastScanOnly = true; | ||
async function scanBarcode(api, fileName) { | ||
const request = new Barcode.ScanBarcodeRequest(fs.readFileSync(fileName)); | ||
request.decodeTypes = [Barcode.DecodeBarcodeType.QR]; | ||
const result = await api.postBarcodeRecognizeFromUrlOrContent(request); | ||
const result = await api.scanBarcode(request); | ||
@@ -88,3 +85,3 @@ return result.body.barcodes; | ||
console.log('Trying to recognize barcode...'); | ||
recognizeBarcode(api, fileName) | ||
scanBarcode(api, fileName) | ||
.then(barcodes => { | ||
@@ -129,2 +126,3 @@ console.log('Recognized barcodes are:'); | ||
BarcodeApi | [**putGenerateMultiple**](docs/index.md#putgeneratemultiple) | **PUT** /barcode/{name}/generateMultiple | Generate image with multiple barcodes and put new file on server | ||
BarcodeApi | [**scanBarcode**](docs/index.md#scanbarcode) | **POST** /barcode/scan | Quickly scan a barcode from an image. | ||
FileApi | [**copyFile**](docs/index.md#copyfile) | **PUT** /barcode/storage/file/copy/{srcPath} | Copy file | ||
@@ -131,0 +129,0 @@ FileApi | [**deleteFile**](docs/index.md#deletefile) | **DELETE** /barcode/storage/file/{path} | Delete file |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1447067
18
11926
137