@silexpert/core 1.3.160-2 → 1.3.160-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.
Files changed (72) hide show
  1. package/dist/cjs/api/resources/GeneralLedger.d.ts +2 -1
  2. package/dist/cjs/api/resources/GeneralLedger.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/GeneralLedger.js +9 -0
  4. package/dist/cjs/api/resources/GeneralLedger.js.map +1 -1
  5. package/dist/cjs/api/resources/Mfa.d.ts +2 -0
  6. package/dist/cjs/api/resources/Mfa.d.ts.map +1 -1
  7. package/dist/cjs/api/resources/Mfa.js +7 -0
  8. package/dist/cjs/api/resources/Mfa.js.map +1 -1
  9. package/dist/cjs/types/Enum/Card.js +1 -1
  10. package/dist/cjs/types/Enum/Card.js.map +1 -1
  11. package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.d.ts +1 -0
  12. package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.d.ts.map +1 -1
  13. package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.js.map +1 -1
  14. package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts +1 -0
  15. package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts.map +1 -1
  16. package/dist/cjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js.map +1 -1
  17. package/dist/cjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.d.ts +9 -0
  18. package/dist/cjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.d.ts.map +1 -1
  19. package/dist/cjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js +30 -1
  20. package/dist/cjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js.map +1 -1
  21. package/dist/cjs/types/Interface/api/revenueMovement.d.ts +10 -9
  22. package/dist/cjs/types/Interface/api/revenueMovement.d.ts.map +1 -1
  23. package/dist/cjs/types/Interface/api/revenueMovement.js +272 -0
  24. package/dist/cjs/types/Interface/api/revenueMovement.js.map +1 -1
  25. package/dist/cjs/types/Interface/api/revenueSnapshotGenerate.d.ts +0 -1
  26. package/dist/cjs/types/Interface/api/revenueSnapshotGenerate.d.ts.map +1 -1
  27. package/dist/cjs/types/Interface/api/revenueSnapshotGenerate.js +3 -11
  28. package/dist/cjs/types/Interface/api/revenueSnapshotGenerate.js.map +1 -1
  29. package/dist/cjs/types/Interface/models/IImmobilization.d.ts +1 -0
  30. package/dist/cjs/types/Interface/models/IImmobilization.d.ts.map +1 -1
  31. package/dist/cjs/types/Interface/models/IImmobilization.js.map +1 -1
  32. package/dist/mjs/api/resources/GeneralLedger.d.ts +2 -1
  33. package/dist/mjs/api/resources/GeneralLedger.d.ts.map +1 -1
  34. package/dist/mjs/api/resources/GeneralLedger.js +9 -0
  35. package/dist/mjs/api/resources/GeneralLedger.js.map +1 -1
  36. package/dist/mjs/api/resources/Mfa.d.ts +2 -0
  37. package/dist/mjs/api/resources/Mfa.d.ts.map +1 -1
  38. package/dist/mjs/api/resources/Mfa.js +7 -0
  39. package/dist/mjs/api/resources/Mfa.js.map +1 -1
  40. package/dist/mjs/types/Enum/Card.js +1 -1
  41. package/dist/mjs/types/Enum/Card.js.map +1 -1
  42. package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.d.ts +1 -0
  43. package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.d.ts.map +1 -1
  44. package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.js.map +1 -1
  45. package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts +1 -0
  46. package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts.map +1 -1
  47. package/dist/mjs/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js.map +1 -1
  48. package/dist/mjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.d.ts +9 -0
  49. package/dist/mjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.d.ts.map +1 -1
  50. package/dist/mjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js +34 -1
  51. package/dist/mjs/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js.map +1 -1
  52. package/dist/mjs/types/Interface/api/revenueMovement.d.ts +10 -9
  53. package/dist/mjs/types/Interface/api/revenueMovement.d.ts.map +1 -1
  54. package/dist/mjs/types/Interface/api/revenueMovement.js +303 -1
  55. package/dist/mjs/types/Interface/api/revenueMovement.js.map +1 -1
  56. package/dist/mjs/types/Interface/api/revenueSnapshotGenerate.d.ts +0 -1
  57. package/dist/mjs/types/Interface/api/revenueSnapshotGenerate.d.ts.map +1 -1
  58. package/dist/mjs/types/Interface/api/revenueSnapshotGenerate.js +11 -13
  59. package/dist/mjs/types/Interface/api/revenueSnapshotGenerate.js.map +1 -1
  60. package/dist/mjs/types/Interface/models/IImmobilization.d.ts +1 -0
  61. package/dist/mjs/types/Interface/models/IImmobilization.d.ts.map +1 -1
  62. package/dist/mjs/types/Interface/models/IImmobilization.js.map +1 -1
  63. package/package.json +1 -1
  64. package/ts/api/resources/GeneralLedger.ts +11 -0
  65. package/ts/api/resources/Mfa.ts +10 -0
  66. package/ts/types/Enum/Card.ts +1 -1
  67. package/ts/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.ts +1 -0
  68. package/ts/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.ts +1 -0
  69. package/ts/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.ts +26 -1
  70. package/ts/types/Interface/api/revenueMovement.ts +153 -9
  71. package/ts/types/Interface/api/revenueSnapshotGenerate.ts +11 -10
  72. package/ts/types/Interface/models/IImmobilization.ts +1 -0
