groupdocs-parser-cloud 22.3.0 → 23.7.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/lib/configuration.js +1 -1
- package/lib/model.d.ts +134 -0
- package/lib/model.js +135 -1
- package/lib/package_version.js +2 -2
- package/lib/parser_api.d.ts +5 -0
- package/lib/parser_api.js +28 -1
- package/package.json +1 -1
package/lib/configuration.js
CHANGED
package/lib/model.d.ts
CHANGED
|
@@ -1,4 +1,90 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
+
/**
|
|
3
|
+
* Represents an barcode.
|
|
4
|
+
*/
|
|
5
|
+
export declare class Barcode {
|
|
6
|
+
/**
|
|
7
|
+
* Attribute type map
|
|
8
|
+
*/
|
|
9
|
+
static attributeTypeMap: Array<{
|
|
10
|
+
name: string;
|
|
11
|
+
baseName: string;
|
|
12
|
+
type: string;
|
|
13
|
+
}>;
|
|
14
|
+
/**
|
|
15
|
+
* Returns attribute type map
|
|
16
|
+
*/
|
|
17
|
+
static getAttributeTypeMap(): {
|
|
18
|
+
name: string;
|
|
19
|
+
baseName: string;
|
|
20
|
+
type: string;
|
|
21
|
+
}[];
|
|
22
|
+
/**
|
|
23
|
+
* Gets the name of the barcode type.
|
|
24
|
+
*/
|
|
25
|
+
codeTypeName: string;
|
|
26
|
+
/**
|
|
27
|
+
* Gets the barcode value.
|
|
28
|
+
*/
|
|
29
|
+
value: string;
|
|
30
|
+
/**
|
|
31
|
+
* Gets or sets the barcode download URL.
|
|
32
|
+
*/
|
|
33
|
+
downloadUrl: string;
|
|
34
|
+
constructor(init?: Partial<Barcode>);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Represents page object with barcode.
|
|
38
|
+
*/
|
|
39
|
+
export declare class BarcodePage {
|
|
40
|
+
/**
|
|
41
|
+
* Attribute type map
|
|
42
|
+
*/
|
|
43
|
+
static attributeTypeMap: Array<{
|
|
44
|
+
name: string;
|
|
45
|
+
baseName: string;
|
|
46
|
+
type: string;
|
|
47
|
+
}>;
|
|
48
|
+
/**
|
|
49
|
+
* Returns attribute type map
|
|
50
|
+
*/
|
|
51
|
+
static getAttributeTypeMap(): {
|
|
52
|
+
name: string;
|
|
53
|
+
baseName: string;
|
|
54
|
+
type: string;
|
|
55
|
+
}[];
|
|
56
|
+
/**
|
|
57
|
+
* The index of the page.
|
|
58
|
+
*/
|
|
59
|
+
index: number;
|
|
60
|
+
constructor(init?: Partial<BarcodePage>);
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Barcodes result.
|
|
64
|
+
*/
|
|
65
|
+
export declare class BarcodesResult {
|
|
66
|
+
/**
|
|
67
|
+
* Attribute type map
|
|
68
|
+
*/
|
|
69
|
+
static attributeTypeMap: Array<{
|
|
70
|
+
name: string;
|
|
71
|
+
baseName: string;
|
|
72
|
+
type: string;
|
|
73
|
+
}>;
|
|
74
|
+
/**
|
|
75
|
+
* Returns attribute type map
|
|
76
|
+
*/
|
|
77
|
+
static getAttributeTypeMap(): {
|
|
78
|
+
name: string;
|
|
79
|
+
baseName: string;
|
|
80
|
+
type: string;
|
|
81
|
+
}[];
|
|
82
|
+
/**
|
|
83
|
+
* Gets or sets a collection of barcodes.
|
|
84
|
+
*/
|
|
85
|
+
barcodes: Array<Barcode>;
|
|
86
|
+
constructor(init?: Partial<BarcodesResult>);
|
|
87
|
+
}
|
|
2
88
|
/**
|
|
3
89
|
* Represents a container item like Zip archive entity, email attachment, PDF Portfolio item and so on.
|
|
4
90
|
*/
|
|
@@ -1515,6 +1601,40 @@ export declare class TextStyle {
|
|
|
1515
1601
|
name: string;
|
|
1516
1602
|
constructor(init?: Partial<TextStyle>);
|
|
1517
1603
|
}
|
|
1604
|
+
/**
|
|
1605
|
+
* Barcode options.
|
|
1606
|
+
*/
|
|
1607
|
+
export declare class BarcodesOptions extends ParserOptions {
|
|
1608
|
+
/**
|
|
1609
|
+
* Attribute type map
|
|
1610
|
+
*/
|
|
1611
|
+
static attributeTypeMap: Array<{
|
|
1612
|
+
name: string;
|
|
1613
|
+
baseName: string;
|
|
1614
|
+
type: string;
|
|
1615
|
+
}>;
|
|
1616
|
+
/**
|
|
1617
|
+
* Returns attribute type map
|
|
1618
|
+
*/
|
|
1619
|
+
static getAttributeTypeMap(): {
|
|
1620
|
+
name: string;
|
|
1621
|
+
baseName: string;
|
|
1622
|
+
type: string;
|
|
1623
|
+
}[];
|
|
1624
|
+
/**
|
|
1625
|
+
* Gets or sets the output path for extracted barcodes.
|
|
1626
|
+
*/
|
|
1627
|
+
outputPath: string;
|
|
1628
|
+
/**
|
|
1629
|
+
* Gets or sets the zero-based start page index.
|
|
1630
|
+
*/
|
|
1631
|
+
startPageNumber: number;
|
|
1632
|
+
/**
|
|
1633
|
+
* Gets or sets the number of pages to extract.
|
|
1634
|
+
*/
|
|
1635
|
+
countPagesToExtract: number;
|
|
1636
|
+
constructor(init?: Partial<BarcodesOptions>);
|
|
1637
|
+
}
|
|
1518
1638
|
/**
|
|
1519
1639
|
* Container options.
|
|
1520
1640
|
*/
|
|
@@ -1689,6 +1809,9 @@ export declare class TextOptions extends ParserOptions {
|
|
|
1689
1809
|
}
|
|
1690
1810
|
declare const enumsMap: {};
|
|
1691
1811
|
declare const typeMap: {
|
|
1812
|
+
Barcode: typeof Barcode;
|
|
1813
|
+
BarcodePage: typeof BarcodePage;
|
|
1814
|
+
BarcodesResult: typeof BarcodesResult;
|
|
1692
1815
|
ContainerItem: typeof ContainerItem;
|
|
1693
1816
|
ContainerItemInfo: typeof ContainerItemInfo;
|
|
1694
1817
|
ContainerResult: typeof ContainerResult;
|
|
@@ -1734,6 +1857,7 @@ declare const typeMap: {
|
|
|
1734
1857
|
TextPage: typeof TextPage;
|
|
1735
1858
|
TextResult: typeof TextResult;
|
|
1736
1859
|
TextStyle: typeof TextStyle;
|
|
1860
|
+
BarcodesOptions: typeof BarcodesOptions;
|
|
1737
1861
|
ContainerOptions: typeof ContainerOptions;
|
|
1738
1862
|
FileVersion: typeof FileVersion;
|
|
1739
1863
|
ImagesOptions: typeof ImagesOptions;
|
|
@@ -1958,6 +2082,16 @@ export declare class GetInfoRequest {
|
|
|
1958
2082
|
options: InfoOptions;
|
|
1959
2083
|
constructor(options: InfoOptions);
|
|
1960
2084
|
}
|
|
2085
|
+
/**
|
|
2086
|
+
* Request model for Barcodes operation.
|
|
2087
|
+
*/
|
|
2088
|
+
export declare class BarcodesRequest {
|
|
2089
|
+
/**
|
|
2090
|
+
* Extract barcode options.
|
|
2091
|
+
*/
|
|
2092
|
+
options: BarcodesOptions;
|
|
2093
|
+
constructor(options: BarcodesOptions);
|
|
2094
|
+
}
|
|
1961
2095
|
/**
|
|
1962
2096
|
* Request model for Images operation.
|
|
1963
2097
|
*/
|
package/lib/model.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/*
|
|
3
3
|
* The MIT License (MIT)
|
|
4
4
|
*
|
|
5
|
-
* Copyright (c) 2003-
|
|
5
|
+
* Copyright (c) 2003-2023 Aspose Pty Ltd
|
|
6
6
|
*
|
|
7
7
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
8
|
* of this software and associated documentation files (the "Software"), to deal
|
|
@@ -23,6 +23,91 @@
|
|
|
23
23
|
* SOFTWARE.
|
|
24
24
|
*/
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
/**
|
|
27
|
+
* Represents an barcode.
|
|
28
|
+
*/
|
|
29
|
+
class Barcode {
|
|
30
|
+
constructor(init) {
|
|
31
|
+
Object.assign(this, init);
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Returns attribute type map
|
|
35
|
+
*/
|
|
36
|
+
static getAttributeTypeMap() {
|
|
37
|
+
return Barcode.attributeTypeMap;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Attribute type map
|
|
42
|
+
*/
|
|
43
|
+
Barcode.attributeTypeMap = [
|
|
44
|
+
{
|
|
45
|
+
name: "codeTypeName",
|
|
46
|
+
baseName: "codeTypeName",
|
|
47
|
+
type: "string",
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
name: "value",
|
|
51
|
+
baseName: "value",
|
|
52
|
+
type: "string",
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
name: "downloadUrl",
|
|
56
|
+
baseName: "downloadUrl",
|
|
57
|
+
type: "string",
|
|
58
|
+
}
|
|
59
|
+
];
|
|
60
|
+
exports.Barcode = Barcode;
|
|
61
|
+
/**
|
|
62
|
+
* Represents page object with barcode.
|
|
63
|
+
*/
|
|
64
|
+
class BarcodePage {
|
|
65
|
+
constructor(init) {
|
|
66
|
+
Object.assign(this, init);
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Returns attribute type map
|
|
70
|
+
*/
|
|
71
|
+
static getAttributeTypeMap() {
|
|
72
|
+
return BarcodePage.attributeTypeMap;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Attribute type map
|
|
77
|
+
*/
|
|
78
|
+
BarcodePage.attributeTypeMap = [
|
|
79
|
+
{
|
|
80
|
+
name: "index",
|
|
81
|
+
baseName: "index",
|
|
82
|
+
type: "number",
|
|
83
|
+
}
|
|
84
|
+
];
|
|
85
|
+
exports.BarcodePage = BarcodePage;
|
|
86
|
+
/**
|
|
87
|
+
* Barcodes result.
|
|
88
|
+
*/
|
|
89
|
+
class BarcodesResult {
|
|
90
|
+
constructor(init) {
|
|
91
|
+
Object.assign(this, init);
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Returns attribute type map
|
|
95
|
+
*/
|
|
96
|
+
static getAttributeTypeMap() {
|
|
97
|
+
return BarcodesResult.attributeTypeMap;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Attribute type map
|
|
102
|
+
*/
|
|
103
|
+
BarcodesResult.attributeTypeMap = [
|
|
104
|
+
{
|
|
105
|
+
name: "barcodes",
|
|
106
|
+
baseName: "barcodes",
|
|
107
|
+
type: "Array<Barcode>",
|
|
108
|
+
}
|
|
109
|
+
];
|
|
110
|
+
exports.BarcodesResult = BarcodesResult;
|
|
26
111
|
/**
|
|
27
112
|
* Represents a container item like Zip archive entity, email attachment, PDF Portfolio item and so on.
|
|
28
113
|
*/
|
|
@@ -1578,6 +1663,42 @@ TextStyle.attributeTypeMap = [
|
|
|
1578
1663
|
}
|
|
1579
1664
|
];
|
|
1580
1665
|
exports.TextStyle = TextStyle;
|
|
1666
|
+
/**
|
|
1667
|
+
* Barcode options.
|
|
1668
|
+
*/
|
|
1669
|
+
class BarcodesOptions extends ParserOptions {
|
|
1670
|
+
constructor(init) {
|
|
1671
|
+
super(init);
|
|
1672
|
+
Object.assign(this, init);
|
|
1673
|
+
}
|
|
1674
|
+
/**
|
|
1675
|
+
* Returns attribute type map
|
|
1676
|
+
*/
|
|
1677
|
+
static getAttributeTypeMap() {
|
|
1678
|
+
return super.getAttributeTypeMap().concat(BarcodesOptions.attributeTypeMap);
|
|
1679
|
+
}
|
|
1680
|
+
}
|
|
1681
|
+
/**
|
|
1682
|
+
* Attribute type map
|
|
1683
|
+
*/
|
|
1684
|
+
BarcodesOptions.attributeTypeMap = [
|
|
1685
|
+
{
|
|
1686
|
+
name: "outputPath",
|
|
1687
|
+
baseName: "outputPath",
|
|
1688
|
+
type: "string",
|
|
1689
|
+
},
|
|
1690
|
+
{
|
|
1691
|
+
name: "startPageNumber",
|
|
1692
|
+
baseName: "startPageNumber",
|
|
1693
|
+
type: "number",
|
|
1694
|
+
},
|
|
1695
|
+
{
|
|
1696
|
+
name: "countPagesToExtract",
|
|
1697
|
+
baseName: "countPagesToExtract",
|
|
1698
|
+
type: "number",
|
|
1699
|
+
}
|
|
1700
|
+
];
|
|
1701
|
+
exports.BarcodesOptions = BarcodesOptions;
|
|
1581
1702
|
/**
|
|
1582
1703
|
* Container options.
|
|
1583
1704
|
*/
|
|
@@ -1755,6 +1876,9 @@ exports.TextOptions = TextOptions;
|
|
|
1755
1876
|
const enumsMap = {};
|
|
1756
1877
|
exports.enumsMap = enumsMap;
|
|
1757
1878
|
const typeMap = {
|
|
1879
|
+
Barcode,
|
|
1880
|
+
BarcodePage,
|
|
1881
|
+
BarcodesResult,
|
|
1758
1882
|
ContainerItem,
|
|
1759
1883
|
ContainerItemInfo,
|
|
1760
1884
|
ContainerResult,
|
|
@@ -1800,6 +1924,7 @@ const typeMap = {
|
|
|
1800
1924
|
TextPage,
|
|
1801
1925
|
TextResult,
|
|
1802
1926
|
TextStyle,
|
|
1927
|
+
BarcodesOptions,
|
|
1803
1928
|
ContainerOptions,
|
|
1804
1929
|
FileVersion,
|
|
1805
1930
|
ImagesOptions,
|
|
@@ -1940,6 +2065,15 @@ class GetInfoRequest {
|
|
|
1940
2065
|
}
|
|
1941
2066
|
}
|
|
1942
2067
|
exports.GetInfoRequest = GetInfoRequest;
|
|
2068
|
+
/**
|
|
2069
|
+
* Request model for Barcodes operation.
|
|
2070
|
+
*/
|
|
2071
|
+
class BarcodesRequest {
|
|
2072
|
+
constructor(options) {
|
|
2073
|
+
this.options = options;
|
|
2074
|
+
}
|
|
2075
|
+
}
|
|
2076
|
+
exports.BarcodesRequest = BarcodesRequest;
|
|
1943
2077
|
/**
|
|
1944
2078
|
* Request model for Images operation.
|
|
1945
2079
|
*/
|
package/lib/package_version.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/*
|
|
3
3
|
* The MIT License (MIT)
|
|
4
4
|
*
|
|
5
|
-
* Copyright (c) 2003-
|
|
5
|
+
* Copyright (c) 2003-2023 Aspose Pty Ltd
|
|
6
6
|
*
|
|
7
7
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
8
|
* of this software and associated documentation files (the "Software"), to deal
|
|
@@ -26,4 +26,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
26
26
|
/**
|
|
27
27
|
* Package version
|
|
28
28
|
*/
|
|
29
|
-
exports.PackageVersion = "
|
|
29
|
+
exports.PackageVersion = "23.7.0";
|
package/lib/parser_api.d.ts
CHANGED
|
@@ -164,6 +164,11 @@ export declare class ParseApi {
|
|
|
164
164
|
* @param config Configuration.
|
|
165
165
|
*/
|
|
166
166
|
private constructor();
|
|
167
|
+
/**
|
|
168
|
+
* Extract barcodes from document.
|
|
169
|
+
* @param requestObj contains request parameters
|
|
170
|
+
*/
|
|
171
|
+
barcodes(requestObj: model.BarcodesRequest): Promise<model.BarcodesResult>;
|
|
167
172
|
/**
|
|
168
173
|
* Extract images from document.
|
|
169
174
|
* @param requestObj contains request parameters
|
package/lib/parser_api.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/*
|
|
3
3
|
* The MIT License (MIT)
|
|
4
4
|
*
|
|
5
|
-
* Copyright (c) 2003-
|
|
5
|
+
* Copyright (c) 2003-2023 Aspose Pty Ltd
|
|
6
6
|
*
|
|
7
7
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
8
|
* of this software and associated documentation files (the "Software"), to deal
|
|
@@ -538,6 +538,33 @@ class ParseApi {
|
|
|
538
538
|
constructor(config) {
|
|
539
539
|
this.configuration = config;
|
|
540
540
|
}
|
|
541
|
+
/**
|
|
542
|
+
* Extract barcodes from document.
|
|
543
|
+
* @param requestObj contains request parameters
|
|
544
|
+
*/
|
|
545
|
+
barcodes(requestObj) {
|
|
546
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
547
|
+
if (requestObj === null || requestObj === undefined) {
|
|
548
|
+
throw new Error('Required parameter "requestObj" was null or undefined when calling barcodes.');
|
|
549
|
+
}
|
|
550
|
+
const localVarPath = this.configuration.getServerUrl() + "/parser/barcodes";
|
|
551
|
+
const queryParameters = {};
|
|
552
|
+
// verify required parameter 'requestObj.options' is not null or undefined
|
|
553
|
+
if (requestObj.options === null || requestObj.options === undefined) {
|
|
554
|
+
throw new Error('Required parameter "requestObj.options" was null or undefined when calling barcodes.');
|
|
555
|
+
}
|
|
556
|
+
const requestOptions = {
|
|
557
|
+
method: "POST",
|
|
558
|
+
qs: queryParameters,
|
|
559
|
+
uri: localVarPath,
|
|
560
|
+
json: true,
|
|
561
|
+
body: serializer_1.Serializer.serialize(requestObj.options, requestObj.options.constructor.name === "Object" ? "BarcodesOptions" : requestObj.options.constructor.name),
|
|
562
|
+
};
|
|
563
|
+
const response = yield api_client_1.invokeApiMethod(requestOptions, this.configuration);
|
|
564
|
+
const result = serializer_1.Serializer.deserialize(response.body, "BarcodesResult");
|
|
565
|
+
return Promise.resolve(result);
|
|
566
|
+
});
|
|
567
|
+
}
|
|
541
568
|
/**
|
|
542
569
|
* Extract images from document.
|
|
543
570
|
* @param requestObj contains request parameters
|