@silexpert/core 1.1.377 → 1.1.379

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 (93) hide show
  1. package/dist/cjs/api/resources/Employee.d.ts +1 -1
  2. package/dist/cjs/api/resources/Employee.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/Employee.js.map +1 -1
  4. package/dist/cjs/api/resources/NafCode.d.ts +3 -2
  5. package/dist/cjs/api/resources/NafCode.d.ts.map +1 -1
  6. package/dist/cjs/api/resources/NafCode.js.map +1 -1
  7. package/dist/cjs/api/resources/SheetMonthSchedule.d.ts +1 -1
  8. package/dist/cjs/api/resources/SheetMonthSchedule.d.ts.map +1 -1
  9. package/dist/cjs/api/resources/SheetMonthSchedule.js.map +1 -1
  10. package/dist/cjs/api/resources/Society.d.ts +2 -1
  11. package/dist/cjs/api/resources/Society.d.ts.map +1 -1
  12. package/dist/cjs/api/resources/Society.js +3 -0
  13. package/dist/cjs/api/resources/Society.js.map +1 -1
  14. package/dist/cjs/types/Enum/Ged.js +1 -1
  15. package/dist/cjs/types/Enum/Ged.js.map +1 -1
  16. package/dist/cjs/types/Enum/ReasonTerminationType.d.ts +2 -1
  17. package/dist/cjs/types/Enum/ReasonTerminationType.d.ts.map +1 -1
  18. package/dist/cjs/types/Enum/ReasonTerminationType.js +7 -1
  19. package/dist/cjs/types/Enum/ReasonTerminationType.js.map +1 -1
  20. package/dist/cjs/types/Interface/api/companyCreationForm/CompanyCreationFormPayload.d.ts +1 -0
  21. package/dist/cjs/types/Interface/api/companyCreationForm/CompanyCreationFormPayload.d.ts.map +1 -1
  22. package/dist/cjs/types/Interface/api/companyCreationForm/CompanyCreationFormPayload.js.map +1 -1
  23. package/dist/cjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.d.ts +2 -1
  24. package/dist/cjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.d.ts.map +1 -1
  25. package/dist/cjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.js +7 -1
  26. package/dist/cjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.js.map +1 -1
  27. package/dist/cjs/types/Interface/api/revision/Query.d.ts +16 -0
  28. package/dist/cjs/types/Interface/api/revision/Query.d.ts.map +1 -1
  29. package/dist/cjs/types/Interface/api/revision/Query.js +126 -30
  30. package/dist/cjs/types/Interface/api/revision/Query.js.map +1 -1
  31. package/dist/cjs/types/Interface/api/society/State.d.ts +14 -0
  32. package/dist/cjs/types/Interface/api/society/State.d.ts.map +1 -0
  33. package/dist/cjs/types/Interface/api/society/State.js +3 -0
  34. package/dist/cjs/types/Interface/api/society/State.js.map +1 -0
  35. package/dist/cjs/types/index.d.ts +1 -0
  36. package/dist/cjs/types/index.d.ts.map +1 -1
  37. package/dist/cjs/types/index.js +1 -0
  38. package/dist/cjs/types/index.js.map +1 -1
  39. package/dist/cjs/utils/bankAccount.js +1 -1
  40. package/dist/cjs/utils/bankAccount.js.map +1 -1
  41. package/dist/mjs/api/resources/Employee.d.ts +1 -1
  42. package/dist/mjs/api/resources/Employee.d.ts.map +1 -1
  43. package/dist/mjs/api/resources/Employee.js.map +1 -1
  44. package/dist/mjs/api/resources/NafCode.d.ts +3 -2
  45. package/dist/mjs/api/resources/NafCode.d.ts.map +1 -1
  46. package/dist/mjs/api/resources/NafCode.js.map +1 -1
  47. package/dist/mjs/api/resources/SheetMonthSchedule.d.ts +1 -1
  48. package/dist/mjs/api/resources/SheetMonthSchedule.d.ts.map +1 -1
  49. package/dist/mjs/api/resources/SheetMonthSchedule.js.map +1 -1
  50. package/dist/mjs/api/resources/Society.d.ts +2 -1
  51. package/dist/mjs/api/resources/Society.d.ts.map +1 -1
  52. package/dist/mjs/api/resources/Society.js +3 -0
  53. package/dist/mjs/api/resources/Society.js.map +1 -1
  54. package/dist/mjs/types/Enum/Ged.js +1 -1
  55. package/dist/mjs/types/Enum/Ged.js.map +1 -1
  56. package/dist/mjs/types/Enum/ReasonTerminationType.d.ts +2 -1
  57. package/dist/mjs/types/Enum/ReasonTerminationType.d.ts.map +1 -1
  58. package/dist/mjs/types/Enum/ReasonTerminationType.js +7 -1
  59. package/dist/mjs/types/Enum/ReasonTerminationType.js.map +1 -1
  60. package/dist/mjs/types/Interface/api/companyCreationForm/CompanyCreationFormPayload.d.ts +1 -0
  61. package/dist/mjs/types/Interface/api/companyCreationForm/CompanyCreationFormPayload.d.ts.map +1 -1
  62. package/dist/mjs/types/Interface/api/companyCreationForm/CompanyCreationFormPayload.js.map +1 -1
  63. package/dist/mjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.d.ts +2 -1
  64. package/dist/mjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.d.ts.map +1 -1
  65. package/dist/mjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.js +9 -2
  66. package/dist/mjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.js.map +1 -1
  67. package/dist/mjs/types/Interface/api/revision/Query.d.ts +16 -0
  68. package/dist/mjs/types/Interface/api/revision/Query.d.ts.map +1 -1
  69. package/dist/mjs/types/Interface/api/revision/Query.js +142 -30
  70. package/dist/mjs/types/Interface/api/revision/Query.js.map +1 -1
  71. package/dist/mjs/types/Interface/api/society/State.d.ts +14 -0
  72. package/dist/mjs/types/Interface/api/society/State.d.ts.map +1 -0
  73. package/dist/mjs/types/Interface/api/society/State.js +2 -0
  74. package/dist/mjs/types/Interface/api/society/State.js.map +1 -0
  75. package/dist/mjs/types/index.d.ts +1 -0
  76. package/dist/mjs/types/index.d.ts.map +1 -1
  77. package/dist/mjs/types/index.js +1 -0
  78. package/dist/mjs/types/index.js.map +1 -1
  79. package/dist/mjs/utils/bankAccount.js +1 -1
  80. package/dist/mjs/utils/bankAccount.js.map +1 -1
  81. package/package.json +1 -1
  82. package/ts/api/resources/Employee.ts +1 -1
  83. package/ts/api/resources/NafCode.ts +3 -2
  84. package/ts/api/resources/SheetMonthSchedule.ts +1 -1
  85. package/ts/api/resources/Society.ts +5 -0
  86. package/ts/types/Enum/Ged.ts +1 -1
  87. package/ts/types/Enum/ReasonTerminationType.ts +7 -1
  88. package/ts/types/Interface/api/companyCreationForm/CompanyCreationFormPayload.ts +1 -0
  89. package/ts/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.ts +6 -1
  90. package/ts/types/Interface/api/revision/Query.ts +219 -141
  91. package/ts/types/Interface/api/society/State.ts +14 -0
  92. package/ts/types/index.ts +1 -0
  93. package/ts/utils/bankAccount.ts +1 -1
