@huaweicloud/huaweicloud-sdk-ocr 3.1.34 → 3.1.36

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huaweicloud/huaweicloud-sdk-ocr",
3
- "version": "3.1.34",
3
+ "version": "3.1.36",
4
4
  "description": "Huaweicloud SDK for ocr",
5
5
  "main": "huaweicloud-sdk-ocr.js",
6
6
  "typings": "huaweicloud-sdk-ocr.d.ts",
@@ -14,6 +14,6 @@
14
14
  "author": "HuaweiCloud_SDK",
15
15
  "license": "Apache-2.0",
16
16
  "dependencies": {
17
- "@huaweicloud/huaweicloud-sdk-core": "^3.1.34"
17
+ "@huaweicloud/huaweicloud-sdk-core": "^3.1.36"
18
18
  }
19
19
  }
@@ -0,0 +1,27 @@
1
+ export declare class DriverLicenseBack {
2
+ type?: string;
3
+ private 'number'?;
4
+ name?: string;
5
+ private 'issuing_authority'?;
6
+ address?: string;
7
+ private 'file_number'?;
8
+ record?: string;
9
+ private 'text_location'?;
10
+ constructor();
11
+ withType(type: string): DriverLicenseBack;
12
+ withModelNumber(modelNumber: string): DriverLicenseBack;
13
+ set modelNumber(modelNumber: string | undefined);
14
+ get modelNumber(): string | undefined;
15
+ withName(name: string): DriverLicenseBack;
16
+ withIssuingAuthority(issuingAuthority: string): DriverLicenseBack;
17
+ set issuingAuthority(issuingAuthority: string | undefined);
18
+ get issuingAuthority(): string | undefined;
19
+ withAddress(address: string): DriverLicenseBack;
20
+ withFileNumber(fileNumber: string): DriverLicenseBack;
21
+ set fileNumber(fileNumber: string | undefined);
22
+ get fileNumber(): string | undefined;
23
+ withRecord(record: string): DriverLicenseBack;
24
+ withTextLocation(textLocation: object): DriverLicenseBack;
25
+ set textLocation(textLocation: object | undefined);
26
+ get textLocation(): object | undefined;
27
+ }
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DriverLicenseBack = void 0;
4
+ var DriverLicenseBack = /** @class */ (function () {
5
+ function DriverLicenseBack() {
6
+ }
7
+ DriverLicenseBack.prototype.withType = function (type) {
8
+ this['type'] = type;
9
+ return this;
10
+ };
11
+ DriverLicenseBack.prototype.withModelNumber = function (modelNumber) {
12
+ this['number'] = modelNumber;
13
+ return this;
14
+ };
15
+ Object.defineProperty(DriverLicenseBack.prototype, "modelNumber", {
16
+ get: function () {
17
+ return this['number'];
18
+ },
19
+ set: function (modelNumber) {
20
+ this['number'] = modelNumber;
21
+ },
22
+ enumerable: false,
23
+ configurable: true
24
+ });
25
+ DriverLicenseBack.prototype.withName = function (name) {
26
+ this['name'] = name;
27
+ return this;
28
+ };
29
+ DriverLicenseBack.prototype.withIssuingAuthority = function (issuingAuthority) {
30
+ this['issuing_authority'] = issuingAuthority;
31
+ return this;
32
+ };
33
+ Object.defineProperty(DriverLicenseBack.prototype, "issuingAuthority", {
34
+ get: function () {
35
+ return this['issuing_authority'];
36
+ },
37
+ set: function (issuingAuthority) {
38
+ this['issuing_authority'] = issuingAuthority;
39
+ },
40
+ enumerable: false,
41
+ configurable: true
42
+ });
43
+ DriverLicenseBack.prototype.withAddress = function (address) {
44
+ this['address'] = address;
45
+ return this;
46
+ };
47
+ DriverLicenseBack.prototype.withFileNumber = function (fileNumber) {
48
+ this['file_number'] = fileNumber;
49
+ return this;
50
+ };
51
+ Object.defineProperty(DriverLicenseBack.prototype, "fileNumber", {
52
+ get: function () {
53
+ return this['file_number'];
54
+ },
55
+ set: function (fileNumber) {
56
+ this['file_number'] = fileNumber;
57
+ },
58
+ enumerable: false,
59
+ configurable: true
60
+ });
61
+ DriverLicenseBack.prototype.withRecord = function (record) {
62
+ this['record'] = record;
63
+ return this;
64
+ };
65
+ DriverLicenseBack.prototype.withTextLocation = function (textLocation) {
66
+ this['text_location'] = textLocation;
67
+ return this;
68
+ };
69
+ Object.defineProperty(DriverLicenseBack.prototype, "textLocation", {
70
+ get: function () {
71
+ return this['text_location'];
72
+ },
73
+ set: function (textLocation) {
74
+ this['text_location'] = textLocation;
75
+ },
76
+ enumerable: false,
77
+ configurable: true
78
+ });
79
+ return DriverLicenseBack;
80
+ }());
81
+ exports.DriverLicenseBack = DriverLicenseBack;
@@ -0,0 +1,61 @@
1
+ export declare class DriverLicenseFront {
2
+ type?: string;
3
+ private 'number'?;
4
+ name?: string;
5
+ sex?: string;
6
+ nationality?: string;
7
+ address?: string;
8
+ birth?: string;
9
+ private 'issue_date'?;
10
+ private 'class'?;
11
+ private 'valid_from'?;
12
+ private 'valid_to'?;
13
+ private 'issuing_authority'?;
14
+ private 'accumulated_scores'?;
15
+ status?: Array<string>;
16
+ private 'generation_date'?;
17
+ private 'current_time'?;
18
+ private 'file_number'?;
19
+ private 'text_location'?;
20
+ constructor();
21
+ withType(type: string): DriverLicenseFront;
22
+ withModelNumber(modelNumber: string): DriverLicenseFront;
23
+ set modelNumber(modelNumber: string | undefined);
24
+ get modelNumber(): string | undefined;
25
+ withName(name: string): DriverLicenseFront;
26
+ withSex(sex: string): DriverLicenseFront;
27
+ withNationality(nationality: string): DriverLicenseFront;
28
+ withAddress(address: string): DriverLicenseFront;
29
+ withBirth(birth: string): DriverLicenseFront;
30
+ withIssueDate(issueDate: string): DriverLicenseFront;
31
+ set issueDate(issueDate: string | undefined);
32
+ get issueDate(): string | undefined;
33
+ withClass(_class: string): DriverLicenseFront;
34
+ set _class(_class: string | undefined);
35
+ get _class(): string | undefined;
36
+ withValidFrom(validFrom: string): DriverLicenseFront;
37
+ set validFrom(validFrom: string | undefined);
38
+ get validFrom(): string | undefined;
39
+ withValidTo(validTo: string): DriverLicenseFront;
40
+ set validTo(validTo: string | undefined);
41
+ get validTo(): string | undefined;
42
+ withIssuingAuthority(issuingAuthority: string): DriverLicenseFront;
43
+ set issuingAuthority(issuingAuthority: string | undefined);
44
+ get issuingAuthority(): string | undefined;
45
+ withAccumulatedScores(accumulatedScores: string): DriverLicenseFront;
46
+ set accumulatedScores(accumulatedScores: string | undefined);
47
+ get accumulatedScores(): string | undefined;
48
+ withStatus(status: Array<string>): DriverLicenseFront;
49
+ withGenerationDate(generationDate: string): DriverLicenseFront;
50
+ set generationDate(generationDate: string | undefined);
51
+ get generationDate(): string | undefined;
52
+ withCurrentTime(currentTime: string): DriverLicenseFront;
53
+ set currentTime(currentTime: string | undefined);
54
+ get currentTime(): string | undefined;
55
+ withFileNumber(fileNumber: string): DriverLicenseFront;
56
+ set fileNumber(fileNumber: string | undefined);
57
+ get fileNumber(): string | undefined;
58
+ withTextLocation(textLocation: object): DriverLicenseFront;
59
+ set textLocation(textLocation: object | undefined);
60
+ get textLocation(): object | undefined;
61
+ }
@@ -0,0 +1,191 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DriverLicenseFront = void 0;
4
+ var DriverLicenseFront = /** @class */ (function () {
5
+ function DriverLicenseFront() {
6
+ }
7
+ DriverLicenseFront.prototype.withType = function (type) {
8
+ this['type'] = type;
9
+ return this;
10
+ };
11
+ DriverLicenseFront.prototype.withModelNumber = function (modelNumber) {
12
+ this['number'] = modelNumber;
13
+ return this;
14
+ };
15
+ Object.defineProperty(DriverLicenseFront.prototype, "modelNumber", {
16
+ get: function () {
17
+ return this['number'];
18
+ },
19
+ set: function (modelNumber) {
20
+ this['number'] = modelNumber;
21
+ },
22
+ enumerable: false,
23
+ configurable: true
24
+ });
25
+ DriverLicenseFront.prototype.withName = function (name) {
26
+ this['name'] = name;
27
+ return this;
28
+ };
29
+ DriverLicenseFront.prototype.withSex = function (sex) {
30
+ this['sex'] = sex;
31
+ return this;
32
+ };
33
+ DriverLicenseFront.prototype.withNationality = function (nationality) {
34
+ this['nationality'] = nationality;
35
+ return this;
36
+ };
37
+ DriverLicenseFront.prototype.withAddress = function (address) {
38
+ this['address'] = address;
39
+ return this;
40
+ };
41
+ DriverLicenseFront.prototype.withBirth = function (birth) {
42
+ this['birth'] = birth;
43
+ return this;
44
+ };
45
+ DriverLicenseFront.prototype.withIssueDate = function (issueDate) {
46
+ this['issue_date'] = issueDate;
47
+ return this;
48
+ };
49
+ Object.defineProperty(DriverLicenseFront.prototype, "issueDate", {
50
+ get: function () {
51
+ return this['issue_date'];
52
+ },
53
+ set: function (issueDate) {
54
+ this['issue_date'] = issueDate;
55
+ },
56
+ enumerable: false,
57
+ configurable: true
58
+ });
59
+ DriverLicenseFront.prototype.withClass = function (_class) {
60
+ this['class'] = _class;
61
+ return this;
62
+ };
63
+ Object.defineProperty(DriverLicenseFront.prototype, "_class", {
64
+ get: function () {
65
+ return this['class'];
66
+ },
67
+ set: function (_class) {
68
+ this['class'] = _class;
69
+ },
70
+ enumerable: false,
71
+ configurable: true
72
+ });
73
+ DriverLicenseFront.prototype.withValidFrom = function (validFrom) {
74
+ this['valid_from'] = validFrom;
75
+ return this;
76
+ };
77
+ Object.defineProperty(DriverLicenseFront.prototype, "validFrom", {
78
+ get: function () {
79
+ return this['valid_from'];
80
+ },
81
+ set: function (validFrom) {
82
+ this['valid_from'] = validFrom;
83
+ },
84
+ enumerable: false,
85
+ configurable: true
86
+ });
87
+ DriverLicenseFront.prototype.withValidTo = function (validTo) {
88
+ this['valid_to'] = validTo;
89
+ return this;
90
+ };
91
+ Object.defineProperty(DriverLicenseFront.prototype, "validTo", {
92
+ get: function () {
93
+ return this['valid_to'];
94
+ },
95
+ set: function (validTo) {
96
+ this['valid_to'] = validTo;
97
+ },
98
+ enumerable: false,
99
+ configurable: true
100
+ });
101
+ DriverLicenseFront.prototype.withIssuingAuthority = function (issuingAuthority) {
102
+ this['issuing_authority'] = issuingAuthority;
103
+ return this;
104
+ };
105
+ Object.defineProperty(DriverLicenseFront.prototype, "issuingAuthority", {
106
+ get: function () {
107
+ return this['issuing_authority'];
108
+ },
109
+ set: function (issuingAuthority) {
110
+ this['issuing_authority'] = issuingAuthority;
111
+ },
112
+ enumerable: false,
113
+ configurable: true
114
+ });
115
+ DriverLicenseFront.prototype.withAccumulatedScores = function (accumulatedScores) {
116
+ this['accumulated_scores'] = accumulatedScores;
117
+ return this;
118
+ };
119
+ Object.defineProperty(DriverLicenseFront.prototype, "accumulatedScores", {
120
+ get: function () {
121
+ return this['accumulated_scores'];
122
+ },
123
+ set: function (accumulatedScores) {
124
+ this['accumulated_scores'] = accumulatedScores;
125
+ },
126
+ enumerable: false,
127
+ configurable: true
128
+ });
129
+ DriverLicenseFront.prototype.withStatus = function (status) {
130
+ this['status'] = status;
131
+ return this;
132
+ };
133
+ DriverLicenseFront.prototype.withGenerationDate = function (generationDate) {
134
+ this['generation_date'] = generationDate;
135
+ return this;
136
+ };
137
+ Object.defineProperty(DriverLicenseFront.prototype, "generationDate", {
138
+ get: function () {
139
+ return this['generation_date'];
140
+ },
141
+ set: function (generationDate) {
142
+ this['generation_date'] = generationDate;
143
+ },
144
+ enumerable: false,
145
+ configurable: true
146
+ });
147
+ DriverLicenseFront.prototype.withCurrentTime = function (currentTime) {
148
+ this['current_time'] = currentTime;
149
+ return this;
150
+ };
151
+ Object.defineProperty(DriverLicenseFront.prototype, "currentTime", {
152
+ get: function () {
153
+ return this['current_time'];
154
+ },
155
+ set: function (currentTime) {
156
+ this['current_time'] = currentTime;
157
+ },
158
+ enumerable: false,
159
+ configurable: true
160
+ });
161
+ DriverLicenseFront.prototype.withFileNumber = function (fileNumber) {
162
+ this['file_number'] = fileNumber;
163
+ return this;
164
+ };
165
+ Object.defineProperty(DriverLicenseFront.prototype, "fileNumber", {
166
+ get: function () {
167
+ return this['file_number'];
168
+ },
169
+ set: function (fileNumber) {
170
+ this['file_number'] = fileNumber;
171
+ },
172
+ enumerable: false,
173
+ configurable: true
174
+ });
175
+ DriverLicenseFront.prototype.withTextLocation = function (textLocation) {
176
+ this['text_location'] = textLocation;
177
+ return this;
178
+ };
179
+ Object.defineProperty(DriverLicenseFront.prototype, "textLocation", {
180
+ get: function () {
181
+ return this['text_location'];
182
+ },
183
+ set: function (textLocation) {
184
+ this['text_location'] = textLocation;
185
+ },
186
+ enumerable: false,
187
+ configurable: true
188
+ });
189
+ return DriverLicenseFront;
190
+ }());
191
+ exports.DriverLicenseFront = DriverLicenseFront;
@@ -1,3 +1,5 @@
1
+ import { DriverLicenseBack } from './DriverLicenseBack';
2
+ import { DriverLicenseFront } from './DriverLicenseFront';
1
3
  export declare class DriverLicenseResult {
2
4
  type?: string;
3
5
  private 'number'?;
@@ -18,6 +20,8 @@ export declare class DriverLicenseResult {
18
20
  private 'generation_date'?;
19
21
  private 'current_time'?;
20
22
  private 'text_location'?;
23
+ front?: DriverLicenseFront;
24
+ back?: DriverLicenseBack;
21
25
  constructor();
22
26
  withType(type: string): DriverLicenseResult;
23
27
  withModelNumber(modelNumber: string): DriverLicenseResult;
@@ -60,4 +64,6 @@ export declare class DriverLicenseResult {
60
64
  withTextLocation(textLocation: object): DriverLicenseResult;
61
65
  set textLocation(textLocation: object | undefined);
62
66
  get textLocation(): object | undefined;
67
+ withFront(front: DriverLicenseFront): DriverLicenseResult;
68
+ withBack(back: DriverLicenseBack): DriverLicenseResult;
63
69
  }
@@ -190,6 +190,14 @@ var DriverLicenseResult = /** @class */ (function () {
190
190
  enumerable: false,
191
191
  configurable: true
192
192
  });
193
+ DriverLicenseResult.prototype.withFront = function (front) {
194
+ this['front'] = front;
195
+ return this;
196
+ };
197
+ DriverLicenseResult.prototype.withBack = function (back) {
198
+ this['back'] = back;
199
+ return this;
200
+ };
193
201
  return DriverLicenseResult;
194
202
  }());
