@silexpert/core 1.1.281 → 1.1.283

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 (149) hide show
  1. package/dist/cjs/api/resources/Letter.d.ts +5 -1
  2. package/dist/cjs/api/resources/Letter.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/Letter.js +13 -1
  4. package/dist/cjs/api/resources/Letter.js.map +1 -1
  5. package/dist/cjs/api/resources/Payment.d.ts +10 -1
  6. package/dist/cjs/api/resources/Payment.d.ts.map +1 -1
  7. package/dist/cjs/api/resources/Payment.js +20 -0
  8. package/dist/cjs/api/resources/Payment.js.map +1 -1
  9. package/dist/cjs/api/resources/Regulation.d.ts +7 -0
  10. package/dist/cjs/api/resources/Regulation.d.ts.map +1 -0
  11. package/dist/cjs/api/resources/Regulation.js +13 -0
  12. package/dist/cjs/api/resources/Regulation.js.map +1 -0
  13. package/dist/cjs/api/resources.d.ts +2 -0
  14. package/dist/cjs/api/resources.d.ts.map +1 -1
  15. package/dist/cjs/api/resources.js +2 -0
  16. package/dist/cjs/api/resources.js.map +1 -1
  17. package/dist/cjs/types/Enum/BalanceSheet.js +1 -1
  18. package/dist/cjs/types/Enum/BalanceSheet.js.map +1 -1
  19. package/dist/cjs/types/Enum/LetterResponseType.d.ts +20 -0
  20. package/dist/cjs/types/Enum/LetterResponseType.d.ts.map +1 -0
  21. package/dist/cjs/types/Enum/LetterResponseType.js +17 -0
  22. package/dist/cjs/types/Enum/LetterResponseType.js.map +1 -0
  23. package/dist/cjs/types/Enum/ProcessingState.d.ts +2 -1
  24. package/dist/cjs/types/Enum/ProcessingState.d.ts.map +1 -1
  25. package/dist/cjs/types/Enum/ProcessingState.js +1 -0
  26. package/dist/cjs/types/Enum/ProcessingState.js.map +1 -1
  27. package/dist/cjs/types/Enum/TaskResponseType.d.ts.map +1 -1
  28. package/dist/cjs/types/Enum/TaskResponseType.js +11 -0
  29. package/dist/cjs/types/Enum/TaskResponseType.js.map +1 -1
  30. package/dist/cjs/types/Interface/api/letter/CreateLetter.d.ts +4 -0
  31. package/dist/cjs/types/Interface/api/letter/CreateLetter.d.ts.map +1 -1
  32. package/dist/cjs/types/Interface/api/letter/CreateLetter.js +46 -0
  33. package/dist/cjs/types/Interface/api/letter/CreateLetter.js.map +1 -1
  34. package/dist/cjs/types/Interface/api/letter/Query.d.ts +19 -0
  35. package/dist/cjs/types/Interface/api/letter/Query.d.ts.map +1 -0
  36. package/dist/cjs/types/Interface/api/letter/Query.js +106 -0
  37. package/dist/cjs/types/Interface/api/letter/Query.js.map +1 -0
  38. package/dist/cjs/types/Interface/api/letter/Read.d.ts +12 -0
  39. package/dist/cjs/types/Interface/api/letter/Read.d.ts.map +1 -0
  40. package/dist/cjs/types/Interface/api/letter/Read.js +3 -0
  41. package/dist/cjs/types/Interface/api/letter/Read.js.map +1 -0
  42. package/dist/cjs/types/Interface/api/payment/Query.d.ts +8 -0
  43. package/dist/cjs/types/Interface/api/payment/Query.d.ts.map +1 -0
  44. package/dist/cjs/types/Interface/api/payment/Query.js +39 -0
  45. package/dist/cjs/types/Interface/api/payment/Query.js.map +1 -0
  46. package/dist/cjs/types/Interface/api/payment/ReadPayment.d.ts +27 -0
  47. package/dist/cjs/types/Interface/api/payment/ReadPayment.d.ts.map +1 -1
  48. package/dist/cjs/types/Interface/api/payment/ReadPayment.js.map +1 -1
  49. package/dist/cjs/types/Interface/api/regulation/Query.d.ts +8 -0
  50. package/dist/cjs/types/Interface/api/regulation/Query.d.ts.map +1 -0
  51. package/dist/cjs/types/Interface/api/regulation/Query.js +50 -0
  52. package/dist/cjs/types/Interface/api/regulation/Query.js.map +1 -0
  53. package/dist/cjs/types/Interface/api/regulation/Read.d.ts +7 -0
  54. package/dist/cjs/types/Interface/api/regulation/Read.d.ts.map +1 -0
  55. package/dist/cjs/types/Interface/api/regulation/Read.js +3 -0
  56. package/dist/cjs/types/Interface/api/regulation/Read.js.map +1 -0
  57. package/dist/cjs/types/Interface/api/terminationList/QueryPaginateTerminationList.js +2 -2
  58. package/dist/cjs/types/Interface/api/terminationList/QueryPaginateTerminationList.js.map +1 -1
  59. package/dist/cjs/types/Interface/models/ILetter.d.ts +10 -0
  60. package/dist/cjs/types/Interface/models/ILetter.d.ts.map +1 -1
  61. package/dist/cjs/types/Interface/models/ILetter.js.map +1 -1
  62. package/dist/cjs/types/index.d.ts +5 -0
  63. package/dist/cjs/types/index.d.ts.map +1 -1
  64. package/dist/cjs/types/index.js +5 -0
  65. package/dist/cjs/types/index.js.map +1 -1
  66. package/dist/mjs/api/resources/Letter.d.ts +5 -1
  67. package/dist/mjs/api/resources/Letter.d.ts.map +1 -1
  68. package/dist/mjs/api/resources/Letter.js +13 -1
  69. package/dist/mjs/api/resources/Letter.js.map +1 -1
  70. package/dist/mjs/api/resources/Payment.d.ts +10 -1
  71. package/dist/mjs/api/resources/Payment.d.ts.map +1 -1
  72. package/dist/mjs/api/resources/Payment.js +20 -0
  73. package/dist/mjs/api/resources/Payment.js.map +1 -1
  74. package/dist/mjs/api/resources/Regulation.d.ts +7 -0
  75. package/dist/mjs/api/resources/Regulation.d.ts.map +1 -0
  76. package/dist/mjs/api/resources/Regulation.js +9 -0
  77. package/dist/mjs/api/resources/Regulation.js.map +1 -0
  78. package/dist/mjs/api/resources.d.ts +2 -0
  79. package/dist/mjs/api/resources.d.ts.map +1 -1
  80. package/dist/mjs/api/resources.js +2 -0
  81. package/dist/mjs/api/resources.js.map +1 -1
  82. package/dist/mjs/types/Enum/BalanceSheet.js +1 -1
  83. package/dist/mjs/types/Enum/BalanceSheet.js.map +1 -1
  84. package/dist/mjs/types/Enum/LetterResponseType.d.ts +20 -0
  85. package/dist/mjs/types/Enum/LetterResponseType.d.ts.map +1 -0
  86. package/dist/mjs/types/Enum/LetterResponseType.js +14 -0
  87. package/dist/mjs/types/Enum/LetterResponseType.js.map +1 -0
  88. package/dist/mjs/types/Enum/ProcessingState.d.ts +2 -1
  89. package/dist/mjs/types/Enum/ProcessingState.d.ts.map +1 -1
  90. package/dist/mjs/types/Enum/ProcessingState.js +1 -0
  91. package/dist/mjs/types/Enum/ProcessingState.js.map +1 -1
  92. package/dist/mjs/types/Enum/TaskResponseType.d.ts.map +1 -1
  93. package/dist/mjs/types/Enum/TaskResponseType.js +11 -0
  94. package/dist/mjs/types/Enum/TaskResponseType.js.map +1 -1
  95. package/dist/mjs/types/Interface/api/letter/CreateLetter.d.ts +4 -0
  96. package/dist/mjs/types/Interface/api/letter/CreateLetter.d.ts.map +1 -1
  97. package/dist/mjs/types/Interface/api/letter/CreateLetter.js +50 -0
  98. package/dist/mjs/types/Interface/api/letter/CreateLetter.js.map +1 -1
  99. package/dist/mjs/types/Interface/api/letter/Query.d.ts +19 -0
  100. package/dist/mjs/types/Interface/api/letter/Query.d.ts.map +1 -0
  101. package/dist/mjs/types/Interface/api/letter/Query.js +115 -0
  102. package/dist/mjs/types/Interface/api/letter/Query.js.map +1 -0
  103. package/dist/mjs/types/Interface/api/letter/Read.d.ts +12 -0
  104. package/dist/mjs/types/Interface/api/letter/Read.d.ts.map +1 -0
  105. package/dist/mjs/types/Interface/api/letter/Read.js +2 -0
  106. package/dist/mjs/types/Interface/api/letter/Read.js.map +1 -0
  107. package/dist/mjs/types/Interface/api/payment/Query.d.ts +8 -0
  108. package/dist/mjs/types/Interface/api/payment/Query.d.ts.map +1 -0
  109. package/dist/mjs/types/Interface/api/payment/Query.js +37 -0
  110. package/dist/mjs/types/Interface/api/payment/Query.js.map +1 -0
  111. package/dist/mjs/types/Interface/api/payment/ReadPayment.d.ts +27 -0
  112. package/dist/mjs/types/Interface/api/payment/ReadPayment.d.ts.map +1 -1
  113. package/dist/mjs/types/Interface/api/payment/ReadPayment.js.map +1 -1
  114. package/dist/mjs/types/Interface/api/regulation/Query.d.ts +8 -0
  115. package/dist/mjs/types/Interface/api/regulation/Query.d.ts.map +1 -0
  116. package/dist/mjs/types/Interface/api/regulation/Query.js +51 -0
  117. package/dist/mjs/types/Interface/api/regulation/Query.js.map +1 -0
  118. package/dist/mjs/types/Interface/api/regulation/Read.d.ts +7 -0
  119. package/dist/mjs/types/Interface/api/regulation/Read.d.ts.map +1 -0
  120. package/dist/mjs/types/Interface/api/regulation/Read.js +2 -0
  121. package/dist/mjs/types/Interface/api/regulation/Read.js.map +1 -0
  122. package/dist/mjs/types/Interface/api/terminationList/QueryPaginateTerminationList.js +3 -3
  123. package/dist/mjs/types/Interface/api/terminationList/QueryPaginateTerminationList.js.map +1 -1
  124. package/dist/mjs/types/Interface/models/ILetter.d.ts +10 -0
  125. package/dist/mjs/types/Interface/models/ILetter.d.ts.map +1 -1
  126. package/dist/mjs/types/Interface/models/ILetter.js.map +1 -1
  127. package/dist/mjs/types/index.d.ts +5 -0
  128. package/dist/mjs/types/index.d.ts.map +1 -1
  129. package/dist/mjs/types/index.js +5 -0
  130. package/dist/mjs/types/index.js.map +1 -1
  131. package/package.json +1 -1
  132. package/ts/api/resources/Letter.ts +18 -2
  133. package/ts/api/resources/Payment.ts +25 -1
  134. package/ts/api/resources/Regulation.ts +11 -0
  135. package/ts/api/resources.ts +2 -0
  136. package/ts/types/Enum/BalanceSheet.ts +1 -1
  137. package/ts/types/Enum/LetterResponseType.ts +13 -0
  138. package/ts/types/Enum/ProcessingState.ts +1 -0
  139. package/ts/types/Enum/TaskResponseType.ts +11 -0
  140. package/ts/types/Interface/api/letter/CreateLetter.ts +42 -0
  141. package/ts/types/Interface/api/letter/Query.ts +77 -0
  142. package/ts/types/Interface/api/letter/Read.ts +12 -0
  143. package/ts/types/Interface/api/payment/Query.ts +21 -0
  144. package/ts/types/Interface/api/payment/ReadPayment.ts +31 -0
  145. package/ts/types/Interface/api/regulation/Query.ts +31 -0
  146. package/ts/types/Interface/api/regulation/Read.ts +7 -0
  147. package/ts/types/Interface/api/terminationList/QueryPaginateTerminationList.ts +3 -3
  148. package/ts/types/Interface/models/ILetter.ts +10 -0
  149. package/ts/types/index.ts +5 -0