@@ -14,452 +14,530 @@ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
14
14
  export class QueryRevision extends RequiredQueryPaginate {
15
15
  @ApiProperty()
16
16
  @IsDate()
17
- startDate: Date;
17
+ startDate: Date;
18
18
 
19
19
  @ApiProperty()
20
20
  @IsDate()
21
- endDate: Date;
21
+ endDate: Date;
22
+
23
+ @ApiPropertyOptional()
24
+ @IsOptional()
25
+ @IsDate()
26
+ previousStartDate?: Date;
27
+
28
+ @ApiPropertyOptional()
29
+ @IsOptional()
30
+ @IsDate()
31
+ previousEndDate?: Date;
32
+
33
+ @ApiPropertyOptional()
34
+ @IsOptional()
35
+ @IsDate()
36
+ nextStartDate?: Date;
37
+
38
+ @ApiPropertyOptional()
39
+ @IsOptional()
40
+ @IsDate()
41
+ nextEndDate?: Date;
22
42
 
23
43
  @ApiProperty()
24
44
  @IsInt()
25
- idSociety: number;
45
+ idSociety: number;
26
46
 
27
47
  @ApiPropertyOptional()
28
- @IsString()
29
48
  @IsOptional()
30
- orderBy?: 'designation' | 'amount' | 'number';
49
+ @IsString()
50
+ orderBy?: 'designation' | 'amount' | 'number';
31
51
 
32
52
  @ApiPropertyOptional()
53
+ @IsOptional()
33
54
  @IsBoolean()
34
55
  @ToBoolean()
35
- @IsOptional()
36
- descending?: boolean;
56
+ descending?: boolean;
37
57
  }
