@silexpert/core 1.1.282 → 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.
- package/dist/cjs/api/resources/Letter.d.ts +5 -1
- package/dist/cjs/api/resources/Letter.d.ts.map +1 -1
- package/dist/cjs/api/resources/Letter.js +13 -1
- package/dist/cjs/api/resources/Letter.js.map +1 -1
- package/dist/cjs/types/Enum/BalanceSheet.js +2 -2
- package/dist/cjs/types/Enum/BalanceSheet.js.map +1 -1
- package/dist/cjs/types/Enum/LetterResponseType.d.ts +20 -0
- package/dist/cjs/types/Enum/LetterResponseType.d.ts.map +1 -0
- package/dist/cjs/types/Enum/LetterResponseType.js +17 -0
- package/dist/cjs/types/Enum/LetterResponseType.js.map +1 -0
- package/dist/cjs/types/Enum/ProcessingState.d.ts +2 -1
- package/dist/cjs/types/Enum/ProcessingState.d.ts.map +1 -1
- package/dist/cjs/types/Enum/ProcessingState.js +1 -0
- package/dist/cjs/types/Enum/ProcessingState.js.map +1 -1
- package/dist/cjs/types/Interface/api/letter/CreateLetter.d.ts +4 -0
- package/dist/cjs/types/Interface/api/letter/CreateLetter.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/letter/CreateLetter.js +46 -0
- package/dist/cjs/types/Interface/api/letter/CreateLetter.js.map +1 -1
- package/dist/cjs/types/Interface/api/letter/Query.d.ts +19 -0
- package/dist/cjs/types/Interface/api/letter/Query.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/letter/Query.js +106 -0
- package/dist/cjs/types/Interface/api/letter/Query.js.map +1 -0
- package/dist/cjs/types/Interface/api/letter/Read.d.ts +12 -0
- package/dist/cjs/types/Interface/api/letter/Read.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/letter/Read.js +3 -0
- package/dist/cjs/types/Interface/api/letter/Read.js.map +1 -0
- package/dist/cjs/types/Interface/models/ILetter.d.ts +10 -0
- package/dist/cjs/types/Interface/models/ILetter.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/ILetter.js.map +1 -1
- package/dist/cjs/types/index.d.ts +3 -0
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +3 -0
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/mjs/api/resources/Letter.d.ts +5 -1
- package/dist/mjs/api/resources/Letter.d.ts.map +1 -1
- package/dist/mjs/api/resources/Letter.js +13 -1
- package/dist/mjs/api/resources/Letter.js.map +1 -1
- package/dist/mjs/types/Enum/BalanceSheet.js +2 -2
- package/dist/mjs/types/Enum/BalanceSheet.js.map +1 -1
- package/dist/mjs/types/Enum/LetterResponseType.d.ts +20 -0
- package/dist/mjs/types/Enum/LetterResponseType.d.ts.map +1 -0
- package/dist/mjs/types/Enum/LetterResponseType.js +14 -0
- package/dist/mjs/types/Enum/LetterResponseType.js.map +1 -0
- package/dist/mjs/types/Enum/ProcessingState.d.ts +2 -1
- package/dist/mjs/types/Enum/ProcessingState.d.ts.map +1 -1
- package/dist/mjs/types/Enum/ProcessingState.js +1 -0
- package/dist/mjs/types/Enum/ProcessingState.js.map +1 -1
- package/dist/mjs/types/Interface/api/letter/CreateLetter.d.ts +4 -0
- package/dist/mjs/types/Interface/api/letter/CreateLetter.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/letter/CreateLetter.js +50 -0
- package/dist/mjs/types/Interface/api/letter/CreateLetter.js.map +1 -1
- package/dist/mjs/types/Interface/api/letter/Query.d.ts +19 -0
- package/dist/mjs/types/Interface/api/letter/Query.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/letter/Query.js +115 -0
- package/dist/mjs/types/Interface/api/letter/Query.js.map +1 -0
- package/dist/mjs/types/Interface/api/letter/Read.d.ts +12 -0
- package/dist/mjs/types/Interface/api/letter/Read.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/letter/Read.js +2 -0
- package/dist/mjs/types/Interface/api/letter/Read.js.map +1 -0
- package/dist/mjs/types/Interface/models/ILetter.d.ts +10 -0
- package/dist/mjs/types/Interface/models/ILetter.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/ILetter.js.map +1 -1
- package/dist/mjs/types/index.d.ts +3 -0
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +3 -0
- package/dist/mjs/types/index.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Letter.ts +18 -2
- package/ts/types/Enum/BalanceSheet.ts +2 -2
- package/ts/types/Enum/LetterResponseType.ts +13 -0
- package/ts/types/Enum/ProcessingState.ts +1 -0
- package/ts/types/Interface/api/letter/CreateLetter.ts +42 -0
- package/ts/types/Interface/api/letter/Query.ts +77 -0
- package/ts/types/Interface/api/letter/Read.ts +12 -0
- package/ts/types/Interface/models/ILetter.ts +10 -0
- package/ts/types/index.ts +3 -0
|
@@ -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
|
+
}
|
|
@@ -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';
|
|
@@ -1058,6 +1059,8 @@ export * from './Interface/api/workingSchedule/QueryAvailableTimeSlot';
|
|
|
1058
1059
|
export * from './Interface/api/payment/Query';
|
|
1059
1060
|
export * from './Interface/api/regulation/Query';
|
|
1060
1061
|
export * from './Interface/api/terminationList/Read';
|
|
1062
|
+
export * from './Interface/api/letter/Query';
|
|
1063
|
+
export * from './Interface/api/letter/Read';
|
|
1061
1064
|
|
|
1062
1065
|
// Enums types
|
|
1063
1066
|
export * from './Interface/enum/Util';
|