@silexpert/core 1.3.94-9 → 1.3.94
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/dist/cjs/api/resources/Society.d.ts +1 -2
- package/dist/cjs/api/resources/Society.d.ts.map +1 -1
- package/dist/cjs/api/resources/Society.js +0 -3
- package/dist/cjs/api/resources/Society.js.map +1 -1
- package/dist/cjs/api/resources/User.js +1 -1
- package/dist/cjs/api/resources/User.js.map +1 -1
- package/dist/cjs/api/resources.d.ts +0 -2
- package/dist/cjs/api/resources.d.ts.map +1 -1
- package/dist/cjs/api/resources.js +0 -2
- package/dist/cjs/api/resources.js.map +1 -1
- package/dist/cjs/types/Enum/BalanceSheet.d.ts +2 -2
- package/dist/cjs/types/Enum/BalanceSheet.js +2 -2
- package/dist/cjs/types/Enum/BalanceSheet.js.map +1 -1
- package/dist/cjs/types/Interface/api/calendarEvent/updateCalendarEvent.d.ts +0 -1
- package/dist/cjs/types/Interface/api/calendarEvent/updateCalendarEvent.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/calendarEvent/updateCalendarEvent.js +0 -4
- package/dist/cjs/types/Interface/api/calendarEvent/updateCalendarEvent.js.map +1 -1
- package/dist/cjs/types/Interface/api/config/ConfigType.d.ts +3 -0
- package/dist/cjs/types/Interface/api/config/ConfigType.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/config/ConfigType.js.map +1 -1
- package/dist/cjs/types/Interface/api/shopify/InvoicesShopify.d.ts +4 -5
- package/dist/cjs/types/Interface/api/shopify/InvoicesShopify.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/shopify/InvoicesShopify.js +0 -13
- package/dist/cjs/types/Interface/api/shopify/InvoicesShopify.js.map +1 -1
- package/dist/cjs/types/index.d.ts +0 -2
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +0 -2
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/mjs/api/resources/Society.d.ts +1 -2
- package/dist/mjs/api/resources/Society.d.ts.map +1 -1
- package/dist/mjs/api/resources/Society.js +0 -3
- package/dist/mjs/api/resources/Society.js.map +1 -1
- package/dist/mjs/api/resources/User.js +1 -1
- package/dist/mjs/api/resources/User.js.map +1 -1
- package/dist/mjs/api/resources.d.ts +0 -2
- package/dist/mjs/api/resources.d.ts.map +1 -1
- package/dist/mjs/api/resources.js +0 -2
- package/dist/mjs/api/resources.js.map +1 -1
- package/dist/mjs/types/Enum/BalanceSheet.d.ts +2 -2
- package/dist/mjs/types/Enum/BalanceSheet.js +2 -2
- package/dist/mjs/types/Enum/BalanceSheet.js.map +1 -1
- package/dist/mjs/types/Interface/api/calendarEvent/updateCalendarEvent.d.ts +0 -1
- package/dist/mjs/types/Interface/api/calendarEvent/updateCalendarEvent.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/calendarEvent/updateCalendarEvent.js +0 -5
- package/dist/mjs/types/Interface/api/calendarEvent/updateCalendarEvent.js.map +1 -1
- package/dist/mjs/types/Interface/api/config/ConfigType.d.ts +3 -0
- package/dist/mjs/types/Interface/api/config/ConfigType.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/config/ConfigType.js.map +1 -1
- package/dist/mjs/types/Interface/api/shopify/InvoicesShopify.d.ts +4 -5
- package/dist/mjs/types/Interface/api/shopify/InvoicesShopify.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/shopify/InvoicesShopify.js +0 -14
- package/dist/mjs/types/Interface/api/shopify/InvoicesShopify.js.map +1 -1
- package/dist/mjs/types/index.d.ts +0 -2
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +0 -2
- package/dist/mjs/types/index.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Society.ts +0 -5
- package/ts/api/resources/User.ts +1 -1
- package/ts/api/resources.ts +0 -2
- package/ts/types/Enum/BalanceSheet.ts +2 -2
- package/ts/types/Interface/api/calendarEvent/updateCalendarEvent.ts +0 -3
- package/ts/types/Interface/api/config/ConfigType.ts +3 -0
- package/ts/types/Interface/api/shopify/InvoicesShopify.ts +4 -19
- package/ts/types/index.ts +0 -2
- package/dist/cjs/api/resources/BankDedup.d.ts +0 -9
- package/dist/cjs/api/resources/BankDedup.d.ts.map +0 -1
- package/dist/cjs/api/resources/BankDedup.js +0 -14
- package/dist/cjs/api/resources/BankDedup.js.map +0 -1
- package/dist/cjs/types/Interface/api/bankDedup/BankDedup.d.ts +0 -84
- package/dist/cjs/types/Interface/api/bankDedup/BankDedup.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/bankDedup/BankDedup.js +0 -301
- package/dist/cjs/types/Interface/api/bankDedup/BankDedup.js.map +0 -1
- package/dist/cjs/types/Interface/api/society/QueryToArchived.d.ts +0 -5
- package/dist/cjs/types/Interface/api/society/QueryToArchived.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/society/QueryToArchived.js +0 -25
- package/dist/cjs/types/Interface/api/society/QueryToArchived.js.map +0 -1
- package/dist/mjs/api/resources/BankDedup.d.ts +0 -9
- package/dist/mjs/api/resources/BankDedup.d.ts.map +0 -1
- package/dist/mjs/api/resources/BankDedup.js +0 -10
- package/dist/mjs/api/resources/BankDedup.js.map +0 -1
- package/dist/mjs/types/Interface/api/bankDedup/BankDedup.d.ts +0 -84
- package/dist/mjs/types/Interface/api/bankDedup/BankDedup.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/bankDedup/BankDedup.js +0 -340
- package/dist/mjs/types/Interface/api/bankDedup/BankDedup.js.map +0 -1
- package/dist/mjs/types/Interface/api/society/QueryToArchived.d.ts +0 -5
- package/dist/mjs/types/Interface/api/society/QueryToArchived.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/society/QueryToArchived.js +0 -22
- package/dist/mjs/types/Interface/api/society/QueryToArchived.js.map +0 -1
- package/ts/api/resources/BankDedup.ts +0 -11
- package/ts/types/Interface/api/bankDedup/BankDedup.ts +0 -264
- package/ts/types/Interface/api/society/QueryToArchived.ts +0 -10
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
export declare class BankDedupRequest {
|
|
2
|
-
csv: string;
|
|
3
|
-
initial: number;
|
|
4
|
-
target: number;
|
|
5
|
-
}
|
|
6
|
-
export declare class BankDedupFileUploadBody {
|
|
7
|
-
initial: number;
|
|
8
|
-
target: number;
|
|
9
|
-
}
|
|
10
|
-
export declare class BankTx {
|
|
11
|
-
id: string;
|
|
12
|
-
label: string;
|
|
13
|
-
dateValue: string;
|
|
14
|
-
credit: number;
|
|
15
|
-
debit: number;
|
|
16
|
-
sign: 1 | -1;
|
|
17
|
-
amount: number;
|
|
18
|
-
cents: number;
|
|
19
|
-
}
|
|
20
|
-
export declare class DuplicateGroup {
|
|
21
|
-
id: string;
|
|
22
|
-
transactions: BankTx[];
|
|
23
|
-
amount: number;
|
|
24
|
-
cents: number;
|
|
25
|
-
sign: 1 | -1;
|
|
26
|
-
confidence: number;
|
|
27
|
-
method: 'exact' | 'fuzzy_high' | 'fuzzy_medium' | 'fuzzy_low';
|
|
28
|
-
}
|
|
29
|
-
export declare class BankDedupResult {
|
|
30
|
-
success: true;
|
|
31
|
-
initial: number;
|
|
32
|
-
target: number;
|
|
33
|
-
finalRaw: number;
|
|
34
|
-
finalAfterDedup: number;
|
|
35
|
-
diffBefore: number;
|
|
36
|
-
diffAfter: number;
|
|
37
|
-
removedGroups: BankDedupGroup[];
|
|
38
|
-
removedCount: number;
|
|
39
|
-
keptCount: number;
|
|
40
|
-
csvDeduped: string;
|
|
41
|
-
allGroups: BankDedupGroup[];
|
|
42
|
-
debug: {
|
|
43
|
-
totalGroups: number;
|
|
44
|
-
selectedGroups: number;
|
|
45
|
-
iterations: number;
|
|
46
|
-
strategiesUsed: string[];
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
export declare class BankDedupGroup {
|
|
50
|
-
id: string;
|
|
51
|
-
isSelected: boolean;
|
|
52
|
-
confidence?: number;
|
|
53
|
-
method?: string;
|
|
54
|
-
amount?: number;
|
|
55
|
-
transactionCount?: number;
|
|
56
|
-
transactions?: {
|
|
57
|
-
id: string;
|
|
58
|
-
label: string;
|
|
59
|
-
dateValue: string;
|
|
60
|
-
isKept: boolean;
|
|
61
|
-
isCredit: boolean;
|
|
62
|
-
}[];
|
|
63
|
-
}
|
|
64
|
-
export declare class BankDedupImpossible {
|
|
65
|
-
success: false;
|
|
66
|
-
reason: 'NO_EXACT_COMBINATION' | 'CSV_PARSE_ERROR' | 'INVALID_INPUT' | 'INSUFFICIENT_DUPLICATES';
|
|
67
|
-
message: string;
|
|
68
|
-
initial?: number;
|
|
69
|
-
target?: number;
|
|
70
|
-
finalRaw?: number;
|
|
71
|
-
diffBefore?: number;
|
|
72
|
-
bestAttempt?: {
|
|
73
|
-
finalAfterDedup: number;
|
|
74
|
-
diffAfter: number;
|
|
75
|
-
removedCount: number;
|
|
76
|
-
};
|
|
77
|
-
stats?: {
|
|
78
|
-
totalTx?: number;
|
|
79
|
-
totalGroups?: number;
|
|
80
|
-
strategiesTried?: string[];
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
export type BankDedupResponse = BankDedupResult | BankDedupImpossible;
|
|
84
|
-
//# sourceMappingURL=BankDedup.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BankDedup.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/bankDedup/BankDedup.ts"],"names":[],"mappings":"AAeA,qBAAa,gBAAgB;IAG3B,GAAG,EAAE,MAAM,CAAC;IAIZ,OAAO,EAAE,MAAM,CAAC;IAIhB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,qBAAa,uBAAuB;IAGlC,OAAO,EAAE,MAAM,CAAC;IAIhB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,qBAAa,MAAM;IAGjB,EAAE,EAAE,MAAM,CAAC;IAIX,KAAK,EAAE,MAAM,CAAC;IAId,SAAS,EAAE,MAAM,CAAC;IAIlB,MAAM,EAAE,MAAM,CAAC;IAIf,KAAK,EA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,CAAC,EAAE;QACb,EAAE,EAAE,MAAM,CAAC;QACX,KAAK,EAAE,MAAM,CAAC;QACd,SAAS,EAAE,MAAM,CAAC;QAClB,MAAM,EAAE,OAAO,CAAC;QAChB,QAAQ,EAAE,OAAO,CAAC;KACnB,EAAE,CAAC;CACL;AAED,qBAAa,mBAAmB;IAG9B,OAAO,EAAE,KAAK,CAAC;IAIf,MAAM,EAAE,sBAAsB,GAAG,iBAAiB,GAAG,eAAe,GAAG,yBAAyB,CAAC;IAIjG,OAAO,EAAE,MAAM,CAAC;IAKhB,OAAO,CAAC,EAAE,MAAM,CAAC;IAKjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAKhB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAKlB,UAAU,CAAC,EAAE,MAAM,CAAC;IAIpB,WAAW,CAAC,EAAE;QACZ,eAAe,EAAE,MAAM,CAAC;QACxB,SAAS,EAAE,MAAM,CAAC;QAClB,YAAY,EAAE,MAAM,CAAC;KACtB,CAAC;IAIF,KAAK,CAAC,EAAE;QACN,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;KAC5B,CAAC;CACH;AAED,MAAM,MAAM,iBAAiB,GAAG,eAAe,GAAG,mBAAmB,CAAC"}
|
|
@@ -1,340 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
import { ApiProperty } from '@nestjs/swagger';
|
|
11
|
-
import { IsString, IsNumber, IsArray, ValidateNested, IsBoolean, IsIn, IsOptional, Min, Max, } from 'class-validator';
|
|
12
|
-
import { Type } from 'class-transformer';
|
|
13
|
-
export class BankDedupRequest {
|
|
14
|
-
csv; // CSV en string (avec header: label,dateValue,credit,debit)
|
|
15
|
-
initial; // solde initial
|
|
16
|
-
target; // solde cible
|
|
17
|
-
}
|
|
18
|
-
__decorate([
|
|
19
|
-
ApiProperty(),
|
|
20
|
-
IsString(),
|
|
21
|
-
__metadata("design:type", String)
|
|
22
|
-
], BankDedupRequest.prototype, "csv", void 0);
|
|
23
|
-
__decorate([
|
|
24
|
-
ApiProperty(),
|
|
25
|
-
IsNumber(),
|
|
26
|
-
__metadata("design:type", Number)
|
|
27
|
-
], BankDedupRequest.prototype, "initial", void 0);
|
|
28
|
-
__decorate([
|
|
29
|
-
ApiProperty(),
|
|
30
|
-
IsNumber(),
|
|
31
|
-
__metadata("design:type", Number)
|
|
32
|
-
], BankDedupRequest.prototype, "target", void 0);
|
|
33
|
-
export class BankDedupFileUploadBody {
|
|
34
|
-
initial; // solde initial
|
|
35
|
-
target; // solde cible
|
|
36
|
-
}
|
|
37
|
-
__decorate([
|
|
38
|
-
ApiProperty(),
|
|
39
|
-
IsNumber(),
|
|
40
|
-
__metadata("design:type", Number)
|
|
41
|
-
], BankDedupFileUploadBody.prototype, "initial", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
ApiProperty(),
|
|
44
|
-
IsNumber(),
|
|
45
|
-
__metadata("design:type", Number)
|
|
46
|
-
], BankDedupFileUploadBody.prototype, "target", void 0);
|
|
47
|
-
export class BankTx {
|
|
48
|
-
id; // id interne généré
|
|
49
|
-
label;
|
|
50
|
-
dateValue; // YYYY-MM-DD
|
|
51
|
-
credit;
|
|
52
|
-
debit;
|
|
53
|
-
sign; // 1 = crédit net, -1 = débit net
|
|
54
|
-
amount; // valeur absolue du mouvement (en positif)
|
|
55
|
-
cents; // montant en centimes pour calculs exacts
|
|
56
|
-
}
|
|
57
|
-
__decorate([
|
|
58
|
-
ApiProperty(),
|
|
59
|
-
IsString(),
|
|
60
|
-
__metadata("design:type", String)
|
|
61
|
-
], BankTx.prototype, "id", void 0);
|
|
62
|
-
__decorate([
|
|
63
|
-
ApiProperty(),
|
|
64
|
-
IsString(),
|
|
65
|
-
__metadata("design:type", String)
|
|
66
|
-
], BankTx.prototype, "label", void 0);
|
|
67
|
-
__decorate([
|
|
68
|
-
ApiProperty(),
|
|
69
|
-
IsString(),
|
|
70
|
-
__metadata("design:type", String)
|
|
71
|
-
], BankTx.prototype, "dateValue", void 0);
|
|
72
|
-
__decorate([
|
|
73
|
-
ApiProperty(),
|
|
74
|
-
IsNumber(),
|
|
75
|
-
__metadata("design:type", Number)
|
|
76
|
-
], BankTx.prototype, "credit", void 0);
|
|
77
|
-
__decorate([
|
|
78
|
-
ApiProperty(),
|
|
79
|
-
IsNumber(),
|
|
80
|
-
__metadata("design:type", Number)
|
|
81
|
-
], BankTx.prototype, "debit", void 0);
|
|
82
|
-
__decorate([
|
|
83
|
-
ApiProperty(),
|
|
84
|
-
IsIn([1, -1]),
|
|
85
|
-
__metadata("design:type", Number)
|
|
86
|
-
], BankTx.prototype, "sign", void 0);
|
|
87
|
-
__decorate([
|
|
88
|
-
ApiProperty(),
|
|
89
|
-
IsNumber(),
|
|
90
|
-
Min(0),
|
|
91
|
-
__metadata("design:type", Number)
|
|
92
|
-
], BankTx.prototype, "amount", void 0);
|
|
93
|
-
__decorate([
|
|
94
|
-
ApiProperty(),
|
|
95
|
-
IsNumber(),
|
|
96
|
-
__metadata("design:type", Number)
|
|
97
|
-
], BankTx.prototype, "cents", void 0);
|
|
98
|
-
export class DuplicateGroup {
|
|
99
|
-
id;
|
|
100
|
-
transactions;
|
|
101
|
-
amount; // montant commun
|
|
102
|
-
cents; // montant en centimes
|
|
103
|
-
sign; // signe commun
|
|
104
|
-
confidence; // score de confiance [0 - 1]
|
|
105
|
-
method; // méthode de détection
|
|
106
|
-
}
|
|
107
|
-
__decorate([
|
|
108
|
-
ApiProperty(),
|
|
109
|
-
IsString(),
|
|
110
|
-
__metadata("design:type", String)
|
|
111
|
-
], DuplicateGroup.prototype, "id", void 0);
|
|
112
|
-
__decorate([
|
|
113
|
-
ApiProperty({ type: [BankTx] }),
|
|
114
|
-
IsArray(),
|
|
115
|
-
ValidateNested({ each: true }),
|
|
116
|
-
Type(() => BankTx),
|
|
117
|
-
__metadata("design:type", Array)
|
|
118
|
-
], DuplicateGroup.prototype, "transactions", void 0);
|
|
119
|
-
__decorate([
|
|
120
|
-
ApiProperty(),
|
|
121
|
-
IsNumber(),
|
|
122
|
-
__metadata("design:type", Number)
|
|
123
|
-
], DuplicateGroup.prototype, "amount", void 0);
|
|
124
|
-
__decorate([
|
|
125
|
-
ApiProperty(),
|
|
126
|
-
IsNumber(),
|
|
127
|
-
__metadata("design:type", Number)
|
|
128
|
-
], DuplicateGroup.prototype, "cents", void 0);
|
|
129
|
-
__decorate([
|
|
130
|
-
ApiProperty(),
|
|
131
|
-
IsIn([1, -1]),
|
|
132
|
-
__metadata("design:type", Number)
|
|
133
|
-
], DuplicateGroup.prototype, "sign", void 0);
|
|
134
|
-
__decorate([
|
|
135
|
-
ApiProperty(),
|
|
136
|
-
IsNumber(),
|
|
137
|
-
Min(0),
|
|
138
|
-
Max(1),
|
|
139
|
-
__metadata("design:type", Number)
|
|
140
|
-
], DuplicateGroup.prototype, "confidence", void 0);
|
|
141
|
-
__decorate([
|
|
142
|
-
ApiProperty(),
|
|
143
|
-
IsIn(['exact', 'fuzzy_high', 'fuzzy_medium', 'fuzzy_low']),
|
|
144
|
-
__metadata("design:type", String)
|
|
145
|
-
], DuplicateGroup.prototype, "method", void 0);
|
|
146
|
-
export class BankDedupResult {
|
|
147
|
-
success;
|
|
148
|
-
initial;
|
|
149
|
-
target;
|
|
150
|
-
finalRaw;
|
|
151
|
-
finalAfterDedup;
|
|
152
|
-
diffBefore; // target - finalRaw
|
|
153
|
-
diffAfter; // target - finalAfterDedup (DOIT être exactement 0, aucune tolérance)
|
|
154
|
-
removedGroups;
|
|
155
|
-
removedCount;
|
|
156
|
-
keptCount;
|
|
157
|
-
csvDeduped;
|
|
158
|
-
allGroups;
|
|
159
|
-
debug;
|
|
160
|
-
}
|
|
161
|
-
__decorate([
|
|
162
|
-
ApiProperty(),
|
|
163
|
-
IsBoolean(),
|
|
164
|
-
__metadata("design:type", Boolean)
|
|
165
|
-
], BankDedupResult.prototype, "success", void 0);
|
|
166
|
-
__decorate([
|
|
167
|
-
ApiProperty(),
|
|
168
|
-
IsNumber(),
|
|
169
|
-
__metadata("design:type", Number)
|
|
170
|
-
], BankDedupResult.prototype, "initial", void 0);
|
|
171
|
-
__decorate([
|
|
172
|
-
ApiProperty(),
|
|
173
|
-
IsNumber(),
|
|
174
|
-
__metadata("design:type", Number)
|
|
175
|
-
], BankDedupResult.prototype, "target", void 0);
|
|
176
|
-
__decorate([
|
|
177
|
-
ApiProperty(),
|
|
178
|
-
IsNumber(),
|
|
179
|
-
__metadata("design:type", Number)
|
|
180
|
-
], BankDedupResult.prototype, "finalRaw", void 0);
|
|
181
|
-
__decorate([
|
|
182
|
-
ApiProperty(),
|
|
183
|
-
IsNumber(),
|
|
184
|
-
__metadata("design:type", Number)
|
|
185
|
-
], BankDedupResult.prototype, "finalAfterDedup", void 0);
|
|
186
|
-
__decorate([
|
|
187
|
-
ApiProperty(),
|
|
188
|
-
IsNumber(),
|
|
189
|
-
__metadata("design:type", Number)
|
|
190
|
-
], BankDedupResult.prototype, "diffBefore", void 0);
|
|
191
|
-
__decorate([
|
|
192
|
-
ApiProperty(),
|
|
193
|
-
IsNumber(),
|
|
194
|
-
__metadata("design:type", Number)
|
|
195
|
-
], BankDedupResult.prototype, "diffAfter", void 0);
|
|
196
|
-
__decorate([
|
|
197
|
-
ApiProperty(),
|
|
198
|
-
IsArray(),
|
|
199
|
-
ValidateNested({ each: true }),
|
|
200
|
-
Type(() => BankDedupGroup),
|
|
201
|
-
__metadata("design:type", Array)
|
|
202
|
-
], BankDedupResult.prototype, "removedGroups", void 0);
|
|
203
|
-
__decorate([
|
|
204
|
-
ApiProperty(),
|
|
205
|
-
IsNumber(),
|
|
206
|
-
__metadata("design:type", Number)
|
|
207
|
-
], BankDedupResult.prototype, "removedCount", void 0);
|
|
208
|
-
__decorate([
|
|
209
|
-
ApiProperty(),
|
|
210
|
-
IsNumber(),
|
|
211
|
-
__metadata("design:type", Number)
|
|
212
|
-
], BankDedupResult.prototype, "keptCount", void 0);
|
|
213
|
-
__decorate([
|
|
214
|
-
ApiProperty(),
|
|
215
|
-
IsString(),
|
|
216
|
-
__metadata("design:type", String)
|
|
217
|
-
], BankDedupResult.prototype, "csvDeduped", void 0);
|
|
218
|
-
__decorate([
|
|
219
|
-
ApiProperty(),
|
|
220
|
-
IsArray(),
|
|
221
|
-
ValidateNested({ each: true }),
|
|
222
|
-
Type(() => BankDedupGroup),
|
|
223
|
-
__metadata("design:type", Array)
|
|
224
|
-
], BankDedupResult.prototype, "allGroups", void 0);
|
|
225
|
-
__decorate([
|
|
226
|
-
ApiProperty(),
|
|
227
|
-
__metadata("design:type", Object)
|
|
228
|
-
], BankDedupResult.prototype, "debug", void 0);
|
|
229
|
-
export class BankDedupGroup {
|
|
230
|
-
id;
|
|
231
|
-
isSelected;
|
|
232
|
-
confidence;
|
|
233
|
-
method;
|
|
234
|
-
amount;
|
|
235
|
-
transactionCount;
|
|
236
|
-
transactions;
|
|
237
|
-
}
|
|
238
|
-
__decorate([
|
|
239
|
-
ApiProperty(),
|
|
240
|
-
IsString(),
|
|
241
|
-
__metadata("design:type", String)
|
|
242
|
-
], BankDedupGroup.prototype, "id", void 0);
|
|
243
|
-
__decorate([
|
|
244
|
-
ApiProperty(),
|
|
245
|
-
IsBoolean(),
|
|
246
|
-
__metadata("design:type", Boolean)
|
|
247
|
-
], BankDedupGroup.prototype, "isSelected", void 0);
|
|
248
|
-
__decorate([
|
|
249
|
-
ApiProperty(),
|
|
250
|
-
IsOptional(),
|
|
251
|
-
IsNumber(),
|
|
252
|
-
Min(0),
|
|
253
|
-
Max(1),
|
|
254
|
-
__metadata("design:type", Number)
|
|
255
|
-
], BankDedupGroup.prototype, "confidence", void 0);
|
|
256
|
-
__decorate([
|
|
257
|
-
ApiProperty(),
|
|
258
|
-
IsOptional(),
|
|
259
|
-
IsString(),
|
|
260
|
-
__metadata("design:type", String)
|
|
261
|
-
], BankDedupGroup.prototype, "method", void 0);
|
|
262
|
-
__decorate([
|
|
263
|
-
ApiProperty(),
|
|
264
|
-
IsOptional(),
|
|
265
|
-
IsNumber(),
|
|
266
|
-
__metadata("design:type", Number)
|
|
267
|
-
], BankDedupGroup.prototype, "amount", void 0);
|
|
268
|
-
__decorate([
|
|
269
|
-
ApiProperty(),
|
|
270
|
-
IsOptional(),
|
|
271
|
-
IsNumber(),
|
|
272
|
-
__metadata("design:type", Number)
|
|
273
|
-
], BankDedupGroup.prototype, "transactionCount", void 0);
|
|
274
|
-
__decorate([
|
|
275
|
-
ApiProperty(),
|
|
276
|
-
IsOptional(),
|
|
277
|
-
IsArray(),
|
|
278
|
-
__metadata("design:type", Array)
|
|
279
|
-
], BankDedupGroup.prototype, "transactions", void 0);
|
|
280
|
-
export class BankDedupImpossible {
|
|
281
|
-
success;
|
|
282
|
-
reason;
|
|
283
|
-
message;
|
|
284
|
-
initial;
|
|
285
|
-
target;
|
|
286
|
-
finalRaw;
|
|
287
|
-
diffBefore;
|
|
288
|
-
bestAttempt;
|
|
289
|
-
stats;
|
|
290
|
-
}
|
|
291
|
-
__decorate([
|
|
292
|
-
ApiProperty(),
|
|
293
|
-
IsBoolean(),
|
|
294
|
-
__metadata("design:type", Boolean)
|
|
295
|
-
], BankDedupImpossible.prototype, "success", void 0);
|
|
296
|
-
__decorate([
|
|
297
|
-
ApiProperty(),
|
|
298
|
-
IsIn(['NO_EXACT_COMBINATION', 'CSV_PARSE_ERROR', 'INVALID_INPUT', 'INSUFFICIENT_DUPLICATES']),
|
|
299
|
-
__metadata("design:type", String)
|
|
300
|
-
], BankDedupImpossible.prototype, "reason", void 0);
|
|
301
|
-
__decorate([
|
|
302
|
-
ApiProperty(),
|
|
303
|
-
IsString(),
|
|
304
|
-
__metadata("design:type", String)
|
|
305
|
-
], BankDedupImpossible.prototype, "message", void 0);
|
|
306
|
-
__decorate([
|
|
307
|
-
ApiProperty(),
|
|
308
|
-
IsOptional(),
|
|
309
|
-
IsNumber(),
|
|
310
|
-
__metadata("design:type", Number)
|
|
311
|
-
], BankDedupImpossible.prototype, "initial", void 0);
|
|
312
|
-
__decorate([
|
|
313
|
-
ApiProperty(),
|
|
314
|
-
IsOptional(),
|
|
315
|
-
IsNumber(),
|
|
316
|
-
__metadata("design:type", Number)
|
|
317
|
-
], BankDedupImpossible.prototype, "target", void 0);
|
|
318
|
-
__decorate([
|
|
319
|
-
ApiProperty(),
|
|
320
|
-
IsOptional(),
|
|
321
|
-
IsNumber(),
|
|
322
|
-
__metadata("design:type", Number)
|
|
323
|
-
], BankDedupImpossible.prototype, "finalRaw", void 0);
|
|
324
|
-
__decorate([
|
|
325
|
-
ApiProperty(),
|
|
326
|
-
IsOptional(),
|
|
327
|
-
IsNumber(),
|
|
328
|
-
__metadata("design:type", Number)
|
|
329
|
-
], BankDedupImpossible.prototype, "diffBefore", void 0);
|
|
330
|
-
__decorate([
|
|
331
|
-
ApiProperty(),
|
|
332
|
-
IsOptional(),
|
|
333
|
-
__metadata("design:type", Object)
|
|
334
|
-
], BankDedupImpossible.prototype, "bestAttempt", void 0);
|
|
335
|
-
__decorate([
|
|
336
|
-
ApiProperty(),
|
|
337
|
-
IsOptional(),
|
|
338
|
-
__metadata("design:type", Object)
|
|
339
|
-
], BankDedupImpossible.prototype, "stats", void 0);
|
|
340
|
-
//# sourceMappingURL=BankDedup.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BankDedup.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/bankDedup/BankDedup.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EACL,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,cAAc,EACd,SAAS,EACT,IAAI,EACJ,UAAU,EACV,GAAG,EACH,GAAG,GAEJ,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAa,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEpD,MAAM,OAAO,gBAAgB;IAG3B,GAAG,CAAS,CAAC,4DAA4D;IAIzE,OAAO,CAAS,CAAC,gBAAgB;IAIjC,MAAM,CAAS,CAAC,cAAc;CAC/B;AATC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;6CACC;AAIZ;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;iDACK;AAIhB;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;gDACI;AAGjB,MAAM,OAAO,uBAAuB;IAGlC,OAAO,CAAS,CAAC,gBAAgB;IAIjC,MAAM,CAAS,CAAC,cAAc;CAC/B;AALC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;wDACK;AAIhB;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;uDACI;AAGjB,MAAM,OAAO,MAAM;IAGjB,EAAE,CAAS,CAAC,oBAAoB;IAIhC,KAAK,CAAS;IAId,SAAS,CAAS,CAAC,aAAa;IAIhC,MAAM,CAAS;IAIf,KAAK,CAAS;IAId,IAAI,CAAS,CAAC,iCAAiC;IAK/C,MAAM,CAAS,CAAC,2CAA2C;IAI3D,KAAK,CAAS,CAAC,0CAA0C;CAC1D;AA9BC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;kCACA;AAIX;IAFC,WAAW,EAAE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IACZ,QAAQ,EAAE;;qDACO;AAKlB;IAHC,WAAW,EAAE;IACb,UAAU,EAAE;IACZ,QAAQ,EAAE;;uDACS;AAIpB;IAFC,WAAW,EAAE;IACb,UAAU,EAAE;;wDAKX;AAIF;IAFC,WAAW,EAAE;IACb,UAAU,EAAE;;kDAKX","sourcesContent":["import { ApiProperty } from '@nestjs/swagger';\nimport {\n IsString,\n IsNumber,\n IsArray,\n ValidateNested,\n IsBoolean,\n IsIn,\n IsOptional,\n Min,\n Max,\n IsInstance,\n} from 'class-validator';\nimport { Transform, Type } from 'class-transformer';\n\nexport class BankDedupRequest {\n @ApiProperty()\n @IsString()\n csv: string; // CSV en string (avec header: label,dateValue,credit,debit)\n\n @ApiProperty()\n @IsNumber()\n initial: number; // solde initial\n\n @ApiProperty()\n @IsNumber()\n target: number; // solde cible\n}\n\nexport class BankDedupFileUploadBody {\n @ApiProperty()\n @IsNumber()\n initial: number; // solde initial\n\n @ApiProperty()\n @IsNumber()\n target: number; // solde cible\n}\n\nexport class BankTx {\n @ApiProperty()\n @IsString()\n id: string; // id interne généré\n\n @ApiProperty()\n @IsString()\n label: string;\n\n @ApiProperty()\n @IsString()\n dateValue: string; // YYYY-MM-DD\n\n @ApiProperty()\n @IsNumber()\n credit: number;\n\n @ApiProperty()\n @IsNumber()\n debit: number;\n\n @ApiProperty()\n @IsIn([1, -1])\n sign: 1 | -1; // 1 = crédit net, -1 = débit net\n\n @ApiProperty()\n @IsNumber()\n @Min(0)\n amount: number; // valeur absolue du mouvement (en positif)\n\n @ApiProperty()\n @IsNumber()\n cents: number; // montant en centimes pour calculs exacts\n}\n\nexport class DuplicateGroup {\n @ApiProperty()\n @IsString()\n id: string;\n\n @ApiProperty({ type: [BankTx] })\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => BankTx)\n transactions: BankTx[];\n\n @ApiProperty()\n @IsNumber()\n amount: number; // montant commun\n\n @ApiProperty()\n @IsNumber()\n cents: number; // montant en centimes\n\n @ApiProperty()\n @IsIn([1, -1])\n sign: 1 | -1; // signe commun\n\n @ApiProperty()\n @IsNumber()\n @Min(0)\n @Max(1)\n confidence: number; // score de confiance [0 - 1]\n\n @ApiProperty()\n @IsIn(['exact', 'fuzzy_high', 'fuzzy_medium', 'fuzzy_low'])\n method: 'exact' | 'fuzzy_high' | 'fuzzy_medium' | 'fuzzy_low'; // méthode de détection\n}\n\nexport class BankDedupResult {\n @ApiProperty()\n @IsBoolean()\n success: true;\n\n @ApiProperty()\n @IsNumber()\n initial: number;\n\n @ApiProperty()\n @IsNumber()\n target: number;\n\n @ApiProperty()\n @IsNumber()\n finalRaw: number;\n\n @ApiProperty()\n @IsNumber()\n finalAfterDedup: number;\n\n @ApiProperty()\n @IsNumber()\n diffBefore: number; // target - finalRaw\n\n @ApiProperty()\n @IsNumber()\n diffAfter: number; // target - finalAfterDedup (DOIT être exactement 0, aucune tolérance)\n\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => BankDedupGroup)\n removedGroups: BankDedupGroup[];\n\n @ApiProperty()\n @IsNumber()\n removedCount: number;\n\n @ApiProperty()\n @IsNumber()\n keptCount: number;\n\n @ApiProperty()\n @IsString()\n csvDeduped: string;\n\n @ApiProperty()\n @IsArray()\n @ValidateNested({ each: true })\n @Type(() => BankDedupGroup)\n allGroups: BankDedupGroup[];\n\n @ApiProperty()\n debug: {\n totalGroups: number;\n selectedGroups: number;\n iterations: number;\n strategiesUsed: string[];\n };\n}\n\nexport class BankDedupGroup {\n @ApiProperty()\n @IsString()\n id: string;\n\n @ApiProperty()\n @IsBoolean()\n isSelected: boolean;\n\n @ApiProperty()\n @IsOptional()\n @IsNumber()\n @Min(0)\n @Max(1)\n confidence?: number;\n\n @ApiProperty()\n @IsOptional()\n @IsString()\n method?: string;\n\n @ApiProperty()\n @IsOptional()\n @IsNumber()\n amount?: number;\n\n @ApiProperty()\n @IsOptional()\n @IsNumber()\n transactionCount?: number;\n\n @ApiProperty()\n @IsOptional()\n @IsArray()\n transactions?: {\n id: string;\n label: string;\n dateValue: string;\n isKept: boolean;\n isCredit: boolean;\n }[];\n}\n\nexport class BankDedupImpossible {\n @ApiProperty()\n @IsBoolean()\n success: false;\n\n @ApiProperty()\n @IsIn(['NO_EXACT_COMBINATION', 'CSV_PARSE_ERROR', 'INVALID_INPUT', 'INSUFFICIENT_DUPLICATES'])\n reason: 'NO_EXACT_COMBINATION' | 'CSV_PARSE_ERROR' | 'INVALID_INPUT' | 'INSUFFICIENT_DUPLICATES';\n\n @ApiProperty()\n @IsString()\n message: string;\n\n @ApiProperty()\n @IsOptional()\n @IsNumber()\n initial?: number;\n\n @ApiProperty()\n @IsOptional()\n @IsNumber()\n target?: number;\n\n @ApiProperty()\n @IsOptional()\n @IsNumber()\n finalRaw?: number;\n\n @ApiProperty()\n @IsOptional()\n @IsNumber()\n diffBefore?: number;\n\n @ApiProperty()\n @IsOptional()\n bestAttempt?: {\n finalAfterDedup: number;\n diffAfter: number;\n removedCount: number;\n };\n\n @ApiProperty()\n @IsOptional()\n stats?: {\n totalTx?: number;\n totalGroups?: number;\n strategiesTried?: string[];\n };\n}\n\nexport type BankDedupResponse = BankDedupResult | BankDedupImpossible;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"QueryToArchived.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/society/QueryToArchived.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAExD,qBAAa,sBAAuB,SAAQ,qBAAqB;IAI/D,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
import { IsOptional, IsString } from 'class-validator';
|
|
11
|
-
import { ApiPropertyOptional } from '../../../../utils';
|
|
12
|
-
import { RequiredQueryPaginate } from '../BasePaginate';
|
|
13
|
-
export class QueryToArchivedSociety extends RequiredQueryPaginate {
|
|
14
|
-
search;
|
|
15
|
-
}
|
|
16
|
-
__decorate([
|
|
17
|
-
ApiPropertyOptional(),
|
|
18
|
-
IsOptional(),
|
|
19
|
-
IsString(),
|
|
20
|
-
__metadata("design:type", String)
|
|
21
|
-
], QueryToArchivedSociety.prototype, "search", void 0);
|
|
22
|
-
//# sourceMappingURL=QueryToArchived.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"QueryToArchived.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/society/QueryToArchived.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAExD,MAAM,OAAO,sBAAuB,SAAQ,qBAAqB;IAI/D,MAAM,CAAU;CACjB;AADC;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;sDACK","sourcesContent":["import { IsOptional, IsString } from 'class-validator';\nimport { ApiPropertyOptional } from '../../../../utils';\nimport { RequiredQueryPaginate } from '../BasePaginate';\n\nexport class QueryToArchivedSociety extends RequiredQueryPaginate {\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n search?: string;\n}\n"]}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BankDedupRequest, BankDedupResponse } from '../../types';
|
|
2
|
-
import { Resource } from '../Resource';
|
|
3
|
-
|
|
4
|
-
export class BankDedup extends Resource {
|
|
5
|
-
/**
|
|
6
|
-
* Analyze bank transactions for deduplication
|
|
7
|
-
*/
|
|
8
|
-
public getAnalysis(body: BankDedupRequest): Promise<BankDedupResponse> {
|
|
9
|
-
return this.axios.$post('/bank-dedup/detect', body);
|
|
10
|
-
}
|
|
11
|
-
}
|