38
58
 
39
59
  export class QueryRevisionThirdParty extends RequiredQueryPaginate {
40
60
  @ApiProperty()
41
61
  @IsDate()
42
- startDate: Date;
62
+ startDate: Date;
43
63
 
44
64
  @ApiProperty()
45
65
  @IsDate()
46
- endDate: Date;
66
+ endDate: Date;
67
+
68
+ @ApiPropertyOptional()
69
+ @IsOptional()
70
+ @IsDate()
71
+ previousStartDate?: Date;
72
+
73
+ @ApiPropertyOptional()
74
+ @IsOptional()
75
+ @IsDate()
76
+ previousEndDate?: Date;
77
+
78
+ @ApiPropertyOptional()
79
+ @IsOptional()
80
+ @IsDate()
81
+ nextStartDate?: Date;
82
+
83
+ @ApiPropertyOptional()
84
+ @IsOptional()
85
+ @IsDate()
86
+ nextEndDate?: Date;
47
87
 
48
88
  @ApiProperty()
49
89
  @IsInt()
50
- idSociety: number;
90
+ idSociety: number;
51
91
 
52
92
  @ApiProperty()
53
93
  @IsNumber()
54
- idThirdPartyType: number;
94
+ idThirdPartyType: number;
55
95
 
56
96
  @ApiPropertyOptional()
57
- @IsString()
58
97
  @IsOptional()
59
- orderBy?: 'designation' | 'amount' | 'number';
98
+ @IsString()
99
+ orderBy?: 'designation' | 'amount' | 'number';
60
100
 
61
101
  @ApiPropertyOptional()
102
+ @IsOptional()
62
103
  @IsBoolean()
63
104
  @ToBoolean()
64
- @IsOptional()
65
- descending?: boolean;
105
+ descending?: boolean;
66
106
  }
67
107
 
68
108
  export class QueryRevisionAccount implements QueryPaginate {
69
109
  @ApiProperty({ default: 1 })
70
110
  @IsNumber()
71
- page: number;
111
+ page: number;
72
112
 
73
113
  @ApiProperty()
74
114
  @IsDate()
75
- startDate: Date;
115
+ startDate: Date;
76
116
 
77
117
  @ApiProperty()
78
118
  @IsDate()
79
- endDate: Date;
119
+ endDate: Date;
80
120
 
81
121
  @ApiPropertyOptional({ default: 25 })
82
122
  @IsNumber()
83
- limit: number;
123
+ limit: number;
84
124
 
85
125
  @ApiPropertyOptional({ default: 'date' })
86
- @IsString()
87
126
  @IsOptional()
88
- orderBy?: 'date' | 'designation' | 'idAccount' | 'debit' | 'credit';
127
+ @IsString()
128
+ orderBy?: 'date' | 'designation' | 'idAccount' | 'debit' | 'credit';
89
129
 
90
130
  @ApiPropertyOptional({ default: true })
131
+ @IsOptional()
91
132
  @IsBoolean()
92
133
  @ToBoolean()
93
- @IsOptional()
94
- descending?: boolean;
134
+ descending?: boolean;
95
135
 
96
136
  @ApiPropertyOptional()
97
- isRevised?: boolean;
137
+ isRevised?: boolean;
98
138
 
99
139
  @ApiProperty()
100
140
  @IsInt()
101
- idSociety: number;
141
+ idSociety: number;
102
142
  }
103
143
 
104
144
  export class QueryRevisionApprobation {
105
145
  @ApiProperty()
106
146
  @IsDate()
107
- startDate: Date;
147
+ startDate: Date;
108
148
 
109
149
  @ApiProperty()
110
150
  @IsDate()
111
- endDate: Date;
151
+ endDate: Date;
112
152
 
113
153
  @ApiProperty()
114
154
  @IsNumber()
115
- idSociety: number;
155
+ idSociety: number;
116
156
 
117
157
  @ApiProperty()
118
158
  @IsBoolean()
119
159
  @ToBoolean()
120
- approvedBySupervisor: boolean;
160
+ approvedBySupervisor: boolean;
121
161
  }