@@ -1,3 +1,275 @@
1
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
+ };
2
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.IManageRetroactivityRequest = exports.IGenerateAllSnapshotsRequest = exports.IGenerateSnapshotRequest = exports.IGetRevenueMovementsRequest = exports.IUpdateRevenueMovementRequest = exports.ICreateRevenueMovementRequest = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const Revenue_1 = require("../../Enum/Revenue");
15
+ const swagger_1 = require("@nestjs/swagger");
16
+ /**
17
+ * DTO pour créer un mouvement de revenu
18
+ */
19
+ class ICreateRevenueMovementRequest {
20
+ }
21
+ exports.ICreateRevenueMovementRequest = ICreateRevenueMovementRequest;
22
+ __decorate([
23
+ (0, swagger_1.ApiProperty)(),
24
+ (0, class_validator_1.IsEnum)(Revenue_1.RevenueMovementType),
25
+ __metadata("design:type", Number)
26
+ ], ICreateRevenueMovementRequest.prototype, "type", void 0);
27
+ __decorate([
28
+ (0, swagger_1.ApiProperty)(),
29
+ (0, class_validator_1.IsInt)(),
30
+ __metadata("design:type", Number)
31
+ ], ICreateRevenueMovementRequest.prototype, "idSociety", void 0);
32
+ __decorate([
33
+ (0, swagger_1.ApiPropertyOptional)(),
34
+ (0, class_validator_1.IsOptional)(),
35
+ (0, class_validator_1.IsInt)(),
36
+ __metadata("design:type", Number)
37
+ ], ICreateRevenueMovementRequest.prototype, "idExercice", void 0);
38
+ __decorate([
39
+ (0, swagger_1.ApiPropertyOptional)(),
40
+ (0, class_validator_1.IsOptional)(),
41
+ (0, class_validator_1.IsInt)(),
42
+ __metadata("design:type", Number)
43
+ ], ICreateRevenueMovementRequest.prototype, "idPrestation", void 0);
44
+ __decorate([
45
+ (0, swagger_1.ApiPropertyOptional)(),
46
+ (0, class_validator_1.IsOptional)(),
47
+ (0, class_validator_1.IsInt)(),
48
+ __metadata("design:type", Number)
49
+ ], ICreateRevenueMovementRequest.prototype, "idTerminationList", void 0);
50
+ __decorate([
51
+ (0, swagger_1.ApiPropertyOptional)(),
52
+ (0, class_validator_1.IsOptional)(),
53
+ (0, class_validator_1.IsInt)(),
54
+ __metadata("design:type", Number)
55
+ ], ICreateRevenueMovementRequest.prototype, "idChurnMovement", void 0);
56
+ __decorate([
57
+ (0, swagger_1.ApiProperty)(),
58
+ (0, class_validator_1.IsInt)(),
59
+ __metadata("design:type", Number)
60
+ ], ICreateRevenueMovementRequest.prototype, "amount", void 0);
61
+ __decorate([
62
+ (0, swagger_1.ApiProperty)(),
63
+ (0, class_validator_1.IsInt)(),
64
+ __metadata("design:type", Number)
65
+ ], ICreateRevenueMovementRequest.prototype, "mrr", void 0);
66
+ __decorate([
67
+ (0, swagger_1.ApiProperty)(),
68
+ (0, class_validator_1.IsInt)(),
69
+ __metadata("design:type", Number)
70
+ ], ICreateRevenueMovementRequest.prototype, "arr", void 0);
71
+ __decorate([
72
+ (0, swagger_1.ApiProperty)(),
73
+ (0, class_validator_1.IsDate)(),
74
+ __metadata("design:type", Date)
75
+ ], ICreateRevenueMovementRequest.prototype, "movementDate", void 0);
76
+ __decorate([
77
+ (0, swagger_1.ApiPropertyOptional)(),
78
+ (0, class_validator_1.IsOptional)(),
79
+ (0, class_validator_1.IsString)(),
80
+ __metadata("design:type", String)
81
+ ], ICreateRevenueMovementRequest.prototype, "description", void 0);
82
+ __decorate([
83
+ (0, swagger_1.ApiPropertyOptional)(),
84
+ (0, class_validator_1.IsOptional)(),
85
+ (0, class_validator_1.IsObject)(),
86
+ __metadata("design:type", Object)
87
+ ], ICreateRevenueMovementRequest.prototype, "metadata", void 0);
88
+ /**
89
+ * DTO pour mettre à jour un mouvement de revenu
90
+ */
91
+ class IUpdateRevenueMovementRequest {
92
+ }
93
+ exports.IUpdateRevenueMovementRequest = IUpdateRevenueMovementRequest;
94
+ __decorate([
95
+ (0, swagger_1.ApiPropertyOptional)(),
96
+ (0, class_validator_1.IsOptional)(),
97
+ (0, class_validator_1.IsEnum)(Revenue_1.RevenueMovementType),
98
+ __metadata("design:type", Number)
99
+ ], IUpdateRevenueMovementRequest.prototype, "type", void 0);
100
+ __decorate([
101
+ (0, swagger_1.ApiPropertyOptional)(),
102
+ (0, class_validator_1.IsOptional)(),
103
+ (0, class_validator_1.IsInt)(),
104
+ __metadata("design:type", Number)
105
+ ], IUpdateRevenueMovementRequest.prototype, "idTerminationList", void 0);
106
+ __decorate([
107
+ (0, swagger_1.ApiPropertyOptional)(),
108
+ (0, class_validator_1.IsOptional)(),
109
+ (0, class_validator_1.IsInt)(),
110
+ __metadata("design:type", Number)
111
+ ], IUpdateRevenueMovementRequest.prototype, "idChurnMovement", void 0);
112
+ __decorate([
113
+ (0, swagger_1.ApiPropertyOptional)(),
114
+ (0, class_validator_1.IsOptional)(),
115
+ (0, class_validator_1.IsNumber)(),
116
+ __metadata("design:type", Number)
117
+ ], IUpdateRevenueMovementRequest.prototype, "amount", void 0);
118
+ __decorate([
119
+ (0, swagger_1.ApiPropertyOptional)(),
120
+ (0, class_validator_1.IsOptional)(),
121
+ (0, class_validator_1.IsInt)(),
122
+ __metadata("design:type", Number)
123
+ ], IUpdateRevenueMovementRequest.prototype, "mrr", void 0);
124
+ __decorate([
125
+ (0, swagger_1.ApiPropertyOptional)(),
126
+ (0, class_validator_1.IsOptional)(),
127
+ (0, class_validator_1.IsInt)(),
128
+ __metadata("design:type", Number)
129
+ ], IUpdateRevenueMovementRequest.prototype, "arr", void 0);
130
+ __decorate([
131
+ (0, swagger_1.ApiPropertyOptional)(),
132
+ (0, class_validator_1.IsOptional)(),
133
+ (0, class_validator_1.IsDate)(),
134
+ __metadata("design:type", Object)
135
+ ], IUpdateRevenueMovementRequest.prototype, "movementDate", void 0);
136
+ __decorate([
137
+ (0, swagger_1.ApiPropertyOptional)(),
138
+ (0, class_validator_1.IsOptional)(),
139
+ (0, class_validator_1.IsString)(),
140
+ __metadata("design:type", String)
141
+ ], IUpdateRevenueMovementRequest.prototype, "description", void 0);
142
+ __decorate([
143
+ (0, swagger_1.ApiPropertyOptional)(),
144
+ (0, class_validator_1.IsOptional)(),
145
+ (0, class_validator_1.IsObject)(),
146
+ __metadata("design:type", Object)
147
+ ], IUpdateRevenueMovementRequest.prototype, "metadata", void 0);
148
+ /**
149
+ * Filtres pour récupérer les mouvements de revenu
150
+ */
151
+ class IGetRevenueMovementsRequest {
152
+ }
153
+ exports.IGetRevenueMovementsRequest = IGetRevenueMovementsRequest;
154
+ __decorate([
155
+ (0, swagger_1.ApiPropertyOptional)(),
156
+ (0, class_validator_1.IsOptional)(),
157
+ (0, class_validator_1.IsInt)(),
158
+ __metadata("design:type", Number)
159
+ ], IGetRevenueMovementsRequest.prototype, "idSociety", void 0);
160
+ __decorate([
161
+ (0, swagger_1.ApiPropertyOptional)(),
162
+ (0, class_validator_1.IsOptional)(),
163
+ (0, class_validator_1.IsInt)(),
164
+ __metadata("design:type", Number)
165
+ ], IGetRevenueMovementsRequest.prototype, "idExercice", void 0);
166
+ __decorate([
167
+ (0, swagger_1.ApiPropertyOptional)(),
168
+ (0, class_validator_1.IsOptional)(),
169
+ (0, class_validator_1.IsInt)(),
170
+ __metadata("design:type", Number)
171
+ ], IGetRevenueMovementsRequest.prototype, "idPrestation", void 0);
172
+ __decorate([
173
+ (0, swagger_1.ApiPropertyOptional)(),
174
+ (0, class_validator_1.IsOptional)(),
175
+ (0, class_validator_1.IsInt)(),
176
+ __metadata("design:type", Number)
177
+ ], IGetRevenueMovementsRequest.prototype, "idTerminationList", void 0);
178
+ __decorate([
179
+ (0, swagger_1.ApiPropertyOptional)(),
180
+ (0, class_validator_1.IsOptional)(),
181
+ (0, class_validator_1.IsInt)(),
182
+ __metadata("design:type", Number)
183
+ ], IGetRevenueMovementsRequest.prototype, "idChurnMovement", void 0);
184
+ __decorate([
185
+ (0, swagger_1.ApiPropertyOptional)(),
186
+ (0, class_validator_1.IsOptional)(),
187
+ (0, class_validator_1.IsArray)(),
188
+ (0, class_validator_1.IsEnum)(Revenue_1.RevenueMovementType, { each: true }),
189
+ __metadata("design:type", Array)
190
+ ], IGetRevenueMovementsRequest.prototype, "type", void 0);
191
+ __decorate([
192
+ (0, swagger_1.ApiPropertyOptional)(),
193
+ (0, class_validator_1.IsOptional)(),
194
+ (0, class_validator_1.IsDate)(),
195
+ __metadata("design:type", Object)
196
+ ], IGetRevenueMovementsRequest.prototype, "startDate", void 0);
197
+ __decorate([
198
+ (0, swagger_1.ApiPropertyOptional)(),
199
+ (0, class_validator_1.IsOptional)(),
200
+ (0, class_validator_1.IsDate)(),
201
+ __metadata("design:type", Object)
202
+ ], IGetRevenueMovementsRequest.prototype, "endDate", void 0);
203
+ __decorate([
204
+ (0, swagger_1.ApiPropertyOptional)(),
205
+ (0, class_validator_1.IsOptional)(),
206
+ (0, class_validator_1.IsInt)(),
207
+ __metadata("design:type", Number)
208
+ ], IGetRevenueMovementsRequest.prototype, "page", void 0);
209
+ __decorate([
210
+ (0, swagger_1.ApiPropertyOptional)(),
211
+ (0, class_validator_1.IsOptional)(),
212
+ (0, class_validator_1.IsInt)(),
213
+ __metadata("design:type", Number)
214
+ ], IGetRevenueMovementsRequest.prototype, "limit", void 0);
215
+ /**
216
+ * DTO pour générer un snapshot de revenu
217
+ */
218
+ class IGenerateSnapshotRequest {
219
+ }
220
+ exports.IGenerateSnapshotRequest = IGenerateSnapshotRequest;
221
+ __decorate([
222
+ (0, swagger_1.ApiPropertyOptional)(),
223
+ (0, class_validator_1.IsOptional)(),
224
+ (0, class_validator_1.IsDate)(),
225
+ __metadata("design:type", String)
226
+ ], IGenerateSnapshotRequest.prototype, "date", void 0);
227
+ __decorate([
228
+ (0, swagger_1.ApiPropertyOptional)(),
229
+ (0, class_validator_1.IsOptional)(),
230
+ (0, class_validator_1.IsInt)(),
231
+ __metadata("design:type", Number)
232
+ ], IGenerateSnapshotRequest.prototype, "idSociety", void 0);
233
+ __decorate([
234
+ (0, swagger_1.ApiPropertyOptional)(),
235
+ (0, class_validator_1.IsOptional)(),
236
+ (0, class_validator_1.IsInt)(),
237
+ __metadata("design:type", Number)
238
+ ], IGenerateSnapshotRequest.prototype, "idExercice", void 0);
239
+ /**
240
+ * DTO pour générer tous les snapshots de revenu
241
+ */
242
+ class IGenerateAllSnapshotsRequest {
243
+ }
244
+ exports.IGenerateAllSnapshotsRequest = IGenerateAllSnapshotsRequest;
245
+ __decorate([
246
+ (0, swagger_1.ApiPropertyOptional)(),
247
+ (0, class_validator_1.IsOptional)(),
248
+ (0, class_validator_1.IsDate)(),
249
+ __metadata("design:type", String)
250
+ ], IGenerateAllSnapshotsRequest.prototype, "date", void 0);
251
+ /**
252
+ * DTO pour gérer la rétroactivité des mouvements de revenu
253
+ */
254
+ class IManageRetroactivityRequest {
255
+ }
256
+ exports.IManageRetroactivityRequest = IManageRetroactivityRequest;
257
+ __decorate([
258
+ (0, swagger_1.ApiPropertyOptional)(),
259
+ (0, class_validator_1.IsOptional)(),
260
+ (0, class_validator_1.IsInt)(),
261
+ __metadata("design:type", Number)
262
+ ], IManageRetroactivityRequest.prototype, "idSociety", void 0);
263
+ __decorate([
264
+ (0, swagger_1.ApiPropertyOptional)(),
265
+ (0, class_validator_1.IsOptional)(),
266
+ (0, class_validator_1.IsInt)(),
267
+ __metadata("design:type", Number)
268
+ ], IManageRetroactivityRequest.prototype, "idExercice", void 0);
269
+ __decorate([
270
+ (0, swagger_1.ApiPropertyOptional)(),
271
+ (0, class_validator_1.IsOptional)(),
272
+ (0, class_validator_1.IsDate)(),
273
+ __metadata("design:type", Date)
274
+ ], IManageRetroactivityRequest.prototype, "date", void 0);
3
275
  //# 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 interface ICreateRevenueMovementRequest {\n type: RevenueMovementType;\n idSociety: number;\n idExercice?: number;\n idPrestation?: number;\n idTerminationList?: number;\n idChurnMovement?: number;\n amount: number;\n mrr: number;\n arr: number;\n movementDate: Date;\n description?: string;\n metadata?: Record<string, any>;\n}\n\n/**\n * DTO pour mettre à jour un mouvement de revenu\n */\nexport interface IUpdateRevenueMovementRequest {\n type?: RevenueMovementType;\n idTerminationList?: number;\n idChurnMovement?: number;\n amount?: number;\n mrr?: number;\n arr?: number;\n movementDate?: Date | string;\n description?: string;\n metadata?: Record<string, any>;\n}\n\n/**\n * Filtres pour récupérer les mouvements de revenu\n */\nexport interface IGetRevenueMovementsRequest {\n idSociety?: number;\n idExercice?: number;\n idPrestation?: number;\n idTerminationList?: number;\n idChurnMovement?: number;\n type?: RevenueMovementType[];\n startDate?: Date | string;\n endDate?: Date | string;\n page?: number;\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 interface IGenerateSnapshotRequest {\n date?: string;\n idSociety?: number;\n idExercice?: number;\n}\n\n/**\n * DTO pour générer tous les snapshots de revenu\n */\nexport interface IGenerateAllSnapshotsRequest {\n date?: string;\n}\n\n/**\n * DTO pour gérer la rétroactivité des mouvements de revenu\n */\nexport interface IManageRetroactivityRequest {\n idSociety: number;\n idExercice?: number;\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
