@silexpert/core 1.1.381 → 1.1.383

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