122
162
 
123
163
  export class QueryRevisionAccountComment {
124
164
  @ApiProperty()
125
165
  @IsDate()
126
- startDate: Date;
166
+ startDate: Date;
127
167
 
128
168
  @ApiProperty()
129
169
  @IsDate()
130
- endDate: Date;
170
+ endDate: Date;
131
171
 
132
172
  @ApiProperty()
133
173
  @IsNumber()
134
- idSociety: number;
174
+ idSociety: number;
135
175
 
136
176
  @ApiPropertyOptional()
137
- @IsString()
138
177
  @IsOptional()
139
- comment: string | null;
178
+ @IsString()
179
+ comment: string | null;
140
180
  }
141
181
 
142
182
  export class QueryRevisionAccountControlFile {
143
183
  @ApiProperty()
144
184
  @IsNumber()
145
- idSociety: number;
146
-
185
+ idSociety: number;
186
+
147
187
  @ApiProperty()
148
188
  @IsNumber()
149
- idExercice: number;
189
+ idExercice: number;
150
190
 
151
191
  @ApiProperty()
152
- idFile: number | null;
192
+ idFile: number | null;
153
193
  }
154
194
 
155
195
  export class QueryRevisionMergeIntoAccount {
156
196
  @ApiProperty()
157
197
  @IsDate()
158
- startDate: Date;
198
+ startDate: Date;
159
199
 
160
200
  @ApiProperty()
161
201
  @IsDate()
162
- endDate: Date;
202
+ endDate: Date;
163
203
 
164
204
  @ApiProperty()
165
205
  @IsNumber()
166
- idSociety: number;
206
+ idSociety: number;
167
207
 
168
208
  @ApiPropertyOptional()
169
- @IsArray()
170
209
  @IsOptional()
171
- @IsInt({ each:true })
172
- idAccounts?: Array<number>;
210
+ @IsArray()
211
+ @IsInt({ each: true })
212
+ idAccounts?: Array<number>;
173
213
 
174
214
  @ApiPropertyOptional()
175
- @IsArray()
176
215
  @IsOptional()
177
- @IsInt({ each:true })
178
- idAccountingEntries?: Array<number>;
216
+ @IsArray()
217
+ @IsInt({ each: true })
218
+ idAccountingEntries?: Array<number>;
179
219
  }
180
220
 
181
221
  export class QueryRevisionMergeIntoThirdParty {
182
222
  @ApiProperty()
183
223
  @IsDate()
184
- startDate: Date;
224
+ startDate: Date;
185
225
 
186
226
  @ApiProperty()
187
227
  @IsDate()
188
- endDate: Date;
228
+ endDate: Date;
189
229
 
190
230
  @ApiProperty()
191
231
  @IsNumber()
192
- idSociety: number;
232
+ idSociety: number;
193
233
 
194
234
  @ApiPropertyOptional()
195
- @IsArray()
196
235
  @IsOptional()
197
- @IsInt({ each:true })
198
- idThirdParties?: Array<number>;
236
+ @IsArray()
237
+ @IsInt({ each: true })
238
+ idThirdParties?: Array<number>;
199
239
 
200
240
  @ApiPropertyOptional()
201
- @IsArray()
202
241
  @IsOptional()
203
- @IsInt({ each:true })
204
- idAccountingEntries?: Array<number>;
242
+ @IsArray()
243
+ @IsInt({ each: true })
244
+ idAccountingEntries?: Array<number>;
205
245
  }
206
246
 