@@ -0,0 +1,11 @@
1
+ import { QueryRegulation } from '../../types';
2
+ import { ReadRejectedRegulation } from '../../types/Interface/api/regulation/Read';
3
+ import { Resource } from '../Resource';
4
+
5
+ export class Regulation extends Resource {
6
+ getRejects(params: QueryRegulation): Promise<ReadRejectedRegulation> {
7
+ return this.axios.$get('regulations/rejects', {
8
+ params,
9
+ });
10
+ }
11
+ }
@@ -158,6 +158,7 @@ import { Synchronisation } from './resources/Synchronisation';
158
158
  import { UpToDateBankAccount } from './resources/UpToDate';
159
159
  import { UserTimeSlot } from './resources/UserTimeSlot';
160
160
  import { Echo } from './resources/Echo';
161
+ import { Regulation } from './resources/Regulation';
161
162
  import { StatisticDataOfficer } from './resources/statistic/DataOfficer';
162
163
 
163
164
  export const resources = {
@@ -322,4 +323,5 @@ export const resources = {
322
323
  upToDateBankAccount: UpToDateBankAccount,
323
324
  echo: Echo,
324
325
  userTimeSlot: UserTimeSlot,
326
+ regulation: Regulation,
325
327
  };
@@ -461,7 +461,7 @@ export const BALANCE_SHEET_LIST_ACTIVE: BalanceSheetList = [
461
461
  {
462
462
  // autres = lorsque les fournisseurs te doivent de l'argent = somme débit > crédit
463
463
  name: 'Autres',
464
- accounts: ['401', '4096', '4097', '4098', '42', '43', '44', '45', '46', '48'],
464
+ accounts: ['401', '4096', '4097', '4098', '42', '43', '44', '451', '452', '453', '454', '455', '4561', '4563', '4564', '4565', '4566', '4567', '4568', '4569', '457', '458', '459', '46', '48'],
465
465
  idThirdPartyTypeToAdd: [ThirdPartyType.PROVIDER, MathematicalSign.PLUS],
466
466
  accountsDeducted: ['495', '496'], // Actif : On compte dedans que ceux qui sont positifs que 4
467
467
  type: 'active',
@@ -0,0 +1,13 @@
1
+ export enum LetterResponseType {
2
+ MAIL = 1,
3
+ SIMPLE_LETTER = 2,
4
+ LRAR_LETTER = 3,
5
+ NO_RESPONSE = 4,
6
+ }
7
+
8
+ export const LetterResponseTypeList = [
9
+ { id: LetterResponseType.MAIL, name: 'Mail' },
10
+ { id: LetterResponseType.SIMPLE_LETTER, name: 'Courrier simple' },
11
+ { id: LetterResponseType.LRAR_LETTER, name: 'Courrier LRAR' },
12
+ { id: LetterResponseType.NO_RESPONSE, name: 'Sans réponse' },
13
+ ] as const;
@@ -4,4 +4,5 @@ export enum ProcessingState {
4
4
  DONE_IDOCUS = 2,
5
5
  ALREADY_LOCKED = 3,
6
6
  WAITING_PROCESS = 4,
7
+ DO_NOT_PROCESS = 5,
7
8
  }
@@ -307,6 +307,17 @@ export const TaskResponseType = {
307
307
  responseType: null,
308
308
  description: 'Mise à jour annotation',
309
309
  },
310
+ {
311
+ id: 25,
312
+ label: 'Appel téléphonique non honoré',
313
+ role: Role.CUSTOMER_SUCCESS,
314
+ deadline: Deadline,
315
+ isForWholeRole: false,
316
+ backToClient: false,
317
+ goToCalendar: false,
318
+ responseType: null,
319
+ description: 'Appel téléphonique non honoré, pensez à reprendre RDV',
320
+ },
310
321
  ],
311
322
  },
312
323
  EXTERN: {
@@ -1,37 +1,79 @@
1
+ import { IsBoolean, IsInt, IsOptional, IsString } from 'class-validator';
1
2
  import { ILetter } from '../../..';
2
3
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
4
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
3
5
 
4
6
  export class CreateLetter implements ILetter {
5
7
  @ApiProperty()
8
+ @IsInt()
6
9
  idLetterType: number;
7
10
 
8
11
  @ApiPropertyOptional()
12
+ @IsOptional()
13
+ @IsInt()
9
14
  idReport?: number;
10
15
 
11
16
  @ApiProperty()
17
+ @IsInt()
12
18
  idSociety: number;
13
19
 
14
20
  @ApiProperty()
15
21
  letterDate: Date;
16
22
 
17
23
  @ApiPropertyOptional()
24
+ @IsString()
18
25
  complement?: string;
19
26
 
20
27
  @ApiPropertyOptional()
28
+ @IsOptional()
29
+ @IsBoolean()
30
+ @ToBoolean()
21
31
  isLRAR?: boolean;
22
32
 
23
33
  @ApiPropertyOptional()
34
+ @IsOptional()
35
+ @IsBoolean()
36
+ @ToBoolean()
24
37
  isDone?: boolean;
25
38
 
26
39
  @ApiPropertyOptional()
40
+ @IsOptional()
41
+ @IsInt()
27
42
  state?: number;
28
43
 
29
44
  @ApiPropertyOptional()
45
+ @IsOptional()
46
+ @IsBoolean()
47
+ @ToBoolean()
30
48
  needResponse?: boolean;
31
49
 
32
50
  @ApiPropertyOptional()
51
+ @IsOptional()
52
+ @IsInt()
53
+ needResponseType?: number;
54
+
55
+ @ApiPropertyOptional()
56
+ @IsOptional()
57
+ @IsString()
33
58
  ARNumber?: string;
34
59
 
35
60
  @ApiPropertyOptional()
61
+ @IsOptional()
62
+ @IsInt()
36
63
  idAccountant?: number;
64
+
65
+ @ApiPropertyOptional()
66
+ @IsOptional()
67
+ @IsInt()
68
+ idReceivedFile?: number;
69
+
70
+ @ApiPropertyOptional()
71
+ @IsOptional()
72
+ @IsInt()
73
+ idResponseFile?: number;
74
+
75
+ @ApiPropertyOptional()
76
+ @IsOptional()
77
+ @IsInt()
78
+ idMail?: number;
37
79
  }
@@ -0,0 +1,77 @@
1
+ import { IsArray, IsBoolean, IsDate, IsInt, IsOptional, IsString } from 'class-validator';
2
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
4
+
5
+ export class QueryLetter {
6
+ @ApiPropertyOptional()
7
+ @IsOptional()
8
+ @IsString()
9
+ search?: string | null;
10
+
11
+ @ApiPropertyOptional()
12
+ @IsOptional()
13
+ @IsInt()
14
+ year?: number | null;
15
+
16
+ @ApiPropertyOptional()
17
+ @IsOptional()
18
+ @IsDate()
19
+ beginDate?: Date | null;
20
+
21
+ @ApiPropertyOptional()
22
+ @IsOptional()
23
+ @IsDate()
24
+ endDate?: Date | null;
25
+
26
+ @ApiPropertyOptional()
27
+ @IsOptional()
28
+ @IsInt()
29
+ reason?: number | null;
30
+
31
+ @ApiPropertyOptional()
32
+ @IsOptional()
33
+ @IsInt()
34
+ idUser?: number | null;
35
+
36
+ @ApiPropertyOptional()
37
+ @IsOptional()
38
+ @IsBoolean()
39
+ @ToBoolean()
40
+ isDone?: boolean | null;
41
+
42
+ @ApiPropertyOptional()
43
+ @IsOptional()
44
+ @IsInt()
45
+ state?: number | null;
46
+
47
+ @ApiPropertyOptional()
48
+ @IsOptional()
49
+ @IsArray()
50
+ recipient?: number[] | null;
51
+
52
+ @ApiPropertyOptional()
53
+ @IsOptional()
54
+ @IsString()
55
+ order?: string | null;
56
+
57
+ @ApiPropertyOptional()
58
+ @IsOptional()
59
+ @IsBoolean()
60
+ @ToBoolean()
61
+ descending?: boolean | null;
62
+
63
+ @ApiPropertyOptional()
64
+ @IsOptional()
65
+ @IsInt()
66
+ idSociety?: number | null;
67
+ }
68
+
69
+ export class QueryLetterPaginate extends QueryLetter {
70
+ @ApiProperty()
71
+ @IsInt()
72
+ page: number;
73
+
74
+ @ApiProperty()
75
+ @IsInt()
76
+ limit: number;
77
+ }
@@ -0,0 +1,12 @@
1
+ export interface ReadLetterStats {
2
+ toSend: LetterStat,
3
+ email: LetterStat,
4
+ mail: LetterStat,
5
+ lrar: LetterStat,
6
+ }
7
+
8
+ export interface LetterStat {
9
+ label: string,
10
+ todo: number,
11
+ late: number,
12
+ }
@@ -0,0 +1,21 @@
1
+ import { IsBoolean, IsDate, IsOptional } from 'class-validator';
2
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
4
+
5
+ export class QueryPayment {
6
+ @ApiProperty()
7
+ @IsDate()
8
+ startDate: Date;
9
+
10
+ @ApiProperty()
11
+ @IsDate()
12
+ endDate: Date;
13
+ }
14
+
15
+ export class QuerySocietyUnpaid {
16
+ @ApiPropertyOptional()
17
+ @IsOptional()
18
+ @IsBoolean()
19
+ @ToBoolean()
20
+ withStats: boolean;
21
+ }
@@ -7,4 +7,35 @@ export interface ReadNotifyCustomer {
7
7
  export interface ReadNotifyCustomerInvoice {
8
8
  mailSentForSocieties: number,
9
9
  errorForSocieties: number[]
10
+ }
11
+
12
+ export interface ReadBrandPayments {
13
+ idTypeBrand: number,
14
+ name: string,
15
+ amountTTC: number,
16
+ amountHT: number,
17
+ }
18
+
19
+ export interface ReadPaid {
20
+ total: number,
21
+ paid: number,
22
+ assetPayment: ReadBrandPayments[],
23
+ invoicePayment: ReadBrandPayments[],
24
+ }
25
+
26
+ export interface ReadStatPrestation {
27
+ juridicAmountTTC: number,
28
+ juridicAmountHT: number,
29
+ socialAmountTTC: number,
30
+ socialAmountHT: number,
31
+ accountantAmountTTC: number,
32
+ accountantAmountHT: number,
33
+ }
34
+
35
+ export interface ReadStatsSocietyUnpaid {
36
+ dateStart: string,
37
+ dateEnd: string,
38
+ title: string,
39
+ nbOfSociety: number,
40
+ amount: number,
10
41
  }
@@ -0,0 +1,31 @@
1
+ import { IsBoolean, IsInt, IsOptional, IsString } from 'class-validator';
2
+ import { ApiPropertyOptional } from '../../../../utils';
3
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
4
+
5
+ export class QueryRegulation {
6
+ @ApiPropertyOptional()
7
+ @IsOptional()
8
+ @IsString()
9
+ orderBy?: string | null;
10
+
11
+ @ApiPropertyOptional()
12
+ @IsOptional()
13
+ @IsBoolean()
14
+ @ToBoolean()
15
+ descending?: boolean | null;
16
+
17
+ @ApiPropertyOptional()
18
+ @IsOptional()
19
+ @IsInt()
20
+ year?: number | null;
21
+
22
+ @ApiPropertyOptional()
23
+ @IsOptional()
24
+ @IsInt()
25
+ month?: number | null;
26
+
27
+ @ApiPropertyOptional()
28
+ @IsOptional()
29
+ @IsInt()
30
+ idPaymentMethod?: number | null;
31
+ }
@@ -0,0 +1,7 @@
1
+ import { IRegulation } from '../../..';
2
+
3
+ export interface ReadRejectedRegulation {
4
+ regulations: IRegulation[];
5
+ nbOfReject: number;
6
+ totalAmount: number;
7
+ }
@@ -1,4 +1,4 @@
1
- import { IsBoolean, IsDateString, IsInt, IsOptional, IsString } from 'class-validator';
1
+ import { IsBoolean, IsDate, IsInt, IsOptional, IsString } from 'class-validator';
2
2
  import { ApiPropertyOptional } from '../../../../utils';
3
3
  import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
4
4
 
@@ -24,12 +24,12 @@ export class QueryPaginateTerminationList {
24
24
  year?: number;
25
25
 
26
26
  @ApiPropertyOptional()
27
- @IsDateString()
27
+ @IsDate()
28
28
  @IsOptional()
29
29
  beginDate?: Date;
30
30
 
31
31
  @ApiPropertyOptional()
32
- @IsDateString()
32
+ @IsDate()
33
33
  @IsOptional()
34
34
  endDate?: Date;
35
35
 
@@ -14,8 +14,13 @@ export interface ILetter {
14
14
  isLRAR?: boolean;
15
15
  isDone?: boolean;
16
16
  needResponse?: boolean;
17
+ needResponseType?: number | null;
17
18
  letterDate: Date;
18
19
  ARNumber?: string | null;
20
+ ARDate?: Date | null;
21
+ dateIsDone?: Date | null;
22
+ dateResponse?: Date | null;
23
+ invoicingUpToDate?: boolean | null;
19
24
  idLetterType: number;
20
25
  idReceivedFile?: number | null;
21
26
  idResponseFile?: number | null;
@@ -23,11 +28,16 @@ export interface ILetter {
23
28
  idReport?: number;
24
29
  idMail?: number;
25
30
  idAccountant?: number;
31
+ idUserIsDone?: number | null;
32
+ idUserResponse?: number | null;
26
33
  createdAt?: Date | null;
27
34
  updatedAt?: Date | null;
28
35
 
29
36
  // Associations
30
37
  user?: IUser;
38
+ accountant?: IUser;
39
+ userIsDone?: IUser;
40
+ userResponse?: IUser;
31
41
  society?: ISociety;
32
42
  report?: IReport;
33
43
  mail?: IMail;
package/ts/types/index.ts CHANGED
@@ -538,6 +538,7 @@ export * from './Enum/TimeSlot';
538
538
  export * from './Enum/StateSynchro';
539
539
  export * from './Enum/RefundReason';
540
540
  export * from './Enum/Contest';
541
+ export * from './Enum/LetterResponseType';
541
542
 
542
543
  // Interfaces API
543
544
  export * from './Interface/api/kilometricAllowance/ReadKilometricAllowance';
@@ -1055,7 +1056,11 @@ export * from './Interface/api/echo/NewsPaper';
1055
1056
  export * from './Interface/api/echo/Order';
1056
1057
  export * from './Interface/api/userTimeSlot/QueryUserTimeSlot';
1057
1058
  export * from './Interface/api/workingSchedule/QueryAvailableTimeSlot';
1059
+ export * from './Interface/api/payment/Query';
1060
+ export * from './Interface/api/regulation/Query';
1058
1061
  export * from './Interface/api/terminationList/Read';
1062
+ export * from './Interface/api/letter/Query';
1063
+ export * from './Interface/api/letter/Read';
1059
1064
 
1060
1065
  // Enums types
1061
1066
  export * from './Interface/enum/Util';