@silexpert/core 1.0.72 → 1.0.74
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/es/api/resources/Commercial.d.ts +8 -1
- package/es/api/resources/Commercial.d.ts.map +1 -1
- package/es/api/resources/Commercial.js +13 -1
- package/es/api/resources/Commercial.js.map +1 -1
- package/es/api/resources/Facturation.d.ts +10 -0
- package/es/api/resources/Facturation.d.ts.map +1 -0
- package/es/api/resources/Facturation.js +13 -0
- package/es/api/resources/Facturation.js.map +1 -0
- package/es/api/resources/Regulate.d.ts +7 -0
- package/es/api/resources/Regulate.d.ts.map +1 -0
- package/es/api/resources/Regulate.js +7 -0
- package/es/api/resources/Regulate.js.map +1 -0
- package/es/api/resources.d.ts +4 -0
- package/es/api/resources.d.ts.map +1 -1
- package/es/api/resources.js +4 -0
- package/es/api/resources.js.map +1 -1
- package/es/types/Enum/BrandPourcentage.js +1 -1
- package/es/types/Enum/BrandPourcentage.js.map +1 -1
- package/es/types/Enum/Ged.d.ts +2 -0
- package/es/types/Enum/Ged.d.ts.map +1 -1
- package/es/types/Enum/Ged.js +2 -2
- package/es/types/Enum/Ged.js.map +1 -1
- package/es/types/Enum/RegulateType.d.ts +10 -0
- package/es/types/Enum/RegulateType.d.ts.map +1 -0
- package/es/types/Enum/RegulateType.js +11 -0
- package/es/types/Enum/RegulateType.js.map +1 -0
- package/es/types/Enum/TimeCounterType.js +7 -7
- package/es/types/Enum/TimeCounterType.js.map +1 -1
- package/es/types/Interface/api/billingHistory/QueryPaginatedBillingHistory.d.ts +5 -0
- package/es/types/Interface/api/billingHistory/QueryPaginatedBillingHistory.d.ts.map +1 -0
- package/es/types/Interface/api/billingHistory/QueryPaginatedBillingHistory.js +26 -0
- package/es/types/Interface/api/billingHistory/QueryPaginatedBillingHistory.js.map +1 -0
- package/es/types/Interface/api/commercial/QueryFetchDialogDatasInfosOk.d.ts +7 -0
- package/es/types/Interface/api/commercial/QueryFetchDialogDatasInfosOk.d.ts.map +1 -0
- package/es/types/Interface/api/commercial/QueryFetchDialogDatasInfosOk.js +26 -0
- package/es/types/Interface/api/commercial/QueryFetchDialogDatasInfosOk.js.map +1 -0
- package/es/types/Interface/api/commercial/QueryGetStats.d.ts +6 -0
- package/es/types/Interface/api/commercial/QueryGetStats.d.ts.map +1 -0
- package/es/types/Interface/api/commercial/QueryGetStats.js +32 -0
- package/es/types/Interface/api/commercial/QueryGetStats.js.map +1 -0
- package/es/types/Interface/api/commercial/QueryMovePrestationsToNextMonth.d.ts +4 -0
- package/es/types/Interface/api/commercial/QueryMovePrestationsToNextMonth.d.ts.map +1 -0
- package/es/types/Interface/api/commercial/QueryMovePrestationsToNextMonth.js +19 -0
- package/es/types/Interface/api/commercial/QueryMovePrestationsToNextMonth.js.map +1 -0
- package/es/types/Interface/api/facturation/CreateRebilling.d.ts +11 -0
- package/es/types/Interface/api/facturation/CreateRebilling.d.ts.map +1 -0
- package/es/types/Interface/api/facturation/CreateRebilling.js +58 -0
- package/es/types/Interface/api/facturation/CreateRebilling.js.map +1 -0
- package/es/types/Interface/api/regulate/QueryGetAll.d.ts +6 -0
- package/es/types/Interface/api/regulate/QueryGetAll.d.ts.map +1 -0
- package/es/types/Interface/api/regulate/QueryGetAll.js +32 -0
- package/es/types/Interface/api/regulate/QueryGetAll.js.map +1 -0
- package/es/types/Interface/api/regulate/RegulateWithStats.d.ts +13 -0
- package/es/types/Interface/api/regulate/RegulateWithStats.d.ts.map +1 -0
- package/es/types/Interface/api/regulate/RegulateWithStats.js +2 -0
- package/es/types/Interface/api/regulate/RegulateWithStats.js.map +1 -0
- package/es/types/Interface/api/society/QueryPaginatedSocietyWithFacturation.d.ts +11 -0
- package/es/types/Interface/api/society/QueryPaginatedSocietyWithFacturation.d.ts.map +1 -0
- package/es/types/Interface/api/society/QueryPaginatedSocietyWithFacturation.js +62 -0
- package/es/types/Interface/api/society/QueryPaginatedSocietyWithFacturation.js.map +1 -0
- package/es/types/Interface/api/society/QuerySociety.d.ts +1 -0
- package/es/types/Interface/api/society/QuerySociety.d.ts.map +1 -1
- package/es/types/Interface/api/society/QuerySociety.js +8 -0
- package/es/types/Interface/api/society/QuerySociety.js.map +1 -1
- package/es/types/Interface/api/society/SocietyWithStatsCaParams.d.ts +1 -1
- package/es/types/Interface/api/society/SocietyWithStatsCaParams.d.ts.map +1 -1
- package/es/types/Interface/api/society/SocietyWithStatsCaParams.js.map +1 -1
- package/es/types/Interface/models/IBillingHistory.d.ts +18 -0
- package/es/types/Interface/models/IBillingHistory.d.ts.map +1 -0
- package/es/types/Interface/models/IBillingHistory.js +2 -0
- package/es/types/Interface/models/IBillingHistory.js.map +1 -0
- package/es/types/Interface/models/IExercice.d.ts +1 -0
- package/es/types/Interface/models/IExercice.d.ts.map +1 -1
- package/es/types/Interface/models/IExercice.js.map +1 -1
- package/es/types/Interface/models/IOldExpertInfo.d.ts +1 -0
- package/es/types/Interface/models/IOldExpertInfo.d.ts.map +1 -1
- package/es/types/Interface/models/IOldExpertInfo.js.map +1 -1
- package/es/types/Interface/models/IRegulate.d.ts +5 -0
- package/es/types/Interface/models/IRegulate.d.ts.map +1 -1
- package/es/types/Interface/models/IRegulate.js.map +1 -1
- package/es/types/Interface/models/ISociety.d.ts +2 -1
- package/es/types/Interface/models/ISociety.d.ts.map +1 -1
- package/es/types/Interface/models/ISociety.js.map +1 -1
- package/es/types/Interface/models/IUser.d.ts +1 -0
- package/es/types/Interface/models/IUser.d.ts.map +1 -1
- package/es/types/Interface/models/IUser.js.map +1 -1
- package/es/types/index.d.ts +10 -0
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +10 -0
- package/es/types/index.js.map +1 -1
- package/js/api/resources/Commercial.js +31 -1
- package/js/api/resources/Commercial.js.map +1 -1
- package/js/api/resources/Facturation.js +34 -0
- package/js/api/resources/Facturation.js.map +1 -0
- package/js/api/resources/Regulate.js +22 -0
- package/js/api/resources/Regulate.js.map +1 -0
- package/js/api/resources.js +6 -0
- package/js/api/resources.js.map +1 -1
- package/js/types/Enum/BrandPourcentage.js +1 -1
- package/js/types/Enum/BrandPourcentage.js.map +1 -1
- package/js/types/Enum/Ged.js +3 -3
- package/js/types/Enum/Ged.js.map +1 -1
- package/js/types/Enum/RegulateType.js +18 -0
- package/js/types/Enum/RegulateType.js.map +1 -0
- package/js/types/Enum/TimeCounterType.js +7 -7
- package/js/types/Enum/TimeCounterType.js.map +1 -1
- package/js/types/Interface/api/billingHistory/QueryPaginatedBillingHistory.js +35 -0
- package/js/types/Interface/api/billingHistory/QueryPaginatedBillingHistory.js.map +1 -0
- package/js/types/Interface/api/commercial/QueryFetchDialogDatasInfosOk.js +35 -0
- package/js/types/Interface/api/commercial/QueryFetchDialogDatasInfosOk.js.map +1 -0
- package/js/types/Interface/api/commercial/QueryGetStats.js +33 -0
- package/js/types/Interface/api/commercial/QueryGetStats.js.map +1 -0
- package/js/types/Interface/api/commercial/QueryMovePrestationsToNextMonth.js +29 -0
- package/js/types/Interface/api/commercial/QueryMovePrestationsToNextMonth.js.map +1 -0
- package/js/types/Interface/api/facturation/CreateRebilling.js +45 -0
- package/js/types/Interface/api/facturation/CreateRebilling.js.map +1 -0
- package/js/types/Interface/api/regulate/QueryGetAll.js +33 -0
- package/js/types/Interface/api/regulate/QueryGetAll.js.map +1 -0
- package/js/types/Interface/api/regulate/RegulateWithStats.js +6 -0
- package/js/types/Interface/api/regulate/RegulateWithStats.js.map +1 -0
- package/js/types/Interface/api/society/QueryPaginatedSocietyWithFacturation.js +47 -0
- package/js/types/Interface/api/society/QueryPaginatedSocietyWithFacturation.js.map +1 -0
- package/js/types/Interface/api/society/QuerySociety.js +7 -1
- package/js/types/Interface/api/society/QuerySociety.js.map +1 -1
- package/js/types/Interface/models/IBillingHistory.js +6 -0
- package/js/types/Interface/models/IBillingHistory.js.map +1 -0
- package/js/types/index.js +120 -0
- package/js/types/index.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Commercial.ts +17 -2
- package/ts/api/resources/Facturation.ts +18 -0
- package/ts/api/resources/Regulate.ts +9 -0
- package/ts/api/resources.ts +4 -0
- package/ts/types/Enum/BrandPourcentage.ts +1 -1
- package/ts/types/Enum/Ged.ts +2 -2
- package/ts/types/Enum/RegulateType.ts +10 -0
- package/ts/types/Enum/TimeCounterType.ts +7 -7
- package/ts/types/Interface/api/billingHistory/QueryPaginatedBillingHistory.ts +16 -0
- package/ts/types/Interface/api/commercial/QueryFetchDialogDatasInfosOk.ts +16 -0
- package/ts/types/Interface/api/commercial/QueryGetStats.ts +21 -0
- package/ts/types/Interface/api/commercial/QueryMovePrestationsToNextMonth.ts +10 -0
- package/ts/types/Interface/api/facturation/CreateRebilling.ts +42 -0
- package/ts/types/Interface/api/regulate/QueryGetAll.ts +21 -0
- package/ts/types/Interface/api/regulate/RegulateWithStats.ts +12 -0
- package/ts/types/Interface/api/society/QueryPaginatedSocietyWithFacturation.ts +46 -0
- package/ts/types/Interface/api/society/QuerySociety.ts +7 -0
- package/ts/types/Interface/api/society/SocietyWithStatsCaParams.ts +1 -1
- package/ts/types/Interface/models/IBillingHistory.ts +21 -0
- package/ts/types/Interface/models/IExercice.ts +1 -0
- package/ts/types/Interface/models/IOldExpertInfo.ts +1 -0
- package/ts/types/Interface/models/IRegulate.ts +7 -0
- package/ts/types/Interface/models/ISociety.ts +2 -1
- package/ts/types/Interface/models/IUser.ts +1 -0
- package/ts/types/index.ts +10 -0
|
@@ -51,7 +51,7 @@ export const BrandPourcentage = [
|
|
|
51
51
|
miniLogoUrl: 'logo-pourcentage-mini.svg',
|
|
52
52
|
hiddenPages: [],
|
|
53
53
|
recaptchaSecretKey: '6Le0o3kaAAAAAIEcSOib77JdK_W3cyIilK-p2yOG',
|
|
54
|
-
urlApp: 'https://app.pourcentage.fr
|
|
54
|
+
urlApp: 'https://app.pourcentage.fr',
|
|
55
55
|
urlApi1: 'https://api.pourcentage.fr',
|
|
56
56
|
urlApi2: 'https://api-next.pourcentage.fr',
|
|
57
57
|
urlExpert: 'https://pro.pourcentage.fr',
|
package/ts/types/Enum/Ged.ts
CHANGED
|
@@ -5,28 +5,28 @@ export const TimeCounterType = {
|
|
|
5
5
|
id: 1,
|
|
6
6
|
label: 'OnBoarding',
|
|
7
7
|
aberrantTime: 60,
|
|
8
|
-
limitedRoles: [Role.FRONT_OFFICE],
|
|
8
|
+
limitedRoles: [Role.FRONT_OFFICE, Role.FRONT_OFFICE_EXPRESS],
|
|
9
9
|
color: 'fire',
|
|
10
10
|
},
|
|
11
11
|
VAT: {
|
|
12
12
|
id: 2,
|
|
13
13
|
label: 'TVA',
|
|
14
14
|
aberrantTime: 60,
|
|
15
|
-
limitedRoles: [Role.MANAGER, Role.EXPERT_ACCOUNTANT, Role.FRONT_OFFICE],
|
|
15
|
+
limitedRoles: [Role.MANAGER, Role.EXPERT_ACCOUNTANT, Role.FRONT_OFFICE, Role.FRONT_OFFICE_EXPRESS],
|
|
16
16
|
color: 'iris',
|
|
17
17
|
},
|
|
18
18
|
REVISION: {
|
|
19
19
|
id: 3,
|
|
20
20
|
label: 'Révision',
|
|
21
21
|
aberrantTime: 120,
|
|
22
|
-
limitedRoles: [Role.MANAGER, Role.EXPERT_ACCOUNTANT, Role.FRONT_OFFICE],
|
|
22
|
+
limitedRoles: [Role.MANAGER, Role.EXPERT_ACCOUNTANT, Role.FRONT_OFFICE, Role.FRONT_OFFICE_EXPRESS],
|
|
23
23
|
color: 'bubblegum-light',
|
|
24
24
|
},
|
|
25
25
|
FOLDER_REVIEW: {
|
|
26
26
|
id: 4,
|
|
27
27
|
label: 'Revue dossier',
|
|
28
28
|
aberrantTime: 60,
|
|
29
|
-
limitedRoles: [Role.MANAGER, Role.EXPERT_ACCOUNTANT, Role.FRONT_OFFICE],
|
|
29
|
+
limitedRoles: [Role.MANAGER, Role.EXPERT_ACCOUNTANT, Role.FRONT_OFFICE, Role.FRONT_OFFICE_EXPRESS],
|
|
30
30
|
color: 'cerulean',
|
|
31
31
|
},
|
|
32
32
|
REPORTING: {
|
|
@@ -75,7 +75,7 @@ export const TimeCounterType = {
|
|
|
75
75
|
id: 11,
|
|
76
76
|
label: 'Prévisionnel',
|
|
77
77
|
aberrantTime: 20,
|
|
78
|
-
limitedRoles: [Role.FRONT_OFFICE],
|
|
78
|
+
limitedRoles: [Role.FRONT_OFFICE, Role.FRONT_OFFICE_EXPRESS],
|
|
79
79
|
color: 'cerulean-light',
|
|
80
80
|
},
|
|
81
81
|
CERTIFICATE: {
|
|
@@ -89,7 +89,7 @@ export const TimeCounterType = {
|
|
|
89
89
|
id: 13,
|
|
90
90
|
label: 'Mission complémentaire',
|
|
91
91
|
aberrantTime: 20,
|
|
92
|
-
limitedRoles: [Role.FRONT_OFFICE],
|
|
92
|
+
limitedRoles: [Role.FRONT_OFFICE, Role.FRONT_OFFICE_EXPRESS],
|
|
93
93
|
color: 'cerulean-light',
|
|
94
94
|
},
|
|
95
95
|
ORGANISATION: {
|
|
@@ -138,7 +138,7 @@ export const TimeCounterType = {
|
|
|
138
138
|
id: 20,
|
|
139
139
|
label: 'Bilan',
|
|
140
140
|
aberrantTime: 120,
|
|
141
|
-
limitedRoles: [Role.FRONT_OFFICE, Role.EXPERT_ACCOUNTANT],
|
|
141
|
+
limitedRoles: [Role.FRONT_OFFICE, Role.FRONT_OFFICE_EXPRESS, Role.EXPERT_ACCOUNTANT],
|
|
142
142
|
color: 'cerulean-dark',
|
|
143
143
|
},
|
|
144
144
|
PAYSLIP: {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IsInt, IsOptional, /* IsString, */
|
|
3
|
+
} from 'class-validator';
|
|
4
|
+
import { ApiPropertyOptional } from '../../../../utils';
|
|
5
|
+
|
|
6
|
+
export class QueryPaginatedBillingHistory {
|
|
7
|
+
@ApiPropertyOptional({ default: 25 })
|
|
8
|
+
@IsOptional()
|
|
9
|
+
@IsInt()
|
|
10
|
+
limit?: number;
|
|
11
|
+
|
|
12
|
+
@ApiPropertyOptional({ default: 1 })
|
|
13
|
+
@IsOptional()
|
|
14
|
+
@IsInt()
|
|
15
|
+
page?: number;
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IsInt,
|
|
3
|
+
} from 'class-validator';
|
|
4
|
+
import { ApiProperty } from '../../../../utils';
|
|
5
|
+
|
|
6
|
+
export class QueryFetchDialogDatasInfosOk {
|
|
7
|
+
@ApiProperty()
|
|
8
|
+
@IsInt()
|
|
9
|
+
idSociety: number;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export class QueryFetchDialogDatasDocsOk {
|
|
13
|
+
@ApiProperty()
|
|
14
|
+
@IsInt()
|
|
15
|
+
idSociety: number;
|
|
16
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IsInt, IsOptional,
|
|
3
|
+
} from 'class-validator';
|
|
4
|
+
import { ApiPropertyOptional } from '../../../../utils';
|
|
5
|
+
|
|
6
|
+
export class QueryGetStats {
|
|
7
|
+
@ApiPropertyOptional()
|
|
8
|
+
@IsOptional()
|
|
9
|
+
@IsInt()
|
|
10
|
+
month?: number;
|
|
11
|
+
|
|
12
|
+
@ApiPropertyOptional()
|
|
13
|
+
@IsOptional()
|
|
14
|
+
@IsInt()
|
|
15
|
+
year?: number;
|
|
16
|
+
|
|
17
|
+
@ApiPropertyOptional()
|
|
18
|
+
@IsOptional()
|
|
19
|
+
@IsInt()
|
|
20
|
+
idUser?: number;
|
|
21
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IsBoolean, IsInt, IsOptional, IsString,
|
|
3
|
+
} from 'class-validator';
|
|
4
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../..';
|
|
5
|
+
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
6
|
+
|
|
7
|
+
export class CreateRebilling {
|
|
8
|
+
@ApiPropertyOptional()
|
|
9
|
+
@IsOptional()
|
|
10
|
+
@IsString()
|
|
11
|
+
comment?: string;
|
|
12
|
+
|
|
13
|
+
@ApiPropertyOptional()
|
|
14
|
+
@IsOptional()
|
|
15
|
+
@IsBoolean()
|
|
16
|
+
@ToBoolean()
|
|
17
|
+
hasToBeAccruals?: string;
|
|
18
|
+
|
|
19
|
+
@ApiProperty()
|
|
20
|
+
@IsString()
|
|
21
|
+
turnoverMax: string;
|
|
22
|
+
|
|
23
|
+
@ApiProperty()
|
|
24
|
+
@IsInt()
|
|
25
|
+
idExercice: number;
|
|
26
|
+
|
|
27
|
+
@ApiProperty()
|
|
28
|
+
@IsInt()
|
|
29
|
+
idSociety: number;
|
|
30
|
+
|
|
31
|
+
@ApiProperty()
|
|
32
|
+
@IsInt()
|
|
33
|
+
idPrestation: number;
|
|
34
|
+
|
|
35
|
+
@ApiProperty()
|
|
36
|
+
@IsInt()
|
|
37
|
+
numberOfMonths: number;
|
|
38
|
+
|
|
39
|
+
@ApiProperty()
|
|
40
|
+
@IsInt()
|
|
41
|
+
totalAmount: number;
|
|
42
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IsInt, IsOptional,
|
|
3
|
+
} from 'class-validator';
|
|
4
|
+
import { ApiPropertyOptional } from '../../../../utils';
|
|
5
|
+
|
|
6
|
+
export class QueryGetAll {
|
|
7
|
+
@ApiPropertyOptional()
|
|
8
|
+
@IsOptional()
|
|
9
|
+
@IsInt()
|
|
10
|
+
month?: number;
|
|
11
|
+
|
|
12
|
+
@ApiPropertyOptional()
|
|
13
|
+
@IsOptional()
|
|
14
|
+
@IsInt()
|
|
15
|
+
year?: number;
|
|
16
|
+
|
|
17
|
+
@ApiPropertyOptional()
|
|
18
|
+
@IsOptional()
|
|
19
|
+
@IsInt()
|
|
20
|
+
idUser?: number;
|
|
21
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ISociety } from '../../..';
|
|
2
|
+
|
|
3
|
+
interface SocietyWithRegulate extends Partial<ISociety> {
|
|
4
|
+
type?: string;
|
|
5
|
+
regulateAmount: number;
|
|
6
|
+
}
|
|
7
|
+
export interface RegulateWithStats {
|
|
8
|
+
commercialName: string;
|
|
9
|
+
nbRegulates: number;
|
|
10
|
+
sumRegulatesAmount: number;
|
|
11
|
+
listSocieties: SocietyWithRegulate[]
|
|
12
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IsInt, IsOptional, IsString,
|
|
3
|
+
} from 'class-validator';
|
|
4
|
+
import { ApiPropertyOptional } from '../../../../utils';
|
|
5
|
+
|
|
6
|
+
export class QueryPaginatedSocietyWithFacturation {
|
|
7
|
+
@ApiPropertyOptional()
|
|
8
|
+
@IsOptional()
|
|
9
|
+
@IsString()
|
|
10
|
+
search?: string;
|
|
11
|
+
|
|
12
|
+
@ApiPropertyOptional()
|
|
13
|
+
@IsOptional()
|
|
14
|
+
@IsInt()
|
|
15
|
+
day?: number;
|
|
16
|
+
|
|
17
|
+
@ApiPropertyOptional()
|
|
18
|
+
@IsOptional()
|
|
19
|
+
@IsInt()
|
|
20
|
+
month?: number;
|
|
21
|
+
|
|
22
|
+
@ApiPropertyOptional()
|
|
23
|
+
@IsOptional()
|
|
24
|
+
@IsInt()
|
|
25
|
+
year?: number;
|
|
26
|
+
|
|
27
|
+
@ApiPropertyOptional()
|
|
28
|
+
@IsOptional()
|
|
29
|
+
@IsInt()
|
|
30
|
+
idUser?: number;
|
|
31
|
+
|
|
32
|
+
@ApiPropertyOptional()
|
|
33
|
+
@IsOptional()
|
|
34
|
+
@IsInt()
|
|
35
|
+
idBillingState?: number;
|
|
36
|
+
|
|
37
|
+
@ApiPropertyOptional({ default: 20 })
|
|
38
|
+
@IsOptional()
|
|
39
|
+
@IsInt()
|
|
40
|
+
limit?: number;
|
|
41
|
+
|
|
42
|
+
@ApiPropertyOptional({ default: 1 })
|
|
43
|
+
@IsOptional()
|
|
44
|
+
@IsInt()
|
|
45
|
+
page?: number;
|
|
46
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IsIn, IsOptional } from 'class-validator';
|
|
1
2
|
import { ApiPropertyOptional } from '../../../../utils/decorators';
|
|
2
3
|
|
|
3
4
|
export class QuerySociety {
|
|
@@ -5,5 +6,11 @@ export class QuerySociety {
|
|
|
5
6
|
id?: number;
|
|
6
7
|
|
|
7
8
|
@ApiPropertyOptional()
|
|
9
|
+
@IsOptional()
|
|
8
10
|
attributes?: string[];
|
|
11
|
+
|
|
12
|
+
@ApiPropertyOptional()
|
|
13
|
+
@IsOptional()
|
|
14
|
+
@IsIn(['brandType', 'societyGescom', 'societyBank', 'societyDetails', 'oldExpertInfo', 'activity', 'follows', 'compta', 'subscriptionType', 'nafCode', 'connector', 'societyCgv', 'societyConfig', 'exercices', 'businessPartners'], { each: true })
|
|
15
|
+
include?: string[];
|
|
9
16
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IUser } from './IUser';
|
|
2
|
+
import { IExercice, ISociety } from '../..';
|
|
3
|
+
|
|
4
|
+
// comments
|
|
5
|
+
export interface IBillingHistory {
|
|
6
|
+
id?: number;
|
|
7
|
+
totalAmount: number;
|
|
8
|
+
numberOfMonths: number;
|
|
9
|
+
comment: string;
|
|
10
|
+
hasToBeAccruals?: boolean;
|
|
11
|
+
idUser?: number | null;
|
|
12
|
+
idSociety?: number | null;
|
|
13
|
+
idExercice?: number | null;
|
|
14
|
+
createdAt?: Date | null;
|
|
15
|
+
updatedAt?: Date | null;
|
|
16
|
+
|
|
17
|
+
// Associations
|
|
18
|
+
user?: IUser;
|
|
19
|
+
society?: ISociety;
|
|
20
|
+
exercice?: IExercice;
|
|
21
|
+
}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
|
+
import { ISociety, IUser } from '../..';
|
|
2
|
+
|
|
1
3
|
// regulates
|
|
2
4
|
export interface IRegulate {
|
|
3
5
|
id?: number;
|
|
4
6
|
monthDate: Date;
|
|
5
7
|
regulateAmount: number;
|
|
6
8
|
idUser: number;
|
|
9
|
+
idSociety: number;
|
|
10
|
+
idType: number;
|
|
7
11
|
createdAt?: Date | null;
|
|
8
12
|
updatedAt?: Date | null;
|
|
13
|
+
|
|
14
|
+
society: ISociety;
|
|
15
|
+
user: IUser;
|
|
9
16
|
}
|
|
@@ -48,7 +48,7 @@ import { ISms } from './ISms';
|
|
|
48
48
|
import { IUser } from './IUser';
|
|
49
49
|
import { ISocietyEvent } from './ISocietyEvent';
|
|
50
50
|
import {
|
|
51
|
-
ComptaType, Country, INafCode, IPartneredAccountantCompanyService, Sector, UnpaidDetail, IPartneredAccountantToSociety, IMail, IAccountingTransaction, IFecFile, IGedFile, IBusinessPartner,
|
|
51
|
+
ComptaType, Country, INafCode, IPartneredAccountantCompanyService, Sector, UnpaidDetail, IPartneredAccountantToSociety, IMail, IAccountingTransaction, IFecFile, IGedFile, IBusinessPartner, IPaymentSchedule,
|
|
52
52
|
} from '../..';
|
|
53
53
|
import { IBrandType } from './IBrandType';
|
|
54
54
|
|
|
@@ -158,6 +158,7 @@ export interface ISociety {
|
|
|
158
158
|
societiesFollowedQualityMail?: IFollowedQualityMail[];
|
|
159
159
|
societyFollow?: IFollow[];
|
|
160
160
|
paymentsExpectations?: IPaymentExpectation[];
|
|
161
|
+
paymentSchedules?: IPaymentSchedule[];
|
|
161
162
|
legalForm?: ILegalForm;
|
|
162
163
|
oldExpertInfo?: IOldExpertInfo;
|
|
163
164
|
prestationsSocieties?: IPrestation[];
|
|
@@ -52,6 +52,7 @@ export interface IUser {
|
|
|
52
52
|
stateProspect?: boolean | null;
|
|
53
53
|
birthdate?: Date | null;
|
|
54
54
|
arrivalDate?: Date | null;
|
|
55
|
+
validityDateOfResidencePermit?: Date | null;
|
|
55
56
|
isNewProspect?: boolean;
|
|
56
57
|
hasAccountNumberDisplay?: boolean;
|
|
57
58
|
isAssociate?: boolean | null;
|
package/ts/types/index.ts
CHANGED
|
@@ -49,6 +49,7 @@ export * from './Interface/models/ICivility';
|
|
|
49
49
|
export * from './Interface/models/IErrorCode';
|
|
50
50
|
export * from './Interface/models/IColor';
|
|
51
51
|
export * from './Interface/models/IComment';
|
|
52
|
+
export * from './Interface/models/IBillingHistory';
|
|
52
53
|
export * from './Interface/models/IConnector';
|
|
53
54
|
export * from './Interface/models/ICotation';
|
|
54
55
|
export * from './Interface/models/ICountry';
|
|
@@ -452,6 +453,7 @@ export * from './Enum/Reason';
|
|
|
452
453
|
export * from './Enum/OperationLegalNotice';
|
|
453
454
|
export * from './Enum/OrderStatus';
|
|
454
455
|
export * from './Enum/ReportService';
|
|
456
|
+
export * from './Enum/RegulateType';
|
|
455
457
|
|
|
456
458
|
// Interfaces API
|
|
457
459
|
export * from './Interface/api/partnerTransactionType/ReadPartnerTransactionType';
|
|
@@ -517,6 +519,12 @@ export * from './Interface/api/society/SocietyWithStatsCaParams';
|
|
|
517
519
|
export * from './Interface/api/society/QuerySociety';
|
|
518
520
|
export * from './Interface/api/society/QueryPaginatedSociety';
|
|
519
521
|
export * from './Interface/api/society/QueryPaginatedSocietyWithStatsCa';
|
|
522
|
+
export * from './Interface/api/society/QueryPaginatedSocietyWithFacturation';
|
|
523
|
+
export * from './Interface/api/billingHistory/QueryPaginatedBillingHistory';
|
|
524
|
+
export * from './Interface/api/facturation/CreateRebilling';
|
|
525
|
+
export * from './Interface/api/commercial/QueryGetStats';
|
|
526
|
+
export * from './Interface/api/commercial/QueryFetchDialogDatasInfosOk';
|
|
527
|
+
export * from './Interface/api/commercial/QueryMovePrestationsToNextMonth';
|
|
520
528
|
export * from './Interface/api/society/GetDataSociety';
|
|
521
529
|
export * from './Interface/api/society/CreateSociety';
|
|
522
530
|
export * from './Interface/api/society/UpdateSociety';
|
|
@@ -778,6 +786,8 @@ export * from './Interface/api/mobile/QueryMobileMigration';
|
|
|
778
786
|
export * from './Interface/api/societyEvent/QuerySocietyEvent';
|
|
779
787
|
export * from './Interface/api/societyEvent/CreateSocietyEvent';
|
|
780
788
|
export * from './Interface/api/task/QueryGetAllTask';
|
|
789
|
+
export * from './Interface/api/regulate/QueryGetAll';
|
|
790
|
+
export * from './Interface/api/regulate/RegulateWithStats';
|
|
781
791
|
export * from './Interface/api/task/QueryPaginatedTask';
|
|
782
792
|
export * from './Interface/api/task/QueryCreateTask';
|
|
783
793
|
export * from './Interface/api/task/QueryGetTask';
|