207
247
  export class QueryRevisionPaginate {
208
248
  @ApiProperty()
209
249
  @IsDate()
210
- startDate: Date;
250
+ startDate: Date;
211
251
 
212
252
  @ApiProperty()
213
253
  @IsDate()
214
- endDate: Date;
254
+ endDate: Date;
255
+
256
+ @ApiPropertyOptional()
257
+ @IsOptional()
258
+ @IsDate()
259
+ previousStartDate?: Date;
260
+
261
+ @ApiPropertyOptional()
262
+ @IsOptional()
263
+ @IsDate()
264
+ previousEndDate?: Date;
265
+
266
+ @ApiPropertyOptional()
267
+ @IsOptional()
268
+ @IsDate()
269
+ nextStartDate?: Date;
270
+
271
+ @ApiPropertyOptional()
272
+ @IsOptional()
273
+ @IsDate()
274
+ nextEndDate?: Date;
215
275
 
216
276
  @ApiProperty()
217
277
  @IsInt()
218
- idSociety: number;
278
+ idSociety: number;
219
279
 
220
280
  @ApiPropertyOptional()
221
- @IsString()
222
281
  @IsOptional()
223
- orderBy?: 'designation' | 'amount' | 'number';
282
+ @IsString()
283
+ orderBy?: 'designation' | 'amount' | 'number';
224
284
 
225
285
  @ApiPropertyOptional()
286
+ @IsOptional()
226
287
  @IsBoolean()
227
288
  @ToBoolean()
228
- @IsOptional()
229
- descending?: boolean;
289
+ descending?: boolean;
230
290
 
231
291
  // Interface paginate
232
292
  @ApiProperty({ default: 25 })
233
293
  @IsNumber()
234
- limit?: number = 25;
294
+ limit?: number = 25;
235
295
 
236
296
  @ApiProperty({ default: 1 })
237
297
  @IsNumber()
238
- page?: number = 1;
298
+ page?: number = 1;
239
299
  }
240
300
 
241
301
  export class QueryRevisionThirdPartyPaginate {
242
302
  @ApiProperty()
243
303
  @IsNumber()
244
- idThirdPartyType: number;
304
+ idThirdPartyType: number;
245
305
 
246
306
  @ApiProperty()
247
307
  @IsDate()
248
- startDate: Date;
249
-
308
+ startDate: Date;
309
+
250
310
  @ApiProperty()
251
311
  @IsDate()
252
- endDate: Date;
253
-
312
+ endDate: Date;
313
+
314
+ @ApiPropertyOptional()
315
+ @IsOptional()
316
+ @IsDate()
317
+ previousStartDate?: Date;
318
+
319
+ @ApiPropertyOptional()
320
+ @IsOptional()
321
+ @IsDate()
322
+ previousEndDate?: Date;
323
+
324
+ @ApiPropertyOptional()
325
+ @IsOptional()
326
+ @IsDate()
327
+ nextStartDate?: Date;
328
+
329
+ @ApiPropertyOptional()
330
+ @IsOptional()
331
+ @IsDate()
332
+ nextEndDate?: Date;
333
+
254
334
  @ApiProperty()
255
335
  @IsInt()
256
- idSociety: number;
257
-
336
+ idSociety: number;
337
+
258
338
  @ApiPropertyOptional()
259
- @IsString()
260
339
  @IsOptional()
261
- orderBy?: 'designation' | 'amount' | 'number';
262
-
340
+ @IsString()
341
+ orderBy?: 'designation' | 'amount' | 'number';
342
+
263
343
  @ApiPropertyOptional()
344
+ @IsOptional()
264
345
  @IsBoolean()
265
346
  @ToBoolean()
266
- @IsOptional()
267
- descending?: boolean;
268
-
347
+ descending?: boolean;
348
+
269
349
  // Interface paginate
270
350
  @ApiProperty({ default: 25 })
271
351
  @IsNumber()
272
- limit?: number = 25;
273
-
352
+ limit?: number = 25;
353
+
274
354
  @ApiProperty({ default: 1 })
275
355
  @IsNumber()
276
- page?: number = 1;
356
+ page?: number = 1;
277
357
  }
278
358
 
