@silexpert/core 1.3.160 → 1.3.161
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/GeneralLedger.d.ts +2 -1
- package/dist/cjs/api/resources/GeneralLedger.d.ts.map +1 -1
- package/dist/cjs/api/resources/GeneralLedger.js +9 -0
- package/dist/cjs/api/resources/GeneralLedger.js.map +1 -1
- package/dist/cjs/types/Interface/api/brevo/EmailSendOptions.dto.js +12 -12
- package/dist/cjs/types/Interface/api/brevo/EmailSendOptions.dto.js.map +1 -1
- package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.d.ts +1 -0
- package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.js.map +1 -1
- package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts +1 -0
- package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js.map +1 -1
- package/dist/cjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.d.ts +9 -0
- package/dist/cjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js +30 -1
- package/dist/cjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js.map +1 -1
- package/dist/cjs/types/Interface/api/revenueMovement.d.ts +10 -9
- package/dist/cjs/types/Interface/api/revenueMovement.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/revenueMovement.js +272 -0
- package/dist/cjs/types/Interface/api/revenueMovement.js.map +1 -1
- package/dist/cjs/types/Interface/api/revenueSnapshotGenerate.d.ts +0 -1
- package/dist/cjs/types/Interface/api/revenueSnapshotGenerate.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/revenueSnapshotGenerate.js +4 -13
- package/dist/cjs/types/Interface/api/revenueSnapshotGenerate.js.map +1 -1
- package/dist/cjs/types/Interface/models/IImmobilization.d.ts +1 -0
- package/dist/cjs/types/Interface/models/IImmobilization.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IImmobilization.js.map +1 -1
- package/dist/cjs/utils/prestation.d.ts.map +1 -1
- package/dist/cjs/utils/prestation.js +9 -4
- package/dist/cjs/utils/prestation.js.map +1 -1
- package/dist/mjs/api/resources/GeneralLedger.d.ts +2 -1
- package/dist/mjs/api/resources/GeneralLedger.d.ts.map +1 -1
- package/dist/mjs/api/resources/GeneralLedger.js +9 -0
- package/dist/mjs/api/resources/GeneralLedger.js.map +1 -1
- package/dist/mjs/types/Interface/api/brevo/EmailSendOptions.dto.js +1 -1
- package/dist/mjs/types/Interface/api/brevo/EmailSendOptions.dto.js.map +1 -1
- package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.d.ts +1 -0
- package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.js.map +1 -1
- package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts +1 -0
- package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js.map +1 -1
- package/dist/mjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.d.ts +9 -0
- package/dist/mjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js +34 -1
- package/dist/mjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js.map +1 -1
- package/dist/mjs/types/Interface/api/revenueMovement.d.ts +10 -9
- package/dist/mjs/types/Interface/api/revenueMovement.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/revenueMovement.js +303 -1
- package/dist/mjs/types/Interface/api/revenueMovement.js.map +1 -1
- package/dist/mjs/types/Interface/api/revenueSnapshotGenerate.d.ts +0 -1
- package/dist/mjs/types/Interface/api/revenueSnapshotGenerate.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/revenueSnapshotGenerate.js +13 -16
- package/dist/mjs/types/Interface/api/revenueSnapshotGenerate.js.map +1 -1
- package/dist/mjs/types/Interface/models/IImmobilization.d.ts +1 -0
- package/dist/mjs/types/Interface/models/IImmobilization.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IImmobilization.js.map +1 -1
- package/dist/mjs/utils/prestation.d.ts.map +1 -1
- package/dist/mjs/utils/prestation.js +3 -1
- package/dist/mjs/utils/prestation.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/GeneralLedger.ts +11 -0
- package/ts/types/Interface/api/brevo/EmailSendOptions.dto.ts +1 -1
- package/ts/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.ts +1 -0
- package/ts/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.ts +1 -0
- package/ts/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.ts +26 -1
- package/ts/types/Interface/api/revenueMovement.ts +153 -9
- package/ts/types/Interface/api/revenueSnapshotGenerate.ts +13 -13
- package/ts/types/Interface/models/IImmobilization.ts +1 -0
- package/ts/utils/prestation.ts +3 -1
|
@@ -1,2 +1,304 @@
|
|
|
1
|
-
|
|
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, IsOptional, IsEnum, IsNumber, IsString, IsObject, IsArray } from 'class-validator';
|
|
11
|
+
import { RevenueMovementType } from '../../Enum/Revenue';
|
|
12
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../utils';
|
|
13
|
+
/**
|
|
14
|
+
* DTO pour créer un mouvement de revenu
|
|
15
|
+
*/
|
|
16
|
+
export class ICreateRevenueMovementRequest {
|
|
17
|
+
type;
|
|
18
|
+
idSociety;
|
|
19
|
+
idExercice;
|
|
20
|
+
idPrestation;
|
|
21
|
+
idTerminationList;
|
|
22
|
+
idChurnMovement;
|
|
23
|
+
amount;
|
|
24
|
+
mrr;
|
|
25
|
+
arr;
|
|
26
|
+
movementDate;
|
|
27
|
+
description;
|
|
28
|
+
metadata;
|
|
29
|
+
}
|
|
30
|
+
__decorate([
|
|
31
|
+
ApiProperty(),
|
|
32
|
+
IsEnum(RevenueMovementType),
|
|
33
|
+
__metadata("design:type", Number)
|
|
34
|
+
], ICreateRevenueMovementRequest.prototype, "type", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
ApiProperty(),
|
|
37
|
+
IsInt(),
|
|
38
|
+
__metadata("design:type", Number)
|
|
39
|
+
], ICreateRevenueMovementRequest.prototype, "idSociety", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
ApiPropertyOptional(),
|
|
42
|
+
IsOptional(),
|
|
43
|
+
IsInt(),
|
|
44
|
+
__metadata("design:type", Number)
|
|
45
|
+
], ICreateRevenueMovementRequest.prototype, "idExercice", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
ApiPropertyOptional(),
|
|
48
|
+
IsOptional(),
|
|
49
|
+
IsInt(),
|
|
50
|
+
__metadata("design:type", Number)
|
|
51
|
+
], ICreateRevenueMovementRequest.prototype, "idPrestation", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
ApiPropertyOptional(),
|
|
54
|
+
IsOptional(),
|
|
55
|
+
IsInt(),
|
|
56
|
+
__metadata("design:type", Number)
|
|
57
|
+
], ICreateRevenueMovementRequest.prototype, "idTerminationList", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
ApiPropertyOptional(),
|
|
60
|
+
IsOptional(),
|
|
61
|
+
IsInt(),
|
|
62
|
+
__metadata("design:type", Number)
|
|
63
|
+
], ICreateRevenueMovementRequest.prototype, "idChurnMovement", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
ApiProperty(),
|
|
66
|
+
IsInt(),
|
|
67
|
+
__metadata("design:type", Number)
|
|
68
|
+
], ICreateRevenueMovementRequest.prototype, "amount", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
ApiProperty(),
|
|
71
|
+
IsInt(),
|
|
72
|
+
__metadata("design:type", Number)
|
|
73
|
+
], ICreateRevenueMovementRequest.prototype, "mrr", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
ApiProperty(),
|
|
76
|
+
IsInt(),
|
|
77
|
+
__metadata("design:type", Number)
|
|
78
|
+
], ICreateRevenueMovementRequest.prototype, "arr", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
ApiProperty(),
|
|
81
|
+
IsDate(),
|
|
82
|
+
__metadata("design:type", Date)
|
|
83
|
+
], ICreateRevenueMovementRequest.prototype, "movementDate", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
ApiPropertyOptional(),
|
|
86
|
+
IsOptional(),
|
|
87
|
+
IsString(),
|
|
88
|
+
__metadata("design:type", String)
|
|
89
|
+
], ICreateRevenueMovementRequest.prototype, "description", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
ApiPropertyOptional(),
|
|
92
|
+
IsOptional(),
|
|
93
|
+
IsObject(),
|
|
94
|
+
__metadata("design:type", Object)
|
|
95
|
+
], ICreateRevenueMovementRequest.prototype, "metadata", void 0);
|
|
96
|
+
/**
|
|
97
|
+
* DTO pour mettre à jour un mouvement de revenu
|
|
98
|
+
*/
|
|
99
|
+
export class IUpdateRevenueMovementRequest {
|
|
100
|
+
type;
|
|
101
|
+
idTerminationList;
|
|
102
|
+
idChurnMovement;
|
|
103
|
+
amount;
|
|
104
|
+
mrr;
|
|
105
|
+
arr;
|
|
106
|
+
movementDate;
|
|
107
|
+
description;
|
|
108
|
+
metadata;
|
|
109
|
+
}
|
|
110
|
+
__decorate([
|
|
111
|
+
ApiPropertyOptional(),
|
|
112
|
+
IsOptional(),
|
|
113
|
+
IsEnum(RevenueMovementType),
|
|
114
|
+
__metadata("design:type", Number)
|
|
115
|
+
], IUpdateRevenueMovementRequest.prototype, "type", void 0);
|
|
116
|
+
__decorate([
|
|
117
|
+
ApiPropertyOptional(),
|
|
118
|
+
IsOptional(),
|
|
119
|
+
IsInt(),
|
|
120
|
+
__metadata("design:type", Number)
|
|
121
|
+
], IUpdateRevenueMovementRequest.prototype, "idTerminationList", void 0);
|
|
122
|
+
__decorate([
|
|
123
|
+
ApiPropertyOptional(),
|
|
124
|
+
IsOptional(),
|
|
125
|
+
IsInt(),
|
|
126
|
+
__metadata("design:type", Number)
|
|
127
|
+
], IUpdateRevenueMovementRequest.prototype, "idChurnMovement", void 0);
|
|
128
|
+
__decorate([
|
|
129
|
+
ApiPropertyOptional(),
|
|
130
|
+
IsOptional(),
|
|
131
|
+
IsNumber(),
|
|
132
|
+
__metadata("design:type", Number)
|
|
133
|
+
], IUpdateRevenueMovementRequest.prototype, "amount", void 0);
|
|
134
|
+
__decorate([
|
|
135
|
+
ApiPropertyOptional(),
|
|
136
|
+
IsOptional(),
|
|
137
|
+
IsInt(),
|
|
138
|
+
__metadata("design:type", Number)
|
|
139
|
+
], IUpdateRevenueMovementRequest.prototype, "mrr", void 0);
|
|
140
|
+
__decorate([
|
|
141
|
+
ApiPropertyOptional(),
|
|
142
|
+
IsOptional(),
|
|
143
|
+
IsInt(),
|
|
144
|
+
__metadata("design:type", Number)
|
|
145
|
+
], IUpdateRevenueMovementRequest.prototype, "arr", void 0);
|
|
146
|
+
__decorate([
|
|
147
|
+
ApiPropertyOptional(),
|
|
148
|
+
IsOptional(),
|
|
149
|
+
IsDate(),
|
|
150
|
+
__metadata("design:type", Object)
|
|
151
|
+
], IUpdateRevenueMovementRequest.prototype, "movementDate", void 0);
|
|
152
|
+
__decorate([
|
|
153
|
+
ApiPropertyOptional(),
|
|
154
|
+
IsOptional(),
|
|
155
|
+
IsString(),
|
|
156
|
+
__metadata("design:type", String)
|
|
157
|
+
], IUpdateRevenueMovementRequest.prototype, "description", void 0);
|
|
158
|
+
__decorate([
|
|
159
|
+
ApiPropertyOptional(),
|
|
160
|
+
IsOptional(),
|
|
161
|
+
IsObject(),
|
|
162
|
+
__metadata("design:type", Object)
|
|
163
|
+
], IUpdateRevenueMovementRequest.prototype, "metadata", void 0);
|
|
164
|
+
/**
|
|
165
|
+
* Filtres pour récupérer les mouvements de revenu
|
|
166
|
+
*/
|
|
167
|
+
export class IGetRevenueMovementsRequest {
|
|
168
|
+
idSociety;
|
|
169
|
+
idExercice;
|
|
170
|
+
idPrestation;
|
|
171
|
+
idTerminationList;
|
|
172
|
+
idChurnMovement;
|
|
173
|
+
type;
|
|
174
|
+
startDate;
|
|
175
|
+
endDate;
|
|
176
|
+
page;
|
|
177
|
+
limit;
|
|
178
|
+
}
|
|
179
|
+
__decorate([
|
|
180
|
+
ApiPropertyOptional(),
|
|
181
|
+
IsOptional(),
|
|
182
|
+
IsInt(),
|
|
183
|
+
__metadata("design:type", Number)
|
|
184
|
+
], IGetRevenueMovementsRequest.prototype, "idSociety", void 0);
|
|
185
|
+
__decorate([
|
|
186
|
+
ApiPropertyOptional(),
|
|
187
|
+
IsOptional(),
|
|
188
|
+
IsInt(),
|
|
189
|
+
__metadata("design:type", Number)
|
|
190
|
+
], IGetRevenueMovementsRequest.prototype, "idExercice", void 0);
|
|
191
|
+
__decorate([
|
|
192
|
+
ApiPropertyOptional(),
|
|
193
|
+
IsOptional(),
|
|
194
|
+
IsInt(),
|
|
195
|
+
__metadata("design:type", Number)
|
|
196
|
+
], IGetRevenueMovementsRequest.prototype, "idPrestation", void 0);
|
|
197
|
+
__decorate([
|
|
198
|
+
ApiPropertyOptional(),
|
|
199
|
+
IsOptional(),
|
|
200
|
+
IsInt(),
|
|
201
|
+
__metadata("design:type", Number)
|
|
202
|
+
], IGetRevenueMovementsRequest.prototype, "idTerminationList", void 0);
|
|
203
|
+
__decorate([
|
|
204
|
+
ApiPropertyOptional(),
|
|
205
|
+
IsOptional(),
|
|
206
|
+
IsInt(),
|
|
207
|
+
__metadata("design:type", Number)
|
|
208
|
+
], IGetRevenueMovementsRequest.prototype, "idChurnMovement", void 0);
|
|
209
|
+
__decorate([
|
|
210
|
+
ApiPropertyOptional(),
|
|
211
|
+
IsOptional(),
|
|
212
|
+
IsArray(),
|
|
213
|
+
IsEnum(RevenueMovementType, { each: true }),
|
|
214
|
+
__metadata("design:type", Array)
|
|
215
|
+
], IGetRevenueMovementsRequest.prototype, "type", void 0);
|
|
216
|
+
__decorate([
|
|
217
|
+
ApiPropertyOptional(),
|
|
218
|
+
IsOptional(),
|
|
219
|
+
IsDate(),
|
|
220
|
+
__metadata("design:type", Object)
|
|
221
|
+
], IGetRevenueMovementsRequest.prototype, "startDate", void 0);
|
|
222
|
+
__decorate([
|
|
223
|
+
ApiPropertyOptional(),
|
|
224
|
+
IsOptional(),
|
|
225
|
+
IsDate(),
|
|
226
|
+
__metadata("design:type", Object)
|
|
227
|
+
], IGetRevenueMovementsRequest.prototype, "endDate", void 0);
|
|
228
|
+
__decorate([
|
|
229
|
+
ApiPropertyOptional(),
|
|
230
|
+
IsOptional(),
|
|
231
|
+
IsInt(),
|
|
232
|
+
__metadata("design:type", Number)
|
|
233
|
+
], IGetRevenueMovementsRequest.prototype, "page", void 0);
|
|
234
|
+
__decorate([
|
|
235
|
+
ApiPropertyOptional(),
|
|
236
|
+
IsOptional(),
|
|
237
|
+
IsInt(),
|
|
238
|
+
__metadata("design:type", Number)
|
|
239
|
+
], IGetRevenueMovementsRequest.prototype, "limit", void 0);
|
|
240
|
+
/**
|
|
241
|
+
* DTO pour générer un snapshot de revenu
|
|
242
|
+
*/
|
|
243
|
+
export class IGenerateSnapshotRequest {
|
|
244
|
+
date;
|
|
245
|
+
idSociety;
|
|
246
|
+
idExercice;
|
|
247
|
+
}
|
|
248
|
+
__decorate([
|
|
249
|
+
ApiPropertyOptional(),
|
|
250
|
+
IsOptional(),
|
|
251
|
+
IsDate(),
|
|
252
|
+
__metadata("design:type", String)
|
|
253
|
+
], IGenerateSnapshotRequest.prototype, "date", void 0);
|
|
254
|
+
__decorate([
|
|
255
|
+
ApiPropertyOptional(),
|
|
256
|
+
IsOptional(),
|
|
257
|
+
IsInt(),
|
|
258
|
+
__metadata("design:type", Number)
|
|
259
|
+
], IGenerateSnapshotRequest.prototype, "idSociety", void 0);
|
|
260
|
+
__decorate([
|
|
261
|
+
ApiPropertyOptional(),
|
|
262
|
+
IsOptional(),
|
|
263
|
+
IsInt(),
|
|
264
|
+
__metadata("design:type", Number)
|
|
265
|
+
], IGenerateSnapshotRequest.prototype, "idExercice", void 0);
|
|
266
|
+
/**
|
|
267
|
+
* DTO pour générer tous les snapshots de revenu
|
|
268
|
+
*/
|
|
269
|
+
export class IGenerateAllSnapshotsRequest {
|
|
270
|
+
date;
|
|
271
|
+
}
|
|
272
|
+
__decorate([
|
|
273
|
+
ApiPropertyOptional(),
|
|
274
|
+
IsOptional(),
|
|
275
|
+
IsDate(),
|
|
276
|
+
__metadata("design:type", String)
|
|
277
|
+
], IGenerateAllSnapshotsRequest.prototype, "date", void 0);
|
|
278
|
+
/**
|
|
279
|
+
* DTO pour gérer la rétroactivité des mouvements de revenu
|
|
280
|
+
*/
|
|
281
|
+
export class IManageRetroactivityRequest {
|
|
282
|
+
idSociety;
|
|
283
|
+
idExercice;
|
|
284
|
+
date;
|
|
285
|
+
}
|
|
286
|
+
__decorate([
|
|
287
|
+
ApiPropertyOptional(),
|
|
288
|
+
IsOptional(),
|
|
289
|
+
IsInt(),
|
|
290
|
+
__metadata("design:type", Number)
|
|
291
|
+
], IManageRetroactivityRequest.prototype, "idSociety", void 0);
|
|
292
|
+
__decorate([
|
|
293
|
+
ApiPropertyOptional(),
|
|
294
|
+
IsOptional(),
|
|
295
|
+
IsInt(),
|
|
296
|
+
__metadata("design:type", Number)
|
|
297
|
+
], IManageRetroactivityRequest.prototype, "idExercice", void 0);
|
|
298
|
+
__decorate([
|
|
299
|
+
ApiPropertyOptional(),
|
|
300
|
+
IsOptional(),
|
|
301
|
+
IsDate(),
|
|
302
|
+
__metadata("design:type", Date)
|
|
303
|
+
], IManageRetroactivityRequest.prototype, "date", void 0);
|
|
2
304
|
//# sourceMappingURL=revenueMovement.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"revenueMovement.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revenueMovement.ts"],"names":[],"mappings":"","sourcesContent":["import { RevenueMovementType } from '../../Enum/Revenue';\n\n/**\n * DTO pour créer un mouvement de revenu\n */\nexport
|
|
1
|
+
{"version":3,"file":"revenueMovement.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revenueMovement.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC3G,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAElE;;GAEG;AACH,MAAM,OAAO,6BAA6B;IAGxC,IAA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, IsNumber, IsString, IsObject, IsArray } from 'class-validator';\nimport { RevenueMovementType } from '../../Enum/Revenue';\nimport { ApiProperty, ApiPropertyOptional } from '../../../utils';\n\n/**\n * DTO pour créer un mouvement de revenu\n */\nexport class ICreateRevenueMovementRequest {\n @ApiProperty()\n @IsEnum(RevenueMovementType)\n type: RevenueMovementType;\n\n @ApiProperty()\n @IsInt()\n idSociety: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idExercice?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idPrestation?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idTerminationList?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idChurnMovement?: number;\n\n @ApiProperty()\n @IsInt()\n amount: number;\n\n @ApiProperty()\n @IsInt()\n mrr: number;\n\n @ApiProperty()\n @IsInt()\n arr: number;\n\n @ApiProperty()\n @IsDate()\n movementDate: Date;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n description?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsObject()\n metadata?: Record<string, any>;\n}\n\n/**\n * DTO pour mettre à jour un mouvement de revenu\n */\nexport class IUpdateRevenueMovementRequest {\n @ApiPropertyOptional()\n @IsOptional()\n @IsEnum(RevenueMovementType)\n type?: RevenueMovementType;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idTerminationList?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idChurnMovement?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n amount?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n mrr?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n arr?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDate()\n movementDate?: Date | string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n description?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsObject()\n metadata?: Record<string, any>;\n}\n\n/**\n * Filtres pour récupérer les mouvements de revenu\n */\nexport class IGetRevenueMovementsRequest {\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idSociety?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idExercice?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idPrestation?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idTerminationList?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idChurnMovement?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsArray()\n @IsEnum(RevenueMovementType, { each: true })\n type?: RevenueMovementType[];\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDate()\n startDate?: Date | string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDate()\n endDate?: Date | string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n page?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n limit?: number;\n}\n\n/**\n * Réponse paginée pour les mouvements de revenu\n */\nexport interface IGetRevenueMovementsResponse {\n movements: any[]; // IRevenueMovement[]\n total: number;\n page: number;\n limit: number;\n totalPages: number;\n}\n\n/**\n * DTO pour générer un snapshot de revenu\n */\nexport class IGenerateSnapshotRequest {\n @ApiPropertyOptional()\n @IsOptional()\n @IsDate()\n date?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idSociety?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idExercice?: number;\n}\n\n/**\n * DTO pour générer tous les snapshots de revenu\n */\nexport class IGenerateAllSnapshotsRequest {\n @ApiPropertyOptional()\n @IsOptional()\n @IsDate()\n date?: string;\n}\n\n/**\n * DTO pour gérer la rétroactivité des mouvements de revenu\n */\nexport class IManageRetroactivityRequest {\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idSociety: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsInt()\n idExercice?: number;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsDate()\n date?: Date;\n}\n\n/**\n * Réponse pour la gestion de la rétroactivité\n */\nexport interface IManageRetroactivityResponse {\n idSociety: number;\n idExercice: number[];\n exerciceStartDate: Date[];\n exerciceEndDate: Date[];\n movementsCreated: {\n bookings: number;\n churns: number;\n recognitions: number;\n provisions: number;\n mothballingBookings: number;\n };\n prestationsProcessed: number;\n monthsProcessed: number;\n details: {\n type: string;\n idPrestation?: number;\n prestationName?: string;\n date: Date;\n amount: number;\n mrr: number;\n arr: number;\n }[];\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"revenueSnapshotGenerate.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revenueSnapshotGenerate.ts"],"names":[],"mappings":"AAGA,qBAAa,gBAAgB;IAQ3B,IAAI,CAAC,EAAE,MAAM,CAAC;IASd,SAAS,CAAC,EAAE,MAAM,CAAC;IASnB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,qBAAa,oBAAoB;IAQ/B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,qBAAa,mBAAmB;
|
|
1
|
+
{"version":3,"file":"revenueSnapshotGenerate.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revenueSnapshotGenerate.ts"],"names":[],"mappings":"AAGA,qBAAa,gBAAgB;IAQ3B,IAAI,CAAC,EAAE,MAAM,CAAC;IASd,SAAS,CAAC,EAAE,MAAM,CAAC;IASnB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,qBAAa,oBAAoB;IAQ/B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,qBAAa,mBAAmB;IAgB9B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
|
|
@@ -7,8 +7,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
import { ApiProperty } from '../../../utils';
|
|
11
|
-
import { IsOptional, IsString, IsNumber } from 'class-validator';
|
|
10
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../utils';
|
|
11
|
+
import { IsOptional, IsString, IsNumber, IsInt } from 'class-validator';
|
|
12
12
|
export class GenerateSnapshot {
|
|
13
13
|
date;
|
|
14
14
|
idSociety;
|
|
@@ -37,7 +37,7 @@ __decorate([
|
|
|
37
37
|
__decorate([
|
|
38
38
|
ApiProperty({
|
|
39
39
|
required: false,
|
|
40
|
-
description:
|
|
40
|
+
description: 'ID de l\'exercice',
|
|
41
41
|
example: 123456,
|
|
42
42
|
}),
|
|
43
43
|
IsOptional(),
|
|
@@ -58,26 +58,23 @@ __decorate([
|
|
|
58
58
|
__metadata("design:type", String)
|
|
59
59
|
], GenerateAllSnapshots.prototype, "date", void 0);
|
|
60
60
|
export class ManageRetroactivity {
|
|
61
|
-
|
|
61
|
+
// @ApiProperty({
|
|
62
|
+
// required: true,
|
|
63
|
+
// description: 'ID de la société',
|
|
64
|
+
// example: 60170,
|
|
65
|
+
// })
|
|
66
|
+
// @IsInt()
|
|
67
|
+
// idSociety: number;
|
|
62
68
|
idExercice;
|
|
63
69
|
}
|
|
64
70
|
__decorate([
|
|
65
|
-
|
|
66
|
-
required: true,
|
|
67
|
-
description: 'ID de la société',
|
|
68
|
-
example: 60170,
|
|
69
|
-
}),
|
|
70
|
-
IsNumber(),
|
|
71
|
-
__metadata("design:type", Number)
|
|
72
|
-
], ManageRetroactivity.prototype, "idSociety", void 0);
|
|
73
|
-
__decorate([
|
|
74
|
-
ApiProperty({
|
|
71
|
+
ApiPropertyOptional({
|
|
75
72
|
required: false,
|
|
76
|
-
description:
|
|
73
|
+
description: 'ID de l\'exercice (si non fourni, utilise l\'exercice courant)',
|
|
77
74
|
example: 123456,
|
|
78
75
|
}),
|
|
79
76
|
IsOptional(),
|
|
80
|
-
|
|
77
|
+
IsInt(),
|
|
81
78
|
__metadata("design:type", Number)
|
|
82
79
|
], ManageRetroactivity.prototype, "idExercice", void 0);
|
|
83
80
|
//# sourceMappingURL=revenueSnapshotGenerate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"revenueSnapshotGenerate.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revenueSnapshotGenerate.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"revenueSnapshotGenerate.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revenueSnapshotGenerate.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAExE,MAAM,OAAO,gBAAgB;IAQ3B,IAAI,CAAU;IASd,SAAS,CAAU;IASnB,UAAU,CAAU;CACrB;AAnBC;IAPC,WAAW,CAAC;QACX,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,6CAA6C;QAC1D,OAAO,EAAE,YAAY;KACtB,CAAC;IACD,UAAU,EAAE;IACZ,QAAQ,EAAE;;8CACG;AASd;IAPC,WAAW,CAAC;QACX,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,kBAAkB;QAC/B,OAAO,EAAE,KAAK;KACf,CAAC;IACD,UAAU,EAAE;IACZ,QAAQ,EAAE;;mDACQ;AASnB;IAPC,WAAW,CAAC;QACX,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,mBAAmB;QAChC,OAAO,EAAE,MAAM;KAChB,CAAC;IACD,UAAU,EAAE;IACZ,QAAQ,EAAE;;oDACS;AAGtB,MAAM,OAAO,oBAAoB;IAQ/B,IAAI,CAAU;CACf;AADC;IAPC,WAAW,CAAC;QACX,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,6CAA6C;QAC1D,OAAO,EAAE,YAAY;KACtB,CAAC;IACD,UAAU,EAAE;IACZ,QAAQ,EAAE;;kDACG;AAGhB,MAAM,OAAO,mBAAmB;IAC9B,iBAAiB;IACjB,oBAAoB;IACpB,qCAAqC;IACrC,oBAAoB;IACpB,KAAK;IACL,WAAW;IACX,qBAAqB;IASrB,UAAU,CAAU;CACrB;AADC;IAPC,mBAAmB,CAAC;QACnB,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,gEAAgE;QAC7E,OAAO,EAAE,MAAM;KAChB,CAAC;IACD,UAAU,EAAE;IACZ,KAAK,EAAE;;uDACY","sourcesContent":["import { ApiProperty, ApiPropertyOptional } from '../../../utils';\nimport { IsOptional, IsString, IsNumber, IsInt } from 'class-validator';\n\nexport class GenerateSnapshot {\n @ApiProperty({\n required: false,\n description: 'Date du snapshot au format ISO (YYYY-MM-DD)',\n example: '2025-11-04',\n })\n @IsOptional()\n @IsString()\n date?: string;\n\n @ApiProperty({\n required: false,\n description: 'ID de la société',\n example: 60170,\n })\n @IsOptional()\n @IsNumber()\n idSociety?: number;\n\n @ApiProperty({\n required: false,\n description: 'ID de l\\'exercice',\n example: 123456,\n })\n @IsOptional()\n @IsNumber()\n idExercice?: number;\n}\n\nexport class GenerateAllSnapshots {\n @ApiProperty({\n required: false,\n description: 'Date du snapshot au format ISO (YYYY-MM-DD)',\n example: '2025-11-04',\n })\n @IsOptional()\n @IsString()\n date?: string;\n}\n\nexport class ManageRetroactivity {\n // @ApiProperty({\n // required: true,\n // description: 'ID de la société',\n // example: 60170,\n // })\n // @IsInt()\n // idSociety: number;\n\n @ApiPropertyOptional({\n required: false,\n description: 'ID de l\\'exercice (si non fourni, utilise l\\'exercice courant)',\n example: 123456,\n })\n @IsOptional()\n @IsInt()\n idExercice?: number;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IImmobilization.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IImmobilization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,MAAM,WAAW,eAAe;IAC9B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,uBAAuB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxC,WAAW,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAC1B,eAAe,CAAC,EAAE,IAAI,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,kBAAkB,CAAC,EAAE,mBAAmB,CAAC;IACzC,yBAAyB,EAAE,MAAM,CAAC;IAClC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAGxB,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC5B,iBAAiB,CAAC,EAAE,gBAAgB,EAAE,CAAC;CACxC"}
|
|
1
|
+
{"version":3,"file":"IImmobilization.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IImmobilization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obilization.ts"],"names":[],"mappings":"","sourcesContent":["import { IAccountingEntry } from './IAccountingEntry';\nimport { ISociety } from './ISociety';\nimport { DepreciationMethods } from '../../Enum/ImmobilizationType';\nimport { IAccount } from './IAccount';\n\nexport interface IImmobilization {\n id?: number;\n reference: string;\n designation: string;\n quantity: number;\n quantityTrashed?: number;\n quantitySelled?: number;\n amountOfSellTaxIncluded?: number | null;\n sellingDate?: Date | null;\n acquisitionDate?: Date; // si il n'y a pas d'acquisition date, c'est un acompte\n duration: number;\n provider: string;\n depreciationMethod?: DepreciationMethods;\n amountTotalImmobilization: number;\n amountAlreadyDeducted?: number;\n idAccount?: number | null;\n idSociety: number;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n\n // Associations\n society?: ISociety;\n account?: Partial<IAccount>;\n accountingEntries?: IAccountingEntry[];\n}\n"]}
|
|
1
|
+
{"version":3,"file":"IImmobilization.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/models/IImmobilization.ts"],"names":[],"mappings":"","sourcesContent":["import { IAccountingEntry } from './IAccountingEntry';\nimport { ISociety } from './ISociety';\nimport { DepreciationMethods } from '../../Enum/ImmobilizationType';\nimport { IAccount } from './IAccount';\n\nexport interface IImmobilization {\n id?: number;\n reference: string;\n designation: string;\n quantity: number;\n quantityTrashed?: number;\n quantitySelled?: number;\n amountOfSellTaxIncluded?: number | null;\n sellingDate?: Date | null;\n trashingDate?: Date | null;\n acquisitionDate?: Date; // si il n'y a pas d'acquisition date, c'est un acompte\n duration: number;\n provider: string;\n depreciationMethod?: DepreciationMethods;\n amountTotalImmobilization: number;\n amountAlreadyDeducted?: number;\n idAccount?: number | null;\n idSociety: number;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n\n // Associations\n society?: ISociety;\n account?: Partial<IAccount>;\n accountingEntries?: IAccountingEntry[];\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prestation.d.ts","sourceRoot":"","sources":["../../../ts/utils/prestation.ts"],"names":[],"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AAEF,OAAO,EACL,yBAAyB,EACzB,wBAAwB,EACxB,kBAAkB,EAClB,oBAAoB,EACpB,WAAW,EACX,YAAY,EACZ,aAAa,EACb,UAAU,EACV,oBAAoB,EACpB,SAAS,EACT,gBAAgB,EAChB,oBAAoB,EACpB,4BAA4B,EAC5B,wBAAwB,EACxB,oBAAoB,EACpB,mBAAmB,EACnB,qCAAqC,EACrC,wBAAwB,EACxB,2BAA2B,GAC5B,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Vat } from '../types/Enum/Vat';
|
|
2
|
+
import { ReasonTerminationType } from '../types/Enum/ReasonTerminationType';
|
|
2
3
|
import { getTaxesIncludedAmount } from './vat/utils';
|
|
3
4
|
import { intersection } from './noLodash';
|
|
4
5
|
import { ClementineSubscriptionAccountancySoftwarePrestations, PrestationDetail, PrestationType, } from '../types/Enum/PrestationType';
|
|
@@ -52,7 +53,8 @@ idPrestationList.length === 1 */ // Commenté car si un client résilie un softw
|
|
|
52
53
|
const calculateScoringOfPrestation = (idPrestationType, prestations, currentIdPrestation) => {
|
|
53
54
|
const prestationsSignedPaid = prestations.filter((prestation) => prestation.paid &&
|
|
54
55
|
prestation.signed &&
|
|
55
|
-
prestation.terminationList === null
|
|
56
|
+
(prestation.terminationList === null ||
|
|
57
|
+
prestation.terminationList?.idReasonTermination?.includes(ReasonTerminationType.CHANGES_NEW_OFFERS)) &&
|
|
56
58
|
prestation.id !== currentIdPrestation);
|
|
57
59
|
const currentPrestation = prestations.find((el) => el.idPrestationList === idPrestationType && el.terminationList === null);
|
|
58
60
|
// SPECIAL CASE:
|