aspose-barcode-cloud-node 25.12.0 → 26.2.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/LICENSE +1 -1
- package/README.md +6 -2
- package/dist/index.d.mts +80 -79
- package/dist/index.d.ts +80 -79
- package/dist/index.js +1586 -3
- package/dist/index.mjs +1520 -3
- package/package.json +20 -12
- package/dist/index.js.map +0 -1
- package/dist/index.mjs.map +0 -1
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
[](https://www.npmjs.com/package/aspose-barcode-cloud-node)
|
|
6
6
|
|
|
7
7
|
+ API version: 4.0
|
|
8
|
-
+ Package version:
|
|
8
|
+
+ Package version: 26.2.0
|
|
9
9
|
|
|
10
10
|
## SDK and API Version Compatibility:
|
|
11
11
|
|
|
@@ -26,6 +26,10 @@ This repository contains Aspose.BarCode Cloud SDK for Node.js source code.
|
|
|
26
26
|
|
|
27
27
|
To use these SDKs, you will need Client Id and Client Secret which can be looked up at [Aspose Cloud Dashboard](https://dashboard.aspose.cloud/applications) (free registration in Aspose Cloud is required for this).
|
|
28
28
|
|
|
29
|
+
## Requirements
|
|
30
|
+
|
|
31
|
+
- Node.js 18 or later (native `fetch` required).
|
|
32
|
+
|
|
29
33
|
## How to use the SDK
|
|
30
34
|
|
|
31
35
|
The complete source code is available in this repository folder. You can either directly use it in your project via source code or get [nmpjs distribution](https://www.npmjs.com/package/aspose-barcode-cloud-node) (recommended).
|
|
@@ -55,7 +59,7 @@ const config = new Barcode.Configuration(
|
|
|
55
59
|
|
|
56
60
|
async function generateBarcode(api) {
|
|
57
61
|
const request = new Barcode.GenerateRequestWrapper(
|
|
58
|
-
Barcode.EncodeBarcodeType.Qr,
|
|
62
|
+
Barcode.EncodeBarcodeType.Qr,
|
|
59
63
|
'Aspose.BarCode for Cloud Sample');
|
|
60
64
|
|
|
61
65
|
const oneBarcode = await api.generate(request);
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,43 @@
|
|
|
1
|
+
interface Authentication {
|
|
2
|
+
/**
|
|
3
|
+
* Apply authentication settings to header and query params.
|
|
4
|
+
*/
|
|
5
|
+
applyToRequestAsync(requestOptions: {
|
|
6
|
+
headers?: Record<string, string>;
|
|
7
|
+
qs?: Record<string, string>;
|
|
8
|
+
}): Promise<void>;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
declare enum ApiVersion {
|
|
12
|
+
v4 = "v4.0"
|
|
13
|
+
}
|
|
14
|
+
declare class Configuration {
|
|
15
|
+
/**
|
|
16
|
+
* Authentication type.
|
|
17
|
+
*/
|
|
18
|
+
authentication: Authentication;
|
|
19
|
+
/**
|
|
20
|
+
* Client Id.
|
|
21
|
+
*/
|
|
22
|
+
clientId: string;
|
|
23
|
+
/**
|
|
24
|
+
* Client Secret.
|
|
25
|
+
*/
|
|
26
|
+
clientSecret: string;
|
|
27
|
+
/**
|
|
28
|
+
* Base Url.
|
|
29
|
+
*/
|
|
30
|
+
baseUrl: string;
|
|
31
|
+
readonly version: ApiVersion;
|
|
32
|
+
readonly accessToken: string;
|
|
33
|
+
readonly tokenUrl: string;
|
|
34
|
+
constructor(clientId: string, clientSecret: string, baseUrl?: string, accessToken?: string, tokenUrl?: string);
|
|
35
|
+
/**
|
|
36
|
+
* Returns api base url
|
|
37
|
+
*/
|
|
38
|
+
getApiBaseUrl(): string;
|
|
39
|
+
}
|
|
40
|
+
|
|
1
41
|
/**
|
|
2
42
|
* Api Error.
|
|
3
43
|
*/
|
|
@@ -532,7 +572,6 @@ Default value: 0.
|
|
|
532
572
|
'rotationAngle'?: number;
|
|
533
573
|
/**
|
|
534
574
|
* @param barcodeType Type of barcode to generate.
|
|
535
|
-
|
|
536
575
|
* @param data String represents data to encode
|
|
537
576
|
*/
|
|
538
577
|
constructor(barcodeType: EncodeBarcodeType, data: string);
|
|
@@ -604,7 +643,6 @@ declare class GenerateMultipartRequestWrapper {
|
|
|
604
643
|
'rotationAngle'?: number;
|
|
605
644
|
/**
|
|
606
645
|
* @param barcodeType
|
|
607
|
-
|
|
608
646
|
* @param data String represents data to encode
|
|
609
647
|
*/
|
|
610
648
|
constructor(barcodeType: EncodeBarcodeType, data: string);
|
|
@@ -631,7 +669,6 @@ declare class RecognizeRequestWrapper {
|
|
|
631
669
|
'recognitionImageKind'?: RecognitionImageKind;
|
|
632
670
|
/**
|
|
633
671
|
* @param barcodeType Type of barcode to recognize
|
|
634
|
-
|
|
635
672
|
* @param fileUrl Url to barcode image
|
|
636
673
|
*/
|
|
637
674
|
constructor(barcodeType: DecodeBarcodeType, fileUrl: string);
|
|
@@ -671,7 +708,6 @@ declare class RecognizeMultipartRequestWrapper {
|
|
|
671
708
|
'recognitionImageKind'?: RecognitionImageKind;
|
|
672
709
|
/**
|
|
673
710
|
* @param barcodeType
|
|
674
|
-
|
|
675
711
|
* @param fileBytes Barcode image file
|
|
676
712
|
*/
|
|
677
713
|
constructor(barcodeType: DecodeBarcodeType, fileBytes: Buffer);
|
|
@@ -716,93 +752,64 @@ declare class ScanMultipartRequestWrapper {
|
|
|
716
752
|
constructor(fileBytes: Buffer);
|
|
717
753
|
}
|
|
718
754
|
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
}
|
|
722
|
-
interface HttpOptions {
|
|
755
|
+
type StringMap = Record<string, string>;
|
|
756
|
+
type ApiRequestOptions = {
|
|
723
757
|
uri: string;
|
|
724
758
|
body?: any;
|
|
725
759
|
encoding?: BufferEncoding | null;
|
|
726
|
-
form?:
|
|
727
|
-
headers?:
|
|
760
|
+
form?: StringMap;
|
|
761
|
+
headers?: StringMap;
|
|
728
762
|
json?: boolean;
|
|
729
763
|
method?: string;
|
|
730
|
-
qs?:
|
|
731
|
-
}
|
|
732
|
-
|
|
764
|
+
qs?: StringMap;
|
|
765
|
+
};
|
|
766
|
+
type ApiResponse = {
|
|
733
767
|
statusCode: number;
|
|
734
768
|
statusMessage: string;
|
|
735
769
|
headers: NodeJS.Dict<string | string[]>;
|
|
736
770
|
body: any;
|
|
771
|
+
};
|
|
772
|
+
type ApiResult<T = any> = {
|
|
773
|
+
response: ApiResponse;
|
|
774
|
+
body: T;
|
|
775
|
+
};
|
|
776
|
+
declare class ApiClient {
|
|
777
|
+
private readonly _fetcher;
|
|
778
|
+
constructor();
|
|
779
|
+
requestAsync(options: ApiRequestOptions): Promise<ApiResult>;
|
|
780
|
+
private buildRequestBody;
|
|
781
|
+
private doFetchRequest;
|
|
782
|
+
private readResponseBody;
|
|
783
|
+
private toHeaderDict;
|
|
784
|
+
private normalizeFetchError;
|
|
737
785
|
}
|
|
738
|
-
|
|
739
|
-
interface Authentication {
|
|
740
|
-
/**
|
|
741
|
-
* Apply authentication settings to header and query params.
|
|
742
|
-
*/
|
|
743
|
-
applyToRequestAsync(requestOptions: HttpOptions): Promise<void>;
|
|
744
|
-
}
|
|
745
|
-
|
|
746
|
-
declare enum ApiVersion {
|
|
747
|
-
v4 = "v4.0"
|
|
748
|
-
}
|
|
749
|
-
declare class Configuration {
|
|
750
|
-
/**
|
|
751
|
-
* Authentication type.
|
|
752
|
-
*/
|
|
753
|
-
authentication: Authentication;
|
|
754
|
-
/**
|
|
755
|
-
* Client Id.
|
|
756
|
-
*/
|
|
757
|
-
clientId: string;
|
|
758
|
-
/**
|
|
759
|
-
* Client Secret.
|
|
760
|
-
*/
|
|
761
|
-
clientSecret: string;
|
|
762
|
-
/**
|
|
763
|
-
* Base Url.
|
|
764
|
-
*/
|
|
765
|
-
baseUrl: string;
|
|
766
|
-
readonly version: ApiVersion;
|
|
767
|
-
readonly accessToken: string;
|
|
768
|
-
readonly tokenUrl: string;
|
|
769
|
-
constructor(clientId: string, clientSecret: string, baseUrl?: string, accessToken?: string, tokenUrl?: string);
|
|
770
|
-
/**
|
|
771
|
-
* Returns api base url
|
|
772
|
-
*/
|
|
773
|
-
getApiBaseUrl(): string;
|
|
774
|
-
}
|
|
775
|
-
|
|
776
786
|
declare class GenerateApi {
|
|
777
787
|
protected defaultHeaders: any;
|
|
778
788
|
protected _configuration: Configuration;
|
|
779
789
|
private _client;
|
|
780
790
|
constructor(configuration: Configuration);
|
|
781
791
|
/**
|
|
782
|
-
*
|
|
783
|
-
* @summary Generate barcode using GET request with parameters in route and query string.
|
|
792
|
+
* Generate barcode using GET request with parameters in route and query string.
|
|
784
793
|
* @param request GenerateRequestWrapper
|
|
785
794
|
*/
|
|
786
795
|
generate(request: GenerateRequestWrapper): Promise<{
|
|
787
|
-
response:
|
|
796
|
+
response: ApiResponse;
|
|
788
797
|
body: Buffer;
|
|
789
798
|
}>;
|
|
790
799
|
/**
|
|
791
|
-
*
|
|
792
|
-
* @summary Generate barcode using POST request with parameters in body in json or xml format.
|
|
800
|
+
* Generate barcode using POST request with parameters in body in json or xml format.
|
|
793
801
|
* @param request GenerateBodyRequestWrapper
|
|
794
802
|
*/
|
|
795
803
|
generateBody(request: GenerateBodyRequestWrapper): Promise<{
|
|
796
|
-
response:
|
|
804
|
+
response: ApiResponse;
|
|
797
805
|
body: Buffer;
|
|
798
806
|
}>;
|
|
799
807
|
/**
|
|
800
|
-
*
|
|
801
|
-
* @summary Generate barcode using POST request with parameters in multipart form.
|
|
808
|
+
* Generate barcode using POST request with parameters in multipart form.
|
|
802
809
|
* @param request GenerateMultipartRequestWrapper
|
|
803
810
|
*/
|
|
804
811
|
generateMultipart(request: GenerateMultipartRequestWrapper): Promise<{
|
|
805
|
-
response:
|
|
812
|
+
response: ApiResponse;
|
|
806
813
|
body: Buffer;
|
|
807
814
|
}>;
|
|
808
815
|
}
|
|
@@ -812,30 +819,27 @@ declare class RecognizeApi {
|
|
|
812
819
|
private _client;
|
|
813
820
|
constructor(configuration: Configuration);
|
|
814
821
|
/**
|
|
815
|
-
*
|
|
816
|
-
* @summary Recognize barcode from file on server in the Internet using GET requests with parameter in query string. For recognizing files from your hard drive use `recognize-body` or `recognize-multipart` endpoints instead.
|
|
822
|
+
* Recognize barcode from file on server in the Internet using GET requests with parameter in query string. For recognizing files from your hard drive use `recognize-body` or `recognize-multipart` endpoints instead.
|
|
817
823
|
* @param request RecognizeRequestWrapper
|
|
818
824
|
*/
|
|
819
825
|
recognize(request: RecognizeRequestWrapper): Promise<{
|
|
820
|
-
response:
|
|
826
|
+
response: ApiResponse;
|
|
821
827
|
body: BarcodeResponseList;
|
|
822
828
|
}>;
|
|
823
829
|
/**
|
|
824
|
-
*
|
|
825
|
-
* @summary Recognize barcode from file in request body using POST requests with parameters in body in json or xml format.
|
|
830
|
+
* Recognize barcode from file in request body using POST requests with parameters in body in json or xml format.
|
|
826
831
|
* @param request RecognizeBase64RequestWrapper
|
|
827
832
|
*/
|
|
828
833
|
recognizeBase64(request: RecognizeBase64RequestWrapper): Promise<{
|
|
829
|
-
response:
|
|
834
|
+
response: ApiResponse;
|
|
830
835
|
body: BarcodeResponseList;
|
|
831
836
|
}>;
|
|
832
837
|
/**
|
|
833
|
-
*
|
|
834
|
-
* @summary Recognize barcode from file in request body using POST requests with parameters in multipart form.
|
|
838
|
+
* Recognize barcode from file in request body using POST requests with parameters in multipart form.
|
|
835
839
|
* @param request RecognizeMultipartRequestWrapper
|
|
836
840
|
*/
|
|
837
841
|
recognizeMultipart(request: RecognizeMultipartRequestWrapper): Promise<{
|
|
838
|
-
response:
|
|
842
|
+
response: ApiResponse;
|
|
839
843
|
body: BarcodeResponseList;
|
|
840
844
|
}>;
|
|
841
845
|
}
|
|
@@ -845,32 +849,29 @@ declare class ScanApi {
|
|
|
845
849
|
private _client;
|
|
846
850
|
constructor(configuration: Configuration);
|
|
847
851
|
/**
|
|
848
|
-
*
|
|
849
|
-
* @summary Scan barcode from file on server in the Internet using GET requests with parameter in query string. For scaning files from your hard drive use `scan-body` or `scan-multipart` endpoints instead.
|
|
852
|
+
* Scan barcode from file on server in the Internet using GET requests with parameter in query string. For scaning files from your hard drive use `scan-body` or `scan-multipart` endpoints instead.
|
|
850
853
|
* @param request ScanRequestWrapper
|
|
851
854
|
*/
|
|
852
855
|
scan(request: ScanRequestWrapper): Promise<{
|
|
853
|
-
response:
|
|
856
|
+
response: ApiResponse;
|
|
854
857
|
body: BarcodeResponseList;
|
|
855
858
|
}>;
|
|
856
859
|
/**
|
|
857
|
-
*
|
|
858
|
-
* @summary Scan barcode from file in request body using POST requests with parameter in body in json or xml format.
|
|
860
|
+
* Scan barcode from file in request body using POST requests with parameter in body in json or xml format.
|
|
859
861
|
* @param request ScanBase64RequestWrapper
|
|
860
862
|
*/
|
|
861
863
|
scanBase64(request: ScanBase64RequestWrapper): Promise<{
|
|
862
|
-
response:
|
|
864
|
+
response: ApiResponse;
|
|
863
865
|
body: BarcodeResponseList;
|
|
864
866
|
}>;
|
|
865
867
|
/**
|
|
866
|
-
*
|
|
867
|
-
* @summary Scan barcode from file in request body using POST requests with parameter in multipart form.
|
|
868
|
+
* Scan barcode from file in request body using POST requests with parameter in multipart form.
|
|
868
869
|
* @param request ScanMultipartRequestWrapper
|
|
869
870
|
*/
|
|
870
871
|
scanMultipart(request: ScanMultipartRequestWrapper): Promise<{
|
|
871
|
-
response:
|
|
872
|
+
response: ApiResponse;
|
|
872
873
|
body: BarcodeResponseList;
|
|
873
874
|
}>;
|
|
874
875
|
}
|
|
875
876
|
|
|
876
|
-
export { ApiError, ApiErrorResponse, ApiVersion, BarcodeImageFormat, BarcodeImageParams, BarcodeResponse, BarcodeResponseList, CodeLocation, Configuration, DecodeBarcodeType, EncodeBarcodeType, EncodeData, EncodeDataType, GenerateApi, GenerateBodyRequestWrapper, GenerateMultipartRequestWrapper, GenerateParams, GenerateRequestWrapper, GraphicsUnit, RecognitionImageKind, RecognitionMode, RecognizeApi, RecognizeBase64Request, RecognizeBase64RequestWrapper, RecognizeMultipartRequestWrapper, RecognizeRequestWrapper, RegionPoint, ScanApi, ScanBase64Request, ScanBase64RequestWrapper, ScanMultipartRequestWrapper, ScanRequestWrapper };
|
|
877
|
+
export { ApiClient, ApiError, ApiErrorResponse, ApiVersion, BarcodeImageFormat, BarcodeImageParams, BarcodeResponse, BarcodeResponseList, CodeLocation, Configuration, DecodeBarcodeType, EncodeBarcodeType, EncodeData, EncodeDataType, GenerateApi, GenerateBodyRequestWrapper, GenerateMultipartRequestWrapper, GenerateParams, GenerateRequestWrapper, GraphicsUnit, RecognitionImageKind, RecognitionMode, RecognizeApi, RecognizeBase64Request, RecognizeBase64RequestWrapper, RecognizeMultipartRequestWrapper, RecognizeRequestWrapper, RegionPoint, ScanApi, ScanBase64Request, ScanBase64RequestWrapper, ScanMultipartRequestWrapper, ScanRequestWrapper };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,43 @@
|
|
|
1
|
+
interface Authentication {
|
|
2
|
+
/**
|
|
3
|
+
* Apply authentication settings to header and query params.
|
|
4
|
+
*/
|
|
5
|
+
applyToRequestAsync(requestOptions: {
|
|
6
|
+
headers?: Record<string, string>;
|
|
7
|
+
qs?: Record<string, string>;
|
|
8
|
+
}): Promise<void>;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
declare enum ApiVersion {
|
|
12
|
+
v4 = "v4.0"
|
|
13
|
+
}
|
|
14
|
+
declare class Configuration {
|
|
15
|
+
/**
|
|
16
|
+
* Authentication type.
|
|
17
|
+
*/
|
|
18
|
+
authentication: Authentication;
|
|
19
|
+
/**
|
|
20
|
+
* Client Id.
|
|
21
|
+
*/
|
|
22
|
+
clientId: string;
|
|
23
|
+
/**
|
|
24
|
+
* Client Secret.
|
|
25
|
+
*/
|
|
26
|
+
clientSecret: string;
|
|
27
|
+
/**
|
|
28
|
+
* Base Url.
|
|
29
|
+
*/
|
|
30
|
+
baseUrl: string;
|
|
31
|
+
readonly version: ApiVersion;
|
|
32
|
+
readonly accessToken: string;
|
|
33
|
+
readonly tokenUrl: string;
|
|
34
|
+
constructor(clientId: string, clientSecret: string, baseUrl?: string, accessToken?: string, tokenUrl?: string);
|
|
35
|
+
/**
|
|
36
|
+
* Returns api base url
|
|
37
|
+
*/
|
|
38
|
+
getApiBaseUrl(): string;
|
|
39
|
+
}
|
|
40
|
+
|
|
1
41
|
/**
|
|
2
42
|
* Api Error.
|
|
3
43
|
*/
|
|
@@ -532,7 +572,6 @@ Default value: 0.
|
|
|
532
572
|
'rotationAngle'?: number;
|
|
533
573
|
/**
|
|
534
574
|
* @param barcodeType Type of barcode to generate.
|
|
535
|
-
|
|
536
575
|
* @param data String represents data to encode
|
|
537
576
|
*/
|
|
538
577
|
constructor(barcodeType: EncodeBarcodeType, data: string);
|
|
@@ -604,7 +643,6 @@ declare class GenerateMultipartRequestWrapper {
|
|
|
604
643
|
'rotationAngle'?: number;
|
|
605
644
|
/**
|
|
606
645
|
* @param barcodeType
|
|
607
|
-
|
|
608
646
|
* @param data String represents data to encode
|
|
609
647
|
*/
|
|
610
648
|
constructor(barcodeType: EncodeBarcodeType, data: string);
|
|
@@ -631,7 +669,6 @@ declare class RecognizeRequestWrapper {
|
|
|
631
669
|
'recognitionImageKind'?: RecognitionImageKind;
|
|
632
670
|
/**
|
|
633
671
|
* @param barcodeType Type of barcode to recognize
|
|
634
|
-
|
|
635
672
|
* @param fileUrl Url to barcode image
|
|
636
673
|
*/
|
|
637
674
|
constructor(barcodeType: DecodeBarcodeType, fileUrl: string);
|
|
@@ -671,7 +708,6 @@ declare class RecognizeMultipartRequestWrapper {
|
|
|
671
708
|
'recognitionImageKind'?: RecognitionImageKind;
|
|
672
709
|
/**
|
|
673
710
|
* @param barcodeType
|
|
674
|
-
|
|
675
711
|
* @param fileBytes Barcode image file
|
|
676
712
|
*/
|
|
677
713
|
constructor(barcodeType: DecodeBarcodeType, fileBytes: Buffer);
|
|
@@ -716,93 +752,64 @@ declare class ScanMultipartRequestWrapper {
|
|
|
716
752
|
constructor(fileBytes: Buffer);
|
|
717
753
|
}
|
|
718
754
|
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
}
|
|
722
|
-
interface HttpOptions {
|
|
755
|
+
type StringMap = Record<string, string>;
|
|
756
|
+
type ApiRequestOptions = {
|
|
723
757
|
uri: string;
|
|
724
758
|
body?: any;
|
|
725
759
|
encoding?: BufferEncoding | null;
|
|
726
|
-
form?:
|
|
727
|
-
headers?:
|
|
760
|
+
form?: StringMap;
|
|
761
|
+
headers?: StringMap;
|
|
728
762
|
json?: boolean;
|
|
729
763
|
method?: string;
|
|
730
|
-
qs?:
|
|
731
|
-
}
|
|
732
|
-
|
|
764
|
+
qs?: StringMap;
|
|
765
|
+
};
|
|
766
|
+
type ApiResponse = {
|
|
733
767
|
statusCode: number;
|
|
734
768
|
statusMessage: string;
|
|
735
769
|
headers: NodeJS.Dict<string | string[]>;
|
|
736
770
|
body: any;
|
|
771
|
+
};
|
|
772
|
+
type ApiResult<T = any> = {
|
|
773
|
+
response: ApiResponse;
|
|
774
|
+
body: T;
|
|
775
|
+
};
|
|
776
|
+
declare class ApiClient {
|
|
777
|
+
private readonly _fetcher;
|
|
778
|
+
constructor();
|
|
779
|
+
requestAsync(options: ApiRequestOptions): Promise<ApiResult>;
|
|
780
|
+
private buildRequestBody;
|
|
781
|
+
private doFetchRequest;
|
|
782
|
+
private readResponseBody;
|
|
783
|
+
private toHeaderDict;
|
|
784
|
+
private normalizeFetchError;
|
|
737
785
|
}
|
|
738
|
-
|
|
739
|
-
interface Authentication {
|
|
740
|
-
/**
|
|
741
|
-
* Apply authentication settings to header and query params.
|
|
742
|
-
*/
|
|
743
|
-
applyToRequestAsync(requestOptions: HttpOptions): Promise<void>;
|
|
744
|
-
}
|
|
745
|
-
|
|
746
|
-
declare enum ApiVersion {
|
|
747
|
-
v4 = "v4.0"
|
|
748
|
-
}
|
|
749
|
-
declare class Configuration {
|
|
750
|
-
/**
|
|
751
|
-
* Authentication type.
|
|
752
|
-
*/
|
|
753
|
-
authentication: Authentication;
|
|
754
|
-
/**
|
|
755
|
-
* Client Id.
|
|
756
|
-
*/
|
|
757
|
-
clientId: string;
|
|
758
|
-
/**
|
|
759
|
-
* Client Secret.
|
|
760
|
-
*/
|
|
761
|
-
clientSecret: string;
|
|
762
|
-
/**
|
|
763
|
-
* Base Url.
|
|
764
|
-
*/
|
|
765
|
-
baseUrl: string;
|
|
766
|
-
readonly version: ApiVersion;
|
|
767
|
-
readonly accessToken: string;
|
|
768
|
-
readonly tokenUrl: string;
|
|
769
|
-
constructor(clientId: string, clientSecret: string, baseUrl?: string, accessToken?: string, tokenUrl?: string);
|
|
770
|
-
/**
|
|
771
|
-
* Returns api base url
|
|
772
|
-
*/
|
|
773
|
-
getApiBaseUrl(): string;
|
|
774
|
-
}
|
|
775
|
-
|
|
776
786
|
declare class GenerateApi {
|
|
777
787
|
protected defaultHeaders: any;
|
|
778
788
|
protected _configuration: Configuration;
|
|
779
789
|
private _client;
|
|
780
790
|
constructor(configuration: Configuration);
|
|
781
791
|
/**
|
|
782
|
-
*
|
|
783
|
-
* @summary Generate barcode using GET request with parameters in route and query string.
|
|
792
|
+
* Generate barcode using GET request with parameters in route and query string.
|
|
784
793
|
* @param request GenerateRequestWrapper
|
|
785
794
|
*/
|
|
786
795
|
generate(request: GenerateRequestWrapper): Promise<{
|
|
787
|
-
response:
|
|
796
|
+
response: ApiResponse;
|
|
788
797
|
body: Buffer;
|
|
789
798
|
}>;
|
|
790
799
|
/**
|
|
791
|
-
*
|
|
792
|
-
* @summary Generate barcode using POST request with parameters in body in json or xml format.
|
|
800
|
+
* Generate barcode using POST request with parameters in body in json or xml format.
|
|
793
801
|
* @param request GenerateBodyRequestWrapper
|
|
794
802
|
*/
|
|
795
803
|
generateBody(request: GenerateBodyRequestWrapper): Promise<{
|
|
796
|
-
response:
|
|
804
|
+
response: ApiResponse;
|
|
797
805
|
body: Buffer;
|
|
798
806
|
}>;
|
|
799
807
|
/**
|
|
800
|
-
*
|
|
801
|
-
* @summary Generate barcode using POST request with parameters in multipart form.
|
|
808
|
+
* Generate barcode using POST request with parameters in multipart form.
|
|
802
809
|
* @param request GenerateMultipartRequestWrapper
|
|
803
810
|
*/
|
|
804
811
|
generateMultipart(request: GenerateMultipartRequestWrapper): Promise<{
|
|
805
|
-
response:
|
|
812
|
+
response: ApiResponse;
|
|
806
813
|
body: Buffer;
|
|
807
814
|
}>;
|
|
808
815
|
}
|
|
@@ -812,30 +819,27 @@ declare class RecognizeApi {
|
|
|
812
819
|
private _client;
|
|
813
820
|
constructor(configuration: Configuration);
|
|
814
821
|
/**
|
|
815
|
-
*
|
|
816
|
-
* @summary Recognize barcode from file on server in the Internet using GET requests with parameter in query string. For recognizing files from your hard drive use `recognize-body` or `recognize-multipart` endpoints instead.
|
|
822
|
+
* Recognize barcode from file on server in the Internet using GET requests with parameter in query string. For recognizing files from your hard drive use `recognize-body` or `recognize-multipart` endpoints instead.
|
|
817
823
|
* @param request RecognizeRequestWrapper
|
|
818
824
|
*/
|
|
819
825
|
recognize(request: RecognizeRequestWrapper): Promise<{
|
|
820
|
-
response:
|
|
826
|
+
response: ApiResponse;
|
|
821
827
|
body: BarcodeResponseList;
|
|
822
828
|
}>;
|
|
823
829
|
/**
|
|
824
|
-
*
|
|
825
|
-
* @summary Recognize barcode from file in request body using POST requests with parameters in body in json or xml format.
|
|
830
|
+
* Recognize barcode from file in request body using POST requests with parameters in body in json or xml format.
|
|
826
831
|
* @param request RecognizeBase64RequestWrapper
|
|
827
832
|
*/
|
|
828
833
|
recognizeBase64(request: RecognizeBase64RequestWrapper): Promise<{
|
|
829
|
-
response:
|
|
834
|
+
response: ApiResponse;
|
|
830
835
|
body: BarcodeResponseList;
|
|
831
836
|
}>;
|
|
832
837
|
/**
|
|
833
|
-
*
|
|
834
|
-
* @summary Recognize barcode from file in request body using POST requests with parameters in multipart form.
|
|
838
|
+
* Recognize barcode from file in request body using POST requests with parameters in multipart form.
|
|
835
839
|
* @param request RecognizeMultipartRequestWrapper
|
|
836
840
|
*/
|
|
837
841
|
recognizeMultipart(request: RecognizeMultipartRequestWrapper): Promise<{
|
|
838
|
-
response:
|
|
842
|
+
response: ApiResponse;
|
|
839
843
|
body: BarcodeResponseList;
|
|
840
844
|
}>;
|
|
841
845
|
}
|
|
@@ -845,32 +849,29 @@ declare class ScanApi {
|
|
|
845
849
|
private _client;
|
|
846
850
|
constructor(configuration: Configuration);
|
|
847
851
|
/**
|
|
848
|
-
*
|
|
849
|
-
* @summary Scan barcode from file on server in the Internet using GET requests with parameter in query string. For scaning files from your hard drive use `scan-body` or `scan-multipart` endpoints instead.
|
|
852
|
+
* Scan barcode from file on server in the Internet using GET requests with parameter in query string. For scaning files from your hard drive use `scan-body` or `scan-multipart` endpoints instead.
|
|
850
853
|
* @param request ScanRequestWrapper
|
|
851
854
|
*/
|
|
852
855
|
scan(request: ScanRequestWrapper): Promise<{
|
|
853
|
-
response:
|
|
856
|
+
response: ApiResponse;
|
|
854
857
|
body: BarcodeResponseList;
|
|
855
858
|
}>;
|
|
856
859
|
/**
|
|
857
|
-
*
|
|
858
|
-
* @summary Scan barcode from file in request body using POST requests with parameter in body in json or xml format.
|
|
860
|
+
* Scan barcode from file in request body using POST requests with parameter in body in json or xml format.
|
|
859
861
|
* @param request ScanBase64RequestWrapper
|
|
860
862
|
*/
|
|
861
863
|
scanBase64(request: ScanBase64RequestWrapper): Promise<{
|
|
862
|
-
response:
|
|
864
|
+
response: ApiResponse;
|
|
863
865
|
body: BarcodeResponseList;
|
|
864
866
|
}>;
|
|
865
867
|
/**
|
|
866
|
-
*
|
|
867
|
-
* @summary Scan barcode from file in request body using POST requests with parameter in multipart form.
|
|
868
|
+
* Scan barcode from file in request body using POST requests with parameter in multipart form.
|
|
868
869
|
* @param request ScanMultipartRequestWrapper
|
|
869
870
|
*/
|
|
870
871
|
scanMultipart(request: ScanMultipartRequestWrapper): Promise<{
|
|
871
|
-
response:
|
|
872
|
+
response: ApiResponse;
|
|
872
873
|
body: BarcodeResponseList;
|
|
873
874
|
}>;
|
|
874
875
|
}
|
|
875
876
|
|
|
876
|
-
export { ApiError, ApiErrorResponse, ApiVersion, BarcodeImageFormat, BarcodeImageParams, BarcodeResponse, BarcodeResponseList, CodeLocation, Configuration, DecodeBarcodeType, EncodeBarcodeType, EncodeData, EncodeDataType, GenerateApi, GenerateBodyRequestWrapper, GenerateMultipartRequestWrapper, GenerateParams, GenerateRequestWrapper, GraphicsUnit, RecognitionImageKind, RecognitionMode, RecognizeApi, RecognizeBase64Request, RecognizeBase64RequestWrapper, RecognizeMultipartRequestWrapper, RecognizeRequestWrapper, RegionPoint, ScanApi, ScanBase64Request, ScanBase64RequestWrapper, ScanMultipartRequestWrapper, ScanRequestWrapper };
|
|
877
|
+
export { ApiClient, ApiError, ApiErrorResponse, ApiVersion, BarcodeImageFormat, BarcodeImageParams, BarcodeResponse, BarcodeResponseList, CodeLocation, Configuration, DecodeBarcodeType, EncodeBarcodeType, EncodeData, EncodeDataType, GenerateApi, GenerateBodyRequestWrapper, GenerateMultipartRequestWrapper, GenerateParams, GenerateRequestWrapper, GraphicsUnit, RecognitionImageKind, RecognitionMode, RecognizeApi, RecognizeBase64Request, RecognizeBase64RequestWrapper, RecognizeMultipartRequestWrapper, RecognizeRequestWrapper, RegionPoint, ScanApi, ScanBase64Request, ScanBase64RequestWrapper, ScanMultipartRequestWrapper, ScanRequestWrapper };
|