@abyss-project/tools 2.8.1 → 2.9.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.
@@ -2,5 +2,5 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MAX_ATLAS_DOCUMENT_SIZE_OCTET = exports.MAX_DOCUMENTS_PER_ATLAS_PAGE = void 0;
4
4
  exports.MAX_DOCUMENTS_PER_ATLAS_PAGE = 20;
5
- exports.MAX_ATLAS_DOCUMENT_SIZE_OCTET = 20 * 1024 * 1024;
5
+ exports.MAX_ATLAS_DOCUMENT_SIZE_OCTET = 100 * 1024 * 1024;
6
6
  //# sourceMappingURL=atlas.constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"atlas.constants.js","sourceRoot":"","sources":["../../src/constants/atlas.constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,4BAA4B,GAAG,EAAE,CAAC;AAClC,QAAA,6BAA6B,GAAG,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC"}
1
+ {"version":3,"file":"atlas.constants.js","sourceRoot":"","sources":["../../src/constants/atlas.constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,4BAA4B,GAAG,EAAE,CAAC;AAClC,QAAA,6BAA6B,GAAG,GAAG,GAAG,IAAI,GAAG,IAAI,CAAC"}
@@ -5,5 +5,6 @@ export declare enum DocumentType {
5
5
  ID_CARD = "id_card",
6
6
  RIB = "rib",
7
7
  FINANCIAL_STATEMENT = "financial_statement",
8
+ PAYSLIP = "payslip",
8
9
  GENERIC = "generic"
9
10
  }
@@ -9,6 +9,7 @@ var DocumentType;
9
9
  DocumentType["ID_CARD"] = "id_card";
10
10
  DocumentType["RIB"] = "rib";
11
11
  DocumentType["FINANCIAL_STATEMENT"] = "financial_statement";
12
+ DocumentType["PAYSLIP"] = "payslip";
12
13
  DocumentType["GENERIC"] = "generic";
13
14
  })(DocumentType || (exports.DocumentType = DocumentType = {}));
14
15
  //# sourceMappingURL=document-type.enum.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"document-type.enum.js","sourceRoot":"","sources":["../../../src/types/enum/document-type.enum.ts"],"names":[],"mappings":";;;AACA,IAAY,YAQX;AARD,WAAY,YAAY;IACtB,iDAAiC,CAAA;IACjC,mCAAmB,CAAA;IACnB,mCAAmB,CAAA;IACnB,mCAAmB,CAAA;IACnB,2BAAW,CAAA;IACX,2DAA2C,CAAA;IAC3C,mCAAmB,CAAA;AACrB,CAAC,EARW,YAAY,4BAAZ,YAAY,QAQvB"}
1
+ {"version":3,"file":"document-type.enum.js","sourceRoot":"","sources":["../../../src/types/enum/document-type.enum.ts"],"names":[],"mappings":";;;AACA,IAAY,YASX;AATD,WAAY,YAAY;IACtB,iDAAiC,CAAA;IACjC,mCAAmB,CAAA;IACnB,mCAAmB,CAAA;IACnB,mCAAmB,CAAA;IACnB,2BAAW,CAAA;IACX,2DAA2C,CAAA;IAC3C,mCAAmB,CAAA;IACnB,mCAAmB,CAAA;AACrB,CAAC,EATW,YAAY,4BAAZ,YAAY,QASvB"}
@@ -35,6 +35,16 @@ export interface IExtractionMetadata {
35
35
  currency?: string;
36
36
  [k: string]: unknown;
37
37
  }