279
359
  export class QueryRevisionSearchEntries {
280
360
  // Mandatory
281
361
  @ApiProperty()
282
362
  @IsNumber()
283
- idSociety: number;
363
+ idSociety: number;
284
364
 
285
365
  @ApiProperty()
286
366
  @IsDate()
287
- startDate: Date;
367
+ startDate: Date;
288
368
 
289
369
  @ApiProperty()
290
370
  @IsDate()
291
- endDate: Date;
371
+ endDate: Date;
292
372
 
293
373
  // Optional
294
374
  @ApiPropertyOptional()
295
- @IsNumber()
296
375
  @IsOptional()
297
- idThirdParty?: number;
376
+ @IsNumber()
377
+ idThirdParty?: number;
298
378
 
299
379
  @ApiPropertyOptional()
300
- @IsNumber()
301
380
  @IsOptional()
302
- amount?: number;
381
+ @IsNumber()
382
+ amount?: number;
303
383
 
304
384
  @ApiPropertyOptional()
305
- @IsNumber()
306
385
  @IsOptional()
307
- difference?: number;
386
+ @IsNumber()
387
+ difference?: number;
308
388
 
309
389
  @ApiPropertyOptional()
310
- @IsString()
311
390
  @IsOptional()
312
- designation?: string;
391
+ @IsString()
392
+ designation?: string;
313
393
 
314
394
  @ApiPropertyOptional()
315
- @IsString()
316
395
  @IsOptional()
317
- startAccountNumber?: string;
396
+ @IsString()
397
+ startAccountNumber?: string;
318
398
 
319
399
  @ApiPropertyOptional()
320
- @IsString()
321
400
  @IsOptional()
322
- endAccountNumber?: string;
401
+ @IsString()
402
+ endAccountNumber?: string;
323
403
 
324
404
  // advanced search
325
405
  @ApiPropertyOptional()
326
- @IsNumber()
327
406
  @IsOptional()
328
- minimumAmount?: number;
407
+ @IsNumber()
408
+ minimumAmount?: number;
329
409
 
330
410
  @ApiPropertyOptional()
331
- @IsNumber()
332
411
  @IsOptional()
333
- maximumAmount?: number;
412
+ @IsNumber()
413
+ maximumAmount?: number;
334
414
 
335
415
  @ApiPropertyOptional()
336
- @IsArray()
337
416
  @IsOptional()
338
- idsAccountingJournal?: Array<number>;
417
+ @IsArray()
418
+ idsAccountingJournal?: Array<number>;
339
419
 
340
420
  @ApiPropertyOptional()
341
- @IsNumber()
342
421
  @IsOptional()
343
- type?: number;
422
+ @IsNumber()
423
+ type?: number;
344
424
 
345
425
  @ApiPropertyOptional()
426
+ @IsOptional()
346
427
  @IsBoolean()
347
428
  @ToBoolean()
348
- @IsOptional()
349
- isRevised?: boolean;
429
+ isRevised?: boolean;
350
430
 
351
431
  @ApiPropertyOptional({ default: 'date' })
352
- @IsString()
353
432
  @IsOptional()
354
- orderBy?:
355
- | 'date'
356
- | 'accountNumber'
357
- | 'amount'
358
- | 'designation'
359
- | 'vatRate'
360
- | 'debit'
361
- | 'credit';
433
+ @IsString()
434
+ orderBy?:
435
+ | 'date'
436
+ | 'accountNumber'
437
+ | 'amount'
438
+ | 'designation'
439
+ | 'vatRate'
440
+ | 'debit'
441
+ | 'credit';
362
442
 
363
443
  @ApiPropertyOptional()
444
+ @IsOptional()
364
445
  @IsBoolean()
365
446
  @ToBoolean()
366
- @IsOptional()
367
- descending?: boolean;
447
+ descending?: boolean;
368
448
 
369
449
  // Interface paginate
370
450
  @ApiProperty({ default: 25 })
371
451
  @IsNumber()
372
- limit?: number = 25;
452
+ limit?: number = 25;
373
453
 
374
454
  @ApiProperty({ default: 1 })
375
455
  @IsNumber()
376
- page?: number = 1;
456
+ page?: number = 1;
377
457
  }
378
458
 
379
459
  export class QuerySupervision {
380
460
  @ApiProperty()
381
461
  @IsNumber()
382
- idBalanceSheet: number;
462
+ idBalanceSheet: number;
383
463
  }
384
464
 
385
465
  export class QueryRevisionGenericPendingPoint {
386
466
  // Mandatory
387
467
  @ApiProperty()
388
468
  @IsNumber()
389
- idTypeLegalForm: number;
469
+ idTypeLegalForm: number;
390
470
  }
391
471
 
392
472
  export class QueryRevisionPendingPoint {
393
473
  // Mandatory
394
474
  @ApiProperty()
395
475
  @IsNumber()
396
- idSociety: number;
476
+ idSociety: number;
397
477
 
398
478
  @ApiProperty()
399
479
  @IsDate()
400
- startDate: Date;
480
+ startDate: Date;
401
481
 
402
482
  @ApiProperty()
403
483
  @IsDate()
404
- endDate: Date;
484
+ endDate: Date;
405
485
  }