+ {"version":3,"file":"revenueMovement.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revenueMovement.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2G;AAC3G,gDAAyD;AACzD,6CAAmE;AAEnE;;GAEG;AACH,MAAa,6BAA6B;CAsDzC;AAtDD,sEAsDC;AAnDC;IAFC,IAAA,qBAAW,GAAE;IACb,IAAA,wBAAM,EAAC,6BAAmB,CAAC;;2DACF;AAI1B;IAFC,IAAA,qBAAW,GAAE;IACb,IAAA,uBAAK,GAAE;;gEACU;AAKlB;IAHC,IAAA,6BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;iEACY;AAKpB;IAHC,IAAA,6BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;mEACc;AAKtB;IAHC,IAAA,6BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;wEACmB;AAK3B;IAHC,IAAA,6BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;sEACiB;AAIzB;IAFC,IAAA,qBAAW,GAAE;IACb,IAAA,uBAAK,GAAE;;6DACO;AAIf;IAFC,IAAA,qBAAW,GAAE;IACb,IAAA,uBAAK,GAAE;;0DACI;AAIZ;IAFC,IAAA,qBAAW,GAAE;IACb,IAAA,uBAAK,GAAE;;0DACI;AAIZ;IAFC,IAAA,qBAAW,GAAE;IACb,IAAA,wBAAM,GAAE;8BACK,IAAI;mEAAC;AAKnB;IAHC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AACH,MAAa,4BAA4B;CAKxC;AALD,oEAKC;AADC;IAHC,IAAA,6BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;0DACK;AAGhB;;GAEG;AACH,MAAa,2BAA2B;CAevC;AAfD,kEAeC;AAXC;IAHC,IAAA,6BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;8DACU;AAKlB;IAHC,IAAA,6BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;+DACY;AAKpB;IAHC,IAAA,6BAAmB,GAAE;IACrB,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;8BACF,IAAI;yDAAC","sourcesContent":["import { IsDate, IsInt, IsOptional, IsEnum, IsNumber, IsString, IsObject, IsArray } from 'class-validator';\nimport { RevenueMovementType } from '../../Enum/Revenue';\nimport { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';\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"]}
@@ -7,7 +7,6 @@ export declare class GenerateAllSnapshots {
7
7
  date?: string;
8
8
  }
9
9
  export declare class ManageRetroactivity {
10
- idSociety: number;
11
10
  idExercice?: number;
12
11
  }
13
12
  //# sourceMappingURL=revenueSnapshotGenerate.d.ts.map
@@ -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;IAO9B,SAAS,EAAE,MAAM,CAAC;IASlB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
1
+ {"version":3,"file":"revenueSnapshotGenerate.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revenueSnapshotGenerate.ts"],"names":[],"mappings":"AAIA,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"}
@@ -10,6 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.ManageRetroactivity = exports.GenerateAllSnapshots = exports.GenerateSnapshot = void 0;
13
+ const swagger_1 = require("@nestjs/swagger");
13
14
  const utils_1 = require("../../../utils");
14
15
  const class_validator_1 = require("class-validator");