38
+ export interface IPayslipMetadata {
39
+ netCents?: number;
40
+ grossCents?: number;
41
+ netTaxableCents?: number;
42
+ pasRatePct?: number;
43
+ pasAmountCents?: number;
44
+ period?: string;
45
+ employer?: string;
46
+ currency?: string;
47
+ }
38
48
  export interface IExtractionFile {
39
49
  id: string;
40
50
  userId: string;
@@ -1 +1 @@
1
- {"version":3,"file":"extraction.dto.js","sourceRoot":"","sources":["../../../../src/types/interface/models/extraction.dto.ts"],"names":[],"mappings":";;;AAKA,yFAAoF;AA6F3E,sGA7FA,+CAAqB,OA6FA;AA5F9B,iHAAsG;AAW7F,4GAXA,iEAA2B,OAWA;AAoRpC,IAAY,sBAYX;AAZD,WAAY,sBAAsB;IAChC,qEAA2C,CAAA;IAC3C,+DAAqC,CAAA;IACrC,+EAAqD,CAAA;IACrD,uEAA6C,CAAA;IAC7C,6DAAmC,CAAA;IACnC,2DAAiC,CAAA;IACjC,6DAAmC,CAAA;IACnC,uEAA6C,CAAA;IAC7C,uDAA6B,CAAA;IAC7B,mEAAyC,CAAA;IACzC,6DAAmC,CAAA;AACrC,CAAC,EAZW,sBAAsB,sCAAtB,sBAAsB,QAYjC;AAEY,QAAA,yBAAyB,GACpC,MAAM,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAC;AAuCxC,IAAY,2BAGX;AAHD,WAAY,2BAA2B;IACrC,4CAAa,CAAA;IACb,0CAAW,CAAA;AACb,CAAC,EAHW,2BAA2B,2CAA3B,2BAA2B,QAGtC"}
1
+ {"version":3,"file":"extraction.dto.js","sourceRoot":"","sources":["../../../../src/types/interface/models/extraction.dto.ts"],"names":[],"mappings":";;;AAKA,yFAAoF;AA8G3E,sGA9GA,+CAAqB,OA8GA;AA7G9B,iHAAsG;AAW7F,4GAXA,iEAA2B,OAWA;AAqSpC,IAAY,sBAYX;AAZD,WAAY,sBAAsB;IAChC,qEAA2C,CAAA;IAC3C,+DAAqC,CAAA;IACrC,+EAAqD,CAAA;IACrD,uEAA6C,CAAA;IAC7C,6DAAmC,CAAA;IACnC,2DAAiC,CAAA;IACjC,6DAAmC,CAAA;IACnC,uEAA6C,CAAA;IAC7C,uDAA6B,CAAA;IAC7B,mEAAyC,CAAA;IACzC,6DAAmC,CAAA;AACrC,CAAC,EAZW,sBAAsB,sCAAtB,sBAAsB,QAYjC;AAEY,QAAA,yBAAyB,GACpC,MAAM,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAC;AAuCxC,IAAY,2BAGX;AAHD,WAAY,2BAA2B;IACrC,4CAAa,CAAA;IACb,0CAAW,CAAA;AACb,CAAC,EAHW,2BAA2B,2CAA3B,2BAA2B,QAGtC"}
package/package.json CHANGED
@@ -1,21 +1,9 @@
1
1
  {
2
2
  "name": "@abyss-project/tools",
3
- "version": "2.8.1",
3
+ "version": "2.9.0",
4
4
  "description": "Core package to interact with Abyss-Project Tools",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
- "publishConfig": {
8
- "main": "dist/index.js",
9
- "types": "dist/index.d.ts"
10
- },
11
- "scripts": {
12
- "lint": "eslint \"{src,apps,libs,test,core}/**/*.ts\" --fix",
13
- "lint:check": "eslint \"{src,apps,libs,test,core}/**/*.ts\" --max-warnings 0",
14
- "tsc": "tsc",
15
- "build": "tsc",
16
- "prepublishOnly": "tsc",
17
- "dev": "tsc --watch"
18
- },
19
7
  "repository": {
20
8
  "type": "git",
21
9
  "url": "https://gitlab.com/abyss-group"
@@ -53,5 +41,12 @@
53
41
  "prettier": "2.3.1",
54
42
  "tsc-watch": "^4.6.2",
55
43
  "typescript": "5.4.2"
44
+ },
45
+ "scripts": {
46
+ "lint": "eslint \"{src,apps,libs,test,core}/**/*.ts\" --fix",
47
+ "lint:check": "eslint \"{src,apps,libs,test,core}/**/*.ts\" --max-warnings 0",
48
+ "tsc": "tsc",
49
+ "build": "tsc",
50
+ "dev": "tsc --watch"
56
51
  }
57
- }
52
+ }
@@ -1,2 +1,2 @@
1
1
  export const MAX_DOCUMENTS_PER_ATLAS_PAGE = 20;
2
- export const MAX_ATLAS_DOCUMENT_SIZE_OCTET = 20 * 1024 * 1024; // 20 MB
2
+ export const MAX_ATLAS_DOCUMENT_SIZE_OCTET = 100 * 1024 * 1024; // 100 MB
@@ -6,5 +6,6 @@ export enum DocumentType {
6
6
  ID_CARD = 'id_card',
7
7
  RIB = 'rib',
8
8
  FINANCIAL_STATEMENT = 'financial_statement',
9
+ PAYSLIP = 'payslip',
9
10
  GENERIC = 'generic',
10
11
  }
@@ -63,6 +63,23 @@ export interface IExtractionMetadata {
63
63
  [k: string]: unknown;
64
64
  }
65
65
 
66
+ /**
67
+ * Payslip (fiche de paie) metadata, extracted generically by FR labels — no
68
+ * per-employer template. Amounts are integer cents; `pasRatePct` is a percent
69
+ * (e.g. 3.6 for 3,6 %). `period` is a stable label (ISO month or a "du … au …"
70
+ * span). Every field is optional: a field is present only when confidently found.
71
+ */
72
+ export interface IPayslipMetadata {
73
+ netCents?: number;
74
+ grossCents?: number;
75
+ netTaxableCents?: number;
76
+ pasRatePct?: number;
77
+ pasAmountCents?: number;
78
+ period?: string;
79
+ employer?: string;
80
+ currency?: string;
81
+ }
82
+
66
83
  export interface IExtractionFile {
67
84
  id: string;
68
85
  userId: string;