406
486
 
407
487
  export class GetPersonalNoteForPeriod {
408
488
  @ApiProperty()
409
489
  @IsNumber()
410
- idSociety: number;
490
+ idSociety: number;
411
491
 
412
492
  @ApiPropertyOptional()
413
- @IsNumber()
414
493
  @IsOptional()
415
- idUser?: number;
494
+ @IsNumber()
495
+ idUser?: number;
416
496
 
417
497
  @ApiProperty()
418
498
  @IsDate()
419
- startDate: Date;
499
+ startDate: Date;
420
500
 
421
501
  @ApiProperty()
422
502
  @IsDate()
423
- endDate: Date;
424
-
503
+ endDate: Date;
504
+
425
505
  @ApiPropertyOptional()
426
- @IsNumber()
427
506
  @IsOptional()
428
- idCycle?: number;
507
+ @IsNumber()
508
+ idCycle?: number;
429
509
  }
430
510
 
431
511
  export class GetNote {
432
512
  @ApiProperty()
433
513
  @IsNumber()
434
- idSociety: number;
514
+ idSociety: number;
435
515
 
436
516
  @ApiProperty()
437
517
  @IsNumber()
438
- idExercice: number;
518
+ idExercice: number;
439
519
 
440
520
  @ApiProperty()
441
521
  @IsNumber()
442
- gedFileType: number;
522
+ gedFileType: number;
443
523
  }
444
524
 
445
525
  export class QueryRevisionExport {
446
526
  @ApiProperty()
447
527
  @IsString()
448
- dateStart: string;
528
+ dateStart: string;
449
529
 
450
530
  @ApiProperty()
451
531
  @IsString()
452
- dateEnd: string;
532
+ dateEnd: string;
453
533
 
454
534
  @ApiProperty()
455
535
  @IsBoolean()
456
536
  @ToBoolean()
457
- ik: boolean;
537
+ ik: boolean;
458
538
 
459
539
  @ApiProperty()
460
540
  @IsBoolean()
461
541
  @ToBoolean()
462
- sales: boolean;
542
+ sales: boolean;
463
543
  }
464
-
465
-
@@ -0,0 +1,14 @@
1
+ import { TerminationListState, TerminationListType } from '../../../Enum/TerminationList';
2
+ import { ITerminationList } from '../../models/ITerminationList';
3
+
4
+ interface SocietyStateTerminationInfo {
5
+ effectiveDate: Date;
6
+ idTerminationState: TerminationListState;
7
+ idTerminationType: TerminationListType;
8
+ }
9
+
10
+ export interface GetSocietyState {
11
+ isUniquelySocial: boolean;
12
+ terminationInfos: SocietyStateTerminationInfo | null;
13
+ terminations: ITerminationList[]
14
+ }
package/ts/types/index.ts CHANGED
@@ -1045,6 +1045,7 @@ export * from './Interface/api/authentification/ReadAuthenticateCollaborater';
1045
1045
  export * from './Interface/api/authentification/ResetPassword';
1046
1046
  export * from './Interface/api/authentification/ForgotPassword';
1047
1047
  export * from './Interface/api/society/Export';
1048
+ export * from './Interface/api/society/State';
1048
1049
  export * from './Interface/api/businessSector/Create';
1049
1050
  export * from './Interface/api/businessSector/Query';
1050
1051
  export * from './Interface/api/businessSector/Delete';
@@ -18,7 +18,7 @@ export function getSynchronizationState(params: IBankAccount, dateOfTermination?
18
18
  * Ou si lastupdate = inProgressImport et lastupdate est après lastTryImport
19
19
  */
20
20
  if (params.idPartnerType && params.lastUpdate &&
21
- [PartnerTransactionType.QONTO, PartnerTransactionType.SHINE, PartnerTransactionType.BUDGET_INSIGHT].includes(params.idPartnerType)
21
+ [PartnerTransactionType.QONTO, PartnerTransactionType.SHINE, PartnerTransactionType.BUDGET_INSIGHT, PartnerTransactionType.STRIPE].includes(params.idPartnerType)
22
22
  &&
23
23
  (
24
24
  (dayjs(params.lastUpdate).format('YYYY-MM-DD') === dayjs().format('YYYY-MM-DD') ) || // si lastUpdate = date du jour OU