@silexpert/core 1.1.196 → 1.1.198
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/Exercice.d.ts +2 -1
- package/dist/cjs/api/resources/Exercice.d.ts.map +1 -1
- package/dist/cjs/api/resources/Exercice.js +3 -0
- package/dist/cjs/api/resources/Exercice.js.map +1 -1
- package/dist/cjs/api/resources/PaymentExpectation.d.ts +2 -1
- package/dist/cjs/api/resources/PaymentExpectation.d.ts.map +1 -1
- package/dist/cjs/api/resources/PaymentExpectation.js +3 -0
- package/dist/cjs/api/resources/PaymentExpectation.js.map +1 -1
- package/dist/cjs/api/resources/UserSpecialDay.d.ts +10 -0
- package/dist/cjs/api/resources/UserSpecialDay.d.ts.map +1 -0
- package/dist/cjs/api/resources/UserSpecialDay.js +23 -0
- package/dist/cjs/api/resources/UserSpecialDay.js.map +1 -0
- package/dist/cjs/api/resources.d.ts +2 -0
- package/dist/cjs/api/resources.d.ts.map +1 -1
- package/dist/cjs/api/resources.js +2 -0
- package/dist/cjs/api/resources.js.map +1 -1
- package/dist/cjs/types/Enum/PriceGridPourcentage.d.ts +22 -0
- package/dist/cjs/types/Enum/PriceGridPourcentage.d.ts.map +1 -1
- package/dist/cjs/types/Enum/PriceGridPourcentage.js +756 -12
- package/dist/cjs/types/Enum/PriceGridPourcentage.js.map +1 -1
- package/dist/cjs/types/Enum/PriceGridStatutsExpress.d.ts +13 -0
- package/dist/cjs/types/Enum/PriceGridStatutsExpress.d.ts.map +1 -0
- package/dist/cjs/types/Enum/PriceGridStatutsExpress.js +36 -0
- package/dist/cjs/types/Enum/PriceGridStatutsExpress.js.map +1 -0
- package/dist/cjs/types/Enum/SpecialDayType.d.ts +4 -0
- package/dist/cjs/types/Enum/SpecialDayType.d.ts.map +1 -0
- package/dist/cjs/types/Enum/SpecialDayType.js +8 -0
- package/dist/cjs/types/Enum/SpecialDayType.js.map +1 -0
- package/dist/cjs/types/Interface/api/exercice/{CreateExercice.d.ts → Create.d.ts} +12 -1
- package/dist/cjs/types/Interface/api/exercice/Create.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/exercice/{CreateExercice.js → Create.js} +57 -2
- package/dist/cjs/types/Interface/api/exercice/Create.js.map +1 -0
- package/dist/cjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.d.ts +11 -0
- package/dist/cjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.js +58 -0
- package/dist/cjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.js.map +1 -0
- package/dist/cjs/types/Interface/api/society/QueryPaginatedSociety.d.ts +1 -0
- package/dist/cjs/types/Interface/api/society/QueryPaginatedSociety.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/society/QueryPaginatedSociety.js +6 -0
- package/dist/cjs/types/Interface/api/society/QueryPaginatedSociety.js.map +1 -1
- package/dist/cjs/types/Interface/api/userSpecialDay/BodyUserSpecialDay.d.ts +14 -0
- package/dist/cjs/types/Interface/api/userSpecialDay/BodyUserSpecialDay.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/userSpecialDay/BodyUserSpecialDay.js +63 -0
- package/dist/cjs/types/Interface/api/userSpecialDay/BodyUserSpecialDay.js.map +1 -0
- package/dist/cjs/types/Interface/api/userSpecialDay/QueryUserSpecialDay.d.ts +8 -0
- package/dist/cjs/types/Interface/api/userSpecialDay/QueryUserSpecialDay.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/userSpecialDay/QueryUserSpecialDay.js +41 -0
- package/dist/cjs/types/Interface/api/userSpecialDay/QueryUserSpecialDay.js.map +1 -0
- package/dist/cjs/types/Interface/models/IPaymentExpectation.d.ts +4 -3
- package/dist/cjs/types/Interface/models/IPaymentExpectation.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IPaymentExpectation.js.map +1 -1
- package/dist/cjs/types/Interface/models/IPaymentExpectationCustomer.d.ts +2 -0
- package/dist/cjs/types/Interface/models/IPaymentExpectationCustomer.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IPaymentExpectationCustomer.js.map +1 -1
- package/dist/cjs/types/Interface/models/IUserSpecialDay.d.ts +14 -0
- package/dist/cjs/types/Interface/models/IUserSpecialDay.d.ts.map +1 -0
- package/dist/cjs/types/Interface/models/IUserSpecialDay.js +3 -0
- package/dist/cjs/types/Interface/models/IUserSpecialDay.js.map +1 -0
- package/dist/cjs/types/index.d.ts +6 -1
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +6 -1
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/cjs/utils/prestation.d.ts +2 -2
- package/dist/cjs/utils/prestation.d.ts.map +1 -1
- package/dist/cjs/utils/prestation.js +16 -8
- package/dist/cjs/utils/prestation.js.map +1 -1
- package/dist/mjs/api/resources/Exercice.d.ts +2 -1
- package/dist/mjs/api/resources/Exercice.d.ts.map +1 -1
- package/dist/mjs/api/resources/Exercice.js +3 -0
- package/dist/mjs/api/resources/Exercice.js.map +1 -1
- package/dist/mjs/api/resources/PaymentExpectation.d.ts +2 -1
- package/dist/mjs/api/resources/PaymentExpectation.d.ts.map +1 -1
- package/dist/mjs/api/resources/PaymentExpectation.js +3 -0
- package/dist/mjs/api/resources/PaymentExpectation.js.map +1 -1
- package/dist/mjs/api/resources/UserSpecialDay.d.ts +10 -0
- package/dist/mjs/api/resources/UserSpecialDay.d.ts.map +1 -0
- package/dist/mjs/api/resources/UserSpecialDay.js +24 -0
- package/dist/mjs/api/resources/UserSpecialDay.js.map +1 -0
- package/dist/mjs/api/resources.d.ts +2 -0
- package/dist/mjs/api/resources.d.ts.map +1 -1
- package/dist/mjs/api/resources.js +2 -0
- package/dist/mjs/api/resources.js.map +1 -1
- package/dist/mjs/types/Enum/PriceGridPourcentage.d.ts +22 -0
- package/dist/mjs/types/Enum/PriceGridPourcentage.d.ts.map +1 -1
- package/dist/mjs/types/Enum/PriceGridPourcentage.js +756 -12
- package/dist/mjs/types/Enum/PriceGridPourcentage.js.map +1 -1
- package/dist/mjs/types/Enum/PriceGridStatutsExpress.d.ts +13 -0
- package/dist/mjs/types/Enum/PriceGridStatutsExpress.d.ts.map +1 -0
- package/dist/mjs/types/Enum/PriceGridStatutsExpress.js +33 -0
- package/dist/mjs/types/Enum/PriceGridStatutsExpress.js.map +1 -0
- package/dist/mjs/types/Enum/SpecialDayType.d.ts +4 -0
- package/dist/mjs/types/Enum/SpecialDayType.d.ts.map +1 -0
- package/dist/mjs/types/Enum/SpecialDayType.js +5 -0
- package/dist/mjs/types/Enum/SpecialDayType.js.map +1 -0
- package/dist/mjs/types/Interface/api/exercice/{CreateExercice.d.ts → Create.d.ts} +12 -1
- package/dist/mjs/types/Interface/api/exercice/Create.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/exercice/{CreateExercice.js → Create.js} +65 -2
- package/dist/mjs/types/Interface/api/exercice/Create.js.map +1 -0
- package/dist/mjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.d.ts +11 -0
- package/dist/mjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.js +61 -0
- package/dist/mjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.js.map +1 -0
- package/dist/mjs/types/Interface/api/society/QueryPaginatedSociety.d.ts +1 -0
- package/dist/mjs/types/Interface/api/society/QueryPaginatedSociety.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/society/QueryPaginatedSociety.js +8 -1
- package/dist/mjs/types/Interface/api/society/QueryPaginatedSociety.js.map +1 -1
- package/dist/mjs/types/Interface/api/userSpecialDay/BodyUserSpecialDay.d.ts +14 -0
- package/dist/mjs/types/Interface/api/userSpecialDay/BodyUserSpecialDay.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/userSpecialDay/BodyUserSpecialDay.js +66 -0
- package/dist/mjs/types/Interface/api/userSpecialDay/BodyUserSpecialDay.js.map +1 -0
- package/dist/mjs/types/Interface/api/userSpecialDay/QueryUserSpecialDay.d.ts +8 -0
- package/dist/mjs/types/Interface/api/userSpecialDay/QueryUserSpecialDay.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/userSpecialDay/QueryUserSpecialDay.js +41 -0
- package/dist/mjs/types/Interface/api/userSpecialDay/QueryUserSpecialDay.js.map +1 -0
- package/dist/mjs/types/Interface/models/IPaymentExpectation.d.ts +4 -3
- package/dist/mjs/types/Interface/models/IPaymentExpectation.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IPaymentExpectation.js.map +1 -1
- package/dist/mjs/types/Interface/models/IPaymentExpectationCustomer.d.ts +2 -0
- package/dist/mjs/types/Interface/models/IPaymentExpectationCustomer.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IPaymentExpectationCustomer.js.map +1 -1
- package/dist/mjs/types/Interface/models/IUserSpecialDay.d.ts +14 -0
- package/dist/mjs/types/Interface/models/IUserSpecialDay.d.ts.map +1 -0
- package/dist/mjs/types/Interface/models/IUserSpecialDay.js +2 -0
- package/dist/mjs/types/Interface/models/IUserSpecialDay.js.map +1 -0
- package/dist/mjs/types/index.d.ts +6 -1
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +6 -1
- package/dist/mjs/types/index.js.map +1 -1
- package/dist/mjs/utils/prestation.d.ts +2 -2
- package/dist/mjs/utils/prestation.d.ts.map +1 -1
- package/dist/mjs/utils/prestation.js +13 -5
- package/dist/mjs/utils/prestation.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Exercice.ts +5 -1
- package/ts/api/resources/PaymentExpectation.ts +5 -1
- package/ts/api/resources/UserSpecialDay.ts +29 -0
- package/ts/api/resources.ts +2 -0
- package/ts/types/Enum/PriceGridPourcentage.ts +756 -12
- package/ts/types/Enum/PriceGridStatutsExpress.ts +34 -0
- package/ts/types/Enum/SpecialDayType.ts +3 -0
- package/ts/types/Interface/api/exercice/{CreateExercice.ts → Create.ts} +46 -1
- package/ts/types/Interface/api/paymentExpectation/CreatePaymentExpecation.ts +37 -0
- package/ts/types/Interface/api/society/QueryPaginatedSociety.ts +6 -1
- package/ts/types/Interface/api/userSpecialDay/BodyUserSpecialDay.ts +40 -0
- package/ts/types/Interface/api/userSpecialDay/QueryUserSpecialDay.ts +23 -0
- package/ts/types/Interface/models/IPaymentExpectation.ts +4 -3
- package/ts/types/Interface/models/IPaymentExpectationCustomer.ts +2 -0
- package/ts/types/Interface/models/IUserSpecialDay.ts +16 -0
- package/ts/types/index.ts +6 -1
- package/ts/utils/prestation.ts +18 -6
- package/dist/cjs/types/Interface/api/exercice/CreateExercice.d.ts.map +0 -1
- package/dist/cjs/types/Interface/api/exercice/CreateExercice.js.map +0 -1
- package/dist/mjs/types/Interface/api/exercice/CreateExercice.d.ts.map +0 -1
- package/dist/mjs/types/Interface/api/exercice/CreateExercice.js.map +0 -1
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { PrestationType } from './PrestationType';
|
|
2
|
+
import { LegalFormTypeEnum } from './LegalForm';
|
|
3
|
+
|
|
4
|
+
export const PriceGridStatutsExpress = [
|
|
5
|
+
{
|
|
6
|
+
/* Statuts Express */
|
|
7
|
+
idTypeBrand: 1,
|
|
8
|
+
price: [
|
|
9
|
+
{
|
|
10
|
+
/* Full'Créa */
|
|
11
|
+
idPrestationList: [PrestationType.STATUTS_OPTION_2],
|
|
12
|
+
legalForm: [
|
|
13
|
+
{
|
|
14
|
+
idLegalForm: LegalFormTypeEnum.SASU,
|
|
15
|
+
price: 394.23,
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
idLegalForm: LegalFormTypeEnum.SAS,
|
|
19
|
+
price: 489.23,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
idLegalForm: LegalFormTypeEnum.EURL,
|
|
23
|
+
price: 377.23,
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
idLegalForm: LegalFormTypeEnum.SARL,
|
|
27
|
+
price: 440.23,
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
},
|
|
31
|
+
|
|
32
|
+
],
|
|
33
|
+
},
|
|
34
|
+
];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
-
IsBoolean, IsDate, IsNumber, IsOptional,
|
|
2
|
+
IsBoolean, IsDate, IsNumber, IsOptional, IsString,
|
|
3
3
|
} from 'class-validator';
|
|
4
4
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils/decorators';
|
|
5
5
|
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
@@ -83,4 +83,49 @@ export class CreateExercice {
|
|
|
83
83
|
@ToBoolean()
|
|
84
84
|
@IsOptional()
|
|
85
85
|
isDefault?: boolean;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export class CreateProjectExercice {
|
|
89
|
+
@ApiProperty()
|
|
90
|
+
@IsBoolean()
|
|
91
|
+
@ToBoolean()
|
|
92
|
+
withBalanceSheet: boolean;
|
|
93
|
+
|
|
94
|
+
@ApiProperty()
|
|
95
|
+
@IsBoolean()
|
|
96
|
+
@ToBoolean()
|
|
97
|
+
withIncomeStatement: boolean;
|
|
98
|
+
|
|
99
|
+
@ApiProperty()
|
|
100
|
+
@IsBoolean()
|
|
101
|
+
@ToBoolean()
|
|
102
|
+
withbalanceSheetNote: boolean;
|
|
103
|
+
|
|
104
|
+
@ApiProperty()
|
|
105
|
+
@IsBoolean()
|
|
106
|
+
@ToBoolean()
|
|
107
|
+
withCA12: boolean;
|
|
108
|
+
|
|
109
|
+
@ApiProperty()
|
|
110
|
+
@IsBoolean()
|
|
111
|
+
@ToBoolean()
|
|
112
|
+
with2572: boolean;
|
|
113
|
+
|
|
114
|
+
@ApiProperty()
|
|
115
|
+
@IsString()
|
|
116
|
+
mailTo: string;
|
|
117
|
+
|
|
118
|
+
@ApiProperty()
|
|
119
|
+
@IsString()
|
|
120
|
+
mailObject: string;
|
|
121
|
+
|
|
122
|
+
@ApiProperty()
|
|
123
|
+
@IsString()
|
|
124
|
+
mailContent: string;
|
|
125
|
+
|
|
126
|
+
@ApiPropertyOptional()
|
|
127
|
+
@IsBoolean()
|
|
128
|
+
@ToBoolean()
|
|
129
|
+
@IsOptional()
|
|
130
|
+
isTest?: boolean;
|
|
86
131
|
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { IsNumber, IsOptional, IsString } from 'class-validator';
|
|
2
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
|
+
import { PaymentReason } from '../../../Enum/PaymentReason';
|
|
4
|
+
|
|
5
|
+
export class CreatePaymentExpecation {
|
|
6
|
+
@ApiProperty()
|
|
7
|
+
@IsString()
|
|
8
|
+
label: string;
|
|
9
|
+
|
|
10
|
+
@ApiProperty()
|
|
11
|
+
@IsNumber()
|
|
12
|
+
amount: number;
|
|
13
|
+
|
|
14
|
+
@ApiPropertyOptional()
|
|
15
|
+
@IsString()
|
|
16
|
+
@IsOptional()
|
|
17
|
+
payload?: string | null;
|
|
18
|
+
|
|
19
|
+
@ApiProperty()
|
|
20
|
+
@IsNumber()
|
|
21
|
+
idReason: PaymentReason;
|
|
22
|
+
|
|
23
|
+
@ApiPropertyOptional()
|
|
24
|
+
@IsNumber()
|
|
25
|
+
@IsOptional()
|
|
26
|
+
idPrestation?: number | null;
|
|
27
|
+
|
|
28
|
+
@ApiPropertyOptional()
|
|
29
|
+
@IsNumber()
|
|
30
|
+
@IsOptional()
|
|
31
|
+
idRegulation?: number | null;
|
|
32
|
+
|
|
33
|
+
@ApiPropertyOptional()
|
|
34
|
+
@IsString()
|
|
35
|
+
@IsOptional()
|
|
36
|
+
ref?: string | null;
|
|
37
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
-
IsBoolean, IsNumber, IsOptional, IsString,
|
|
2
|
+
IsBoolean, IsInt, IsNumber, IsOptional, IsString,
|
|
3
3
|
} from 'class-validator';
|
|
4
4
|
import { ApiPropertyOptional } from '../../../../utils';
|
|
5
5
|
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
@@ -16,6 +16,11 @@ export class QueryPaginatedSociety {
|
|
|
16
16
|
@ToBoolean()
|
|
17
17
|
withArchived? = false;
|
|
18
18
|
|
|
19
|
+
@ApiPropertyOptional()
|
|
20
|
+
@IsOptional()
|
|
21
|
+
@IsInt()
|
|
22
|
+
idTypeBrand?: number;
|
|
23
|
+
|
|
19
24
|
@ApiPropertyOptional({ default: 25 })
|
|
20
25
|
@IsOptional()
|
|
21
26
|
@IsNumber()
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { IsDate, IsInt, IsOptional } from 'class-validator';
|
|
2
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
|
+
import { SpecialDayType } from '../../../Enum/SpecialDayType';
|
|
4
|
+
|
|
5
|
+
export class CreateUserSpecialDay {
|
|
6
|
+
@ApiProperty()
|
|
7
|
+
type: SpecialDayType;
|
|
8
|
+
|
|
9
|
+
@ApiProperty()
|
|
10
|
+
@IsDate()
|
|
11
|
+
startDate: Date;
|
|
12
|
+
|
|
13
|
+
@ApiProperty()
|
|
14
|
+
@IsDate()
|
|
15
|
+
endDate: Date;
|
|
16
|
+
|
|
17
|
+
@ApiProperty()
|
|
18
|
+
@IsInt()
|
|
19
|
+
idUser: number;
|
|
20
|
+
|
|
21
|
+
@ApiProperty()
|
|
22
|
+
@IsInt()
|
|
23
|
+
idUserWhoCreated: number;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export class UpdateUserSpecialDay {
|
|
27
|
+
@ApiPropertyOptional()
|
|
28
|
+
@IsOptional()
|
|
29
|
+
type?: SpecialDayType;
|
|
30
|
+
|
|
31
|
+
@ApiPropertyOptional()
|
|
32
|
+
@IsOptional()
|
|
33
|
+
@IsDate()
|
|
34
|
+
startDate?: Date;
|
|
35
|
+
|
|
36
|
+
@ApiPropertyOptional()
|
|
37
|
+
@IsOptional()
|
|
38
|
+
@IsDate()
|
|
39
|
+
endDate?: Date;
|
|
40
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { IsDate, IsInt, IsOptional } from 'class-validator';
|
|
2
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
|
+
import { SpecialDayType } from '../../../Enum/SpecialDayType';
|
|
4
|
+
|
|
5
|
+
export class QueryUserSpecialDay {
|
|
6
|
+
@ApiProperty()
|
|
7
|
+
@IsInt()
|
|
8
|
+
idUser: number;
|
|
9
|
+
|
|
10
|
+
@ApiPropertyOptional()
|
|
11
|
+
@IsOptional()
|
|
12
|
+
@IsDate()
|
|
13
|
+
startDate?: Date;
|
|
14
|
+
|
|
15
|
+
@ApiPropertyOptional()
|
|
16
|
+
@IsOptional()
|
|
17
|
+
@IsDate()
|
|
18
|
+
endDate?: Date;
|
|
19
|
+
|
|
20
|
+
@ApiPropertyOptional()
|
|
21
|
+
@IsOptional()
|
|
22
|
+
type?: SpecialDayType;
|
|
23
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ISociety } from './ISociety';
|
|
2
2
|
import { IRegulation } from './IRegulation';
|
|
3
|
+
import { PaymentReason } from '../../Enum/PaymentReason';
|
|
3
4
|
|
|
4
5
|
// paymentsExpectations
|
|
5
6
|
export interface IPaymentExpectation {
|
|
@@ -10,7 +11,7 @@ export interface IPaymentExpectation {
|
|
|
10
11
|
ref: string;
|
|
11
12
|
archive: boolean;
|
|
12
13
|
idCodeErreur: number | null;
|
|
13
|
-
idReason:
|
|
14
|
+
idReason: PaymentReason | null;
|
|
14
15
|
idSociety: number;
|
|
15
16
|
idRegulation: number | null;
|
|
16
17
|
idPrestation: number | null;
|
|
@@ -18,6 +19,6 @@ export interface IPaymentExpectation {
|
|
|
18
19
|
updatedAt?: Date | null;
|
|
19
20
|
|
|
20
21
|
// Associations
|
|
21
|
-
society
|
|
22
|
-
regulation
|
|
22
|
+
society?: ISociety;
|
|
23
|
+
regulation?: IRegulation;
|
|
23
24
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ISociety } from '../..';
|
|
1
2
|
import { IEstimateInvoice } from './IEstimateInvoice';
|
|
2
3
|
import { IThirdParty } from './IThirdParty';
|
|
3
4
|
|
|
@@ -23,4 +24,5 @@ export interface IPaymentExpectationCustomer {
|
|
|
23
24
|
// Associations
|
|
24
25
|
paymentExpectationEstimateInvoice: IEstimateInvoice;
|
|
25
26
|
thirdParty: IThirdParty;
|
|
27
|
+
society?: ISociety;
|
|
26
28
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IUser, SpecialDayType } from '../..';
|
|
2
|
+
|
|
3
|
+
export interface IUserSpecialDay {
|
|
4
|
+
id?: number;
|
|
5
|
+
type: SpecialDayType;
|
|
6
|
+
startDate: Date;
|
|
7
|
+
endDate: Date;
|
|
8
|
+
idUser: number;
|
|
9
|
+
idUserWhoCreated: number;
|
|
10
|
+
createdAt?: Date;
|
|
11
|
+
updatedAt?: Date;
|
|
12
|
+
|
|
13
|
+
// Associations
|
|
14
|
+
user?: IUser;
|
|
15
|
+
userWhoCreated?: IUser;
|
|
16
|
+
}
|
package/ts/types/index.ts
CHANGED
|
@@ -324,6 +324,7 @@ export * from './Interface/models/IUserContest';
|
|
|
324
324
|
export * from './Interface/models/IVoteContest';
|
|
325
325
|
export * from './Interface/models/IEquipment';
|
|
326
326
|
export * from './Interface/models/IUserRoomEquipment';
|
|
327
|
+
export * from './Interface/models/IUserSpecialDay';
|
|
327
328
|
|
|
328
329
|
|
|
329
330
|
// Schemas
|
|
@@ -519,6 +520,7 @@ export * from './Enum/EquipmentType';
|
|
|
519
520
|
export * from './Enum/Room';
|
|
520
521
|
export * from './Enum/EquipmentState';
|
|
521
522
|
export * from './Enum/EquipmentAvailability';
|
|
523
|
+
export * from './Enum/SpecialDayType';
|
|
522
524
|
|
|
523
525
|
// Interfaces API
|
|
524
526
|
export * from './Interface/api/kilometricAllowance/ReadKilometricAllowance';
|
|
@@ -656,7 +658,7 @@ export * from './Interface/api/internalInvoicing/CreateInternalInvoicing2in';
|
|
|
656
658
|
export * from './Interface/api/internalInvoicing/RegenerateInternalInvoicing';
|
|
657
659
|
export * from './Interface/api/internalInvoicing/GetLastRef';
|
|
658
660
|
export * from './Interface/api/exercice/QueryExercice';
|
|
659
|
-
export * from './Interface/api/exercice/
|
|
661
|
+
export * from './Interface/api/exercice/Create';
|
|
660
662
|
export * from './Interface/api/exercice/UpdateExercice';
|
|
661
663
|
export * from './Interface/api/statutsGeneration/UpdateExerciceParams';
|
|
662
664
|
export * from './Interface/api/statutsGeneration/TemplateParams';
|
|
@@ -725,6 +727,8 @@ export * from './Interface/api/team/QueryCreate';
|
|
|
725
727
|
export * from './Interface/api/team/QueryGetAllWithIncludes';
|
|
726
728
|
export * from './Interface/api/team/QueryUpdate';
|
|
727
729
|
export * from './Interface/api/constitutionHistory/QueryPaginatedConstitutionHistory';
|
|
730
|
+
export * from './Interface/api/userSpecialDay/BodyUserSpecialDay';
|
|
731
|
+
export * from './Interface/api/userSpecialDay/QueryUserSpecialDay';
|
|
728
732
|
|
|
729
733
|
// export * from './Interface/api/survey/QuerySurvey';
|
|
730
734
|
export * from './Interface/api/survey/ReadSurvey';
|
|
@@ -1018,6 +1022,7 @@ export * from './Interface/api/equipment/StockAmount';
|
|
|
1018
1022
|
export * from './Interface/api/userRoomEquipment/BulkUpdate';
|
|
1019
1023
|
export * from './Interface/api/customerSignature/Query';
|
|
1020
1024
|
export * from './Interface/api/userRoomEquipment/CreateSignature';
|
|
1025
|
+
export * from './Interface/api/paymentExpectation/CreatePaymentExpecation';
|
|
1021
1026
|
|
|
1022
1027
|
// Enums types
|
|
1023
1028
|
export * from './Interface/enum/Util';
|
package/ts/utils/prestation.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { PrestationOptionType, PrestationOption } from '../types/Enum/Prestation
|
|
|
5
5
|
import { PriceGridClementine } from '../types/Enum/PriceGridClementine';
|
|
6
6
|
import { PriceGridPourcentage } from '../types/Enum/PriceGridPourcentage';
|
|
7
7
|
import { PriceGridLegalstart } from '../types/Enum/PriceGridLegalstart';
|
|
8
|
+
import { PriceGridStatutsExpress } from '../types/Enum/PriceGridStatutsExpress';
|
|
8
9
|
import { ClosingType } from '../types/Enum/ClosingType';
|
|
9
10
|
import { getBrandNameByNodeEnv } from './brands';
|
|
10
11
|
import * as dayjs from 'dayjs';
|
|
@@ -28,6 +29,7 @@ type priceGrid = {
|
|
|
28
29
|
vatRegimeMonthly?: vatRegime[],
|
|
29
30
|
vatRegimeYearly?: vatRegime[],
|
|
30
31
|
taxSystem?: taxSystem[],
|
|
32
|
+
legalForm?: legalForm[],
|
|
31
33
|
};
|
|
32
34
|
|
|
33
35
|
type monthlyPayment = {
|
|
@@ -40,6 +42,11 @@ type turnover = {
|
|
|
40
42
|
price: number,
|
|
41
43
|
};
|
|
42
44
|
|
|
45
|
+
type legalForm = {
|
|
46
|
+
idLegalForm: number,
|
|
47
|
+
price: number,
|
|
48
|
+
};
|
|
49
|
+
|
|
43
50
|
type employee = {
|
|
44
51
|
amountMinimum: number,
|
|
45
52
|
amountMaximum: number,
|
|
@@ -119,7 +126,7 @@ const getPriceGrid = (idTypeBrand: number, idPrestationList: number): priceGrid
|
|
|
119
126
|
|
|
120
127
|
const currentEnvName = getBrandNameByNodeEnv(process.env.NODE_ENV);
|
|
121
128
|
const listEnvEnum = {
|
|
122
|
-
PriceGridClementine, PriceGridPourcentage, PriceGridLegalstart,
|
|
129
|
+
PriceGridClementine, PriceGridPourcentage, PriceGridLegalstart, PriceGridStatutsExpress,
|
|
123
130
|
};
|
|
124
131
|
// @ts-ignore
|
|
125
132
|
const currentPriceGridFile: priceGridBrand[] = listEnvEnum[`PriceGrid${currentEnvName}`];
|
|
@@ -128,7 +135,7 @@ const getPriceGrid = (idTypeBrand: number, idPrestationList: number): priceGrid
|
|
|
128
135
|
return currentPriceGrid;
|
|
129
136
|
};
|
|
130
137
|
|
|
131
|
-
const calculatePrestationPriceWithPriceGrid = (idPrestationList: number, endDate: string, NbrMonth: number, turnover: number, rentsNumber: number, employeesNumber: number, associatesNumber: number, idTypeBrand: number, idVatRegime: number, pastBalanceSheet: boolean, isYearly: boolean, totalMonth: number, idTaxSystem: number): { totalPrestation: number, reduceMonth: number, canBeCreated: boolean, monthNbr: number, price: number } => {
|
|
138
|
+
const calculatePrestationPriceWithPriceGrid = (idPrestationList: number, endDate: string, NbrMonth: number, turnover: number, rentsNumber: number, employeesNumber: number, associatesNumber: number, idTypeBrand: number, idVatRegime: number, pastBalanceSheet: boolean, isYearly: boolean, totalMonth: number, idTaxSystem: number, idLegalForm: number): { totalPrestation: number, reduceMonth: number, canBeCreated: boolean, monthNbr: number, price: number } => {
|
|
132
139
|
let totalPrestation: number = 0;
|
|
133
140
|
let reduceMonth: number = 0;
|
|
134
141
|
let monthNbr: number = NbrMonth;
|
|
@@ -155,11 +162,14 @@ const calculatePrestationPriceWithPriceGrid = (idPrestationList: number, endDate
|
|
|
155
162
|
/* Gestion des montants */
|
|
156
163
|
if (currentPriceGrid.turnoverMonthly && !isYearly) monthlyPrice = currentPriceGrid.turnoverMonthly?.find(turn => turnover < turn.turnoverValue)?.price;
|
|
157
164
|
else if (currentPriceGrid.properties) monthlyPrice = currentPriceGrid.properties?.find(property => property.amount === rentsNumber)?.price;
|
|
158
|
-
else if (currentPriceGrid.employee)
|
|
159
|
-
|
|
165
|
+
else if (currentPriceGrid.employee) {
|
|
166
|
+
monthlyPrice = currentPriceGrid.employee?.find(emp => emp.amountMinimum <= employeesNumber && emp.amountMaximum >= employeesNumber)?.price;
|
|
167
|
+
monthlyPrice = monthlyPrice ? monthlyPrice * employeesNumber : 0;
|
|
168
|
+
} else if (currentPriceGrid.turnoverYearly && isYearly) yearlyPrice = currentPriceGrid.turnoverYearly?.find(turn => turnover < turn.turnoverValue)?.price;
|
|
160
169
|
else if (!pastBalanceSheet && currentPriceGrid.turnoverCreatedYear) yearlyPrice = currentPriceGrid.turnoverCreatedYear?.find(turn => turnover < turn.turnoverValue)?.price;
|
|
161
170
|
else if (pastBalanceSheet && currentPriceGrid.turnoverPastYear) yearlyPrice = currentPriceGrid.turnoverPastYear?.find(turn => turnover < turn.turnoverValue)?.price;
|
|
162
171
|
else if (currentPriceGrid.partner) yearlyPrice = currentPriceGrid.partner?.find(part => part.amountMinimum <= associatesNumber && part.amountMaximum >= associatesNumber)?.price;
|
|
172
|
+
else if (currentPriceGrid.legalForm) yearlyPrice = currentPriceGrid.legalForm?.find(form => form.idLegalForm === idLegalForm)?.price;
|
|
163
173
|
finalMonthlyPrice = (monthlyPrice ? monthlyPrice : 0) + (vatRegimePrice ? vatRegimePrice : 0) + (taxSystemPrice ? taxSystemPrice : 0);
|
|
164
174
|
|
|
165
175
|
/* Gestion des mois */
|
|
@@ -195,7 +205,7 @@ const calculatePrestationPriceWithPrestationList = (prestationList: IPrestationL
|
|
|
195
205
|
return totalPrestation;
|
|
196
206
|
};
|
|
197
207
|
|
|
198
|
-
const calculatePrestationPrice = (idPrestationList: number, prestationList: IPrestationList, endDate: string, NbrMonth: number, turnover: number, rentsNumber: number, employeesNumber: number, associatesNumber: number, idTypeBrand: number, idVatRegime: number, pastBalanceSheet: boolean, optionsList: number[], totalPercentage: number, totalAmount: number, totalMonth: number, isWithApplicationFees: boolean, idTaxSystem: number, isYearly: boolean = false): { totalPrestation: number, reduceMonth: number, canBeCreated: boolean, calculDetail: string, monthlyPrice: string, price: number } => {
|
|
208
|
+
const calculatePrestationPrice = (idPrestationList: number, prestationList: IPrestationList, endDate: string, NbrMonth: number, turnover: number, rentsNumber: number, employeesNumber: number, associatesNumber: number, idTypeBrand: number, idVatRegime: number, pastBalanceSheet: boolean, optionsList: number[], totalPercentage: number, totalAmount: number, totalMonth: number, isWithApplicationFees: boolean, idTaxSystem: number, idLegalForm: number, isYearly: boolean = false): { totalPrestation: number, reduceMonth: number, canBeCreated: boolean, calculDetail: string, monthlyPrice: string, price: number } => {
|
|
199
209
|
let totalPrestation: number = 0;
|
|
200
210
|
let reduceMonth: number = 0;
|
|
201
211
|
let canBeCreated: boolean = true;
|
|
@@ -228,9 +238,10 @@ const calculatePrestationPrice = (idPrestationList: number, prestationList: IPre
|
|
|
228
238
|
PrestationType.COMPTA_MICRO_KLEMS_EXPRESS,
|
|
229
239
|
PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS,
|
|
230
240
|
PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS_EXPRESS,
|
|
241
|
+
PrestationType.STATUTS_OPTION_2,
|
|
231
242
|
].includes(idPrestationList)
|
|
232
243
|
) {
|
|
233
|
-
totalWithReduce = calculatePrestationPriceWithPriceGrid(idPrestationList, endDate, NbrMonth, turnover, rentsNumber, employeesNumber, associatesNumber, idTypeBrand, idVatRegime, pastBalanceSheet, isYearly, totalMonth, idTaxSystem);
|
|
244
|
+
totalWithReduce = calculatePrestationPriceWithPriceGrid(idPrestationList, endDate, NbrMonth, turnover, rentsNumber, employeesNumber, associatesNumber, idTypeBrand, idVatRegime, pastBalanceSheet, isYearly, totalMonth, idTaxSystem, idLegalForm);
|
|
234
245
|
totalPrestation = totalWithReduce.totalPrestation;
|
|
235
246
|
reduceMonth = totalWithReduce.reduceMonth;
|
|
236
247
|
canBeCreated = totalWithReduce.canBeCreated;
|
|
@@ -238,6 +249,7 @@ const calculatePrestationPrice = (idPrestationList: number, prestationList: IPre
|
|
|
238
249
|
price = totalWithReduce.price;
|
|
239
250
|
} else {
|
|
240
251
|
totalPrestation = calculatePrestationPriceWithPrestationList(prestationList);
|
|
252
|
+
if ([PrestationType.CREATION_SOCIETE].includes(idPrestationList)) totalPrestation += 50;
|
|
241
253
|
}
|
|
242
254
|
if (totalAmount > 0) totalPrestation = totalPrestation - totalAmount;
|
|
243
255
|
if (totalPercentage > 0) totalPrestation = totalPrestation - (totalPrestation * (totalPercentage / 100));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CreateExercice.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/exercice/CreateExercice.ts"],"names":[],"mappings":"AAMA,qBAAa,cAAc;IAGvB,SAAS,EAAE,IAAI,CAAC;IAIhB,OAAO,EAAE,IAAI,CAAC;IAMd,MAAM,CAAC,EAAE,OAAO,CAAC;IAMjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAMhB,SAAS,CAAC,EAAE,OAAO,CAAC;IAMpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAMlB,YAAY,CAAC,EAAE,OAAO,CAAC;IAMvB,WAAW,CAAC,EAAE,OAAO,CAAC;IAMtB,WAAW,CAAC,EAAE,OAAO,CAAC;IAMtB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAM3B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAM9B,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAKlC,SAAS,EAAE,MAAM,CAAC;IAMlB,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CreateExercice.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/exercice/CreateExercice.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAEyB;AACzB,6DAAgF;AAChF,sFAA2E;AAE3E,MAAa,cAAc;CA+E1B;AA9EC;IAAC,IAAA,wBAAW,GAAE;IACb,IAAA,wBAAM,GAAE;8BACI,IAAI;iDAAC;AAElB;IAAC,IAAA,wBAAW,GAAE;IACb,IAAA,wBAAM,GAAE;8BACE,IAAI;+CAAC;AAEhB;IAAC,IAAA,gCAAmB,GAAE;IACrB,IAAA,2BAAS,GAAE;IACX,IAAA,6BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;8CACM;AAEnB;IAAC,IAAA,gCAAmB,GAAE;IACrB,IAAA,2BAAS,GAAE;IACX,IAAA,6BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;6CACK;AAElB;IAAC,IAAA,gCAAmB,GAAE;IACrB,IAAA,2BAAS,GAAE;IACX,IAAA,6BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;iDACS;AAEtB;IAAC,IAAA,gCAAmB,GAAE;IACrB,IAAA,2BAAS,GAAE;IACX,IAAA,6BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;+CACO;AAEpB;IAAC,IAAA,gCAAmB,GAAE;IACrB,IAAA,2BAAS,GAAE;IACX,IAAA,6BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;oDACY;AAEzB;IAAC,IAAA,gCAAmB,GAAE;IACrB,IAAA,2BAAS,GAAE;IACX,IAAA,6BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;mDACW;AAExB;IAAC,IAAA,gCAAmB,GAAE;IACrB,IAAA,2BAAS,GAAE;IACX,IAAA,6BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;mDACW;AAExB;IAAC,IAAA,gCAAmB,GAAE;IACrB,IAAA,2BAAS,GAAE;IACX,IAAA,6BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;wDACgB;AAE7B;IAAC,IAAA,gCAAmB,GAAE;IACrB,IAAA,2BAAS,GAAE;IACX,IAAA,6BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;2DACmB;AAEhC;IAAC,IAAA,gCAAmB,GAAE;IACrB,IAAA,2BAAS,GAAE;IACX,IAAA,6BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;+DACuB;AAEpC;IAAC,IAAA,gCAAmB,GAAE;IACrB,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;iDACO;AAEpB;IAAC,IAAA,gCAAmB,GAAE;IACrB,IAAA,2BAAS,GAAE;IACX,IAAA,6BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;iDACS;AA9ExB,wCA+EC","sourcesContent":["import {\n IsBoolean, IsDate, IsNumber, IsOptional,\n} from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils/decorators';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class CreateExercice {\n @ApiProperty()\n @IsDate()\n startDate: Date;\n\n @ApiProperty()\n @IsDate()\n endDate: Date;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isBack?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n close?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n allAnnote?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n current?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n withApproval?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n reviewGuide?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n summaryNote?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n receiptJeDeclare?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n annualFolderEdition?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n processClossingExercice?: boolean;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n idSociety: number;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isDefault?: boolean;\n}"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CreateExercice.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/exercice/CreateExercice.ts"],"names":[],"mappings":"AAMA,qBAAa,cAAc;IAGvB,SAAS,EAAE,IAAI,CAAC;IAIhB,OAAO,EAAE,IAAI,CAAC;IAMd,MAAM,CAAC,EAAE,OAAO,CAAC;IAMjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAMhB,SAAS,CAAC,EAAE,OAAO,CAAC;IAMpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAMlB,YAAY,CAAC,EAAE,OAAO,CAAC;IAMvB,WAAW,CAAC,EAAE,OAAO,CAAC;IAMtB,WAAW,CAAC,EAAE,OAAO,CAAC;IAMtB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAM3B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAM9B,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAKlC,SAAS,EAAE,MAAM,CAAC;IAMlB,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CreateExercice.js","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/exercice/CreateExercice.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,GACxC,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAChF,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAE3E,MAAM,OAAO,cAAc;IAGvB,SAAS,CAAO;IAIhB,OAAO,CAAO;IAMd,MAAM,CAAW;IAMjB,KAAK,CAAW;IAMhB,SAAS,CAAW;IAMpB,OAAO,CAAW;IAMlB,YAAY,CAAW;IAMvB,WAAW,CAAW;IAMtB,WAAW,CAAW;IAMtB,gBAAgB,CAAW;IAM3B,mBAAmB,CAAW;IAM9B,uBAAuB,CAAW;IAKlC,SAAS,CAAS;IAMlB,SAAS,CAAW;CACvB;AA9EC;IAAC,WAAW,EAAE;IACb,MAAM,EAAE;8BACI,IAAI;iDAAC;AAElB;IAAC,WAAW,EAAE;IACb,MAAM,EAAE;8BACE,IAAI;+CAAC;AAEhB;IAAC,mBAAmB,EAAE;IACrB,SAAS,EAAE;IACX,SAAS,EAAE;IACX,UAAU,EAAE;;8CACM;AAEnB;IAAC,mBAAmB,EAAE;IACrB,SAAS,EAAE;IACX,SAAS,EAAE;IACX,UAAU,EAAE;;6CACK;AAElB;IAAC,mBAAmB,EAAE;IACrB,SAAS,EAAE;IACX,SAAS,EAAE;IACX,UAAU,EAAE;;iDACS;AAEtB;IAAC,mBAAmB,EAAE;IACrB,SAAS,EAAE;IACX,SAAS,EAAE;IACX,UAAU,EAAE;;+CACO;AAEpB;IAAC,mBAAmB,EAAE;IACrB,SAAS,EAAE;IACX,SAAS,EAAE;IACX,UAAU,EAAE;;oDACY;AAEzB;IAAC,mBAAmB,EAAE;IACrB,SAAS,EAAE;IACX,SAAS,EAAE;IACX,UAAU,EAAE;;mDACW;AAExB;IAAC,mBAAmB,EAAE;IACrB,SAAS,EAAE;IACX,SAAS,EAAE;IACX,UAAU,EAAE;;mDACW;AAExB;IAAC,mBAAmB,EAAE;IACrB,SAAS,EAAE;IACX,SAAS,EAAE;IACX,UAAU,EAAE;;wDACgB;AAE7B;IAAC,mBAAmB,EAAE;IACrB,SAAS,EAAE;IACX,SAAS,EAAE;IACX,UAAU,EAAE;;2DACmB;AAEhC;IAAC,mBAAmB,EAAE;IACrB,SAAS,EAAE;IACX,SAAS,EAAE;IACX,UAAU,EAAE;;+DACuB;AAEpC;IAAC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;iDACO;AAEpB;IAAC,mBAAmB,EAAE;IACrB,SAAS,EAAE;IACX,SAAS,EAAE;IACX,UAAU,EAAE;;iDACS","sourcesContent":["import {\n IsBoolean, IsDate, IsNumber, IsOptional,\n} from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils/decorators';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class CreateExercice {\n @ApiProperty()\n @IsDate()\n startDate: Date;\n\n @ApiProperty()\n @IsDate()\n endDate: Date;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isBack?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n close?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n allAnnote?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n current?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n withApproval?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n reviewGuide?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n summaryNote?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n receiptJeDeclare?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n annualFolderEdition?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n processClossingExercice?: boolean;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n idSociety: number;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isDefault?: boolean;\n}"]}
|