195
203
  exports.DriverLicenseResult = DriverLicenseResult;
@@ -1,6 +1,8 @@
1
1
  export declare class ThailandIdcardConfidence {
2
2
  private 'id_number'?;
3
3
  private 'name_th'?;
4
+ private 'name_en'?;
5
+ private 'ref_number'?;
4
6
  private 'first_name_en'?;
5
7
  private 'last_name_en'?;
6
8
  private 'date_of_birth_th'?;
@@ -21,6 +23,12 @@ export declare class ThailandIdcardConfidence {
21
23
  withNameTh(nameTh: number): ThailandIdcardConfidence;
22
24
  set nameTh(nameTh: number | undefined);
23
25
  get nameTh(): number | undefined;
26
+ withNameEn(nameEn: number): ThailandIdcardConfidence;
27
+ set nameEn(nameEn: number | undefined);
28
+ get nameEn(): number | undefined;
29
+ withRefNumber(refNumber: number): ThailandIdcardConfidence;
30
+ set refNumber(refNumber: number | undefined);
31
+ get refNumber(): number | undefined;
24
32
  withFirstNameEn(firstNameEn: number): ThailandIdcardConfidence;
25
33
  set firstNameEn(firstNameEn: number | undefined);
26
34
  get firstNameEn(): number | undefined;
@@ -32,6 +32,34 @@ var ThailandIdcardConfidence = /** @class */ (function () {
32
32
  enumerable: false,
33
33
  configurable: true
34
34
  });
35
+ ThailandIdcardConfidence.prototype.withNameEn = function (nameEn) {
36
+ this['name_en'] = nameEn;
37
+ return this;
38
+ };
39
+ Object.defineProperty(ThailandIdcardConfidence.prototype, "nameEn", {
40
+ get: function () {
41
+ return this['name_en'];
42
+ },
43
+ set: function (nameEn) {
44
+ this['name_en'] = nameEn;
45
+ },
46
+ enumerable: false,
47
+ configurable: true
48
+ });
49
+ ThailandIdcardConfidence.prototype.withRefNumber = function (refNumber) {
50
+ this['ref_number'] = refNumber;
51
+ return this;
52
+ };
53
+ Object.defineProperty(ThailandIdcardConfidence.prototype, "refNumber", {
54
+ get: function () {
55
+ return this['ref_number'];
56
+ },
57
+ set: function (refNumber) {
58
+ this['ref_number'] = refNumber;
59
+ },
60
+ enumerable: false,
61
+ configurable: true
62
+ });
35
63
  ThailandIdcardConfidence.prototype.withFirstNameEn = function (firstNameEn) {
36
64
  this['first_name_en'] = firstNameEn;
37
65
  return this;
@@ -1,5 +1,8 @@
1
1
  import { ThailandIdcardConfidence } from './ThailandIdcardConfidence';
2
2
  export declare class ThailandIdcardResult {
3
+ type?: string;
4
+ private 'name_en'?;
5
+ private 'ref_number'?;
3
6
  side?: string;
4
7
  private 'id_number'?;
5
8
  private 'name_th'?;
@@ -22,6 +25,13 @@ export declare class ThailandIdcardResult {
22
25
  private 'idcard_type'?;
23
26
  private 'text_location'?;
24
27
  constructor();
28
+ withType(type: string): ThailandIdcardResult;
29
+ withNameEn(nameEn: string): ThailandIdcardResult;
30
+ set nameEn(nameEn: string | undefined);
31
+ get nameEn(): string | undefined;
32
+ withRefNumber(refNumber: string): ThailandIdcardResult;
33
+ set refNumber(refNumber: string | undefined);
34
+ get refNumber(): string | undefined;
25
35
  withSide(side: string): ThailandIdcardResult;
26
36
  withIdNumber(idNumber: string): ThailandIdcardResult;
27
37
  set idNumber(idNumber: string | undefined);
@@ -4,6 +4,38 @@ exports.ThailandIdcardResult = void 0;
4
4
  var ThailandIdcardResult = /** @class */ (function () {
5
5
  function ThailandIdcardResult() {
6
6
  }
7
+ ThailandIdcardResult.prototype.withType = function (type) {
8
+ this['type'] = type;
9
+ return this;
10
+ };
11
+ ThailandIdcardResult.prototype.withNameEn = function (nameEn) {
12
+ this['name_en'] = nameEn;
13
+ return this;
14
+ };
15
+ Object.defineProperty(ThailandIdcardResult.prototype, "nameEn", {
16
+ get: function () {
17
+ return this['name_en'];
18
+ },
19
+ set: function (nameEn) {
20
+ this['name_en'] = nameEn;
21
+ },
22
+ enumerable: false,
23
+ configurable: true
24
+ });
25
+ ThailandIdcardResult.prototype.withRefNumber = function (refNumber) {
26
+ this['ref_number'] = refNumber;
27
+ return this;
28
+ };
29
+ Object.defineProperty(ThailandIdcardResult.prototype, "refNumber", {
30
+ get: function () {
31
+ return this['ref_number'];
32
+ },
33
+ set: function (refNumber) {
34
+ this['ref_number'] = refNumber;
35
+ },
36
+ enumerable: false,
37
+ configurable: true
38
+ });
7
39
  ThailandIdcardResult.prototype.withSide = function (side) {
8
40
  this['side'] = side;
9
41
  return this;
@@ -16,6 +16,8 @@ export * from './model/ChileIdCardConfidence';
16
16
  export * from './model/ChileIdCardRequestBody';
17
17
  export * from './model/ChileIdCardResult';
18
18
  export * from './model/CustomTemplateRequestBody';
19
+ export * from './model/DriverLicenseBack';
20
+ export * from './model/DriverLicenseFront';
19
21
  export * from './model/DriverLicenseRequestBody';
20
22
  export * from './model/DriverLicenseResult';
21
23
  export * from './model/ExitEntryPermitConfidence';
package/v1/public-api.js CHANGED
@@ -32,6 +32,8 @@ __exportStar(require("./model/ChileIdCardConfidence"), exports);
32
32
  __exportStar(require("./model/ChileIdCardRequestBody"), exports);
33
33
  __exportStar(require("./model/ChileIdCardResult"), exports);
34
34
  __exportStar(require("./model/CustomTemplateRequestBody"), exports);
35
+ __exportStar(require("./model/DriverLicenseBack"), exports);
36
+ __exportStar(require("./model/DriverLicenseFront"), exports);
35
37
  __exportStar(require("./model/DriverLicenseRequestBody"), exports);
36
38
  __exportStar(require("./model/DriverLicenseResult"), exports);
37
39
  __exportStar(require("./model/ExitEntryPermitConfidence"), exports);