15
16
  class GenerateSnapshot {
@@ -62,22 +63,13 @@ class ManageRetroactivity {
62
63
  }
63
64
  exports.ManageRetroactivity = ManageRetroactivity;
64
65
  __decorate([
65
- (0, utils_1.ApiProperty)({
66
- required: true,
67
- description: 'ID de la société',
68
- example: 60170,
69
- }),
70
- (0, class_validator_1.IsNumber)(),
71
- __metadata("design:type", Number)
72
- ], ManageRetroactivity.prototype, "idSociety", void 0);
73
- __decorate([
74
- (0, utils_1.ApiProperty)({
66
+ (0, swagger_1.ApiPropertyOptional)({
75
67
  required: false,
76
68
  description: "ID de l'exercice (si non fourni, utilise l'exercice courant)",
77
69
  example: 123456,
78
70
  }),
79
71
  (0, class_validator_1.IsOptional)(),
80
- (0, class_validator_1.IsNumber)(),
72
+ (0, class_validator_1.IsInt)(),
81
73
  __metadata("design:type", Number)
82
74
  ], ManageRetroactivity.prototype, "idExercice", void 0);
83
75
  //# sourceMappingURL=revenueSnapshotGenerate.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"revenueSnapshotGenerate.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revenueSnapshotGenerate.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA6C;AAC7C,qDAAiE;AAEjE,MAAa,gBAAgB;CA2B5B;AA3BD,4CA2BC;AAnBC;IAPC,IAAA,mBAAW,EAAC;QACX,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,6CAA6C;QAC1D,OAAO,EAAE,YAAY;KACtB,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;8CACG;AASd;IAPC,IAAA,mBAAW,EAAC;QACX,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,kBAAkB;QAC/B,OAAO,EAAE,KAAK;KACf,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACQ;AASnB;IAPC,IAAA,mBAAW,EAAC;QACX,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,kBAAkB;QAC/B,OAAO,EAAE,MAAM;KAChB,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oDACS;AAGtB,MAAa,oBAAoB;CAShC;AATD,oDASC;AADC;IAPC,IAAA,mBAAW,EAAC;QACX,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,6CAA6C;QAC1D,OAAO,EAAE,YAAY;KACtB,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kDACG;AAGhB,MAAa,mBAAmB;CAiB/B;AAjBD,kDAiBC;AAVC;IANC,IAAA,mBAAW,EAAC;QACX,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,kBAAkB;QAC/B,OAAO,EAAE,KAAK;KACf,CAAC;IACD,IAAA,0BAAQ,GAAE;;sDACO;AASlB;IAPC,IAAA,mBAAW,EAAC;QACX,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,8DAA8D;QAC3E,OAAO,EAAE,MAAM;KAChB,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;uDACS","sourcesContent":["import { ApiProperty } from '../../../utils';\nimport { IsOptional, IsString, IsNumber } 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 @IsNumber()\n idSociety: number;\n\n @ApiProperty({\n required: false,\n description: \"ID de l'exercice (si non fourni, utilise l'exercice courant)\",\n example: 123456,\n })\n @IsOptional()\n @IsNumber()\n idExercice?: number;\n}\n"]}
1
+ {"version":3,"file":"revenueSnapshotGenerate.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revenueSnapshotGenerate.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAsD;AACtD,0CAA6C;AAC7C,qDAAwE;AAExE,MAAa,gBAAgB;CA2B5B;AA3BD,4CA2BC;AAnBC;IAPC,IAAA,mBAAW,EAAC;QACX,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,6CAA6C;QAC1D,OAAO,EAAE,YAAY;KACtB,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;8CACG;AASd;IAPC,IAAA,mBAAW,EAAC;QACX,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,kBAAkB;QAC/B,OAAO,EAAE,KAAK;KACf,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACQ;AASnB;IAPC,IAAA,mBAAW,EAAC;QACX,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,kBAAkB;QAC/B,OAAO,EAAE,MAAM;KAChB,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oDACS;AAGtB,MAAa,oBAAoB;CAShC;AATD,oDASC;AADC;IAPC,IAAA,mBAAW,EAAC;QACX,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,6CAA6C;QAC1D,OAAO,EAAE,YAAY;KACtB,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kDACG;AAGhB,MAAa,mBAAmB;CAiB/B;AAjBD,kDAiBC;AADC;IAPC,IAAA,6BAAmB,EAAC;QACnB,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,8DAA8D;QAC3E,OAAO,EAAE,MAAM;KAChB,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;uDACY","sourcesContent":["import { ApiPropertyOptional } from '@nestjs/swagger';\nimport { ApiProperty } 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"]}
@@ -11,6 +11,7 @@ export interface IImmobilization {
11
11
  quantitySelled?: number;
12
12
  amountOfSellTaxIncluded?: number | null;
13
13
  sellingDate?: Date | null;
14
+ trashingDate?: Date | null;
14
15
  acquisitionDate?: Date;
15
16
  duration: number;
16
17
  provider: string;
@@ -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,I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;IAC3B,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 +1 @@
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 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,4 +1,4 @@
1
- import { BasePaginateInterface, IGeneralLedgerAccount, IGeneralLedgerThirdParty, QueryGeneralLedgerAuxiliary, QueryGeneralLedgerThirdParty, ReadGeneralLedgerSummary, ReadIGeneralLedgerThirdPartyPaginated } from '../../types';
1
+ import { BasePaginateInterface, IGeneralLedgerAccount, IGeneralLedgerThirdParty, QueryGeneralLedgerAuxiliary, QueryGeneralLedgerAuxiliaryPdf, QueryGeneralLedgerThirdParty, ReadGeneralLedgerSummary, ReadIGeneralLedgerThirdPartyPaginated } from '../../types';
2
2
  import { QueryGeneralLedger } from '../../types/Interface/api/generalLedger/QueryGeneralLedger';
3
3
  import { Resource } from '../Resource';
4
4
  export declare class GeneralLedger extends Resource {
@@ -15,5 +15,6 @@ export declare class GeneralLedger extends Resource {
15
15
  getAuxiliary(params: QueryGeneralLedgerAuxiliary): Promise<BasePaginateInterface<IGeneralLedgerThirdParty[]>>;
16
16
  getAuxiliarySummaries(params: QueryGeneralLedgerAuxiliary): Promise<BasePaginateInterface<ReadGeneralLedgerSummary[]>>;
17
17
  getThirdParty(id: number, params: QueryGeneralLedgerThirdParty): Promise<ReadIGeneralLedgerThirdPartyPaginated>;
18
+ getAuxiliaryPdf(params: QueryGeneralLedgerAuxiliaryPdf): Promise<Buffer>;
18
19
  }
19
20
  //# sourceMappingURL=GeneralLedger.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"GeneralLedger.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/GeneralLedger.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,qBAAqB,EACrB,wBAAwB,EACxB,2BAA2B,EAC3B,4BAA4B,EAC5B,wBAAwB,EACxB,qCAAqC,EACtC,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,kBAAkB,EAAE,MAAM,4DAA4D,CAAC;AAChG,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,aAAc,SAAQ,QAAQ;IACzC,YAAY,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,qBAAqB,CAAC,qBAAqB,EAAE,CAAC,CAAC;IAMjG,mBAAmB,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,qBAAqB,CAAC,qBAAqB,EAAE,CAAC,CAAC;IAMxG;;OAEG;IACH,MAAM,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC;IAUnD,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC;IAUxE,gBAAgB,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC;IAUhF,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC;IAUtE,gBAAgB,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC;IAUhF,YAAY,CAAC,MAAM,EAAE,2BAA2B,GAAG,OAAO,CAAC,qBAAqB,CAA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,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC;IAUhF,YAAY,CAAC,MAAM,EAAE,2BAA2B,GAAG,OAAO,CAAC,qBAAqB,CAAC,wBAAwB,EAAE,CAAC,CAAC;IAI7G,qBAAqB,CACnB,MAAM,EAAE,2BAA2B,GAClC,OAAO,CAAC,qBAAqB,CAAC,wBAAwB,EAAE,CAAC,CAAC;IAI7D,aAAa,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,4BAA4B,GAAG,OAAO,CAAC,qCAAqC,CAAC;IAI/G,eAAe,CAAC,MAAM,EAAE,8BAA8B,GAAG,OAAO,CAAC,MAAM,CAAC;CASzE"}
@@ -67,5 +67,14 @@ export class GeneralLedger extends Resource {
67
67
  getThirdParty(id, params) {
68
68
  return this.axios.$get(`/general-ledger/third-parties/${id}`, { params });
69
69
  }
70
+ getAuxiliaryPdf(params) {
71
+ return this.axios.$get('/general-ledger/auxiliary/pdf', {
72
+ params,
73
+ responseType: 'arraybuffer',
74
+ headers: {
75
+ Accept: 'application/pdf',
76
+ },
77
+ });
78
+ }
70
79
  }
71
80
  //# sourceMappingURL=GeneralLedger.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"GeneralLedger.js","sourceRoot":"","sources":["../../../../ts/api/resources/GeneralLedger.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,OAAO,aAAc,SAAQ,QAAQ;IACzC,YAAY,CAAC,MAA0B;QACrC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,gBAAgB,EAAE;YACvC,MAAM;SACP,CAAC,CAAC;IACL,CAAC;IAED,mBAAmB,CAAC,MAA0B;QAC5C,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,wBAAwB,EAAE;YAC/C,MAAM;SACP,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,MAA0B;QAC/B,OAAO,IAAI,CAAC,KAA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AC;IACjE,CAAC;IAED,qBAAqB,CACnB,MAAmC;QAEnC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,qCAAqC,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED,aAAa,CAAC,EAAU,EAAE,MAAoC;QAC5D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,iCAAiC,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAC5E,CAAC;CACF","sourcesContent":["import {\n BasePaginateInterface,\n IGeneralLedgerAccount,\n IGeneralLedgerThirdParty,\n QueryGeneralLedgerAuxiliary,\n QueryGeneralLedgerThirdParty,\n ReadGeneralLedgerSummary,\n ReadIGeneralLedgerThirdPartyPaginated,\n} from '../../types';\nimport { QueryGeneralLedger } from '../../types/Interface/api/generalLedger/QueryGeneralLedger';\nimport { Resource } from '../Resource';\n\nexport class GeneralLedger extends Resource {\n getBySociety(params: QueryGeneralLedger): Promise<BasePaginateInterface<IGeneralLedgerAccount[]>> {\n return this.axios.$get('/generalLedger', {\n params,\n });\n }\n\n getBalanceBySociety(params: QueryGeneralLedger): Promise<BasePaginateInterface<IGeneralLedgerAccount[]>> {\n return this.axios.$get('/generalLedger/balance', {\n params,\n });\n }\n\n /**\n * @deprecated use exportCsv instead\n */\n getCsv(params: QueryGeneralLedger): Promise<Buffer> {\n return this.axios.$get('/generalLedger/csv', {\n params,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/csv',\n },\n });\n }\n\n exportCsv(idSociety: number, query: QueryGeneralLedger): Promise<Buffer> {\n return this.axios.$post(`/societies/${idSociety}/general-ledgers/csv`, null, {\n params: query,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/csv',\n },\n });\n }\n\n exportBalanceCsv(idSociety: number, params: QueryGeneralLedger): Promise<Buffer> {\n return this.axios.$post(`/societies/${idSociety}/general-ledgers/balances/csv`, null, {\n params,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n\n getPdf(idSociety: number, params: QueryGeneralLedger): Promise<Buffer> {\n return this.axios.$get(`/societies/${idSociety}/general-ledger/pdf`, {\n params,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n\n exportBalancePdf(idSociety: number, params: QueryGeneralLedger): Promise<Buffer> {\n return this.axios.$post(`/societies/${idSociety}/general-ledgers/balances/pdf`, null, {\n params,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n\n getAuxiliary(params: QueryGeneralLedgerAuxiliary): Promise<BasePaginateInterface<IGeneralLedgerThirdParty[]>> {\n return this.axios.$get('/generalLedger/auxiliary', { params });\n }\n\n getAuxiliarySummaries(\n params: QueryGeneralLedgerAuxiliary,\n ): Promise<BasePaginateInterface<ReadGeneralLedgerSummary[]>> {\n return this.axios.$get('/general-ledger/auxiliary/summaries', { params });\n }\n\n getThirdParty(id: number, params: QueryGeneralLedgerThirdParty): Promise<ReadIGeneralLedgerThirdPartyPaginated> {\n return this.axios.$get(`/general-ledger/third-parties/${id}`, { params });\n }\n}\n"]}
1
+ {"version":3,"file":"GeneralLedger.js","sourceRoot":"","sources":["../../../../ts/api/resources/GeneralLedger.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,OAAO,aAAc,SAAQ,QAAQ;IACzC,YAAY,CAAC,MAA0B;QACrC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,gBAAgB,EAAE;YACvC,MAAM;SACP,CAAC,CAAC;IACL,CAAC;IAED,mBAAmB,CAAC,MAA0B;QAC5C,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,wBAAwB,EAAE;YAC/C,MAAM;SACP,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,MAA0B;QAC/B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,oBAAoB,EAAE;YAC3C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;QAEnC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,qCAAqC,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED,aAAa,CAAC,EAAU,EAAE,MAAoC;QAC5D,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,iCAAiC,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED,eAAe,CAAC,MAAsC;QACpD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,+BAA+B,EAAE;YACtD,MAAM;YACN,YAAY,EAAE,aAAa;YAC3B,OAAO,EAAE;gBACP,MAAM,EAAE,iBAAiB;aAC1B;SACF,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["import {\n BasePaginateInterface,\n IGeneralLedgerAccount,\n IGeneralLedgerThirdParty,\n QueryGeneralLedgerAuxiliary,\n QueryGeneralLedgerAuxiliaryPdf,\n QueryGeneralLedgerThirdParty,\n ReadGeneralLedgerSummary,\n ReadIGeneralLedgerThirdPartyPaginated,\n} from '../../types';\nimport { QueryGeneralLedger } from '../../types/Interface/api/generalLedger/QueryGeneralLedger';\nimport { Resource } from '../Resource';\n\nexport class GeneralLedger extends Resource {\n getBySociety(params: QueryGeneralLedger): Promise<BasePaginateInterface<IGeneralLedgerAccount[]>> {\n return this.axios.$get('/generalLedger', {\n params,\n });\n }\n\n getBalanceBySociety(params: QueryGeneralLedger): Promise<BasePaginateInterface<IGeneralLedgerAccount[]>> {\n return this.axios.$get('/generalLedger/balance', {\n params,\n });\n }\n\n /**\n * @deprecated use exportCsv instead\n */\n getCsv(params: QueryGeneralLedger): Promise<Buffer> {\n return this.axios.$get('/generalLedger/csv', {\n params,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/csv',\n },\n });\n }\n\n exportCsv(idSociety: number, query: QueryGeneralLedger): Promise<Buffer> {\n return this.axios.$post(`/societies/${idSociety}/general-ledgers/csv`, null, {\n params: query,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/csv',\n },\n });\n }\n\n exportBalanceCsv(idSociety: number, params: QueryGeneralLedger): Promise<Buffer> {\n return this.axios.$post(`/societies/${idSociety}/general-ledgers/balances/csv`, null, {\n params,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n\n getPdf(idSociety: number, params: QueryGeneralLedger): Promise<Buffer> {\n return this.axios.$get(`/societies/${idSociety}/general-ledger/pdf`, {\n params,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n\n exportBalancePdf(idSociety: number, params: QueryGeneralLedger): Promise<Buffer> {\n return this.axios.$post(`/societies/${idSociety}/general-ledgers/balances/pdf`, null, {\n params,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n\n getAuxiliary(params: QueryGeneralLedgerAuxiliary): Promise<BasePaginateInterface<IGeneralLedgerThirdParty[]>> {\n return this.axios.$get('/generalLedger/auxiliary', { params });\n }\n\n getAuxiliarySummaries(\n params: QueryGeneralLedgerAuxiliary,\n ): Promise<BasePaginateInterface<ReadGeneralLedgerSummary[]>> {\n return this.axios.$get('/general-ledger/auxiliary/summaries', { params });\n }\n\n getThirdParty(id: number, params: QueryGeneralLedgerThirdParty): Promise<ReadIGeneralLedgerThirdPartyPaginated> {\n return this.axios.$get(`/general-ledger/third-parties/${id}`, { params });\n }\n\n getAuxiliaryPdf(params: QueryGeneralLedgerAuxiliaryPdf): Promise<Buffer> {\n return this.axios.$get('/general-ledger/auxiliary/pdf', {\n params,\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n}\n"]}
@@ -15,5 +15,7 @@ export declare class UserMfa extends Resource {
15
15
  isMfaEnabled(userId?: number): Promise<{
16
16
  isEnabled: boolean;
17
17
  }>;
18
+ enableMobileMfa(userId: number): Promise<void>;
19
+ disableMobileMfa(userId: number): Promise<void>;
18
20
  }
19
21
  //# sourceMappingURL=Mfa.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Mfa.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Mfa.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAC7F,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,OAAQ,SAAQ,QAAQ;IACnC,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAIzE,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAIxE,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAIzC,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAIvF,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAIvG,YAAY,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,SAAS,EAAE,OAAO,CAAA;KAAE,CAAC;CAI/D"}
1
+ {"version":3,"file":"Mfa.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Mfa.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAC7F,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,OAAQ,SAAQ,QAAQ;IACnC,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAIzE,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAIxE,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAIzC,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAIvF,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAIvG,YAAY,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,SAAS,EAAE,OAAO,CAAA;KAAE,CAAC;IAO9D,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAI9C,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAGhD"}
@@ -19,5 +19,12 @@ export class UserMfa extends Resource {
19
19
  // Si userId est fourni, l'envoyer en query param, sinon vérifier l'user connecté
20
20
  return this.axios.$get('/mfa/is-enabled', userId ? { params: { userId } } : undefined);
21
21
  }
22
+ ///// Mobile Approval MFA /////
23
+ enableMobileMfa(userId) {
24
+ return this.axios.$post('/mfa/enable/mobile-approval', { userId });
25
+ }
26
+ disableMobileMfa(userId) {
27
+ return this.axios.$post('/mfa/disable/mobile-approval', { userId });
28
+ }
22
29
  }
23
30
  //# sourceMappingURL=Mfa.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Mfa.js","sourceRoot":"","sources":["../../../../ts/api/resources/Mfa.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,OAAO,OAAQ,SAAQ,QAAQ;IACnC,SAAS,CAAC,MAAc,EAAE,SAAiB;QACzC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,iBAAiB,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;IACpE,CAAC;IAED,WAAW,CAAC,MAAc,EAAE,IAAY;QACtC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,mBAAmB,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;IACjE,CAAC;IAED,OAAO,CAAC,MAAc;QACpB,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACtD,CAAC;IAED,UAAU,CAAC,MAAc,EAAE,IAAY;QACrC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,kBAAkB,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;IAChE,CAAC;IAED,kBAAkB,CAAC,MAAc,EAAE,YAAoB;QACrD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,2BAA2B,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC,CAAC;IACjF,CAAC;IAED,YAAY,CAAC,MAAe;QAC1B,iFAAiF;QACjF,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IACzF,CAAC;CACF","sourcesContent":["import { MfaSetupInitResult, MfaSetupVerifyResult } from '../../types/Interface/api/mfa/mfa';\nimport { Resource } from '../Resource';\n\nexport class UserMfa extends Resource {\n setupInit(userId: number, userEmail: string): Promise<MfaSetupInitResult> {\n return this.axios.$post('/mfa/setup/init', { userId, userEmail });\n }\n\n setupVerify(userId: number, code: string): Promise<MfaSetupVerifyResult> {\n return this.axios.$post('/mfa/setup/verify', { userId, code });\n }\n\n disable(userId: number): Promise<boolean> {\n return this.axios.$post('/mfa/disable', { userId });\n }\n\n verifyCode(userId: number, code: string): Promise<{ success: boolean; token?: string }> {\n return this.axios.$post('/mfa/verify/code', { userId, code });\n }\n\n verifyRecoveryCode(userId: number, recoveryCode: string): Promise<{ success: boolean; token?: string }> {\n return this.axios.$post('/mfa/verify/recovery-code', { userId, recoveryCode });\n }\n\n isMfaEnabled(userId?: number): Promise<{ isEnabled: boolean }> {\n // Si userId est fourni, l'envoyer en query param, sinon vérifier l'user connecté\n return this.axios.$get('/mfa/is-enabled', userId ? { params: { userId } } : undefined);\n }\n}\n"]}
1
+ {"version":3,"file":"Mfa.js","sourceRoot":"","sources":["../../../../ts/api/resources/Mfa.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,OAAO,OAAQ,SAAQ,QAAQ;IACnC,SAAS,CAAC,MAAc,EAAE,SAAiB;QACzC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,iBAAiB,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;IACpE,CAAC;IAED,WAAW,CAAC,MAAc,EAAE,IAAY;QACtC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,mBAAmB,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;IACjE,CAAC;IAED,OAAO,CAAC,MAAc;QACpB,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACtD,CAAC;IAED,UAAU,CAAC,MAAc,EAAE,IAAY;QACrC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,kBAAkB,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;IAChE,CAAC;IAED,kBAAkB,CAAC,MAAc,EAAE,YAAoB;QACrD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,2BAA2B,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC,CAAC;IACjF,CAAC;IAED,YAAY,CAAC,MAAe;QAC1B,iFAAiF;QACjF,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IACzF,CAAC;IAED,+BAA+B;IAE/B,eAAe,CAAC,MAAc;QAC5B,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,6BAA6B,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACrE,CAAC;IAED,gBAAgB,CAAC,MAAc;QAC7B,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,8BAA8B,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACtE,CAAC;CACF","sourcesContent":["import { MfaSetupInitResult, MfaSetupVerifyResult } from '../../types/Interface/api/mfa/mfa';\nimport { Resource } from '../Resource';\n\nexport class UserMfa extends Resource {\n setupInit(userId: number, userEmail: string): Promise<MfaSetupInitResult> {\n return this.axios.$post('/mfa/setup/init', { userId, userEmail });\n }\n\n setupVerify(userId: number, code: string): Promise<MfaSetupVerifyResult> {\n return this.axios.$post('/mfa/setup/verify', { userId, code });\n }\n\n disable(userId: number): Promise<boolean> {\n return this.axios.$post('/mfa/disable', { userId });\n }\n\n verifyCode(userId: number, code: string): Promise<{ success: boolean; token?: string }> {\n return this.axios.$post('/mfa/verify/code', { userId, code });\n }\n\n verifyRecoveryCode(userId: number, recoveryCode: string): Promise<{ success: boolean; token?: string }> {\n return this.axios.$post('/mfa/verify/recovery-code', { userId, recoveryCode });\n }\n\n isMfaEnabled(userId?: number): Promise<{ isEnabled: boolean }> {\n // Si userId est fourni, l'envoyer en query param, sinon vérifier l'user connecté\n return this.axios.$get('/mfa/is-enabled', userId ? { params: { userId } } : undefined);\n }\n\n ///// Mobile Approval MFA /////\n\n enableMobileMfa(userId: number): Promise<void> {\n return this.axios.$post('/mfa/enable/mobile-approval', { userId });\n }\n\n disableMobileMfa(userId: number): Promise<void> {\n return this.axios.$post('/mfa/disable/mobile-approval', { userId });\n }\n}\n"]}
@@ -126,7 +126,7 @@ export const CardGroup = [
126
126
  {
127
127
  id: CardGroupEnum.CUT_OFF,
128
128
  label: 'Cut Off',
129
- types: [CardType.CUT_OFF],
129
+ types: [CardType.CUT_OFF, CardType.CUT_OFF_ORI_M_1],
130
130
  roles: [Role.ACCOUNTANT],
131
131
  maxByDay: 3,
132
132
  teamType: TeamType.CUT_OFF,
@@ -1 +1 @@
1
- {"version":3,"file":"Card.js","sourceRoot":"","sources":["../../../../ts/types/Enum/Card.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,MAAM,CAAN,IAAY,QAiCX;AAjCD,WAAY,QAAQ;IAClB,yDAAiB,CAAA;IACjB,mFAA8B,CAAA;IAC9B,iFAA6B,CAAA;IAC7B,iFAA6B,CAAA;IAC7B,yEAAyB,CAAA;IACzB,6DAAmB,CAAA;IACnB,4BAA4B;IAC5B,qGAAuC,CAAA;IACvC,+EAA4B,CAAA;IAC5B,oEAAuB,CAAA;IACvB,sEAAwB,CAAA;IACxB,oEAAuB,CAAA;IACvB,8EAA4B,CAAA;IAC5B,8FAAoC,CAAA;IACpC,8DAAoB,CAAA;IACpB,4EAA2B,CAAA;IAC3B,sDAAgB,CAAA;IAChB,4EAA2B,CAAA;IAC3B,sCAAQ,CAAA;IACR,8EAA4B,CAAA;IAC5B,8CAAY,CAAA;IACZ,kFAA8B,CAAA;IAC9B,4EAA2B,CAAA;IAC3B,kFAA8B,CAAA;IAC9B,0EAA0B,CAAA;IAC1B,wFAAiC,CAAA;IACjC,8FA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AA+B;QACtC,QAAQ,EAAE,MAAM;QAChB,OAAO,EAAE,aAAa,CAAC,GAAG;KAC3B;IACD;QACE,EAAE,EAAE,QAAQ,CAAC,GAAG;QAChB,KAAK,EAAE,KAAK;QACZ,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,aAAa,CAAC,GAAG;KAC3B;IACD;QACE,EAAE,EAAE,QAAQ,CAAC,uBAAuB;QACpC,KAAK,EAAE,iCAAiC;QACxC,QAAQ,EAAE,MAAM;QAChB,OAAO,EAAE,aAAa,CAAC,GAAG;KAC3B;IACD;QACE,EAAE,EAAE,QAAQ,CAAC,OAAO;QACpB,KAAK,EAAE,SAAS;QAChB,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,aAAa,CAAC,OAAO;KAC/B;IACD;QACE,EAAE,EAAE,QAAQ,CAAC,kCAAkC;QAC/C,KAAK,EAAE,4BAA4B;QACnC,QAAQ,EAAE,MAAM;QAChB,OAAO,EAAE,aAAa,CAAC,SAAS;KACjC;IACD;QACE,EAAE,EAAE,QAAQ,CAAC,+BAA+B;QAC5C,KAAK,EAAE,0BAA0B;QACjC,QAAQ,EAAE,MAAM;QAChB,OAAO,EAAE,aAAa,CAAC,SAAS;KACjC;IACD;QACE,EAAE,EAAE,QAAQ,CAAC,eAAe;QAC5B,KAAK,EAAE,iBAAiB;QACxB,QAAQ,EAAE,OAAO;QACjB,OAAO,EAAE,aAAa,CAAC,OAAO;KAC/B;CACO,CAAC","sourcesContent":["import { Role } from './Role';\nimport { TeamType } from './TeamType';\n\nexport enum CardType {\n BALANCE_SHEET = 1,\n BALANCE_SHEET_INTERMEDIATE = 2,\n BALANCE_SHEET_PREVISIONAL = 3,\n BALANCE_SHEET_LIQUIDATION = 4,\n BALANCE_SHEET_EXPRESS = 5,\n VAT_PREPARATION = 6,\n // REINFORCED_CHECKLIST = 7,\n CHECK_BALANCE_ANNOTATION_NEW_CLIENT = 8,\n CHECK_BALANCE_ANNOTATION = 9,\n SETUP_BANK_ACCOUNT = 10, // Mise en place banque\n UPDATE_BANK_BALANCE = 11, // MAJ du solde bancaire\n UPDATE_ANNOTATIONS = 12, // MAJ Annotations\n CONTROL_REVISION_SURVEY = 13, // Contrôle/Revision/Sondage\n SETUP_AND_INTEGRATION_N_MINUS_1 = 14, // Paramétrage & Intégration N-1\n VAT_REFUSED_SIE = 15, // TVA Refus SIE\n ADVANCE_IS_PREPARATION = 16, // Acompte IS préparation\n VAT_EXPRESS = 17, // TVA EXPRESS\n ADVANCE_IS_REFUSED_SIE = 18, // Acompte IS Refus SIE\n CLR = 19, // CLR\n CLR_EXCEPTIONAL_MISSION = 20, // CLR mission exceptionnelle (V2)\n CUT_OFF = 21, // Cut Off\n BALANCE_SHEET_PREPARATION = 22, // Préparation et Formalisation du Bilan\n BALANCE_SHEET_SEND_SIE = 23, // Envoi du bilan SIE\n BALANCE_SHEET_REFUSED_SIE = 24, // Bilan Refus SIE\n VAT_REFUSED_BY_CLIENT = 25, // TVA Refus client\n ADVANCE_IS_REFUSED_BY_CLIENT = 26, // Acompte IS Refus client\n BALANCE_SHEET_REFUSED_BY_CLIENT = 27, // Bilan Refus client\n ADVANCE_SIMPLIFIED_VAT_PREPARATION = 28, // Acompte de TVA préparation\n ADVANCE_SIMPLIFIED_VAT_SEND_SIE = 29, // Acompte de TVA envoi SIE\n VAT_SEND_SIE = 30, // TVA envoi SIE\n ADVANCE_IS_SEND_SIE = 31, // Acompte IS envoi SIE\n CUT_OFF_ORI_M_1 = 32, // Cut-off ORI M-1\n}\n\nexport enum CardState {\n TODO = 1,\n IN_PROGRESS = 2,\n DONE = 3,\n NOT_DONE = 4,\n WAITING_CLIENT = 5,\n INCOMPLETE = 6\n}\n\nexport enum CardGroupEnum {\n BALANCE_SHEET_GROUP = 1,\n VAT_GROUP = 2,\n ACCEPTATION_GROUP = 4,\n CARRY_FORWARD = 5, // A nouveaux\n BANK = 6,\n ANNOTATION = 7,\n CLR = 8,\n CUT_OFF = 9,\n ADVANCE_IS_GROUP = 10,\n}\n\nexport interface CardGroupType {\n id: CardGroupEnum;\n label: string;\n types: CardType[];\n roles: Role[];\n maxByDay?: number;\n teamType: TeamType;\n}\n\nexport const CardGroup: readonly CardGroupType[] = [\n {\n id: CardGroupEnum.BALANCE_SHEET_GROUP,\n label: 'Bilans',\n types: [\n CardType.BALANCE_SHEET_PREPARATION,\n CardType.BALANCE_SHEET_SEND_SIE,\n CardType.BALANCE_SHEET_REFUSED_SIE,\n CardType.BALANCE_SHEET_REFUSED_BY_CLIENT\n ],\n roles: [Role.ACCOUNTANT],\n teamType: TeamType.BALANCESHEET,\n maxByDay: 3,\n },\n {\n id: CardGroupEnum.VAT_GROUP,\n label: 'Déclarations',\n types: [\n CardType.VAT_PREPARATION,\n CardType.VAT_SEND_SIE,\n CardType.VAT_REFUSED_SIE,\n CardType.VAT_REFUSED_BY_CLIENT,\n CardType.VAT_EXPRESS,\n CardType.ADVANCE_SIMPLIFIED_VAT_PREPARATION,\n CardType.ADVANCE_SIMPLIFIED_VAT_SEND_SIE,\n ],\n roles: [Role.ACCOUNTANT],\n teamType: TeamType.VAT,\n maxByDay: 6,\n },\n {\n id: CardGroupEnum.ADVANCE_IS_GROUP,\n label: 'Acomptes IS',\n types: [\n CardType.ADVANCE_IS_PREPARATION,\n CardType.ADVANCE_IS_SEND_SIE,\n CardType.ADVANCE_IS_REFUSED_SIE,\n CardType.ADVANCE_IS_REFUSED_BY_CLIENT,\n ],\n roles: [Role.ACCOUNTANT],\n teamType: TeamType.VAT,\n maxByDay: 4,\n },\n {\n id: CardGroupEnum.BANK,\n label: 'Banque',\n types: [CardType.SETUP_BANK_ACCOUNT, CardType.UPDATE_BANK_BALANCE],\n roles: [Role.ACCOUNTANT],\n maxByDay: 3,\n teamType: TeamType.BANK,\n },\n {\n id: CardGroupEnum.ANNOTATION,\n label: 'Annotations',\n types: [CardType.UPDATE_ANNOTATIONS, CardType.CONTROL_REVISION_SURVEY],\n roles: [Role.ACCOUNTANT],\n maxByDay: 3,\n teamType: TeamType.ANNOTATION,\n },\n {\n id: CardGroupEnum.CLR,\n label: 'CLR',\n types: [CardType.CLR, CardType.CLR_EXCEPTIONAL_MISSION, CardType.SETUP_AND_INTEGRATION_N_MINUS_1],\n roles: [Role.ACCOUNTANT],\n maxByDay: 3,\n teamType: TeamType.CLR,\n },\n {\n id: CardGroupEnum.CUT_OFF,\n label: 'Cut Off',\n types: [CardType.CUT_OFF],\n roles: [Role.ACCOUNTANT],\n maxByDay: 3,\n teamType: TeamType.CUT_OFF,\n },\n] as const;\n\nexport const CardTypeLabel = [\n {\n id: CardType.BALANCE_SHEET,\n label: 'Bilan',\n refLabel: 'B',\n groupId: CardGroupEnum.BALANCE_SHEET_GROUP,\n },\n {\n id: CardType.BALANCE_SHEET_INTERMEDIATE,\n label: 'Bilan inter.',\n refLabel: 'BI',\n groupId: CardGroupEnum.BALANCE_SHEET_GROUP,\n },\n {\n id: CardType.BALANCE_SHEET_PREVISIONAL,\n label: 'Bilan prévi.',\n refLabel: 'BP',\n groupId: CardGroupEnum.BALANCE_SHEET_GROUP,\n },\n {\n id: CardType.BALANCE_SHEET_LIQUIDATION,\n label: 'Bilan liquid.',\n refLabel: 'BL',\n groupId: CardGroupEnum.BALANCE_SHEET_GROUP,\n },\n {\n id: CardType.BALANCE_SHEET_EXPRESS,\n label: 'Bilan express',\n refLabel: 'BE',\n groupId: CardGroupEnum.BALANCE_SHEET_GROUP,\n },\n {\n id: CardType.BALANCE_SHEET_PREPARATION,\n label: 'Préparation et Formalisation du Bilan',\n refLabel: 'PFB',\n groupId: CardGroupEnum.BALANCE_SHEET_GROUP,\n },\n {\n id: CardType.BALANCE_SHEET_SEND_SIE,\n label: 'Envoi du bilan SIE',\n refLabel: 'EBS',\n groupId: CardGroupEnum.BALANCE_SHEET_GROUP,\n },\n {\n id: CardType.BALANCE_SHEET_REFUSED_SIE,\n label: 'Bilan Refus SIE',\n refLabel: 'BRS',\n groupId: CardGroupEnum.BALANCE_SHEET_GROUP,\n },\n {\n id: CardType.BALANCE_SHEET_REFUSED_BY_CLIENT,\n label: 'Bilan Refus client',\n refLabel: 'BRC',\n groupId: CardGroupEnum.BALANCE_SHEET_GROUP,\n },\n {\n id: CardType.VAT_PREPARATION,\n label: 'Préparation TVA',\n refLabel: 'TVAP',\n groupId: CardGroupEnum.VAT_GROUP,\n },\n {\n id: CardType.VAT_SEND_SIE,\n label: 'Envoi TVA SIE',\n refLabel: 'TVAS',\n groupId: CardGroupEnum.VAT_GROUP,\n },\n {\n id: CardType.VAT_EXPRESS,\n label: 'TVA EXPRESS',\n refLabel: 'TVAE',\n groupId: CardGroupEnum.VAT_GROUP,\n },\n {\n id: CardType.VAT_REFUSED_SIE,\n label: 'TVA Refus SIE',\n refLabel: 'TVARS',\n groupId: CardGroupEnum.VAT_GROUP,\n },\n {\n id: CardType.VAT_REFUSED_BY_CLIENT,\n label: 'TVA Refus client',\n refLabel: 'TVARC',\n groupId: CardGroupEnum.VAT_GROUP,\n },\n {\n id: CardType.ADVANCE_IS_PREPARATION,\n label: 'Acompte IS préparation',\n refLabel: 'AIS',\n groupId: CardGroupEnum.ADVANCE_IS_GROUP,\n },\n {\n id: CardType.ADVANCE_IS_SEND_SIE,\n label: 'Acompte IS envoi SIE',\n refLabel: 'AIS-SIE',\n groupId: CardGroupEnum.ADVANCE_IS_GROUP,\n },\n {\n id: CardType.ADVANCE_IS_REFUSED_SIE,\n label: 'Acompte IS Refus SIE',\n refLabel: 'ARS',\n groupId: CardGroupEnum.ADVANCE_IS_GROUP,\n },\n {\n id: CardType.ADVANCE_IS_REFUSED_BY_CLIENT,\n label: 'Acompte IS Refus Client',\n refLabel: 'ARC',\n groupId: CardGroupEnum.ADVANCE_IS_GROUP,\n },\n {\n id: CardType.CHECK_BALANCE_ANNOTATION_NEW_CLIENT,\n label: 'Contrôle solde bancaire & mise en place annotation nouveau client',\n refLabel: 'LABNC',\n groupId: CardGroupEnum.ACCEPTATION_GROUP,\n },\n {\n id: CardType.CHECK_BALANCE_ANNOTATION,\n label: 'Contrôle solde bancaire & contrôle annotations client',\n refLabel: 'LABC',\n groupId: CardGroupEnum.ACCEPTATION_GROUP,\n },\n {\n id: CardType.SETUP_BANK_ACCOUNT,\n label: 'Mise en place banque',\n refLabel: 'MPB',\n groupId: CardGroupEnum.BANK,\n },\n {\n id: CardType.UPDATE_BANK_BALANCE,\n label: 'MAJ du solde bancaire',\n refLabel: 'MSB',\n groupId: CardGroupEnum.BANK,\n },\n {\n id: CardType.UPDATE_ANNOTATIONS,\n label: 'MAJ Annotations',\n refLabel: 'MA',\n groupId: CardGroupEnum.ANNOTATION,\n },\n {\n id: CardType.CONTROL_REVISION_SURVEY,\n label: 'Contrôle/Revision/Sondage',\n refLabel: 'CRS',\n groupId: CardGroupEnum.ANNOTATION,\n },\n {\n id: CardType.SETUP_AND_INTEGRATION_N_MINUS_1,\n label: 'Paramétrage & Intégration N-1',\n refLabel: 'PIN1',\n groupId: CardGroupEnum.CLR,\n },\n {\n id: CardType.CLR,\n label: 'CLR',\n refLabel: 'CLR',\n groupId: CardGroupEnum.CLR,\n },\n {\n id: CardType.CLR_EXCEPTIONAL_MISSION,\n label: 'CLR mission exceptionnelle (V2)',\n refLabel: 'CLRM',\n groupId: CardGroupEnum.CLR,\n },\n {\n id: CardType.CUT_OFF,\n label: 'Cut Off',\n refLabel: 'CO',\n groupId: CardGroupEnum.CUT_OFF,\n },\n {\n id: CardType.ADVANCE_SIMPLIFIED_VAT_PREPARATION,\n label: 'Acompte de TVA préparation',\n refLabel: 'AVTP',\n groupId: CardGroupEnum.VAT_GROUP,\n },\n {\n id: CardType.ADVANCE_SIMPLIFIED_VAT_SEND_SIE,\n label: 'Acompte de TVA envoi SIE',\n refLabel: 'AVTS',\n groupId: CardGroupEnum.VAT_GROUP,\n },\n {\n id: CardType.CUT_OFF_ORI_M_1,\n label: 'Cut-off ORI M-1',\n refLabel: 'COOM1',\n groupId: CardGroupEnum.CUT_OFF,\n },\n] as const;\n\nexport interface UserCardsStats {\n idType: CardType;\n nbTodo: number;\n nbDone: number;\n nbInProgress: number;\n nbNotDone: number;\n nbPostponed: number;\n}\n\nexport interface CardsStatsGroup {\n idGroup: CardGroupEnum;\n totalTodo: number;\n totalDone: number;\n totalInProgress: number;\n totalNotDone: number;\n totalPostponed: number;\n averageTime: number;\n details: UserCardsStats[];\n}\n\nexport interface InternalCardStats {\n societies: number[];\n type: string;\n}\n"]}
1
+ {"version":3,"file":"Card.js","sourceRoot":"","sources":["../../../../ts/types/Enum/Card.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,MAAM,CAAN,IAAY,QAiCX;AAjCD,WAAY,QAAQ;IAClB,yDAAiB,CAAA;IACjB,mFAA8B,CAAA;IAC9B,iFAA6B,CAAA;IAC7B,iFAA6B,CAAA;IAC7B,yEAAyB,CAAA;IACzB,6DAAmB,CAAA;IACnB,4BAA4B;IAC5B,qGAAuC,CAAA;IACvC,+EAA4B,CAAA;IAC5B,oEAAuB,CAAA;IACvB,sEAAwB,CAAA;IACxB,oEAAuB,CAAA;IACvB,8EAA4B,CAAA;IAC5B,8FAAoC,CAAA;IACpC,8DAAoB,CAAA;IACpB,4EAA2B,CAAA;IAC3B,sDAAgB,CAAA;IAChB,4EAA2B,CAAA;IAC3B,sCAAQ,CAAA;IACR,8EAA4B,CAAA;IAC5B,8CAAY,CAAA;IACZ,kFAA8B,CAAA;IAC9B,4EAA2B,CAAA;IAC3B,kFAA8B,CAAA;IAC9B,0EAA0B,CAAA;IAC1B,wFAAiC,CAAA;IACjC,8FAAoC,CAAA;IACpC,oGAAuC,CAAA;IACvC,8FAAoC,CAAA;IACpC,wDAAiB,CAAA;IACjB,sEAAwB,CAAA;IACxB,8DAAoB,CAAA;AACtB,CAAC,EAjCW,QAAQ,KAAR,QAAQ,QAiCnB;AAED,MAAM,CAAN,IAAY,SAOX;AAPD,WAA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,EAAE,aAAa,CAAC,GAAG;KAC3B;IACD;QACE,EAAE,EAAE,QAAQ,CAAC,uBAAuB;QACpC,KAAK,EAAE,iCAAiC;QACxC,QAAQ,EAAE,MAAM;QAChB,OAAO,EAAE,aAAa,CAAC,GAAG;KAC3B;IACD;QACE,EAAE,EAAE,QAAQ,CAAC,OAAO;QACpB,KAAK,EAAE,SAAS;QAChB,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,aAAa,CAAC,OAAO;KAC/B;IACD;QACE,EAAE,EAAE,QAAQ,CAAC,kCAAkC;QAC/C,KAAK,EAAE,4BAA4B;QACnC,QAAQ,EAAE,MAAM;QAChB,OAAO,EAAE,aAAa,CAAC,SAAS;KACjC;IACD;QACE,EAAE,EAAE,QAAQ,CAAC,+BAA+B;QAC5C,KAAK,EAAE,0BAA0B;QACjC,QAAQ,EAAE,MAAM;QAChB,OAAO,EAAE,aAAa,CAAC,SAAS;KACjC;IACD;QACE,EAAE,EAAE,QAAQ,CAAC,eAAe;QAC5B,KAAK,EAAE,iBAAiB;QACxB,QAAQ,EAAE,OAAO;QACjB,OAAO,EAAE,aAAa,CAAC,OAAO;KAC/B;CACO,CAAC","sourcesContent":["import { Role } from './Role';\nimport { TeamType } from './TeamType';\n\nexport enum CardType {\n BALANCE_SHEET = 1,\n BALANCE_SHEET_INTERMEDIATE = 2,\n BALANCE_SHEET_PREVISIONAL = 3,\n BALANCE_SHEET_LIQUIDATION = 4,\n BALANCE_SHEET_EXPRESS = 5,\n VAT_PREPARATION = 6,\n // REINFORCED_CHECKLIST = 7,\n CHECK_BALANCE_ANNOTATION_NEW_CLIENT = 8,\n CHECK_BALANCE_ANNOTATION = 9,\n SETUP_BANK_ACCOUNT = 10, // Mise en place banque\n UPDATE_BANK_BALANCE = 11, // MAJ du solde bancaire\n UPDATE_ANNOTATIONS = 12, // MAJ Annotations\n CONTROL_REVISION_SURVEY = 13, // Contrôle/Revision/Sondage\n SETUP_AND_INTEGRATION_N_MINUS_1 = 14, // Paramétrage & Intégration N-1\n VAT_REFUSED_SIE = 15, // TVA Refus SIE\n ADVANCE_IS_PREPARATION = 16, // Acompte IS préparation\n VAT_EXPRESS = 17, // TVA EXPRESS\n ADVANCE_IS_REFUSED_SIE = 18, // Acompte IS Refus SIE\n CLR = 19, // CLR\n CLR_EXCEPTIONAL_MISSION = 20, // CLR mission exceptionnelle (V2)\n CUT_OFF = 21, // Cut Off\n BALANCE_SHEET_PREPARATION = 22, // Préparation et Formalisation du Bilan\n BALANCE_SHEET_SEND_SIE = 23, // Envoi du bilan SIE\n BALANCE_SHEET_REFUSED_SIE = 24, // Bilan Refus SIE\n VAT_REFUSED_BY_CLIENT = 25, // TVA Refus client\n ADVANCE_IS_REFUSED_BY_CLIENT = 26, // Acompte IS Refus client\n BALANCE_SHEET_REFUSED_BY_CLIENT = 27, // Bilan Refus client\n ADVANCE_SIMPLIFIED_VAT_PREPARATION = 28, // Acompte de TVA préparation\n ADVANCE_SIMPLIFIED_VAT_SEND_SIE = 29, // Acompte de TVA envoi SIE\n VAT_SEND_SIE = 30, // TVA envoi SIE\n ADVANCE_IS_SEND_SIE = 31, // Acompte IS envoi SIE\n CUT_OFF_ORI_M_1 = 32, // Cut-off ORI M-1\n}\n\nexport enum CardState {\n TODO = 1,\n IN_PROGRESS = 2,\n DONE = 3,\n NOT_DONE = 4,\n WAITING_CLIENT = 5,\n INCOMPLETE = 6\n}\n\nexport enum CardGroupEnum {\n BALANCE_SHEET_GROUP = 1,\n VAT_GROUP = 2,\n ACCEPTATION_GROUP = 4,\n CARRY_FORWARD = 5, // A nouveaux\n BANK = 6,\n ANNOTATION = 7,\n CLR = 8,\n CUT_OFF = 9,\n ADVANCE_IS_GROUP = 10,\n}\n\nexport interface CardGroupType {\n id: CardGroupEnum;\n label: string;\n types: CardType[];\n roles: Role[];\n maxByDay?: number;\n teamType: TeamType;\n}\n\nexport const CardGroup: readonly CardGroupType[] = [\n {\n id: CardGroupEnum.BALANCE_SHEET_GROUP,\n label: 'Bilans',\n types: [\n CardType.BALANCE_SHEET_PREPARATION,\n CardType.BALANCE_SHEET_SEND_SIE,\n CardType.BALANCE_SHEET_REFUSED_SIE,\n CardType.BALANCE_SHEET_REFUSED_BY_CLIENT\n ],\n roles: [Role.ACCOUNTANT],\n teamType: TeamType.BALANCESHEET,\n maxByDay: 3,\n },\n {\n id: CardGroupEnum.VAT_GROUP,\n label: 'Déclarations',\n types: [\n CardType.VAT_PREPARATION,\n CardType.VAT_SEND_SIE,\n CardType.VAT_REFUSED_SIE,\n CardType.VAT_REFUSED_BY_CLIENT,\n CardType.VAT_EXPRESS,\n CardType.ADVANCE_SIMPLIFIED_VAT_PREPARATION,\n CardType.ADVANCE_SIMPLIFIED_VAT_SEND_SIE,\n ],\n roles: [Role.ACCOUNTANT],\n teamType: TeamType.VAT,\n maxByDay: 6,\n },\n {\n id: CardGroupEnum.ADVANCE_IS_GROUP,\n label: 'Acomptes IS',\n types: [\n CardType.ADVANCE_IS_PREPARATION,\n CardType.ADVANCE_IS_SEND_SIE,\n CardType.ADVANCE_IS_REFUSED_SIE,\n CardType.ADVANCE_IS_REFUSED_BY_CLIENT,\n ],\n roles: [Role.ACCOUNTANT],\n teamType: TeamType.VAT,\n maxByDay: 4,\n },\n {\n id: CardGroupEnum.BANK,\n label: 'Banque',\n types: [CardType.SETUP_BANK_ACCOUNT, CardType.UPDATE_BANK_BALANCE],\n roles: [Role.ACCOUNTANT],\n maxByDay: 3,\n teamType: TeamType.BANK,\n },\n {\n id: CardGroupEnum.ANNOTATION,\n label: 'Annotations',\n types: [CardType.UPDATE_ANNOTATIONS, CardType.CONTROL_REVISION_SURVEY],\n roles: [Role.ACCOUNTANT],\n maxByDay: 3,\n teamType: TeamType.ANNOTATION,\n },\n {\n id: CardGroupEnum.CLR,\n label: 'CLR',\n types: [CardType.CLR, CardType.CLR_EXCEPTIONAL_MISSION, CardType.SETUP_AND_INTEGRATION_N_MINUS_1],\n roles: [Role.ACCOUNTANT],\n maxByDay: 3,\n teamType: TeamType.CLR,\n },\n {\n id: CardGroupEnum.CUT_OFF,\n label: 'Cut Off',\n types: [CardType.CUT_OFF, CardType.CUT_OFF_ORI_M_1],\n roles: [Role.ACCOUNTANT],\n maxByDay: 3,\n teamType: TeamType.CUT_OFF,\n },\n] as const;\n\nexport const CardTypeLabel = [\n {\n id: CardType.BALANCE_SHEET,\n label: 'Bilan',\n refLabel: 'B',\n groupId: CardGroupEnum.BALANCE_SHEET_GROUP,\n },\n {\n id: CardType.BALANCE_SHEET_INTERMEDIATE,\n label: 'Bilan inter.',\n refLabel: 'BI',\n groupId: CardGroupEnum.BALANCE_SHEET_GROUP,\n },\n {\n id: CardType.BALANCE_SHEET_PREVISIONAL,\n label: 'Bilan prévi.',\n refLabel: 'BP',\n groupId: CardGroupEnum.BALANCE_SHEET_GROUP,\n },\n {\n id: CardType.BALANCE_SHEET_LIQUIDATION,\n label: 'Bilan liquid.',\n refLabel: 'BL',\n groupId: CardGroupEnum.BALANCE_SHEET_GROUP,\n },\n {\n id: CardType.BALANCE_SHEET_EXPRESS,\n label: 'Bilan express',\n refLabel: 'BE',\n groupId: CardGroupEnum.BALANCE_SHEET_GROUP,\n },\n {\n id: CardType.BALANCE_SHEET_PREPARATION,\n label: 'Préparation et Formalisation du Bilan',\n refLabel: 'PFB',\n groupId: CardGroupEnum.BALANCE_SHEET_GROUP,\n },\n {\n id: CardType.BALANCE_SHEET_SEND_SIE,\n label: 'Envoi du bilan SIE',\n refLabel: 'EBS',\n groupId: CardGroupEnum.BALANCE_SHEET_GROUP,\n },\n {\n id: CardType.BALANCE_SHEET_REFUSED_SIE,\n label: 'Bilan Refus SIE',\n refLabel: 'BRS',\n groupId: CardGroupEnum.BALANCE_SHEET_GROUP,\n },\n {\n id: CardType.BALANCE_SHEET_REFUSED_BY_CLIENT,\n label: 'Bilan Refus client',\n refLabel: 'BRC',\n groupId: CardGroupEnum.BALANCE_SHEET_GROUP,\n },\n {\n id: CardType.VAT_PREPARATION,\n label: 'Préparation TVA',\n refLabel: 'TVAP',\n groupId: CardGroupEnum.VAT_GROUP,\n },\n {\n id: CardType.VAT_SEND_SIE,\n label: 'Envoi TVA SIE',\n refLabel: 'TVAS',\n groupId: CardGroupEnum.VAT_GROUP,\n },\n {\n id: CardType.VAT_EXPRESS,\n label: 'TVA EXPRESS',\n refLabel: 'TVAE',\n groupId: CardGroupEnum.VAT_GROUP,\n },\n {\n id: CardType.VAT_REFUSED_SIE,\n label: 'TVA Refus SIE',\n refLabel: 'TVARS',\n groupId: CardGroupEnum.VAT_GROUP,\n },\n {\n id: CardType.VAT_REFUSED_BY_CLIENT,\n label: 'TVA Refus client',\n refLabel: 'TVARC',\n groupId: CardGroupEnum.VAT_GROUP,\n },\n {\n id: CardType.ADVANCE_IS_PREPARATION,\n label: 'Acompte IS préparation',\n refLabel: 'AIS',\n groupId: CardGroupEnum.ADVANCE_IS_GROUP,\n },\n {\n id: CardType.ADVANCE_IS_SEND_SIE,\n label: 'Acompte IS envoi SIE',\n refLabel: 'AIS-SIE',\n groupId: CardGroupEnum.ADVANCE_IS_GROUP,\n },\n {\n id: CardType.ADVANCE_IS_REFUSED_SIE,\n label: 'Acompte IS Refus SIE',\n refLabel: 'ARS',\n groupId: CardGroupEnum.ADVANCE_IS_GROUP,\n },\n {\n id: CardType.ADVANCE_IS_REFUSED_BY_CLIENT,\n label: 'Acompte IS Refus Client',\n refLabel: 'ARC',\n groupId: CardGroupEnum.ADVANCE_IS_GROUP,\n },\n {\n id: CardType.CHECK_BALANCE_ANNOTATION_NEW_CLIENT,\n label: 'Contrôle solde bancaire & mise en place annotation nouveau client',\n refLabel: 'LABNC',\n groupId: CardGroupEnum.ACCEPTATION_GROUP,\n },\n {\n id: CardType.CHECK_BALANCE_ANNOTATION,\n label: 'Contrôle solde bancaire & contrôle annotations client',\n refLabel: 'LABC',\n groupId: CardGroupEnum.ACCEPTATION_GROUP,\n },\n {\n id: CardType.SETUP_BANK_ACCOUNT,\n label: 'Mise en place banque',\n refLabel: 'MPB',\n groupId: CardGroupEnum.BANK,\n },\n {\n id: CardType.UPDATE_BANK_BALANCE,\n label: 'MAJ du solde bancaire',\n refLabel: 'MSB',\n groupId: CardGroupEnum.BANK,\n },\n {\n id: CardType.UPDATE_ANNOTATIONS,\n label: 'MAJ Annotations',\n refLabel: 'MA',\n groupId: CardGroupEnum.ANNOTATION,\n },\n {\n id: CardType.CONTROL_REVISION_SURVEY,\n label: 'Contrôle/Revision/Sondage',\n refLabel: 'CRS',\n groupId: CardGroupEnum.ANNOTATION,\n },\n {\n id: CardType.SETUP_AND_INTEGRATION_N_MINUS_1,\n label: 'Paramétrage & Intégration N-1',\n refLabel: 'PIN1',\n groupId: CardGroupEnum.CLR,\n },\n {\n id: CardType.CLR,\n label: 'CLR',\n refLabel: 'CLR',\n groupId: CardGroupEnum.CLR,\n },\n {\n id: CardType.CLR_EXCEPTIONAL_MISSION,\n label: 'CLR mission exceptionnelle (V2)',\n refLabel: 'CLRM',\n groupId: CardGroupEnum.CLR,\n },\n {\n id: CardType.CUT_OFF,\n label: 'Cut Off',\n refLabel: 'CO',\n groupId: CardGroupEnum.CUT_OFF,\n },\n {\n id: CardType.ADVANCE_SIMPLIFIED_VAT_PREPARATION,\n label: 'Acompte de TVA préparation',\n refLabel: 'AVTP',\n groupId: CardGroupEnum.VAT_GROUP,\n },\n {\n id: CardType.ADVANCE_SIMPLIFIED_VAT_SEND_SIE,\n label: 'Acompte de TVA envoi SIE',\n refLabel: 'AVTS',\n groupId: CardGroupEnum.VAT_GROUP,\n },\n {\n id: CardType.CUT_OFF_ORI_M_1,\n label: 'Cut-off ORI M-1',\n refLabel: 'COOM1',\n groupId: CardGroupEnum.CUT_OFF,\n },\n] as const;\n\nexport interface UserCardsStats {\n idType: CardType;\n nbTodo: number;\n nbDone: number;\n nbInProgress: number;\n nbNotDone: number;\n nbPostponed: number;\n}\n\nexport interface CardsStatsGroup {\n idGroup: CardGroupEnum;\n totalTodo: number;\n totalDone: number;\n totalInProgress: number;\n totalNotDone: number;\n totalPostponed: number;\n averageTime: number;\n details: UserCardsStats[];\n}\n\nexport interface InternalCardStats {\n societies: number[];\n type: string;\n}\n"]}
@@ -13,5 +13,6 @@ export interface IGeneralLedgerAccountingEntry {
13
13
  exported?: Date;
14
14
  idAccountingTransaction: number;
15
15
  idBankAccount?: number;
16
+ letter?: string | null;
16
17
  }
17
18
  //# sourceMappingURL=IGeneralLedgerAccountingEntry.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"IGeneralLedgerAccountingEntry.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEtE,MAAM,WAAW,6BAA6B;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,iBAAiB,CAAC;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,QAAQ,CAAC,EAAE,IAAI,CAAC;IAChB,uBAAuB,EAAE,MAAM,CAAC;IAChC,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
1
+ {"version":3,"file":"IGeneralLedgerAccountingEntry.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEtE,MAAM,WAAW,6BAA6B;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,iBAAiB,CAAC;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,QAAQ,CAAC,EAAE,IAAI,CAAC;IAChB,uBAAuB,EAAE,MAAM,CAAC;IAChC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB"}
@@ -1 +1 @@
1
- {"version":3,"file":"IGeneralLedgerAccountingEntry.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.ts"],"names":[],"mappings":"","sourcesContent":["import { AccountingJournal, ILettering, IThirdParty } from '../../..';\n\nexport interface IGeneralLedgerAccountingEntry {\n id: number;\n designation: string;\n invoiceNumber?: string;\n journal: AccountingJournal;\n dateValue: string;\n credit: number;\n debit: number;\n intermediateSolde: number;\n thirdParty?: IThirdParty;\n lettering?: ILettering;\n exported?: Date;\n idAccountingTransaction: number;\n idBankAccount?: number;\n}\n"]}
1
+ {"version":3,"file":"IGeneralLedgerAccountingEntry.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.ts"],"names":[],"mappings":"","sourcesContent":["import { AccountingJournal, ILettering, IThirdParty } from '../../..';\n\nexport interface IGeneralLedgerAccountingEntry {\n id: number;\n designation: string;\n invoiceNumber?: string;\n journal: AccountingJournal;\n dateValue: string;\n credit: number;\n debit: number;\n intermediateSolde: number;\n thirdParty?: IThirdParty;\n lettering?: ILettering;\n exported?: Date;\n idAccountingTransaction: number;\n idBankAccount?: number;\n letter?: string | null;\n}\n"]}