@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
package/ts/api/resources.ts
CHANGED
|
@@ -179,7 +179,6 @@ import { StatisticLegal } from './resources/statistic/Legal';
|
|
|
179
179
|
import { AnalyticsUtm } from './resources/AnalyticsUtm';
|
|
180
180
|
import { Caarl } from './resources/Caarl';
|
|
181
181
|
import { Gdpr } from './resources/Gdpr';
|
|
182
|
-
import { BankDedup } from './resources/BankDedup';
|
|
183
182
|
|
|
184
183
|
export const resources = {
|
|
185
184
|
budgetInsight: BudgetInsight,
|
|
@@ -265,7 +264,6 @@ export const resources = {
|
|
|
265
264
|
notificationSetting: NotificationSetting,
|
|
266
265
|
cx: Cx,
|
|
267
266
|
bankList: BankList,
|
|
268
|
-
bankDedup: BankDedup,
|
|
269
267
|
thirdParty: ThirdParty,
|
|
270
268
|
alert: Alert,
|
|
271
269
|
customerActivity: CustomerActivity,
|
|
@@ -164,7 +164,7 @@ export const BalanceSheetDetails = [
|
|
|
164
164
|
text: 'Standby',
|
|
165
165
|
color: 'grey lighten-1',
|
|
166
166
|
textColor: 'grey--text',
|
|
167
|
-
forRoles: [['admin'], ['super_admin'], ['controle_interne']
|
|
167
|
+
forRoles: [['admin'], ['super_admin'], ['controle_interne']],
|
|
168
168
|
},
|
|
169
169
|
{
|
|
170
170
|
text: 'Impayé',
|
|
@@ -229,7 +229,7 @@ export const BalanceSheetDetails = [
|
|
|
229
229
|
value: BalanceSheetState.FIX_IN_PROGRESS,
|
|
230
230
|
color: 'blue darken-4',
|
|
231
231
|
textColor: 'blue--text',
|
|
232
|
-
forRoles: [['front_office'], ['expert']
|
|
232
|
+
forRoles: [['front_office'], ['expert']],
|
|
233
233
|
},
|
|
234
234
|
{
|
|
235
235
|
text: "Accepté SIE en l'état",
|
|
@@ -135,6 +135,7 @@ interface Shine {
|
|
|
135
135
|
hostV3: string;
|
|
136
136
|
publicHost: string;
|
|
137
137
|
clientId: string;
|
|
138
|
+
clientSecret: string;
|
|
138
139
|
redirect_uris: string[];
|
|
139
140
|
status: string;
|
|
140
141
|
scope: string;
|
|
@@ -185,6 +186,7 @@ interface Access2 {
|
|
|
185
186
|
|
|
186
187
|
interface Test {
|
|
187
188
|
login: string;
|
|
189
|
+
password: string;
|
|
188
190
|
editor: string;
|
|
189
191
|
software: string;
|
|
190
192
|
wsdl: Wsdl;
|
|
@@ -196,6 +198,7 @@ interface Wsdl {
|
|
|
196
198
|
|
|
197
199
|
interface Production {
|
|
198
200
|
login: string;
|
|
201
|
+
password: string;
|
|
199
202
|
editor: string;
|
|
200
203
|
software: string;
|
|
201
204
|
wsdl: Wsdl2;
|
|
@@ -1,27 +1,12 @@
|
|
|
1
|
-
import { IsBoolean, IsOptional } from 'class-validator';
|
|
2
1
|
import { ApiPropertyOptional } from '../../../../utils';
|
|
3
|
-
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
4
2
|
|
|
5
3
|
export class InvoicesShopify {
|
|
6
4
|
@ApiPropertyOptional()
|
|
7
|
-
|
|
8
|
-
order?: string;
|
|
9
|
-
|
|
5
|
+
order: string;
|
|
10
6
|
@ApiPropertyOptional()
|
|
11
|
-
|
|
12
|
-
limit?: number;
|
|
13
|
-
|
|
7
|
+
limit: number;
|
|
14
8
|
@ApiPropertyOptional()
|
|
15
|
-
|
|
16
|
-
ids?: number[];
|
|
17
|
-
|
|
18
|
-
@ApiPropertyOptional()
|
|
19
|
-
@IsOptional()
|
|
20
|
-
idSociety?: number;
|
|
21
|
-
|
|
9
|
+
ids: number[];
|
|
22
10
|
@ApiPropertyOptional()
|
|
23
|
-
|
|
24
|
-
@IsBoolean()
|
|
25
|
-
@ToBoolean()
|
|
26
|
-
debug?: boolean;
|
|
11
|
+
idSociety: number;
|
|
27
12
|
}
|
package/ts/types/index.ts
CHANGED
|
@@ -735,7 +735,6 @@ export * from './Interface/api/webmail/ExportEmails';
|
|
|
735
735
|
export * from './Interface/api/webmail/PostAttachmentEmailFromLambdaParams';
|
|
736
736
|
export * from './Interface/api/webmail/GetPaginatedWhereObjectParams';
|
|
737
737
|
export * from './Interface/api/bankAccount/Delete';
|
|
738
|
-
export * from './Interface/api/bankDedup/BankDedup';
|
|
739
738
|
export * from './Interface/api/log/QueryLogPagination';
|
|
740
739
|
export * from './Interface/api/employee/QueryEmployeeSearch';
|
|
741
740
|
export * from './Interface/api/employee/QueryCreateEmployee';
|
|
@@ -1058,7 +1057,6 @@ export * from './Interface/api/accountsSectors/Query';
|
|
|
1058
1057
|
export * from './Interface/api/visualizedInformation/Query';
|
|
1059
1058
|
export * from './Interface/api/visualizedInformation/Update';
|
|
1060
1059
|
export * from './Interface/api/society/QueryArchived';
|
|
1061
|
-
export * from './Interface/api/society/QueryToArchived';
|
|
1062
1060
|
export * from './Interface/api/society/QueryUnpaid';
|
|
1063
1061
|
export * from './Interface/api/vatControl/CreateVatControl';
|
|
1064
1062
|
export * from './Interface/api/vatControl/QueryVatControl';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BankDedupRequest, BankDedupResponse } from '../../types';
|
|
2
|
-
import { Resource } from '../Resource';
|
|
3
|
-
export declare class BankDedup extends Resource {
|
|
4
|
-
/**
|
|
5
|
-
* Analyze bank transactions for deduplication
|
|
6
|
-
*/
|
|
7
|
-
getAnalysis(body: BankDedupRequest): Promise<BankDedupResponse>;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=BankDedup.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BankDedup.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/BankDedup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,SAAU,SAAQ,QAAQ;IACrC;;OAEG;IACI,WAAW,CAAC,IAAI,EAAE,gBAAgB,GAAG,OAAO,CAAC,iBAAiB,CAAC;CAGvE"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BankDedup = void 0;
|
|
4
|
-
const Resource_1 = require("../Resource");
|
|
5
|
-
class BankDedup extends Resource_1.Resource {
|
|
6
|
-
/**
|
|
7
|
-
* Analyze bank transactions for deduplication
|
|
8
|
-
*/
|
|
9
|
-
getAnalysis(body) {
|
|
10
|
-
return this.axios.$post('/bank-dedup/detect', body);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.BankDedup = BankDedup;
|
|
14
|
-
//# sourceMappingURL=BankDedup.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BankDedup.js","sourceRoot":"","sources":["../../../../ts/api/resources/BankDedup.ts"],"names":[],"mappings":";;;AACA,0CAAuC;AAEvC,MAAa,SAAU,SAAQ,mBAAQ;IACrC;;OAEG;IACI,WAAW,CAAC,IAAsB;QACvC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,oBAAoB,EAAE,IAAI,CAAC,CAAC;IACtD,CAAC;CACF;AAPD,8BAOC","sourcesContent":["import { BankDedupRequest, BankDedupResponse } from '../../types';\nimport { Resource } from '../Resource';\n\nexport class BankDedup extends Resource {\n /**\n * Analyze bank transactions for deduplication\n */\n public getAnalysis(body: BankDedupRequest): Promise<BankDedupResponse> {\n return this.axios.$post('/bank-dedup/detect', body);\n }\n}\n"]}
|
|
@@ -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,EAAE,MAAM,CAAC;IAId,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAKb,MAAM,EAAE,MAAM,CAAC;IAIf,KAAK,EAAE,MAAM,CAAC;CACf;AAED,qBAAa,cAAc;IAGzB,EAAE,EAAE,MAAM,CAAC;IAMX,YAAY,EAAE,MAAM,EAAE,CAAC;IAIvB,MAAM,EAAE,MAAM,CAAC;IAIf,KAAK,EAAE,MAAM,CAAC;IAId,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAMb,UAAU,EAAE,MAAM,CAAC;IAInB,MAAM,EAAE,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M,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,301 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
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;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.BankDedupImpossible = exports.BankDedupGroup = exports.BankDedupResult = exports.DuplicateGroup = exports.BankTx = exports.BankDedupFileUploadBody = exports.BankDedupRequest = void 0;
|
|
13
|
-
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
-
const class_validator_1 = require("class-validator");
|
|
15
|
-
const class_transformer_1 = require("class-transformer");
|
|
16
|
-
class BankDedupRequest {
|
|
17
|
-
}
|
|
18
|
-
exports.BankDedupRequest = BankDedupRequest;
|
|
19
|
-
__decorate([
|
|
20
|
-
(0, swagger_1.ApiProperty)(),
|
|
21
|
-
(0, class_validator_1.IsString)(),
|
|
22
|
-
__metadata("design:type", String)
|
|
23
|
-
], BankDedupRequest.prototype, "csv", void 0);
|
|
24
|
-
__decorate([
|
|
25
|
-
(0, swagger_1.ApiProperty)(),
|
|
26
|
-
(0, class_validator_1.IsNumber)(),
|
|
27
|
-
__metadata("design:type", Number)
|
|
28
|
-
], BankDedupRequest.prototype, "initial", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, swagger_1.ApiProperty)(),
|
|
31
|
-
(0, class_validator_1.IsNumber)(),
|
|
32
|
-
__metadata("design:type", Number)
|
|
33
|
-
], BankDedupRequest.prototype, "target", void 0);
|
|
34
|
-
class BankDedupFileUploadBody {
|
|
35
|
-
}
|
|
36
|
-
exports.BankDedupFileUploadBody = BankDedupFileUploadBody;
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, swagger_1.ApiProperty)(),
|
|
39
|
-
(0, class_validator_1.IsNumber)(),
|
|
40
|
-
__metadata("design:type", Number)
|
|
41
|
-
], BankDedupFileUploadBody.prototype, "initial", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, swagger_1.ApiProperty)(),
|
|
44
|
-
(0, class_validator_1.IsNumber)(),
|
|
45
|
-
__metadata("design:type", Number)
|
|
46
|
-
], BankDedupFileUploadBody.prototype, "target", void 0);
|
|
47
|
-
class BankTx {
|
|
48
|
-
}
|
|
49
|
-
exports.BankTx = BankTx;
|
|
50
|
-
__decorate([
|
|
51
|
-
(0, swagger_1.ApiProperty)(),
|
|
52
|
-
(0, class_validator_1.IsString)(),
|
|
53
|
-
__metadata("design:type", String)
|
|
54
|
-
], BankTx.prototype, "id", void 0);
|
|
55
|
-
__decorate([
|
|
56
|
-
(0, swagger_1.ApiProperty)(),
|
|
57
|
-
(0, class_validator_1.IsString)(),
|
|
58
|
-
__metadata("design:type", String)
|
|
59
|
-
], BankTx.prototype, "label", void 0);
|
|
60
|
-
__decorate([
|
|
61
|
-
(0, swagger_1.ApiProperty)(),
|
|
62
|
-
(0, class_validator_1.IsString)(),
|
|
63
|
-
__metadata("design:type", String)
|
|
64
|
-
], BankTx.prototype, "dateValue", void 0);
|
|
65
|
-
__decorate([
|
|
66
|
-
(0, swagger_1.ApiProperty)(),
|
|
67
|
-
(0, class_validator_1.IsNumber)(),
|
|
68
|
-
__metadata("design:type", Number)
|
|
69
|
-
], BankTx.prototype, "credit", void 0);
|
|
70
|
-
__decorate([
|
|
71
|
-
(0, swagger_1.ApiProperty)(),
|
|
72
|
-
(0, class_validator_1.IsNumber)(),
|
|
73
|
-
__metadata("design:type", Number)
|
|
74
|
-
], BankTx.prototype, "debit", void 0);
|
|
75
|
-
__decorate([
|
|
76
|
-
(0, swagger_1.ApiProperty)(),
|
|
77
|
-
(0, class_validator_1.IsIn)([1, -1]),
|
|
78
|
-
__metadata("design:type", Number)
|
|
79
|
-
], BankTx.prototype, "sign", void 0);
|
|
80
|
-
__decorate([
|
|
81
|
-
(0, swagger_1.ApiProperty)(),
|
|
82
|
-
(0, class_validator_1.IsNumber)(),
|
|
83
|
-
(0, class_validator_1.Min)(0),
|
|
84
|
-
__metadata("design:type", Number)
|
|
85
|
-
], BankTx.prototype, "amount", void 0);
|
|
86
|
-
__decorate([
|
|
87
|
-
(0, swagger_1.ApiProperty)(),
|
|
88
|
-
(0, class_validator_1.IsNumber)(),
|
|
89
|
-
__metadata("design:type", Number)
|
|
90
|
-
], BankTx.prototype, "cents", void 0);
|
|
91
|
-
class DuplicateGroup {
|
|
92
|
-
}
|
|
93
|
-
exports.DuplicateGroup = DuplicateGroup;
|
|
94
|
-
__decorate([
|
|
95
|
-
(0, swagger_1.ApiProperty)(),
|
|
96
|
-
(0, class_validator_1.IsString)(),
|
|
97
|
-
__metadata("design:type", String)
|
|
98
|
-
], DuplicateGroup.prototype, "id", void 0);
|
|
99
|
-
__decorate([
|
|
100
|
-
(0, swagger_1.ApiProperty)({ type: [BankTx] }),
|
|
101
|
-
(0, class_validator_1.IsArray)(),
|
|
102
|
-
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
103
|
-
(0, class_transformer_1.Type)(() => BankTx),
|
|
104
|
-
__metadata("design:type", Array)
|
|
105
|
-
], DuplicateGroup.prototype, "transactions", void 0);
|
|
106
|
-
__decorate([
|
|
107
|
-
(0, swagger_1.ApiProperty)(),
|
|
108
|
-
(0, class_validator_1.IsNumber)(),
|
|
109
|
-
__metadata("design:type", Number)
|
|
110
|
-
], DuplicateGroup.prototype, "amount", void 0);
|
|
111
|
-
__decorate([
|
|
112
|
-
(0, swagger_1.ApiProperty)(),
|
|
113
|
-
(0, class_validator_1.IsNumber)(),
|
|
114
|
-
__metadata("design:type", Number)
|
|
115
|
-
], DuplicateGroup.prototype, "cents", void 0);
|
|
116
|
-
__decorate([
|
|
117
|
-
(0, swagger_1.ApiProperty)(),
|
|
118
|
-
(0, class_validator_1.IsIn)([1, -1]),
|
|
119
|
-
__metadata("design:type", Number)
|
|
120
|
-
], DuplicateGroup.prototype, "sign", void 0);
|
|
121
|
-
__decorate([
|
|
122
|
-
(0, swagger_1.ApiProperty)(),
|
|
123
|
-
(0, class_validator_1.IsNumber)(),
|
|
124
|
-
(0, class_validator_1.Min)(0),
|
|
125
|
-
(0, class_validator_1.Max)(1),
|
|
126
|
-
__metadata("design:type", Number)
|
|
127
|
-
], DuplicateGroup.prototype, "confidence", void 0);
|
|
128
|
-
__decorate([
|
|
129
|
-
(0, swagger_1.ApiProperty)(),
|
|
130
|
-
(0, class_validator_1.IsIn)(['exact', 'fuzzy_high', 'fuzzy_medium', 'fuzzy_low']),
|
|
131
|
-
__metadata("design:type", String)
|
|
132
|
-
], DuplicateGroup.prototype, "method", void 0);
|
|
133
|
-
class BankDedupResult {
|
|
134
|
-
}
|
|
135
|
-
exports.BankDedupResult = BankDedupResult;
|
|
136
|
-
__decorate([
|
|
137
|
-
(0, swagger_1.ApiProperty)(),
|
|
138
|
-
(0, class_validator_1.IsBoolean)(),
|
|
139
|
-
__metadata("design:type", Boolean)
|
|
140
|
-
], BankDedupResult.prototype, "success", void 0);
|
|
141
|
-
__decorate([
|
|
142
|
-
(0, swagger_1.ApiProperty)(),
|
|
143
|
-
(0, class_validator_1.IsNumber)(),
|
|
144
|
-
__metadata("design:type", Number)
|
|
145
|
-
], BankDedupResult.prototype, "initial", void 0);
|
|
146
|
-
__decorate([
|
|
147
|
-
(0, swagger_1.ApiProperty)(),
|
|
148
|
-
(0, class_validator_1.IsNumber)(),
|
|
149
|
-
__metadata("design:type", Number)
|
|
150
|
-
], BankDedupResult.prototype, "target", void 0);
|
|
151
|
-
__decorate([
|
|
152
|
-
(0, swagger_1.ApiProperty)(),
|
|
153
|
-
(0, class_validator_1.IsNumber)(),
|
|
154
|
-
__metadata("design:type", Number)
|
|
155
|
-
], BankDedupResult.prototype, "finalRaw", void 0);
|
|
156
|
-
__decorate([
|
|
157
|
-
(0, swagger_1.ApiProperty)(),
|
|
158
|
-
(0, class_validator_1.IsNumber)(),
|
|
159
|
-
__metadata("design:type", Number)
|
|
160
|
-
], BankDedupResult.prototype, "finalAfterDedup", void 0);
|
|
161
|
-
__decorate([
|
|
162
|
-
(0, swagger_1.ApiProperty)(),
|
|
163
|
-
(0, class_validator_1.IsNumber)(),
|
|
164
|
-
__metadata("design:type", Number)
|
|
165
|
-
], BankDedupResult.prototype, "diffBefore", void 0);
|
|
166
|
-
__decorate([
|
|
167
|
-
(0, swagger_1.ApiProperty)(),
|
|
168
|
-
(0, class_validator_1.IsNumber)(),
|
|
169
|
-
__metadata("design:type", Number)
|
|
170
|
-
], BankDedupResult.prototype, "diffAfter", void 0);
|
|
171
|
-
__decorate([
|
|
172
|
-
(0, swagger_1.ApiProperty)(),
|
|
173
|
-
(0, class_validator_1.IsArray)(),
|
|
174
|
-
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
175
|
-
(0, class_transformer_1.Type)(() => BankDedupGroup),
|
|
176
|
-
__metadata("design:type", Array)
|
|
177
|
-
], BankDedupResult.prototype, "removedGroups", void 0);
|
|
178
|
-
__decorate([
|
|
179
|
-
(0, swagger_1.ApiProperty)(),
|
|
180
|
-
(0, class_validator_1.IsNumber)(),
|
|
181
|
-
__metadata("design:type", Number)
|
|
182
|
-
], BankDedupResult.prototype, "removedCount", void 0);
|
|
183
|
-
__decorate([
|
|
184
|
-
(0, swagger_1.ApiProperty)(),
|
|
185
|
-
(0, class_validator_1.IsNumber)(),
|
|
186
|
-
__metadata("design:type", Number)
|
|
187
|
-
], BankDedupResult.prototype, "keptCount", void 0);
|
|
188
|
-
__decorate([
|
|
189
|
-
(0, swagger_1.ApiProperty)(),
|
|
190
|
-
(0, class_validator_1.IsString)(),
|
|
191
|
-
__metadata("design:type", String)
|
|
192
|
-
], BankDedupResult.prototype, "csvDeduped", void 0);
|
|
193
|
-
__decorate([
|
|
194
|
-
(0, swagger_1.ApiProperty)(),
|
|
195
|
-
(0, class_validator_1.IsArray)(),
|
|
196
|
-
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
197
|
-
(0, class_transformer_1.Type)(() => BankDedupGroup),
|
|
198
|
-
__metadata("design:type", Array)
|
|
199
|
-
], BankDedupResult.prototype, "allGroups", void 0);
|
|
200
|
-
__decorate([
|
|
201
|
-
(0, swagger_1.ApiProperty)(),
|
|
202
|
-
__metadata("design:type", Object)
|
|
203
|
-
], BankDedupResult.prototype, "debug", void 0);
|
|
204
|
-
class BankDedupGroup {
|
|
205
|
-
}
|
|
206
|
-
exports.BankDedupGroup = BankDedupGroup;
|
|
207
|
-
__decorate([
|
|
208
|
-
(0, swagger_1.ApiProperty)(),
|
|
209
|
-
(0, class_validator_1.IsString)(),
|
|
210
|
-
__metadata("design:type", String)
|
|
211
|
-
], BankDedupGroup.prototype, "id", void 0);
|
|
212
|
-
__decorate([
|
|
213
|
-
(0, swagger_1.ApiProperty)(),
|
|
214
|
-
(0, class_validator_1.IsBoolean)(),
|
|
215
|
-
__metadata("design:type", Boolean)
|
|
216
|
-
], BankDedupGroup.prototype, "isSelected", void 0);
|
|
217
|
-
__decorate([
|
|
218
|
-
(0, swagger_1.ApiProperty)(),
|
|
219
|
-
(0, class_validator_1.IsOptional)(),
|
|
220
|
-
(0, class_validator_1.IsNumber)(),
|
|
221
|
-
(0, class_validator_1.Min)(0),
|
|
222
|
-
(0, class_validator_1.Max)(1),
|
|
223
|
-
__metadata("design:type", Number)
|
|
224
|
-
], BankDedupGroup.prototype, "confidence", void 0);
|
|
225
|
-
__decorate([
|
|
226
|
-
(0, swagger_1.ApiProperty)(),
|
|
227
|
-
(0, class_validator_1.IsOptional)(),
|
|
228
|
-
(0, class_validator_1.IsString)(),
|
|
229
|
-
__metadata("design:type", String)
|
|
230
|
-
], BankDedupGroup.prototype, "method", void 0);
|
|
231
|
-
__decorate([
|
|
232
|
-
(0, swagger_1.ApiProperty)(),
|
|
233
|
-
(0, class_validator_1.IsOptional)(),
|
|
234
|
-
(0, class_validator_1.IsNumber)(),
|
|
235
|
-
__metadata("design:type", Number)
|
|
236
|
-
], BankDedupGroup.prototype, "amount", void 0);
|
|
237
|
-
__decorate([
|
|
238
|
-
(0, swagger_1.ApiProperty)(),
|
|
239
|
-
(0, class_validator_1.IsOptional)(),
|
|
240
|
-
(0, class_validator_1.IsNumber)(),
|
|
241
|
-
__metadata("design:type", Number)
|
|
242
|
-
], BankDedupGroup.prototype, "transactionCount", void 0);
|
|
243
|
-
__decorate([
|
|
244
|
-
(0, swagger_1.ApiProperty)(),
|
|
245
|
-
(0, class_validator_1.IsOptional)(),
|
|
246
|
-
(0, class_validator_1.IsArray)(),
|
|
247
|
-
__metadata("design:type", Array)
|
|
248
|
-
], BankDedupGroup.prototype, "transactions", void 0);
|
|
249
|
-
class BankDedupImpossible {
|
|
250
|
-
}
|
|
251
|
-
exports.BankDedupImpossible = BankDedupImpossible;
|
|
252
|
-
__decorate([
|
|
253
|
-
(0, swagger_1.ApiProperty)(),
|
|
254
|
-
(0, class_validator_1.IsBoolean)(),
|
|
255
|
-
__metadata("design:type", Boolean)
|
|
256
|
-
], BankDedupImpossible.prototype, "success", void 0);
|
|
257
|
-
__decorate([
|
|
258
|
-
(0, swagger_1.ApiProperty)(),
|
|
259
|
-
(0, class_validator_1.IsIn)(['NO_EXACT_COMBINATION', 'CSV_PARSE_ERROR', 'INVALID_INPUT', 'INSUFFICIENT_DUPLICATES']),
|
|
260
|
-
__metadata("design:type", String)
|
|
261
|
-
], BankDedupImpossible.prototype, "reason", void 0);
|
|
262
|
-
__decorate([
|
|
263
|
-
(0, swagger_1.ApiProperty)(),
|
|
264
|
-
(0, class_validator_1.IsString)(),
|
|
265
|
-
__metadata("design:type", String)
|
|
266
|
-
], BankDedupImpossible.prototype, "message", void 0);
|
|
267
|
-
__decorate([
|
|
268
|
-
(0, swagger_1.ApiProperty)(),
|
|
269
|
-
(0, class_validator_1.IsOptional)(),
|
|
270
|
-
(0, class_validator_1.IsNumber)(),
|
|
271
|
-
__metadata("design:type", Number)
|
|
272
|
-
], BankDedupImpossible.prototype, "initial", void 0);
|
|
273
|
-
__decorate([
|
|
274
|
-
(0, swagger_1.ApiProperty)(),
|
|
275
|
-
(0, class_validator_1.IsOptional)(),
|
|
276
|
-
(0, class_validator_1.IsNumber)(),
|
|
277
|
-
__metadata("design:type", Number)
|
|
278
|
-
], BankDedupImpossible.prototype, "target", void 0);
|
|
279
|
-
__decorate([
|
|
280
|
-
(0, swagger_1.ApiProperty)(),
|
|
281
|
-
(0, class_validator_1.IsOptional)(),
|
|
282
|
-
(0, class_validator_1.IsNumber)(),
|
|
283
|
-
__metadata("design:type", Number)
|
|
284
|
-
], BankDedupImpossible.prototype, "finalRaw", void 0);
|
|
285
|
-
__decorate([
|
|
286
|
-
(0, swagger_1.ApiProperty)(),
|
|
287
|
-
(0, class_validator_1.IsOptional)(),
|
|
288
|
-
(0, class_validator_1.IsNumber)(),
|
|
289
|
-
__metadata("design:type", Number)
|
|
290
|
-
], BankDedupImpossible.prototype, "diffBefore", void 0);
|
|
291
|
-
__decorate([
|
|
292
|
-
(0, swagger_1.ApiProperty)(),
|
|
293
|
-
(0, class_validator_1.IsOptional)(),
|
|
294
|
-
__metadata("design:type", Object)
|
|
295
|
-
], BankDedupImpossible.prototype, "bestAttempt", void 0);
|
|
296
|
-
__decorate([
|
|
297
|
-
(0, swagger_1.ApiProperty)(),
|
|
298
|
-
(0, class_validator_1.IsOptional)(),
|
|
299
|
-
__metadata("design:type", Object)
|
|
300
|
-
], BankDedupImpossible.prototype, "stats", void 0);
|
|
301
|
-
//# 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,6CAA8C;AAC9C,qDAWyB;AACzB,yDAAoD;AAEpD,MAAa,gBAAgB;CAY5B;AAZD,4CAYC;AATC;IAFC,IAAA,qBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;6CACC;AAIZ;IAFC,IAAA,qBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;iDACK;AAIhB;IAFC,IAAA,qBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;gDACI;AAGjB,MAAa,uBAAuB;CAQnC;AARD,0DAQC;AALC;IAFC,IAAA,qBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;wDACK;AAIhB;IAFC,IAAA,qBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;uDACI;AAGjB,MAAa,MAAM;CAiClB;AAjCD,wBAiCC;AA9BC;IAFC,IAAA,qBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;kCACA;AAIX;IAFC,IAAA,qBAAW,GAAE;IACb,IAAA,0BAAQ,GAAE;;qCACG;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,GAAE;IACZ,IAAA,0BAAQ,GAAE;;uDACS;AAIpB;IAFC,IAAA,qBAAW,GAAE;IACb,IAAA,4BAAU,GAAE;;wDAKX;AAIF;IAFC,IAAA,qBAAW,GAAE;IACb,IAAA,4BAAU,GAAE;;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,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
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;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.QueryToArchivedSociety = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const utils_1 = require("../../../../utils");
|
|
15
|
-
const BasePaginate_1 = require("../BasePaginate");
|
|
16
|
-
class QueryToArchivedSociety extends BasePaginate_1.RequiredQueryPaginate {
|
|
17
|
-
}
|
|
18
|
-
exports.QueryToArchivedSociety = QueryToArchivedSociety;
|
|
19
|
-
__decorate([
|
|
20
|
-
(0, utils_1.ApiPropertyOptional)(),
|
|
21
|
-
(0, class_validator_1.IsOptional)(),
|
|
22
|
-
(0, class_validator_1.IsString)(),
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], QueryToArchivedSociety.prototype, "search", void 0);
|
|
25
|
-
//# 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,qDAAuD;AACvD,6CAAwD;AACxD,kDAAwD;AAExD,MAAa,sBAAuB,SAAQ,oCAAqB;CAKhE;AALD,wDAKC;AADC;IAHC,IAAA,2BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;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,9 +0,0 @@
|
|
|
1
|
-
import { BankDedupRequest, BankDedupResponse } from '../../types';
|
|
2
|
-
import { Resource } from '../Resource';
|
|
3
|
-
export declare class BankDedup extends Resource {
|
|
4
|
-
/**
|
|
5
|
-
* Analyze bank transactions for deduplication
|
|
6
|
-
*/
|
|
7
|
-
getAnalysis(body: BankDedupRequest): Promise<BankDedupResponse>;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=BankDedup.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BankDedup.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/BankDedup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,SAAU,SAAQ,QAAQ;IACrC;;OAEG;IACI,WAAW,CAAC,IAAI,EAAE,gBAAgB,GAAG,OAAO,CAAC,iBAAiB,CAAC;CAGvE"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Resource } from '../Resource';
|
|
2
|
-
export class BankDedup extends Resource {
|
|
3
|
-
/**
|
|
4
|
-
* Analyze bank transactions for deduplication
|
|
5
|
-
*/
|
|
6
|
-
getAnalysis(body) {
|
|
7
|
-
return this.axios.$post('/bank-dedup/detect', body);
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=BankDedup.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BankDedup.js","sourceRoot":"","sources":["../../../../ts/api/resources/BankDedup.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,OAAO,SAAU,SAAQ,QAAQ;IACrC;;OAEG;IACI,WAAW,CAAC,IAAsB;QACvC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,oBAAoB,EAAE,IAAI,CAAC,CAAC;IACtD,CAAC;CACF","sourcesContent":["import { BankDedupRequest, BankDedupResponse } from '../../types';\nimport { Resource } from '../Resource';\n\nexport class BankDedup extends Resource {\n /**\n * Analyze bank transactions for deduplication\n */\n public getAnalysis(body: BankDedupRequest): Promise<BankDedupResponse> {\n return this.axios.$post('/bank-dedup/detect', body);\n }\n}\n"]}
|