@silexpert/core 1.3.101-2 → 1.3.101-3
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/BankDedup.d.ts +9 -0
- package/dist/cjs/api/resources/BankDedup.d.ts.map +1 -0
- package/dist/cjs/api/resources/BankDedup.js +20 -0
- package/dist/cjs/api/resources/BankDedup.js.map +1 -0
- package/dist/cjs/api/resources/CalendarEvent.d.ts +1 -0
- package/dist/cjs/api/resources/CalendarEvent.d.ts.map +1 -1
- package/dist/cjs/api/resources/CalendarEvent.js +3 -0
- package/dist/cjs/api/resources/CalendarEvent.js.map +1 -1
- package/dist/cjs/api/resources/Exercice.d.ts +1 -1
- package/dist/cjs/api/resources/Exercice.d.ts.map +1 -1
- package/dist/cjs/api/resources/Exercice.js.map +1 -1
- package/dist/cjs/api/resources/Inpi.d.ts +3 -3
- package/dist/cjs/api/resources/Inpi.d.ts.map +1 -1
- package/dist/cjs/api/resources/Inpi.js +1 -1
- package/dist/cjs/api/resources/Inpi.js.map +1 -1
- package/dist/cjs/api/resources/StripePurchase.d.ts +13 -0
- package/dist/cjs/api/resources/StripePurchase.d.ts.map +1 -0
- package/dist/cjs/api/resources/StripePurchase.js +17 -0
- package/dist/cjs/api/resources/StripePurchase.js.map +1 -0
- package/dist/cjs/api/resources.d.ts +4 -0
- package/dist/cjs/api/resources.d.ts.map +1 -1
- package/dist/cjs/api/resources.js +4 -0
- package/dist/cjs/api/resources.js.map +1 -1
- package/dist/cjs/types/Enum/ConstitutionState.d.ts +2 -1
- package/dist/cjs/types/Enum/ConstitutionState.d.ts.map +1 -1
- package/dist/cjs/types/Enum/ConstitutionState.js +7 -1
- package/dist/cjs/types/Enum/ConstitutionState.js.map +1 -1
- package/dist/cjs/types/Enum/InpiType.d.ts +10 -2
- package/dist/cjs/types/Enum/InpiType.d.ts.map +1 -1
- package/dist/cjs/types/Enum/InpiType.js +12 -4
- package/dist/cjs/types/Enum/InpiType.js.map +1 -1
- package/dist/cjs/types/Enum/Phone.d.ts +6 -0
- package/dist/cjs/types/Enum/Phone.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Phone.js +6 -0
- package/dist/cjs/types/Enum/Phone.js.map +1 -1
- package/dist/cjs/types/Enum/PrestationType.d.ts +2 -1
- package/dist/cjs/types/Enum/PrestationType.d.ts.map +1 -1
- package/dist/cjs/types/Enum/PrestationType.js +20 -0
- package/dist/cjs/types/Enum/PrestationType.js.map +1 -1
- package/dist/cjs/types/Enum/ReasonTerminationType.d.ts +2 -1
- package/dist/cjs/types/Enum/ReasonTerminationType.d.ts.map +1 -1
- package/dist/cjs/types/Enum/ReasonTerminationType.js +8 -2
- package/dist/cjs/types/Enum/ReasonTerminationType.js.map +1 -1
- package/dist/cjs/types/Enum/RegistrationSource.d.ts +2 -1
- package/dist/cjs/types/Enum/RegistrationSource.d.ts.map +1 -1
- package/dist/cjs/types/Enum/RegistrationSource.js +1 -0
- package/dist/cjs/types/Enum/RegistrationSource.js.map +1 -1
- package/dist/cjs/types/Enum/Stripe.d.ts +4 -0
- package/dist/cjs/types/Enum/Stripe.d.ts.map +1 -0
- package/dist/cjs/types/Enum/Stripe.js +8 -0
- package/dist/cjs/types/Enum/Stripe.js.map +1 -0
- package/dist/cjs/types/Interface/api/accountingIncome/ReadAccountingIncome.d.ts +6 -0
- package/dist/cjs/types/Interface/api/accountingIncome/ReadAccountingIncome.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/accountingIncome/ReadAccountingIncome.js.map +1 -1
- package/dist/cjs/types/Interface/api/bankDedup/BankDedup.d.ts +104 -0
- package/dist/cjs/types/Interface/api/bankDedup/BankDedup.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/bankDedup/BankDedup.js +359 -0
- package/dist/cjs/types/Interface/api/bankDedup/BankDedup.js.map +1 -0
- package/dist/cjs/types/Interface/api/exercice/Create.d.ts +1 -0
- package/dist/cjs/types/Interface/api/exercice/Create.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/exercice/Create.js +7 -0
- package/dist/cjs/types/Interface/api/exercice/Create.js.map +1 -1
- package/dist/cjs/types/Interface/api/inpiPayment/Query.d.ts +14 -0
- package/dist/cjs/types/Interface/api/inpiPayment/Query.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/inpiPayment/Query.js +128 -0
- package/dist/cjs/types/Interface/api/inpiPayment/Query.js.map +1 -0
- package/dist/cjs/types/Interface/api/stripe/Create.d.ts +25 -0
- package/dist/cjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/stripe/Create.js +97 -1
- package/dist/cjs/types/Interface/api/stripe/Create.js.map +1 -1
- package/dist/cjs/types/Interface/api/stripe/QueryStripe.d.ts +6 -0
- package/dist/cjs/types/Interface/api/stripe/QueryStripe.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/stripe/QueryStripe.js +19 -1
- package/dist/cjs/types/Interface/api/stripe/QueryStripe.js.map +1 -1
- package/dist/cjs/types/index.d.ts +2 -0
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +2 -0
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/cjs/utils/vat/3517/century23.d.ts.map +1 -1
- package/dist/cjs/utils/vat/3517/century23.js +55 -55
- package/dist/cjs/utils/vat/3517/century23.js.map +1 -1
- package/dist/mjs/api/resources/BankDedup.d.ts +9 -0
- package/dist/mjs/api/resources/BankDedup.d.ts.map +1 -0
- package/dist/mjs/api/resources/BankDedup.js +16 -0
- package/dist/mjs/api/resources/BankDedup.js.map +1 -0
- package/dist/mjs/api/resources/CalendarEvent.d.ts +1 -0
- package/dist/mjs/api/resources/CalendarEvent.d.ts.map +1 -1
- package/dist/mjs/api/resources/CalendarEvent.js +3 -0
- package/dist/mjs/api/resources/CalendarEvent.js.map +1 -1
- package/dist/mjs/api/resources/Exercice.d.ts +1 -1
- package/dist/mjs/api/resources/Exercice.d.ts.map +1 -1
- package/dist/mjs/api/resources/Exercice.js.map +1 -1
- package/dist/mjs/api/resources/Inpi.d.ts +3 -3
- package/dist/mjs/api/resources/Inpi.d.ts.map +1 -1
- package/dist/mjs/api/resources/Inpi.js +1 -1
- package/dist/mjs/api/resources/Inpi.js.map +1 -1
- package/dist/mjs/api/resources/StripePurchase.d.ts +13 -0
- package/dist/mjs/api/resources/StripePurchase.d.ts.map +1 -0
- package/dist/mjs/api/resources/StripePurchase.js +16 -0
- package/dist/mjs/api/resources/StripePurchase.js.map +1 -0
- package/dist/mjs/api/resources.d.ts +4 -0
- package/dist/mjs/api/resources.d.ts.map +1 -1
- package/dist/mjs/api/resources.js +4 -0
- package/dist/mjs/api/resources.js.map +1 -1
- package/dist/mjs/types/Enum/ConstitutionState.d.ts +2 -1
- package/dist/mjs/types/Enum/ConstitutionState.d.ts.map +1 -1
- package/dist/mjs/types/Enum/ConstitutionState.js +7 -1
- package/dist/mjs/types/Enum/ConstitutionState.js.map +1 -1
- package/dist/mjs/types/Enum/InpiType.d.ts +10 -2
- package/dist/mjs/types/Enum/InpiType.d.ts.map +1 -1
- package/dist/mjs/types/Enum/InpiType.js +12 -4
- package/dist/mjs/types/Enum/InpiType.js.map +1 -1
- package/dist/mjs/types/Enum/Phone.d.ts +6 -0
- package/dist/mjs/types/Enum/Phone.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Phone.js +6 -0
- package/dist/mjs/types/Enum/Phone.js.map +1 -1
- package/dist/mjs/types/Enum/PrestationType.d.ts +2 -1
- package/dist/mjs/types/Enum/PrestationType.d.ts.map +1 -1
- package/dist/mjs/types/Enum/PrestationType.js +20 -0
- package/dist/mjs/types/Enum/PrestationType.js.map +1 -1
- package/dist/mjs/types/Enum/ReasonTerminationType.d.ts +2 -1
- package/dist/mjs/types/Enum/ReasonTerminationType.d.ts.map +1 -1
- package/dist/mjs/types/Enum/ReasonTerminationType.js +8 -2
- package/dist/mjs/types/Enum/ReasonTerminationType.js.map +1 -1
- package/dist/mjs/types/Enum/RegistrationSource.d.ts +2 -1
- package/dist/mjs/types/Enum/RegistrationSource.d.ts.map +1 -1
- package/dist/mjs/types/Enum/RegistrationSource.js +1 -0
- package/dist/mjs/types/Enum/RegistrationSource.js.map +1 -1
- package/dist/mjs/types/Enum/Stripe.d.ts +4 -0
- package/dist/mjs/types/Enum/Stripe.d.ts.map +1 -0
- package/dist/mjs/types/Enum/Stripe.js +5 -0
- package/dist/mjs/types/Enum/Stripe.js.map +1 -0
- package/dist/mjs/types/Interface/api/accountingIncome/ReadAccountingIncome.d.ts +6 -0
- package/dist/mjs/types/Interface/api/accountingIncome/ReadAccountingIncome.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/accountingIncome/ReadAccountingIncome.js.map +1 -1
- package/dist/mjs/types/Interface/api/bankDedup/BankDedup.d.ts +104 -0
- package/dist/mjs/types/Interface/api/bankDedup/BankDedup.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/bankDedup/BankDedup.js +406 -0
- package/dist/mjs/types/Interface/api/bankDedup/BankDedup.js.map +1 -0
- package/dist/mjs/types/Interface/api/exercice/Create.d.ts +1 -0
- package/dist/mjs/types/Interface/api/exercice/Create.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/exercice/Create.js +8 -0
- package/dist/mjs/types/Interface/api/exercice/Create.js.map +1 -1
- package/dist/mjs/types/Interface/api/inpiPayment/Query.d.ts +14 -0
- package/dist/mjs/types/Interface/api/inpiPayment/Query.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/inpiPayment/Query.js +135 -0
- package/dist/mjs/types/Interface/api/inpiPayment/Query.js.map +1 -0
- package/dist/mjs/types/Interface/api/stripe/Create.d.ts +25 -0
- package/dist/mjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/stripe/Create.js +110 -1
- package/dist/mjs/types/Interface/api/stripe/Create.js.map +1 -1
- package/dist/mjs/types/Interface/api/stripe/QueryStripe.d.ts +6 -0
- package/dist/mjs/types/Interface/api/stripe/QueryStripe.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/stripe/QueryStripe.js +18 -0
- package/dist/mjs/types/Interface/api/stripe/QueryStripe.js.map +1 -1
- package/dist/mjs/types/index.d.ts +2 -0
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +2 -0
- package/dist/mjs/types/index.js.map +1 -1
- package/dist/mjs/utils/vat/3517/century23.d.ts.map +1 -1
- package/dist/mjs/utils/vat/3517/century23.js +54 -54
- package/dist/mjs/utils/vat/3517/century23.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/BankDedup.ts +19 -0
- package/ts/api/resources/CalendarEvent.ts +4 -0
- package/ts/api/resources/Exercice.ts +1 -1
- package/ts/api/resources/Inpi.ts +3 -2
- package/ts/api/resources/StripePurchase.ts +22 -0
- package/ts/api/resources.ts +4 -0
- package/ts/types/Enum/ConstitutionState.ts +7 -1
- package/ts/types/Enum/InpiType.ts +13 -4
- package/ts/types/Enum/Phone.ts +6 -0
- package/ts/types/Enum/PrestationType.ts +20 -0
- package/ts/types/Enum/ReasonTerminationType.ts +8 -2
- package/ts/types/Enum/RegistrationSource.ts +3 -2
- package/ts/types/Enum/Stripe.ts +3 -0
- package/ts/types/Interface/api/accountingIncome/ReadAccountingIncome.ts +3 -0
- package/ts/types/Interface/api/bankDedup/BankDedup.ts +305 -0
- package/ts/types/Interface/api/exercice/Create.ts +6 -0
- package/ts/types/Interface/api/inpiPayment/Query.ts +103 -0
- package/ts/types/Interface/api/stripe/Create.ts +77 -1
- package/ts/types/Interface/api/stripe/QueryStripe.ts +14 -0
- package/ts/types/index.ts +2 -0
- package/ts/utils/vat/3517/century23.ts +55 -54
|
@@ -0,0 +1,406 @@
|
|
|
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 { IsString, IsNumber, IsArray, ValidateNested, IsBoolean, IsIn, IsOptional, Min, Max } from 'class-validator';
|
|
11
|
+
import { ApiProperty } from '../../../../utils';
|
|
12
|
+
export class BankDedupRequest {
|
|
13
|
+
csv; // CSV en string (avec header: label,dateValue,credit,debit)
|
|
14
|
+
initial; // solde initial
|
|
15
|
+
target; // solde cible
|
|
16
|
+
}
|
|
17
|
+
__decorate([
|
|
18
|
+
ApiProperty(),
|
|
19
|
+
IsString(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], BankDedupRequest.prototype, "csv", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
ApiProperty(),
|
|
24
|
+
IsNumber(),
|
|
25
|
+
__metadata("design:type", Number)
|
|
26
|
+
], BankDedupRequest.prototype, "initial", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
ApiProperty(),
|
|
29
|
+
IsNumber(),
|
|
30
|
+
__metadata("design:type", Number)
|
|
31
|
+
], BankDedupRequest.prototype, "target", void 0);
|
|
32
|
+
export class BankDedupAnalysisParams {
|
|
33
|
+
csv;
|
|
34
|
+
initial;
|
|
35
|
+
target;
|
|
36
|
+
}
|
|
37
|
+
__decorate([
|
|
38
|
+
ApiProperty(),
|
|
39
|
+
__metadata("design:type", File)
|
|
40
|
+
], BankDedupAnalysisParams.prototype, "csv", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
ApiProperty(),
|
|
43
|
+
IsNumber(),
|
|
44
|
+
__metadata("design:type", Number)
|
|
45
|
+
], BankDedupAnalysisParams.prototype, "initial", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
ApiProperty(),
|
|
48
|
+
IsNumber(),
|
|
49
|
+
__metadata("design:type", Number)
|
|
50
|
+
], BankDedupAnalysisParams.prototype, "target", void 0);
|
|
51
|
+
export class BankDedupFileUploadBody {
|
|
52
|
+
initial; // solde initial
|
|
53
|
+
target; // solde cible
|
|
54
|
+
}
|
|
55
|
+
__decorate([
|
|
56
|
+
ApiProperty(),
|
|
57
|
+
IsNumber(),
|
|
58
|
+
__metadata("design:type", Number)
|
|
59
|
+
], BankDedupFileUploadBody.prototype, "initial", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
ApiProperty(),
|
|
62
|
+
IsNumber(),
|
|
63
|
+
__metadata("design:type", Number)
|
|
64
|
+
], BankDedupFileUploadBody.prototype, "target", void 0);
|
|
65
|
+
export class BankTx {
|
|
66
|
+
id; // id interne généré
|
|
67
|
+
label;
|
|
68
|
+
dateValue; // YYYY-MM-DD
|
|
69
|
+
credit;
|
|
70
|
+
debit;
|
|
71
|
+
sign; // 1 = crédit net, -1 = débit net
|
|
72
|
+
amount; // valeur absolue du mouvement (en positif)
|
|
73
|
+
cents; // montant en centimes pour calculs exacts
|
|
74
|
+
}
|
|
75
|
+
__decorate([
|
|
76
|
+
ApiProperty(),
|
|
77
|
+
IsString(),
|
|
78
|
+
__metadata("design:type", String)
|
|
79
|
+
], BankTx.prototype, "id", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
ApiProperty(),
|
|
82
|
+
IsString(),
|
|
83
|
+
__metadata("design:type", String)
|
|
84
|
+
], BankTx.prototype, "label", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
ApiProperty(),
|
|
87
|
+
IsString(),
|
|
88
|
+
__metadata("design:type", String)
|
|
89
|
+
], BankTx.prototype, "dateValue", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
ApiProperty(),
|
|
92
|
+
IsNumber(),
|
|
93
|
+
__metadata("design:type", Number)
|
|
94
|
+
], BankTx.prototype, "credit", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
ApiProperty(),
|
|
97
|
+
IsNumber(),
|
|
98
|
+
__metadata("design:type", Number)
|
|
99
|
+
], BankTx.prototype, "debit", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
ApiProperty(),
|
|
102
|
+
IsIn([1, -1]),
|
|
103
|
+
__metadata("design:type", Number)
|
|
104
|
+
], BankTx.prototype, "sign", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
ApiProperty(),
|
|
107
|
+
IsNumber(),
|
|
108
|
+
Min(0),
|
|
109
|
+
__metadata("design:type", Number)
|
|
110
|
+
], BankTx.prototype, "amount", void 0);
|
|
111
|
+
__decorate([
|
|
112
|
+
ApiProperty(),
|
|
113
|
+
IsNumber(),
|
|
114
|
+
__metadata("design:type", Number)
|
|
115
|
+
], BankTx.prototype, "cents", void 0);
|
|
116
|
+
export class DuplicateGroup {
|
|
117
|
+
id;
|
|
118
|
+
transactions;
|
|
119
|
+
amount; // montant commun
|
|
120
|
+
cents; // montant en centimes
|
|
121
|
+
sign; // signe commun
|
|
122
|
+
confidence; // score de confiance [0 - 1]
|
|
123
|
+
method; // méthode de détection
|
|
124
|
+
}
|
|
125
|
+
__decorate([
|
|
126
|
+
ApiProperty(),
|
|
127
|
+
IsString(),
|
|
128
|
+
__metadata("design:type", String)
|
|
129
|
+
], DuplicateGroup.prototype, "id", void 0);
|
|
130
|
+
__decorate([
|
|
131
|
+
ApiProperty({ type: [BankTx] }),
|
|
132
|
+
IsArray(),
|
|
133
|
+
ValidateNested({ each: true }),
|
|
134
|
+
__metadata("design:type", Array)
|
|
135
|
+
], DuplicateGroup.prototype, "transactions", void 0);
|
|
136
|
+
__decorate([
|
|
137
|
+
ApiProperty(),
|
|
138
|
+
IsNumber(),
|
|
139
|
+
__metadata("design:type", Number)
|
|
140
|
+
], DuplicateGroup.prototype, "amount", void 0);
|
|
141
|
+
__decorate([
|
|
142
|
+
ApiProperty(),
|
|
143
|
+
IsNumber(),
|
|
144
|
+
__metadata("design:type", Number)
|
|
145
|
+
], DuplicateGroup.prototype, "cents", void 0);
|
|
146
|
+
__decorate([
|
|
147
|
+
ApiProperty(),
|
|
148
|
+
IsIn([1, -1]),
|
|
149
|
+
__metadata("design:type", Number)
|
|
150
|
+
], DuplicateGroup.prototype, "sign", void 0);
|
|
151
|
+
__decorate([
|
|
152
|
+
ApiProperty(),
|
|
153
|
+
IsNumber(),
|
|
154
|
+
Min(0),
|
|
155
|
+
Max(1),
|
|
156
|
+
__metadata("design:type", Number)
|
|
157
|
+
], DuplicateGroup.prototype, "confidence", void 0);
|
|
158
|
+
__decorate([
|
|
159
|
+
ApiProperty(),
|
|
160
|
+
IsIn(['exact', 'fuzzy_high', 'fuzzy_medium', 'fuzzy_low']),
|
|
161
|
+
__metadata("design:type", String)
|
|
162
|
+
], DuplicateGroup.prototype, "method", void 0);
|
|
163
|
+
export class BankDedupRemovedTx {
|
|
164
|
+
id;
|
|
165
|
+
isSelected;
|
|
166
|
+
confidence;
|
|
167
|
+
method;
|
|
168
|
+
amount;
|
|
169
|
+
transactionCount;
|
|
170
|
+
transactions;
|
|
171
|
+
}
|
|
172
|
+
__decorate([
|
|
173
|
+
ApiProperty(),
|
|
174
|
+
IsString(),
|
|
175
|
+
__metadata("design:type", String)
|
|
176
|
+
], BankDedupRemovedTx.prototype, "id", void 0);
|
|
177
|
+
__decorate([
|
|
178
|
+
ApiProperty(),
|
|
179
|
+
IsBoolean(),
|
|
180
|
+
__metadata("design:type", Boolean)
|
|
181
|
+
], BankDedupRemovedTx.prototype, "isSelected", void 0);
|
|
182
|
+
__decorate([
|
|
183
|
+
ApiProperty(),
|
|
184
|
+
IsOptional(),
|
|
185
|
+
IsNumber(),
|
|
186
|
+
Min(0),
|
|
187
|
+
Max(1),
|
|
188
|
+
__metadata("design:type", Number)
|
|
189
|
+
], BankDedupRemovedTx.prototype, "confidence", void 0);
|
|
190
|
+
__decorate([
|
|
191
|
+
ApiProperty(),
|
|
192
|
+
IsOptional(),
|
|
193
|
+
IsString(),
|
|
194
|
+
__metadata("design:type", String)
|
|
195
|
+
], BankDedupRemovedTx.prototype, "method", void 0);
|
|
196
|
+
__decorate([
|
|
197
|
+
ApiProperty(),
|
|
198
|
+
IsOptional(),
|
|
199
|
+
IsNumber(),
|
|
200
|
+
__metadata("design:type", Number)
|
|
201
|
+
], BankDedupRemovedTx.prototype, "amount", void 0);
|
|
202
|
+
__decorate([
|
|
203
|
+
ApiProperty(),
|
|
204
|
+
IsOptional(),
|
|
205
|
+
IsNumber(),
|
|
206
|
+
__metadata("design:type", Number)
|
|
207
|
+
], BankDedupRemovedTx.prototype, "transactionCount", void 0);
|
|
208
|
+
__decorate([
|
|
209
|
+
ApiProperty(),
|
|
210
|
+
IsOptional(),
|
|
211
|
+
IsArray(),
|
|
212
|
+
__metadata("design:type", Array)
|
|
213
|
+
], BankDedupRemovedTx.prototype, "transactions", void 0);
|
|
214
|
+
export class BankDedupResult {
|
|
215
|
+
success;
|
|
216
|
+
initial;
|
|
217
|
+
target;
|
|
218
|
+
finalRaw;
|
|
219
|
+
finalAfterDedup;
|
|
220
|
+
diffBefore; // target - finalRaw
|
|
221
|
+
diffAfter; // target - finalAfterDedup (DOIT être exactement 0, aucune tolérance)
|
|
222
|
+
removedTxs;
|
|
223
|
+
removedCount;
|
|
224
|
+
keptCount;
|
|
225
|
+
csvDeduped;
|
|
226
|
+
allGroups;
|
|
227
|
+
debug;
|
|
228
|
+
}
|
|
229
|
+
__decorate([
|
|
230
|
+
ApiProperty(),
|
|
231
|
+
IsBoolean(),
|
|
232
|
+
__metadata("design:type", Boolean)
|
|
233
|
+
], BankDedupResult.prototype, "success", void 0);
|
|
234
|
+
__decorate([
|
|
235
|
+
ApiProperty(),
|
|
236
|
+
IsNumber(),
|
|
237
|
+
__metadata("design:type", Number)
|
|
238
|
+
], BankDedupResult.prototype, "initial", void 0);
|
|
239
|
+
__decorate([
|
|
240
|
+
ApiProperty(),
|
|
241
|
+
IsNumber(),
|
|
242
|
+
__metadata("design:type", Number)
|
|
243
|
+
], BankDedupResult.prototype, "target", void 0);
|
|
244
|
+
__decorate([
|
|
245
|
+
ApiProperty(),
|
|
246
|
+
IsNumber(),
|
|
247
|
+
__metadata("design:type", Number)
|
|
248
|
+
], BankDedupResult.prototype, "finalRaw", void 0);
|
|
249
|
+
__decorate([
|
|
250
|
+
ApiProperty(),
|
|
251
|
+
IsNumber(),
|
|
252
|
+
__metadata("design:type", Number)
|
|
253
|
+
], BankDedupResult.prototype, "finalAfterDedup", void 0);
|
|
254
|
+
__decorate([
|
|
255
|
+
ApiProperty(),
|
|
256
|
+
IsNumber(),
|
|
257
|
+
__metadata("design:type", Number)
|
|
258
|
+
], BankDedupResult.prototype, "diffBefore", void 0);
|
|
259
|
+
__decorate([
|
|
260
|
+
ApiProperty(),
|
|
261
|
+
IsNumber(),
|
|
262
|
+
__metadata("design:type", Number)
|
|
263
|
+
], BankDedupResult.prototype, "diffAfter", void 0);
|
|
264
|
+
__decorate([
|
|
265
|
+
ApiProperty(),
|
|
266
|
+
IsArray(),
|
|
267
|
+
ValidateNested({ each: true }),
|
|
268
|
+
__metadata("design:type", Array)
|
|
269
|
+
], BankDedupResult.prototype, "removedTxs", void 0);
|
|
270
|
+
__decorate([
|
|
271
|
+
ApiProperty(),
|
|
272
|
+
IsNumber(),
|
|
273
|
+
__metadata("design:type", Number)
|
|
274
|
+
], BankDedupResult.prototype, "removedCount", void 0);
|
|
275
|
+
__decorate([
|
|
276
|
+
ApiProperty(),
|
|
277
|
+
IsNumber(),
|
|
278
|
+
__metadata("design:type", Number)
|
|
279
|
+
], BankDedupResult.prototype, "keptCount", void 0);
|
|
280
|
+
__decorate([
|
|
281
|
+
ApiProperty(),
|
|
282
|
+
IsString(),
|
|
283
|
+
__metadata("design:type", String)
|
|
284
|
+
], BankDedupResult.prototype, "csvDeduped", void 0);
|
|
285
|
+
__decorate([
|
|
286
|
+
ApiProperty(),
|
|
287
|
+
IsArray(),
|
|
288
|
+
ValidateNested({ each: true }),
|
|
289
|
+
__metadata("design:type", Array)
|
|
290
|
+
], BankDedupResult.prototype, "allGroups", void 0);
|
|
291
|
+
__decorate([
|
|
292
|
+
ApiProperty(),
|
|
293
|
+
__metadata("design:type", Object)
|
|
294
|
+
], BankDedupResult.prototype, "debug", void 0);
|
|
295
|
+
export class BankDedupGroup {
|
|
296
|
+
id;
|
|
297
|
+
isSelected;
|
|
298
|
+
confidence;
|
|
299
|
+
method;
|
|
300
|
+
amount;
|
|
301
|
+
transactionCount;
|
|
302
|
+
transactions;
|
|
303
|
+
}
|
|
304
|
+
__decorate([
|
|
305
|
+
ApiProperty(),
|
|
306
|
+
IsString(),
|
|
307
|
+
__metadata("design:type", String)
|
|
308
|
+
], BankDedupGroup.prototype, "id", void 0);
|
|
309
|
+
__decorate([
|
|
310
|
+
ApiProperty(),
|
|
311
|
+
IsBoolean(),
|
|
312
|
+
__metadata("design:type", Boolean)
|
|
313
|
+
], BankDedupGroup.prototype, "isSelected", void 0);
|
|
314
|
+
__decorate([
|
|
315
|
+
ApiProperty(),
|
|
316
|
+
IsOptional(),
|
|
317
|
+
IsNumber(),
|
|
318
|
+
Min(0),
|
|
319
|
+
Max(1),
|
|
320
|
+
__metadata("design:type", Number)
|
|
321
|
+
], BankDedupGroup.prototype, "confidence", void 0);
|
|
322
|
+
__decorate([
|
|
323
|
+
ApiProperty(),
|
|
324
|
+
IsOptional(),
|
|
325
|
+
IsString(),
|
|
326
|
+
__metadata("design:type", String)
|
|
327
|
+
], BankDedupGroup.prototype, "method", void 0);
|
|
328
|
+
__decorate([
|
|
329
|
+
ApiProperty(),
|
|
330
|
+
IsOptional(),
|
|
331
|
+
IsNumber(),
|
|
332
|
+
__metadata("design:type", Number)
|
|
333
|
+
], BankDedupGroup.prototype, "amount", void 0);
|
|
334
|
+
__decorate([
|
|
335
|
+
ApiProperty(),
|
|
336
|
+
IsOptional(),
|
|
337
|
+
IsNumber(),
|
|
338
|
+
__metadata("design:type", Number)
|
|
339
|
+
], BankDedupGroup.prototype, "transactionCount", void 0);
|
|
340
|
+
__decorate([
|
|
341
|
+
ApiProperty(),
|
|
342
|
+
IsOptional(),
|
|
343
|
+
IsArray(),
|
|
344
|
+
__metadata("design:type", Array)
|
|
345
|
+
], BankDedupGroup.prototype, "transactions", void 0);
|
|
346
|
+
export class BankDedupImpossible {
|
|
347
|
+
success;
|
|
348
|
+
reason;
|
|
349
|
+
message;
|
|
350
|
+
initial;
|
|
351
|
+
target;
|
|
352
|
+
finalRaw;
|
|
353
|
+
diffBefore;
|
|
354
|
+
bestAttempt;
|
|
355
|
+
stats;
|
|
356
|
+
}
|
|
357
|
+
__decorate([
|
|
358
|
+
ApiProperty(),
|
|
359
|
+
IsBoolean(),
|
|
360
|
+
__metadata("design:type", Boolean)
|
|
361
|
+
], BankDedupImpossible.prototype, "success", void 0);
|
|
362
|
+
__decorate([
|
|
363
|
+
ApiProperty(),
|
|
364
|
+
IsIn(['NO_EXACT_COMBINATION', 'CSV_PARSE_ERROR', 'INVALID_INPUT', 'INSUFFICIENT_DUPLICATES']),
|
|
365
|
+
__metadata("design:type", String)
|
|
366
|
+
], BankDedupImpossible.prototype, "reason", void 0);
|
|
367
|
+
__decorate([
|
|
368
|
+
ApiProperty(),
|
|
369
|
+
IsString(),
|
|
370
|
+
__metadata("design:type", String)
|
|
371
|
+
], BankDedupImpossible.prototype, "message", void 0);
|
|
372
|
+
__decorate([
|
|
373
|
+
ApiProperty(),
|
|
374
|
+
IsOptional(),
|
|
375
|
+
IsNumber(),
|
|
376
|
+
__metadata("design:type", Number)
|
|
377
|
+
], BankDedupImpossible.prototype, "initial", void 0);
|
|
378
|
+
__decorate([
|
|
379
|
+
ApiProperty(),
|
|
380
|
+
IsOptional(),
|
|
381
|
+
IsNumber(),
|
|
382
|
+
__metadata("design:type", Number)
|
|
383
|
+
], BankDedupImpossible.prototype, "target", void 0);
|
|
384
|
+
__decorate([
|
|
385
|
+
ApiProperty(),
|
|
386
|
+
IsOptional(),
|
|
387
|
+
IsNumber(),
|
|
388
|
+
__metadata("design:type", Number)
|
|
389
|
+
], BankDedupImpossible.prototype, "finalRaw", void 0);
|
|
390
|
+
__decorate([
|
|
391
|
+
ApiProperty(),
|
|
392
|
+
IsOptional(),
|
|
393
|
+
IsNumber(),
|
|
394
|
+
__metadata("design:type", Number)
|
|
395
|
+
], BankDedupImpossible.prototype, "diffBefore", void 0);
|
|
396
|
+
__decorate([
|
|
397
|
+
ApiProperty(),
|
|
398
|
+
IsOptional(),
|
|
399
|
+
__metadata("design:type", Object)
|
|
400
|
+
], BankDedupImpossible.prototype, "bestAttempt", void 0);
|
|
401
|
+
__decorate([
|
|
402
|
+
ApiProperty(),
|
|
403
|
+
IsOptional(),
|
|
404
|
+
__metadata("design:type", Object)
|
|
405
|
+
], BankDedupImpossible.prototype, "stats", void 0);
|
|
406
|
+
//# sourceMappingURL=BankDedup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BankDedup.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/bankDedup/BankDedup.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACrH,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,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,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;;mDACK;AAKhB;IAHC,WAAW,EAAE;IACb,UAAU,EAAE;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 { IsString, IsNumber, IsArray, ValidateNested, IsBoolean, IsIn, IsOptional, Min, Max } from 'class-validator';\nimport { ApiProperty } from '../../../../utils';\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 BankDedupAnalysisParams {\n @ApiProperty()\n csv: File;\n\n @ApiProperty()\n @IsNumber()\n initial: number;\n\n @ApiProperty()\n @IsNumber()\n target: number;\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 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 BankDedupRemovedTx {\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 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 removedTxs: BankDedupRemovedTx[];\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 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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Create.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/exercice/Create.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEtC,qBAAa,cAAc;IAGzB,SAAS,EAAE,IAAI,CAAC;IAIhB,OAAO,EAAE,IAAI,CAAC;IAMd,MAAM,CAAC,EAAE,OAAO,CAAC;IAMjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAMhB,SAAS,CAAC,EAAE,OAAO,CAAC;IAMpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAMlB,YAAY,CAAC,EAAE,OAAO,CAAC;IAMvB,WAAW,CAAC,EAAE,OAAO,CAAC;IAMtB,WAAW,CAAC,EAAE,OAAO,CAAC;IAMtB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAM3B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAM9B,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAKlC,SAAS,EAAE,MAAM,CAAC;IAMlB,SAAS,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Create.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/exercice/Create.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEtC,qBAAa,cAAc;IAGzB,SAAS,EAAE,IAAI,CAAC;IAIhB,OAAO,EAAE,IAAI,CAAC;IAMd,MAAM,CAAC,EAAE,OAAO,CAAC;IAMjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAMhB,SAAS,CAAC,EAAE,OAAO,CAAC;IAMpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAMlB,YAAY,CAAC,EAAE,OAAO,CAAC;IAMvB,WAAW,CAAC,EAAE,OAAO,CAAC;IAMtB,WAAW,CAAC,EAAE,OAAO,CAAC;IAMtB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAM3B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAM9B,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAKlC,SAAS,EAAE,MAAM,CAAC;IAMlB,SAAS,CAAC,EAAE,OAAO,CAAC;IAMpB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,qBAAa,qBAAqB;IAIhC,QAAQ,EAAE,OAAO,CAAC;IAKlB,QAAQ,EAAE,OAAO,CAAC;IAIlB,MAAM,EAAE,MAAM,CAAC;IAKf,MAAM,CAAC,EAAE,MAAM,CAAC;IAIhB,UAAU,EAAE,MAAM,CAAC;IAKnB,cAAc,CAAC,EAAE,MAAM,CAAC;IAIxB,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC;CACjB"}
|
|
@@ -25,6 +25,7 @@ export class CreateExercice {
|
|
|
25
25
|
processClossingExercice;
|
|
26
26
|
idSociety;
|
|
27
27
|
isDefault;
|
|
28
|
+
isBlankMode;
|
|
28
29
|
}
|
|
29
30
|
__decorate([
|
|
30
31
|
ApiProperty(),
|
|
@@ -119,6 +120,13 @@ __decorate([
|
|
|
119
120
|
IsOptional(),
|
|
120
121
|
__metadata("design:type", Boolean)
|
|
121
122
|
], CreateExercice.prototype, "isDefault", void 0);
|
|
123
|
+
__decorate([
|
|
124
|
+
ApiPropertyOptional({ description: 'Simulate exercise creation, return null if it is ok' }),
|
|
125
|
+
IsBoolean(),
|
|
126
|
+
ToBoolean(),
|
|
127
|
+
IsOptional(),
|
|
128
|
+
__metadata("design:type", Boolean)
|
|
129
|
+
], CreateExercice.prototype, "isBlankMode", void 0);
|
|
122
130
|
export class CreateProjectExercice {
|
|
123
131
|
withCA12;
|
|
124
132
|
with2572;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/exercice/Create.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACpF,OAAO,E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AU;IAIxB,KAAK,CAAW;CACjB;AA5BC;IAHC,WAAW,EAAE;IACb,SAAS,EAAE;IACX,SAAS,EAAE;;uDACM;AAKlB;IAHC,WAAW,EAAE;IACb,SAAS,EAAE;IACX,SAAS,EAAE;;uDACM;AAIlB;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;qDACI;AAKf;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;qDACK;AAIhB;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;yDACQ;AAKnB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;6DACa;AAIxB;IAFC,mBAAmB,EAAE;IACrB,UAAU,EAAE;;oDACG","sourcesContent":["import { IsBoolean, IsDate, IsNumber, IsOptional, IsString } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils/decorators';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\nimport { TFile } from '../file/TFile';\n\nexport class CreateExercice {\n @ApiProperty()\n @IsDate()\n startDate: Date;\n\n @ApiProperty()\n @IsDate()\n endDate: Date;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isBack?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n close?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n allAnnote?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n current?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n withApproval?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n reviewGuide?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n summaryNote?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n receiptJeDeclare?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n annualFolderEdition?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n processClossingExercice?: boolean;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n idSociety: number;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isDefault?: boolean;\n\n @ApiPropertyOptional({ description: 'Simulate exercise creation, return null if it is ok' })\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isBlankMode?: boolean;\n}\n\nexport class CreateProjectExercice {\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n withCA12: boolean;\n\n @ApiProperty()\n @IsBoolean()\n @ToBoolean()\n with2572: boolean;\n\n @ApiProperty()\n @IsString()\n mailTo: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n mailCc?: string;\n\n @ApiProperty()\n @IsString()\n mailObject: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n idBalanceSheet?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n files?: TFile[];\n}\n"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare class QueryInpiPaymentCreate {
|
|
2
|
+
costType: string;
|
|
3
|
+
fileNumber: string;
|
|
4
|
+
amount: number;
|
|
5
|
+
commission: number;
|
|
6
|
+
type: number;
|
|
7
|
+
state: number;
|
|
8
|
+
idSociety: number;
|
|
9
|
+
idUserWhoCreated: number;
|
|
10
|
+
idExercice: number;
|
|
11
|
+
idPrestationListRelated: number;
|
|
12
|
+
datePayment: Date;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=Query.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Query.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/inpiPayment/Query.ts"],"names":[],"mappings":"AAGA,qBAAa,sBAAsB;IAQjC,QAAQ,EAAE,MAAM,CAAC;IASjB,UAAU,EAAE,MAAM,CAAC;IASnB,MAAM,EAAE,MAAM,CAAC;IASf,UAAU,EAAE,MAAM,CAAC;IASnB,IAAI,EAAE,MAAM,CAAC;IASb,KAAK,EAAE,MAAM,CAAC;IASd,SAAS,EAAE,MAAM,CAAC;IASlB,gBAAgB,EAAE,MAAM,CAAC;IASzB,UAAU,EAAE,MAAM,CAAC;IASnB,uBAAuB,EAAE,MAAM,CAAC;IAShC,WAAW,EAAE,IAAI,CAAC;CACnB"}
|
|
@@ -0,0 +1,135 @@
|
|
|
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 { IsDate, IsInt, IsNumber, IsString } from 'class-validator';
|
|
11
|
+
import { ApiProperty } from '../../../../utils';
|
|
12
|
+
export class QueryInpiPaymentCreate {
|
|
13
|
+
costType;
|
|
14
|
+
fileNumber;
|
|
15
|
+
amount;
|
|
16
|
+
commission;
|
|
17
|
+
type;
|
|
18
|
+
state;
|
|
19
|
+
idSociety;
|
|
20
|
+
idUserWhoCreated;
|
|
21
|
+
idExercice;
|
|
22
|
+
idPrestationListRelated;
|
|
23
|
+
datePayment;
|
|
24
|
+
}
|
|
25
|
+
__decorate([
|
|
26
|
+
ApiProperty({
|
|
27
|
+
description: 'list of selected cost type',
|
|
28
|
+
required: true,
|
|
29
|
+
type: String,
|
|
30
|
+
example: '[1,2]',
|
|
31
|
+
}),
|
|
32
|
+
IsString(),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], QueryInpiPaymentCreate.prototype, "costType", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
ApiProperty({
|
|
37
|
+
description: 'file number',
|
|
38
|
+
required: true,
|
|
39
|
+
type: String,
|
|
40
|
+
example: '010234',
|
|
41
|
+
}),
|
|
42
|
+
IsString(),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], QueryInpiPaymentCreate.prototype, "fileNumber", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
ApiProperty({
|
|
47
|
+
description: 'amount',
|
|
48
|
+
required: true,
|
|
49
|
+
type: Number,
|
|
50
|
+
example: 100.0,
|
|
51
|
+
}),
|
|
52
|
+
IsNumber(),
|
|
53
|
+
__metadata("design:type", Number)
|
|
54
|
+
], QueryInpiPaymentCreate.prototype, "amount", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
ApiProperty({
|
|
57
|
+
description: 'commission',
|
|
58
|
+
required: true,
|
|
59
|
+
type: Number,
|
|
60
|
+
example: 100.0,
|
|
61
|
+
}),
|
|
62
|
+
IsNumber(),
|
|
63
|
+
__metadata("design:type", Number)
|
|
64
|
+
], QueryInpiPaymentCreate.prototype, "commission", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
ApiProperty({
|
|
67
|
+
description: 'type',
|
|
68
|
+
required: true,
|
|
69
|
+
type: Number,
|
|
70
|
+
example: 1,
|
|
71
|
+
}),
|
|
72
|
+
IsInt(),
|
|
73
|
+
__metadata("design:type", Number)
|
|
74
|
+
], QueryInpiPaymentCreate.prototype, "type", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
ApiProperty({
|
|
77
|
+
description: 'state',
|
|
78
|
+
required: true,
|
|
79
|
+
type: Number,
|
|
80
|
+
example: 1,
|
|
81
|
+
}),
|
|
82
|
+
IsInt(),
|
|
83
|
+
__metadata("design:type", Number)
|
|
84
|
+
], QueryInpiPaymentCreate.prototype, "state", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
ApiProperty({
|
|
87
|
+
description: 'idSociety',
|
|
88
|
+
required: true,
|
|
89
|
+
type: Number,
|
|
90
|
+
example: 1,
|
|
91
|
+
}),
|
|
92
|
+
IsInt(),
|
|
93
|
+
__metadata("design:type", Number)
|
|
94
|
+
], QueryInpiPaymentCreate.prototype, "idSociety", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
ApiProperty({
|
|
97
|
+
description: 'idUserWhoCreated',
|
|
98
|
+
required: true,
|
|
99
|
+
type: Number,
|
|
100
|
+
example: 1,
|
|
101
|
+
}),
|
|
102
|
+
IsInt(),
|
|
103
|
+
__metadata("design:type", Number)
|
|
104
|
+
], QueryInpiPaymentCreate.prototype, "idUserWhoCreated", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
ApiProperty({
|
|
107
|
+
description: 'idExercice',
|
|
108
|
+
required: true,
|
|
109
|
+
type: Number,
|
|
110
|
+
example: 1,
|
|
111
|
+
}),
|
|
112
|
+
IsInt(),
|
|
113
|
+
__metadata("design:type", Number)
|
|
114
|
+
], QueryInpiPaymentCreate.prototype, "idExercice", void 0);
|
|
115
|
+
__decorate([
|
|
116
|
+
ApiProperty({
|
|
117
|
+
description: 'idPrestationListRelated',
|
|
118
|
+
required: true,
|
|
119
|
+
type: Number,
|
|
120
|
+
example: 1,
|
|
121
|
+
}),
|
|
122
|
+
IsInt(),
|
|
123
|
+
__metadata("design:type", Number)
|
|
124
|
+
], QueryInpiPaymentCreate.prototype, "idPrestationListRelated", void 0);
|
|
125
|
+
__decorate([
|
|
126
|
+
ApiProperty({
|
|
127
|
+
description: 'datePayment',
|
|
128
|
+
required: true,
|
|
129
|
+
type: Date,
|
|
130
|
+
example: new Date(),
|
|
131
|
+
}),
|
|
132
|
+
IsDate(),
|
|
133
|
+
__metadata("design:type", Date)
|
|
134
|
+
], QueryInpiPaymentCreate.prototype, "datePayment", void 0);
|
|
135
|
+
//# sourceMappingURL=Query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Query.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/inpiPayment/Query.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,MAAM,OAAO,sBAAsB;IAQjC,QAAQ,CAAS;IASjB,UAAU,CAAS;IASnB,MAAM,CAAS;IASf,UAAU,CAAS;IASnB,IAAI,CAAS;IASb,KAAK,CAAS;IASd,SAAS,CAAS;IASlB,gBAAgB,CAAS;IASzB,UAAU,CAAS;IASnB,uBAAuB,CAAS;IAShC,WAAW,CAAO;CACnB;AA3FC;IAPC,WAAW,CAAC;QACX,WAAW,EAAE,4BAA4B;QACzC,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,OAAO;KACjB,CAAC;IACD,QAAQ,EAAE;;wDACM;AASjB;IAPC,WAAW,CAAC;QACX,WAAW,EAAE,aAAa;QAC1B,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,QAAQ;KAClB,CAAC;IACD,QAAQ,EAAE;;0DACQ;AASnB;IAPC,WAAW,CAAC;QACX,WAAW,EAAE,QAAQ;QACrB,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,KAAK;KACf,CAAC;IACD,QAAQ,EAAE;;sDACI;AASf;IAPC,WAAW,CAAC;QACX,WAAW,EAAE,YAAY;QACzB,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,KAAK;KACf,CAAC;IACD,QAAQ,EAAE;;0DACQ;AASnB;IAPC,WAAW,CAAC;QACX,WAAW,EAAE,MAAM;QACnB,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,CAAC;KACX,CAAC;IACD,KAAK,EAAE;;oDACK;AASb;IAPC,WAAW,CAAC;QACX,WAAW,EAAE,OAAO;QACpB,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,CAAC;KACX,CAAC;IACD,KAAK,EAAE;;qDACM;AASd;IAPC,WAAW,CAAC;QACX,WAAW,EAAE,WAAW;QACxB,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,CAAC;KACX,CAAC;IACD,KAAK,EAAE;;yDACU;AASlB;IAPC,WAAW,CAAC;QACX,WAAW,EAAE,kBAAkB;QAC/B,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,CAAC;KACX,CAAC;IACD,KAAK,EAAE;;gEACiB;AASzB;IAPC,WAAW,CAAC;QACX,WAAW,EAAE,YAAY;QACzB,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,CAAC;KACX,CAAC;IACD,KAAK,EAAE;;0DACW;AASnB;IAPC,WAAW,CAAC;QACX,WAAW,EAAE,yBAAyB;QACtC,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,CAAC;KACX,CAAC;IACD,KAAK,EAAE;;uEACwB;AAShC;IAPC,WAAW,CAAC;QACX,WAAW,EAAE,aAAa;QAC1B,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,IAAI;QACV,OAAO,EAAE,IAAI,IAAI,EAAE;KACpB,CAAC;IACD,MAAM,EAAE;8BACI,IAAI;2DAAC","sourcesContent":["import { IsDate, IsInt, IsNumber, IsString } from 'class-validator';\nimport { ApiProperty } from '../../../../utils';\n\nexport class QueryInpiPaymentCreate {\n @ApiProperty({\n description: 'list of selected cost type',\n required: true,\n type: String,\n example: '[1,2]',\n })\n @IsString()\n costType: string;\n\n @ApiProperty({\n description: 'file number',\n required: true,\n type: String,\n example: '010234',\n })\n @IsString()\n fileNumber: string;\n\n @ApiProperty({\n description: 'amount',\n required: true,\n type: Number,\n example: 100.0,\n })\n @IsNumber()\n amount: number;\n\n @ApiProperty({\n description: 'commission',\n required: true,\n type: Number,\n example: 100.0,\n })\n @IsNumber()\n commission: number;\n\n @ApiProperty({\n description: 'type',\n required: true,\n type: Number,\n example: 1,\n })\n @IsInt()\n type: number;\n\n @ApiProperty({\n description: 'state',\n required: true,\n type: Number,\n example: 1,\n })\n @IsInt()\n state: number;\n\n @ApiProperty({\n description: 'idSociety',\n required: true,\n type: Number,\n example: 1,\n })\n @IsInt()\n idSociety: number;\n\n @ApiProperty({\n description: 'idUserWhoCreated',\n required: true,\n type: Number,\n example: 1,\n })\n @IsInt()\n idUserWhoCreated: number;\n\n @ApiProperty({\n description: 'idExercice',\n required: true,\n type: Number,\n example: 1,\n })\n @IsInt()\n idExercice: number;\n\n @ApiProperty({\n description: 'idPrestationListRelated',\n required: true,\n type: Number,\n example: 1,\n })\n @IsInt()\n idPrestationListRelated: number;\n\n @ApiProperty({\n description: 'datePayment',\n required: true,\n type: Date,\n example: new Date(),\n })\n @IsDate()\n datePayment: Date;\n}\n"]}
|