mindee 4.19.0 → 4.20.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/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/src/cli.js +10 -20
- package/src/product/driverLicense/driverLicenseV1.d.ts +16 -0
- package/src/product/driverLicense/driverLicenseV1.js +27 -0
- package/src/product/driverLicense/driverLicenseV1Document.d.ts +38 -0
- package/src/product/driverLicense/driverLicenseV1Document.js +84 -0
- package/src/product/driverLicense/index.d.ts +1 -0
- package/src/product/driverLicense/index.js +5 -0
- package/src/product/driverLicense/internal.d.ts +2 -0
- package/src/product/driverLicense/internal.js +7 -0
- package/src/product/fr/healthCard/healthCardV1.d.ts +16 -0
- package/src/product/fr/healthCard/healthCardV1.js +27 -0
- package/src/product/fr/healthCard/healthCardV1Document.d.ts +20 -0
- package/src/product/fr/healthCard/healthCardV1Document.js +43 -0
- package/src/product/fr/healthCard/index.d.ts +1 -0
- package/src/product/fr/healthCard/index.js +5 -0
- package/src/product/fr/healthCard/internal.d.ts +2 -0
- package/src/product/fr/healthCard/internal.js +7 -0
- package/src/product/fr/index.d.ts +2 -0
- package/src/product/fr/index.js +5 -1
- package/src/product/fr/internal.d.ts +1 -0
- package/src/product/fr/internal.js +2 -1
- package/src/product/fr/payslip/index.d.ts +1 -0
- package/src/product/fr/payslip/index.js +3 -1
- package/src/product/fr/payslip/internal.d.ts +10 -0
- package/src/product/fr/payslip/internal.js +21 -1
- package/src/product/fr/payslip/payslipV3.d.ts +16 -0
- package/src/product/fr/payslip/payslipV3.js +27 -0
- package/src/product/fr/payslip/payslipV3BankAccountDetail.d.ts +32 -0
- package/src/product/fr/payslip/payslipV3BankAccountDetail.js +62 -0
- package/src/product/fr/payslip/payslipV3Document.d.ts +35 -0
- package/src/product/fr/payslip/payslipV3Document.js +96 -0
- package/src/product/fr/payslip/payslipV3Employee.d.ts +40 -0
- package/src/product/fr/payslip/payslipV3Employee.js +82 -0
- package/src/product/fr/payslip/payslipV3Employer.d.ts +40 -0
- package/src/product/fr/payslip/payslipV3Employer.js +82 -0
- package/src/product/fr/payslip/payslipV3Employment.d.ts +40 -0
- package/src/product/fr/payslip/payslipV3Employment.js +82 -0
- package/src/product/fr/payslip/payslipV3PaidTimeOff.d.ts +36 -0
- package/src/product/fr/payslip/payslipV3PaidTimeOff.js +107 -0
- package/src/product/fr/payslip/payslipV3PayDetail.d.ts +46 -0
- package/src/product/fr/payslip/payslipV3PayDetail.js +168 -0
- package/src/product/fr/payslip/payslipV3PayPeriod.d.ts +36 -0
- package/src/product/fr/payslip/payslipV3PayPeriod.js +72 -0
- package/src/product/fr/payslip/payslipV3SalaryDetail.d.ts +36 -0
- package/src/product/fr/payslip/payslipV3SalaryDetail.js +110 -0
- package/src/product/ind/indianPassport/indianPassportV1Document.d.ts +1 -1
- package/src/product/ind/indianPassport/indianPassportV1Document.js +1 -1
- package/src/product/index.d.ts +1 -0
- package/src/product/index.js +3 -1
- package/src/product/internal.d.ts +1 -0
- package/src/product/internal.js +2 -1
- package/src/product/resume/resumeV1Document.d.ts +1 -1
- package/src/product/resume/resumeV1Document.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## v4.20.0 - 2024-11-28
|
|
4
|
+
### Changes
|
|
5
|
+
* :sparkles: add support for French Health Card V1
|
|
6
|
+
* :sparkles: add support for Driver License V1
|
|
7
|
+
* :sparkles: add support for Payslip FR V3
|
|
8
|
+
|
|
9
|
+
|
|
3
10
|
## v4.19.0 - 2024-11-27
|
|
4
11
|
### Changes
|
|
5
12
|
* :coffin: remove support for international ID V1
|
package/package.json
CHANGED
package/src/cli.js
CHANGED
|
@@ -109,13 +109,13 @@ const CLI_COMMAND_CONFIG = new Map([
|
|
|
109
109
|
},
|
|
110
110
|
],
|
|
111
111
|
[
|
|
112
|
-
"fr-
|
|
112
|
+
"fr-health-card",
|
|
113
113
|
{
|
|
114
|
-
displayName: "FR
|
|
115
|
-
docClass: product.fr.
|
|
114
|
+
displayName: "FR Health Card",
|
|
115
|
+
docClass: product.fr.HealthCardV1,
|
|
116
116
|
allWords: false,
|
|
117
|
-
async:
|
|
118
|
-
sync:
|
|
117
|
+
async: true,
|
|
118
|
+
sync: false,
|
|
119
119
|
},
|
|
120
120
|
],
|
|
121
121
|
[
|
|
@@ -139,13 +139,13 @@ const CLI_COMMAND_CONFIG = new Map([
|
|
|
139
139
|
},
|
|
140
140
|
],
|
|
141
141
|
[
|
|
142
|
-
"
|
|
142
|
+
"driver-license",
|
|
143
143
|
{
|
|
144
|
-
displayName: "
|
|
145
|
-
docClass: product.
|
|
144
|
+
displayName: "Driver License",
|
|
145
|
+
docClass: product.DriverLicenseV1,
|
|
146
146
|
allWords: false,
|
|
147
|
-
async:
|
|
148
|
-
sync:
|
|
147
|
+
async: true,
|
|
148
|
+
sync: false,
|
|
149
149
|
},
|
|
150
150
|
],
|
|
151
151
|
[
|
|
@@ -228,16 +228,6 @@ const CLI_COMMAND_CONFIG = new Map([
|
|
|
228
228
|
sync: true,
|
|
229
229
|
},
|
|
230
230
|
],
|
|
231
|
-
[
|
|
232
|
-
"us-driver-license",
|
|
233
|
-
{
|
|
234
|
-
displayName: "US Driver License",
|
|
235
|
-
docClass: product.us.DriverLicenseV1,
|
|
236
|
-
allWords: false,
|
|
237
|
-
async: false,
|
|
238
|
-
sync: true,
|
|
239
|
-
},
|
|
240
|
-
],
|
|
241
231
|
[
|
|
242
232
|
"us-healthcare-card",
|
|
243
233
|
{
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Inference, StringDict, Page } from "../../parsing/common";
|
|
2
|
+
import { DriverLicenseV1Document } from "./driverLicenseV1Document";
|
|
3
|
+
/**
|
|
4
|
+
* Driver License API version 1 inference prediction.
|
|
5
|
+
*/
|
|
6
|
+
export declare class DriverLicenseV1 extends Inference {
|
|
7
|
+
/** The endpoint's name. */
|
|
8
|
+
endpointName: string;
|
|
9
|
+
/** The endpoint's version. */
|
|
10
|
+
endpointVersion: string;
|
|
11
|
+
/** The document-level prediction. */
|
|
12
|
+
prediction: DriverLicenseV1Document;
|
|
13
|
+
/** The document's pages. */
|
|
14
|
+
pages: Page<DriverLicenseV1Document>[];
|
|
15
|
+
constructor(rawPrediction: StringDict);
|
|
16
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DriverLicenseV1 = void 0;
|
|
4
|
+
const common_1 = require("../../parsing/common");
|
|
5
|
+
const driverLicenseV1Document_1 = require("./driverLicenseV1Document");
|
|
6
|
+
/**
|
|
7
|
+
* Driver License API version 1 inference prediction.
|
|
8
|
+
*/
|
|
9
|
+
class DriverLicenseV1 extends common_1.Inference {
|
|
10
|
+
constructor(rawPrediction) {
|
|
11
|
+
super(rawPrediction);
|
|
12
|
+
/** The endpoint's name. */
|
|
13
|
+
this.endpointName = "driver_license";
|
|
14
|
+
/** The endpoint's version. */
|
|
15
|
+
this.endpointVersion = "1";
|
|
16
|
+
/** The document's pages. */
|
|
17
|
+
this.pages = [];
|
|
18
|
+
this.prediction = new driverLicenseV1Document_1.DriverLicenseV1Document(rawPrediction["prediction"]);
|
|
19
|
+
rawPrediction["pages"].forEach((page) => {
|
|
20
|
+
if (page.prediction !== undefined && page.prediction !== null &&
|
|
21
|
+
Object.keys(page.prediction).length > 0) {
|
|
22
|
+
this.pages.push(new common_1.Page(driverLicenseV1Document_1.DriverLicenseV1Document, page, page["id"], page["orientation"]));
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.DriverLicenseV1 = DriverLicenseV1;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Prediction, StringDict } from "../../parsing/common";
|
|
2
|
+
import { DateField, StringField } from "../../parsing/standard";
|
|
3
|
+
/**
|
|
4
|
+
* Driver License API version 1.0 document data.
|
|
5
|
+
*/
|
|
6
|
+
export declare class DriverLicenseV1Document implements Prediction {
|
|
7
|
+
/** The category or class of the driver license. */
|
|
8
|
+
category: StringField;
|
|
9
|
+
/** The alpha-3 ISO 3166 code of the country where the driver license was issued. */
|
|
10
|
+
countryCode: StringField;
|
|
11
|
+
/** The date of birth of the driver license holder. */
|
|
12
|
+
dateOfBirth: DateField;
|
|
13
|
+
/** The DD number of the driver license. */
|
|
14
|
+
ddNumber: StringField;
|
|
15
|
+
/** The expiry date of the driver license. */
|
|
16
|
+
expiryDate: DateField;
|
|
17
|
+
/** The first name of the driver license holder. */
|
|
18
|
+
firstName: StringField;
|
|
19
|
+
/** The unique identifier of the driver license. */
|
|
20
|
+
id: StringField;
|
|
21
|
+
/** The date when the driver license was issued. */
|
|
22
|
+
issuedDate: DateField;
|
|
23
|
+
/** The authority that issued the driver license. */
|
|
24
|
+
issuingAuthority: StringField;
|
|
25
|
+
/** The last name of the driver license holder. */
|
|
26
|
+
lastName: StringField;
|
|
27
|
+
/** The Machine Readable Zone (MRZ) of the driver license. */
|
|
28
|
+
mrz: StringField;
|
|
29
|
+
/** The place of birth of the driver license holder. */
|
|
30
|
+
placeOfBirth: StringField;
|
|
31
|
+
/** Second part of the ISO 3166-2 code, consisting of two letters indicating the US State. */
|
|
32
|
+
state: StringField;
|
|
33
|
+
constructor(rawPrediction: StringDict, pageId?: number);
|
|
34
|
+
/**
|
|
35
|
+
* Default string representation.
|
|
36
|
+
*/
|
|
37
|
+
toString(): string;
|
|
38
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DriverLicenseV1Document = void 0;
|
|
4
|
+
const common_1 = require("../../parsing/common");
|
|
5
|
+
const standard_1 = require("../../parsing/standard");
|
|
6
|
+
/**
|
|
7
|
+
* Driver License API version 1.0 document data.
|
|
8
|
+
*/
|
|
9
|
+
class DriverLicenseV1Document {
|
|
10
|
+
constructor(rawPrediction, pageId) {
|
|
11
|
+
this.category = new standard_1.StringField({
|
|
12
|
+
prediction: rawPrediction["category"],
|
|
13
|
+
pageId: pageId,
|
|
14
|
+
});
|
|
15
|
+
this.countryCode = new standard_1.StringField({
|
|
16
|
+
prediction: rawPrediction["country_code"],
|
|
17
|
+
pageId: pageId,
|
|
18
|
+
});
|
|
19
|
+
this.dateOfBirth = new standard_1.DateField({
|
|
20
|
+
prediction: rawPrediction["date_of_birth"],
|
|
21
|
+
pageId: pageId,
|
|
22
|
+
});
|
|
23
|
+
this.ddNumber = new standard_1.StringField({
|
|
24
|
+
prediction: rawPrediction["dd_number"],
|
|
25
|
+
pageId: pageId,
|
|
26
|
+
});
|
|
27
|
+
this.expiryDate = new standard_1.DateField({
|
|
28
|
+
prediction: rawPrediction["expiry_date"],
|
|
29
|
+
pageId: pageId,
|
|
30
|
+
});
|
|
31
|
+
this.firstName = new standard_1.StringField({
|
|
32
|
+
prediction: rawPrediction["first_name"],
|
|
33
|
+
pageId: pageId,
|
|
34
|
+
});
|
|
35
|
+
this.id = new standard_1.StringField({
|
|
36
|
+
prediction: rawPrediction["id"],
|
|
37
|
+
pageId: pageId,
|
|
38
|
+
});
|
|
39
|
+
this.issuedDate = new standard_1.DateField({
|
|
40
|
+
prediction: rawPrediction["issued_date"],
|
|
41
|
+
pageId: pageId,
|
|
42
|
+
});
|
|
43
|
+
this.issuingAuthority = new standard_1.StringField({
|
|
44
|
+
prediction: rawPrediction["issuing_authority"],
|
|
45
|
+
pageId: pageId,
|
|
46
|
+
});
|
|
47
|
+
this.lastName = new standard_1.StringField({
|
|
48
|
+
prediction: rawPrediction["last_name"],
|
|
49
|
+
pageId: pageId,
|
|
50
|
+
});
|
|
51
|
+
this.mrz = new standard_1.StringField({
|
|
52
|
+
prediction: rawPrediction["mrz"],
|
|
53
|
+
pageId: pageId,
|
|
54
|
+
});
|
|
55
|
+
this.placeOfBirth = new standard_1.StringField({
|
|
56
|
+
prediction: rawPrediction["place_of_birth"],
|
|
57
|
+
pageId: pageId,
|
|
58
|
+
});
|
|
59
|
+
this.state = new standard_1.StringField({
|
|
60
|
+
prediction: rawPrediction["state"],
|
|
61
|
+
pageId: pageId,
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Default string representation.
|
|
66
|
+
*/
|
|
67
|
+
toString() {
|
|
68
|
+
const outStr = `:Country Code: ${this.countryCode}
|
|
69
|
+
:State: ${this.state}
|
|
70
|
+
:ID: ${this.id}
|
|
71
|
+
:Category: ${this.category}
|
|
72
|
+
:Last Name: ${this.lastName}
|
|
73
|
+
:First Name: ${this.firstName}
|
|
74
|
+
:Date of Birth: ${this.dateOfBirth}
|
|
75
|
+
:Place of Birth: ${this.placeOfBirth}
|
|
76
|
+
:Expiry Date: ${this.expiryDate}
|
|
77
|
+
:Issued Date: ${this.issuedDate}
|
|
78
|
+
:Issuing Authority: ${this.issuingAuthority}
|
|
79
|
+
:MRZ: ${this.mrz}
|
|
80
|
+
:DD Number: ${this.ddNumber}`.trimEnd();
|
|
81
|
+
return (0, common_1.cleanOutString)(outStr);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
exports.DriverLicenseV1Document = DriverLicenseV1Document;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DriverLicenseV1 } from "./driverLicenseV1";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DriverLicenseV1 = void 0;
|
|
4
|
+
var driverLicenseV1_1 = require("./driverLicenseV1");
|
|
5
|
+
Object.defineProperty(exports, "DriverLicenseV1", { enumerable: true, get: function () { return driverLicenseV1_1.DriverLicenseV1; } });
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DriverLicenseV1Document = exports.DriverLicenseV1 = void 0;
|
|
4
|
+
var driverLicenseV1_1 = require("./driverLicenseV1");
|
|
5
|
+
Object.defineProperty(exports, "DriverLicenseV1", { enumerable: true, get: function () { return driverLicenseV1_1.DriverLicenseV1; } });
|
|
6
|
+
var driverLicenseV1Document_1 = require("./driverLicenseV1Document");
|
|
7
|
+
Object.defineProperty(exports, "DriverLicenseV1Document", { enumerable: true, get: function () { return driverLicenseV1Document_1.DriverLicenseV1Document; } });
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Inference, StringDict, Page } from "../../../parsing/common";
|
|
2
|
+
import { HealthCardV1Document } from "./healthCardV1Document";
|
|
3
|
+
/**
|
|
4
|
+
* Health Card API version 1 inference prediction.
|
|
5
|
+
*/
|
|
6
|
+
export declare class HealthCardV1 extends Inference {
|
|
7
|
+
/** The endpoint's name. */
|
|
8
|
+
endpointName: string;
|
|
9
|
+
/** The endpoint's version. */
|
|
10
|
+
endpointVersion: string;
|
|
11
|
+
/** The document-level prediction. */
|
|
12
|
+
prediction: HealthCardV1Document;
|
|
13
|
+
/** The document's pages. */
|
|
14
|
+
pages: Page<HealthCardV1Document>[];
|
|
15
|
+
constructor(rawPrediction: StringDict);
|
|
16
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HealthCardV1 = void 0;
|
|
4
|
+
const common_1 = require("../../../parsing/common");
|
|
5
|
+
const healthCardV1Document_1 = require("./healthCardV1Document");
|
|
6
|
+
/**
|
|
7
|
+
* Health Card API version 1 inference prediction.
|
|
8
|
+
*/
|
|
9
|
+
class HealthCardV1 extends common_1.Inference {
|
|
10
|
+
constructor(rawPrediction) {
|
|
11
|
+
super(rawPrediction);
|
|
12
|
+
/** The endpoint's name. */
|
|
13
|
+
this.endpointName = "french_healthcard";
|
|
14
|
+
/** The endpoint's version. */
|
|
15
|
+
this.endpointVersion = "1";
|
|
16
|
+
/** The document's pages. */
|
|
17
|
+
this.pages = [];
|
|
18
|
+
this.prediction = new healthCardV1Document_1.HealthCardV1Document(rawPrediction["prediction"]);
|
|
19
|
+
rawPrediction["pages"].forEach((page) => {
|
|
20
|
+
if (page.prediction !== undefined && page.prediction !== null &&
|
|
21
|
+
Object.keys(page.prediction).length > 0) {
|
|
22
|
+
this.pages.push(new common_1.Page(healthCardV1Document_1.HealthCardV1Document, page, page["id"], page["orientation"]));
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.HealthCardV1 = HealthCardV1;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Prediction, StringDict } from "../../../parsing/common";
|
|
2
|
+
import { DateField, StringField } from "../../../parsing/standard";
|
|
3
|
+
/**
|
|
4
|
+
* Health Card API version 1.0 document data.
|
|
5
|
+
*/
|
|
6
|
+
export declare class HealthCardV1Document implements Prediction {
|
|
7
|
+
/** The given names of the card holder. */
|
|
8
|
+
givenNames: StringField[];
|
|
9
|
+
/** The date when the carte vitale document was issued. */
|
|
10
|
+
issuanceDate: DateField;
|
|
11
|
+
/** The social security number of the card holder. */
|
|
12
|
+
socialSecurity: StringField;
|
|
13
|
+
/** The surname of the card holder. */
|
|
14
|
+
surname: StringField;
|
|
15
|
+
constructor(rawPrediction: StringDict, pageId?: number);
|
|
16
|
+
/**
|
|
17
|
+
* Default string representation.
|
|
18
|
+
*/
|
|
19
|
+
toString(): string;
|
|
20
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HealthCardV1Document = void 0;
|
|
4
|
+
const common_1 = require("../../../parsing/common");
|
|
5
|
+
const standard_1 = require("../../../parsing/standard");
|
|
6
|
+
/**
|
|
7
|
+
* Health Card API version 1.0 document data.
|
|
8
|
+
*/
|
|
9
|
+
class HealthCardV1Document {
|
|
10
|
+
constructor(rawPrediction, pageId) {
|
|
11
|
+
/** The given names of the card holder. */
|
|
12
|
+
this.givenNames = [];
|
|
13
|
+
rawPrediction["given_names"] &&
|
|
14
|
+
rawPrediction["given_names"].map((itemPrediction) => this.givenNames.push(new standard_1.StringField({
|
|
15
|
+
prediction: itemPrediction,
|
|
16
|
+
pageId: pageId,
|
|
17
|
+
})));
|
|
18
|
+
this.issuanceDate = new standard_1.DateField({
|
|
19
|
+
prediction: rawPrediction["issuance_date"],
|
|
20
|
+
pageId: pageId,
|
|
21
|
+
});
|
|
22
|
+
this.socialSecurity = new standard_1.StringField({
|
|
23
|
+
prediction: rawPrediction["social_security"],
|
|
24
|
+
pageId: pageId,
|
|
25
|
+
});
|
|
26
|
+
this.surname = new standard_1.StringField({
|
|
27
|
+
prediction: rawPrediction["surname"],
|
|
28
|
+
pageId: pageId,
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Default string representation.
|
|
33
|
+
*/
|
|
34
|
+
toString() {
|
|
35
|
+
const givenNames = this.givenNames.join("\n ");
|
|
36
|
+
const outStr = `:Given Name(s): ${givenNames}
|
|
37
|
+
:Surname: ${this.surname}
|
|
38
|
+
:Social Security Number: ${this.socialSecurity}
|
|
39
|
+
:Issuance Date: ${this.issuanceDate}`.trimEnd();
|
|
40
|
+
return (0, common_1.cleanOutString)(outStr);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.HealthCardV1Document = HealthCardV1Document;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { HealthCardV1 } from "./healthCardV1";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HealthCardV1 = void 0;
|
|
4
|
+
var healthCardV1_1 = require("./healthCardV1");
|
|
5
|
+
Object.defineProperty(exports, "HealthCardV1", { enumerable: true, get: function () { return healthCardV1_1.HealthCardV1; } });
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HealthCardV1Document = exports.HealthCardV1 = void 0;
|
|
4
|
+
var healthCardV1_1 = require("./healthCardV1");
|
|
5
|
+
Object.defineProperty(exports, "HealthCardV1", { enumerable: true, get: function () { return healthCardV1_1.HealthCardV1; } });
|
|
6
|
+
var healthCardV1Document_1 = require("./healthCardV1Document");
|
|
7
|
+
Object.defineProperty(exports, "HealthCardV1Document", { enumerable: true, get: function () { return healthCardV1Document_1.HealthCardV1Document; } });
|
|
@@ -3,6 +3,8 @@ export { BankAccountDetailsV2 } from "./bankAccountDetails/bankAccountDetailsV2"
|
|
|
3
3
|
export { CarteGriseV1 } from "./carteGrise/carteGriseV1";
|
|
4
4
|
export { CarteVitaleV1 } from "./carteVitale/carteVitaleV1";
|
|
5
5
|
export { EnergyBillV1 } from "./energyBill/energyBillV1";
|
|
6
|
+
export { HealthCardV1 } from "./healthCard/healthCardV1";
|
|
6
7
|
export { IdCardV1 } from "./idCard/idCardV1";
|
|
7
8
|
export { IdCardV2 } from "./idCard/idCardV2";
|
|
8
9
|
export { PayslipV2 } from "./payslip/payslipV2";
|
|
10
|
+
export { PayslipV3 } from "./payslip/payslipV3";
|
package/src/product/fr/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PayslipV2 = exports.IdCardV2 = exports.IdCardV1 = exports.EnergyBillV1 = exports.CarteVitaleV1 = exports.CarteGriseV1 = exports.BankAccountDetailsV2 = exports.BankAccountDetailsV1 = void 0;
|
|
3
|
+
exports.PayslipV3 = exports.PayslipV2 = exports.IdCardV2 = exports.IdCardV1 = exports.HealthCardV1 = exports.EnergyBillV1 = exports.CarteVitaleV1 = exports.CarteGriseV1 = exports.BankAccountDetailsV2 = exports.BankAccountDetailsV1 = void 0;
|
|
4
4
|
var bankAccountDetailsV1_1 = require("./bankAccountDetails/bankAccountDetailsV1");
|
|
5
5
|
Object.defineProperty(exports, "BankAccountDetailsV1", { enumerable: true, get: function () { return bankAccountDetailsV1_1.BankAccountDetailsV1; } });
|
|
6
6
|
var bankAccountDetailsV2_1 = require("./bankAccountDetails/bankAccountDetailsV2");
|
|
@@ -11,9 +11,13 @@ var carteVitaleV1_1 = require("./carteVitale/carteVitaleV1");
|
|
|
11
11
|
Object.defineProperty(exports, "CarteVitaleV1", { enumerable: true, get: function () { return carteVitaleV1_1.CarteVitaleV1; } });
|
|
12
12
|
var energyBillV1_1 = require("./energyBill/energyBillV1");
|
|
13
13
|
Object.defineProperty(exports, "EnergyBillV1", { enumerable: true, get: function () { return energyBillV1_1.EnergyBillV1; } });
|
|
14
|
+
var healthCardV1_1 = require("./healthCard/healthCardV1");
|
|
15
|
+
Object.defineProperty(exports, "HealthCardV1", { enumerable: true, get: function () { return healthCardV1_1.HealthCardV1; } });
|
|
14
16
|
var idCardV1_1 = require("./idCard/idCardV1");
|
|
15
17
|
Object.defineProperty(exports, "IdCardV1", { enumerable: true, get: function () { return idCardV1_1.IdCardV1; } });
|
|
16
18
|
var idCardV2_1 = require("./idCard/idCardV2");
|
|
17
19
|
Object.defineProperty(exports, "IdCardV2", { enumerable: true, get: function () { return idCardV2_1.IdCardV2; } });
|
|
18
20
|
var payslipV2_1 = require("./payslip/payslipV2");
|
|
19
21
|
Object.defineProperty(exports, "PayslipV2", { enumerable: true, get: function () { return payslipV2_1.PayslipV2; } });
|
|
22
|
+
var payslipV3_1 = require("./payslip/payslipV3");
|
|
23
|
+
Object.defineProperty(exports, "PayslipV3", { enumerable: true, get: function () { return payslipV3_1.PayslipV3; } });
|
|
@@ -2,5 +2,6 @@ export * as bankAccountDetails from "./bankAccountDetails/internal";
|
|
|
2
2
|
export * as carteGrise from "./carteGrise/internal";
|
|
3
3
|
export * as carteVitale from "./carteVitale/internal";
|
|
4
4
|
export * as energyBill from "./energyBill/internal";
|
|
5
|
+
export * as fr from "./healthCard/internal";
|
|
5
6
|
export * as idCard from "./idCard/internal";
|
|
6
7
|
export * as payslip from "./payslip/internal";
|
|
@@ -23,10 +23,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.payslip = exports.idCard = exports.energyBill = exports.carteVitale = exports.carteGrise = exports.bankAccountDetails = void 0;
|
|
26
|
+
exports.payslip = exports.idCard = exports.fr = exports.energyBill = exports.carteVitale = exports.carteGrise = exports.bankAccountDetails = void 0;
|
|
27
27
|
exports.bankAccountDetails = __importStar(require("./bankAccountDetails/internal"));
|
|
28
28
|
exports.carteGrise = __importStar(require("./carteGrise/internal"));
|
|
29
29
|
exports.carteVitale = __importStar(require("./carteVitale/internal"));
|
|
30
30
|
exports.energyBill = __importStar(require("./energyBill/internal"));
|
|
31
|
+
exports.fr = __importStar(require("./healthCard/internal"));
|
|
31
32
|
exports.idCard = __importStar(require("./idCard/internal"));
|
|
32
33
|
exports.payslip = __importStar(require("./payslip/internal"));
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PayslipV2 = void 0;
|
|
3
|
+
exports.PayslipV3 = exports.PayslipV2 = void 0;
|
|
4
4
|
var payslipV2_1 = require("./payslipV2");
|
|
5
5
|
Object.defineProperty(exports, "PayslipV2", { enumerable: true, get: function () { return payslipV2_1.PayslipV2; } });
|
|
6
|
+
var payslipV3_1 = require("./payslipV3");
|
|
7
|
+
Object.defineProperty(exports, "PayslipV3", { enumerable: true, get: function () { return payslipV3_1.PayslipV3; } });
|
|
@@ -8,3 +8,13 @@ export { PayslipV2PayDetail } from "./payslipV2PayDetail";
|
|
|
8
8
|
export { PayslipV2PayPeriod } from "./payslipV2PayPeriod";
|
|
9
9
|
export { PayslipV2Pto } from "./payslipV2Pto";
|
|
10
10
|
export { PayslipV2SalaryDetail } from "./payslipV2SalaryDetail";
|
|
11
|
+
export { PayslipV3 } from "./payslipV3";
|
|
12
|
+
export { PayslipV3BankAccountDetail } from "./payslipV3BankAccountDetail";
|
|
13
|
+
export { PayslipV3Document } from "./payslipV3Document";
|
|
14
|
+
export { PayslipV3Employee } from "./payslipV3Employee";
|
|
15
|
+
export { PayslipV3Employer } from "./payslipV3Employer";
|
|
16
|
+
export { PayslipV3Employment } from "./payslipV3Employment";
|
|
17
|
+
export { PayslipV3PaidTimeOff } from "./payslipV3PaidTimeOff";
|
|
18
|
+
export { PayslipV3PayDetail } from "./payslipV3PayDetail";
|
|
19
|
+
export { PayslipV3PayPeriod } from "./payslipV3PayPeriod";
|
|
20
|
+
export { PayslipV3SalaryDetail } from "./payslipV3SalaryDetail";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PayslipV2SalaryDetail = exports.PayslipV2Pto = exports.PayslipV2PayPeriod = exports.PayslipV2PayDetail = exports.PayslipV2Employment = exports.PayslipV2Employer = exports.PayslipV2Employee = exports.PayslipV2Document = exports.PayslipV2BankAccountDetail = exports.PayslipV2 = void 0;
|
|
3
|
+
exports.PayslipV3SalaryDetail = exports.PayslipV3PayPeriod = exports.PayslipV3PayDetail = exports.PayslipV3PaidTimeOff = exports.PayslipV3Employment = exports.PayslipV3Employer = exports.PayslipV3Employee = exports.PayslipV3Document = exports.PayslipV3BankAccountDetail = exports.PayslipV3 = exports.PayslipV2SalaryDetail = exports.PayslipV2Pto = exports.PayslipV2PayPeriod = exports.PayslipV2PayDetail = exports.PayslipV2Employment = exports.PayslipV2Employer = exports.PayslipV2Employee = exports.PayslipV2Document = exports.PayslipV2BankAccountDetail = exports.PayslipV2 = void 0;
|
|
4
4
|
var payslipV2_1 = require("./payslipV2");
|
|
5
5
|
Object.defineProperty(exports, "PayslipV2", { enumerable: true, get: function () { return payslipV2_1.PayslipV2; } });
|
|
6
6
|
var payslipV2BankAccountDetail_1 = require("./payslipV2BankAccountDetail");
|
|
@@ -21,3 +21,23 @@ var payslipV2Pto_1 = require("./payslipV2Pto");
|
|
|
21
21
|
Object.defineProperty(exports, "PayslipV2Pto", { enumerable: true, get: function () { return payslipV2Pto_1.PayslipV2Pto; } });
|
|
22
22
|
var payslipV2SalaryDetail_1 = require("./payslipV2SalaryDetail");
|
|
23
23
|
Object.defineProperty(exports, "PayslipV2SalaryDetail", { enumerable: true, get: function () { return payslipV2SalaryDetail_1.PayslipV2SalaryDetail; } });
|
|
24
|
+
var payslipV3_1 = require("./payslipV3");
|
|
25
|
+
Object.defineProperty(exports, "PayslipV3", { enumerable: true, get: function () { return payslipV3_1.PayslipV3; } });
|
|
26
|
+
var payslipV3BankAccountDetail_1 = require("./payslipV3BankAccountDetail");
|
|
27
|
+
Object.defineProperty(exports, "PayslipV3BankAccountDetail", { enumerable: true, get: function () { return payslipV3BankAccountDetail_1.PayslipV3BankAccountDetail; } });
|
|
28
|
+
var payslipV3Document_1 = require("./payslipV3Document");
|
|
29
|
+
Object.defineProperty(exports, "PayslipV3Document", { enumerable: true, get: function () { return payslipV3Document_1.PayslipV3Document; } });
|
|
30
|
+
var payslipV3Employee_1 = require("./payslipV3Employee");
|
|
31
|
+
Object.defineProperty(exports, "PayslipV3Employee", { enumerable: true, get: function () { return payslipV3Employee_1.PayslipV3Employee; } });
|
|
32
|
+
var payslipV3Employer_1 = require("./payslipV3Employer");
|
|
33
|
+
Object.defineProperty(exports, "PayslipV3Employer", { enumerable: true, get: function () { return payslipV3Employer_1.PayslipV3Employer; } });
|
|
34
|
+
var payslipV3Employment_1 = require("./payslipV3Employment");
|
|
35
|
+
Object.defineProperty(exports, "PayslipV3Employment", { enumerable: true, get: function () { return payslipV3Employment_1.PayslipV3Employment; } });
|
|
36
|
+
var payslipV3PaidTimeOff_1 = require("./payslipV3PaidTimeOff");
|
|
37
|
+
Object.defineProperty(exports, "PayslipV3PaidTimeOff", { enumerable: true, get: function () { return payslipV3PaidTimeOff_1.PayslipV3PaidTimeOff; } });
|
|
38
|
+
var payslipV3PayDetail_1 = require("./payslipV3PayDetail");
|
|
39
|
+
Object.defineProperty(exports, "PayslipV3PayDetail", { enumerable: true, get: function () { return payslipV3PayDetail_1.PayslipV3PayDetail; } });
|
|
40
|
+
var payslipV3PayPeriod_1 = require("./payslipV3PayPeriod");
|
|
41
|
+
Object.defineProperty(exports, "PayslipV3PayPeriod", { enumerable: true, get: function () { return payslipV3PayPeriod_1.PayslipV3PayPeriod; } });
|
|
42
|
+
var payslipV3SalaryDetail_1 = require("./payslipV3SalaryDetail");
|
|
43
|
+
Object.defineProperty(exports, "PayslipV3SalaryDetail", { enumerable: true, get: function () { return payslipV3SalaryDetail_1.PayslipV3SalaryDetail; } });
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Inference, StringDict, Page } from "../../../parsing/common";
|
|
2
|
+
import { PayslipV3Document } from "./payslipV3Document";
|
|
3
|
+
/**
|
|
4
|
+
* Payslip API version 3 inference prediction.
|
|
5
|
+
*/
|
|
6
|
+
export declare class PayslipV3 extends Inference {
|
|
7
|
+
/** The endpoint's name. */
|
|
8
|
+
endpointName: string;
|
|
9
|
+
/** The endpoint's version. */
|
|
10
|
+
endpointVersion: string;
|
|
11
|
+
/** The document-level prediction. */
|
|
12
|
+
prediction: PayslipV3Document;
|
|
13
|
+
/** The document's pages. */
|
|
14
|
+
pages: Page<PayslipV3Document>[];
|
|
15
|
+
constructor(rawPrediction: StringDict);
|
|
16
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PayslipV3 = void 0;
|
|
4
|
+
const common_1 = require("../../../parsing/common");
|
|
5
|
+
const payslipV3Document_1 = require("./payslipV3Document");
|
|
6
|
+
/**
|
|
7
|
+
* Payslip API version 3 inference prediction.
|
|
8
|
+
*/
|
|
9
|
+
class PayslipV3 extends common_1.Inference {
|
|
10
|
+
constructor(rawPrediction) {
|
|
11
|
+
super(rawPrediction);
|
|
12
|
+
/** The endpoint's name. */
|
|
13
|
+
this.endpointName = "payslip_fra";
|
|
14
|
+
/** The endpoint's version. */
|
|
15
|
+
this.endpointVersion = "3";
|
|
16
|
+
/** The document's pages. */
|
|
17
|
+
this.pages = [];
|
|
18
|
+
this.prediction = new payslipV3Document_1.PayslipV3Document(rawPrediction["prediction"]);
|
|
19
|
+
rawPrediction["pages"].forEach((page) => {
|
|
20
|
+
if (page.prediction !== undefined && page.prediction !== null &&
|
|
21
|
+
Object.keys(page.prediction).length > 0) {
|
|
22
|
+
this.pages.push(new common_1.Page(payslipV3Document_1.PayslipV3Document, page, page["id"], page["orientation"]));
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.PayslipV3 = PayslipV3;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { StringDict } from "../../../parsing/common";
|
|
2
|
+
import { Polygon } from "../../../geometry";
|
|
3
|
+
/**
|
|
4
|
+
* Information about the employee's bank account.
|
|
5
|
+
*/
|
|
6
|
+
export declare class PayslipV3BankAccountDetail {
|
|
7
|
+
#private;
|
|
8
|
+
/** The name of the bank. */
|
|
9
|
+
bankName: string | null;
|
|
10
|
+
/** The IBAN of the bank account. */
|
|
11
|
+
iban: string | null;
|
|
12
|
+
/** The SWIFT code of the bank. */
|
|
13
|
+
swift: string | null;
|
|
14
|
+
/** Confidence score */
|
|
15
|
+
confidence: number;
|
|
16
|
+
/** The document page on which the information was found. */
|
|
17
|
+
pageId: number;
|
|
18
|
+
/**
|
|
19
|
+
* Contains the relative vertices coordinates (points) of a polygon containing
|
|
20
|
+
* the field in the document.
|
|
21
|
+
*/
|
|
22
|
+
polygon: Polygon;
|
|
23
|
+
constructor({ prediction }: StringDict);
|
|
24
|
+
/**
|
|
25
|
+
* Default string representation.
|
|
26
|
+
*/
|
|
27
|
+
toString(): string;
|
|
28
|
+
/**
|
|
29
|
+
* Output in a format suitable for inclusion in a field list.
|
|
30
|
+
*/
|
|
31
|
+
toFieldList(): string;
|
|
32
|
+
}
|