@silexpert/core 0.4.117 → 0.4.118
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/Provision.d.ts +12 -0
- package/es/api/resources/Provision.d.ts.map +1 -0
- package/es/api/resources/Provision.js +19 -0
- package/es/api/resources/Provision.js.map +1 -0
- package/es/api/resources.d.ts +2 -0
- package/es/api/resources.d.ts.map +1 -1
- package/es/api/resources.js +2 -0
- package/es/api/resources.js.map +1 -1
- package/es/types/Enum/ProvisionType.d.ts +12 -0
- package/es/types/Enum/ProvisionType.d.ts.map +1 -0
- package/es/types/Enum/ProvisionType.js +115 -0
- package/es/types/Enum/ProvisionType.js.map +1 -0
- package/es/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.d.ts +1 -0
- package/es/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.d.ts.map +1 -1
- package/es/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.js +7 -0
- package/es/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.js.map +1 -1
- package/es/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.d.ts +1 -0
- package/es/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.d.ts.map +1 -1
- package/es/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.js +7 -0
- package/es/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.js.map +1 -1
- package/es/types/Interface/api/provision/CreateProvisionForm.d.ts +8 -0
- package/es/types/Interface/api/provision/CreateProvisionForm.d.ts.map +1 -0
- package/es/types/Interface/api/provision/CreateProvisionForm.js +38 -0
- package/es/types/Interface/api/provision/CreateProvisionForm.js.map +1 -0
- package/es/types/Interface/api/provision/QueryGetProvisions.d.ts +6 -0
- package/es/types/Interface/api/provision/QueryGetProvisions.d.ts.map +1 -0
- package/es/types/Interface/api/provision/QueryGetProvisions.js +28 -0
- package/es/types/Interface/api/provision/QueryGetProvisions.js.map +1 -0
- package/es/types/Interface/api/provision/QueryProvisions.d.ts +8 -0
- package/es/types/Interface/api/provision/QueryProvisions.d.ts.map +1 -0
- package/es/types/Interface/api/provision/QueryProvisions.js +47 -0
- package/es/types/Interface/api/provision/QueryProvisions.js.map +1 -0
- package/es/types/Interface/api/provision/ReadProvision.d.ts +11 -0
- package/es/types/Interface/api/provision/ReadProvision.d.ts.map +1 -0
- package/es/types/Interface/api/provision/ReadProvision.js +3 -0
- package/es/types/Interface/api/provision/ReadProvision.js.map +1 -0
- package/es/types/Interface/api/provision/UpdateProvisionForm.d.ts +7 -0
- package/es/types/Interface/api/provision/UpdateProvisionForm.d.ts.map +1 -0
- package/es/types/Interface/api/provision/UpdateProvisionForm.js +35 -0
- package/es/types/Interface/api/provision/UpdateProvisionForm.js.map +1 -0
- package/es/types/Interface/models/IAccountingTransaction.d.ts +2 -0
- package/es/types/Interface/models/IAccountingTransaction.d.ts.map +1 -1
- package/es/types/Interface/models/IAccountingTransaction.js.map +1 -1
- package/es/types/Interface/models/IBalanceSheet.d.ts +4 -2
- package/es/types/Interface/models/IBalanceSheet.d.ts.map +1 -1
- package/es/types/Interface/models/IBalanceSheet.js.map +1 -1
- package/es/types/Interface/models/IBalanceSheetHistory.d.ts +0 -6
- package/es/types/Interface/models/IBalanceSheetHistory.d.ts.map +1 -1
- package/es/types/Interface/models/IBalanceSheetHistory.js.map +1 -1
- package/es/types/Interface/models/IBalanceSheetModule.d.ts +1 -0
- package/es/types/Interface/models/IBalanceSheetModule.d.ts.map +1 -1
- package/es/types/Interface/models/IBalanceSheetModule.js.map +1 -1
- package/es/types/Interface/models/IExercicePrestation.d.ts +3 -6
- package/es/types/Interface/models/IExercicePrestation.d.ts.map +1 -1
- package/es/types/Interface/models/IExercicePrestation.js.map +1 -1
- package/es/types/Interface/models/IRelatedAccountingTransaction.d.ts +12 -0
- package/es/types/Interface/models/IRelatedAccountingTransaction.d.ts.map +1 -0
- package/es/types/Interface/models/IRelatedAccountingTransaction.js +2 -0
- package/es/types/Interface/models/IRelatedAccountingTransaction.js.map +1 -0
- package/es/types/Interface/models/ISupervision.d.ts +5 -7
- package/es/types/Interface/models/ISupervision.d.ts.map +1 -1
- package/es/types/Interface/models/ISupervision.js.map +1 -1
- package/es/types/index.d.ts +6 -2
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +6 -2
- package/es/types/index.js.map +1 -1
- package/js/api/resources/Provision.js +36 -0
- package/js/api/resources/Provision.js.map +1 -0
- package/js/api/resources.js +3 -0
- package/js/api/resources.js.map +1 -1
- package/js/types/Enum/ProvisionType.js +120 -0
- package/js/types/Enum/ProvisionType.js.map +1 -0
- package/js/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.js +2 -0
- package/js/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.js.map +1 -1
- package/js/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.js +2 -0
- package/js/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.js.map +1 -1
- package/js/types/Interface/api/provision/CreateProvisionForm.js +39 -0
- package/js/types/Interface/api/provision/CreateProvisionForm.js.map +1 -0
- package/js/types/Interface/api/provision/QueryGetProvisions.js +33 -0
- package/js/types/Interface/api/provision/QueryGetProvisions.js.map +1 -0
- package/js/types/Interface/api/provision/QueryProvisions.js +41 -0
- package/js/types/Interface/api/provision/QueryProvisions.js.map +1 -0
- package/js/types/Interface/api/provision/ReadProvision.js +10 -0
- package/js/types/Interface/api/provision/ReadProvision.js.map +1 -0
- package/js/types/Interface/api/provision/UpdateProvisionForm.js +37 -0
- package/js/types/Interface/api/provision/UpdateProvisionForm.js.map +1 -0
- package/js/types/Interface/models/{IBalanceSheetLiquidation.js → IRelatedAccountingTransaction.js} +1 -1
- package/js/types/Interface/models/{IBalanceSheetLiquidation.js.map → IRelatedAccountingTransaction.js.map} +1 -1
- package/js/types/index.js +72 -24
- package/js/types/index.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Provision.ts +26 -0
- package/ts/api/resources.ts +2 -0
- package/ts/types/Enum/ProvisionType.ts +126 -0
- package/ts/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.ts +6 -0
- package/ts/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.ts +6 -0
- package/ts/types/Interface/api/provision/CreateProvisionForm.ts +27 -0
- package/ts/types/Interface/api/provision/QueryGetProvisions.ts +15 -0
- package/ts/types/Interface/api/provision/QueryProvisions.ts +34 -0
- package/ts/types/Interface/api/provision/ReadProvision.ts +11 -0
- package/ts/types/Interface/api/provision/UpdateProvisionForm.ts +25 -0
- package/ts/types/Interface/models/IAccountingTransaction.ts +2 -0
- package/ts/types/Interface/models/IBalanceSheet.ts +4 -2
- package/ts/types/Interface/models/IBalanceSheetHistory.ts +0 -6
- package/ts/types/Interface/models/IBalanceSheetModule.ts +1 -0
- package/ts/types/Interface/models/IExercicePrestation.ts +3 -6
- package/ts/types/Interface/models/IRelatedAccountingTransaction.ts +15 -0
- package/ts/types/Interface/models/ISupervision.ts +5 -7
- package/ts/types/index.ts +6 -2
- package/es/types/Interface/models/IBalanceSheetLiquidation.d.ts +0 -14
- package/es/types/Interface/models/IBalanceSheetLiquidation.d.ts.map +0 -1
- package/es/types/Interface/models/IBalanceSheetLiquidation.js +0 -2
- package/es/types/Interface/models/IBalanceSheetLiquidation.js.map +0 -1
- package/es/types/Interface/models/IBalanceSheetPartial.d.ts +0 -14
- package/es/types/Interface/models/IBalanceSheetPartial.d.ts.map +0 -1
- package/es/types/Interface/models/IBalanceSheetPartial.js +0 -2
- package/es/types/Interface/models/IBalanceSheetPartial.js.map +0 -1
- package/js/types/Interface/models/IBalanceSheetPartial.js +0 -6
- package/js/types/Interface/models/IBalanceSheetPartial.js.map +0 -1
- package/ts/types/Interface/models/IBalanceSheetLiquidation.ts +0 -17
- package/ts/types/Interface/models/IBalanceSheetPartial.ts +0 -17
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.118",
|
|
4
4
|
"description": "Silex Core perform HTTP Request and object binding. Silex core helps developers to retrieve and return formatted object",
|
|
5
5
|
"homepage": "https://gitlab.compta-clementine.fr/dev/silex-api",
|
|
6
6
|
"main": "js/index.js",
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Resource } from '../Resource';
|
|
2
|
+
import {
|
|
3
|
+
CreateProvisionForm, QueryGetProvisions, ReadProvision, UpdateProvisionForm,
|
|
4
|
+
} from '../../types';
|
|
5
|
+
|
|
6
|
+
export class Provision extends Resource {
|
|
7
|
+
getAll(params: QueryGetProvisions): Promise<ReadProvision[]> {
|
|
8
|
+
return this.axios.$get('/balance-sheets/provisions', { params });
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
get(params: { idAccountingTransaction: number }): Promise<ReadProvision> {
|
|
12
|
+
return this.axios.$get(`/balance-sheets/provisions/${params.idAccountingTransaction}`);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
create(payload: CreateProvisionForm): Promise<ReadProvision> {
|
|
16
|
+
return this.axios.$post('/balance-sheets/provisions', payload);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
update(idAccountingTransaction: number, payload: UpdateProvisionForm): Promise<ReadProvision> {
|
|
20
|
+
return this.axios.$put(`/balance-sheets/provisions/${idAccountingTransaction}`, payload);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
delete(idAccountingTransaction: number): Promise<void> {
|
|
24
|
+
return this.axios.$delete(`/balance-sheets/provisions/${idAccountingTransaction}`);
|
|
25
|
+
}
|
|
26
|
+
}
|
package/ts/api/resources.ts
CHANGED
|
@@ -50,6 +50,7 @@ import { InternalInvoicing } from './resources/InternalInvoicing';
|
|
|
50
50
|
import { BalanceSheetQuestion } from './resources/BalanceSheetQuestion';
|
|
51
51
|
import { ExerciceQuestion } from './resources/ExerciceQuestion';
|
|
52
52
|
import { VatControl } from './resources/VatControl';
|
|
53
|
+
import { Provision } from './resources/Provision';
|
|
53
54
|
|
|
54
55
|
export const resources = {
|
|
55
56
|
simulation: Simulation,
|
|
@@ -83,6 +84,7 @@ export const resources = {
|
|
|
83
84
|
promoCode: PromoCode,
|
|
84
85
|
stocks: Stocks,
|
|
85
86
|
loan: Loan,
|
|
87
|
+
provision: Provision,
|
|
86
88
|
societyPromoCode: SocietyPromoCode,
|
|
87
89
|
dashboard: Dashboard,
|
|
88
90
|
zTicket: ZTicket,
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
export type ProvisionTypeContent = {
|
|
2
|
+
idAccount: number,
|
|
3
|
+
number: string,
|
|
4
|
+
label: string,
|
|
5
|
+
idAccountDepreciation: number,
|
|
6
|
+
idAccountRecovery: number,
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export type ProvisionElementType = {
|
|
10
|
+
[key: string]: ProvisionTypeContent
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const ProvisionType: ProvisionElementType = {
|
|
14
|
+
FOR_RISKS: {
|
|
15
|
+
idAccount: 154,
|
|
16
|
+
number: '151000',
|
|
17
|
+
label: 'Provisions pour risques',
|
|
18
|
+
idAccountDepreciation: 1109,
|
|
19
|
+
idAccountRecovery: 500,
|
|
20
|
+
},
|
|
21
|
+
FOR_DISPUTES: {
|
|
22
|
+
idAccount: 155,
|
|
23
|
+
number: '151100',
|
|
24
|
+
label: 'Provisions pour litiges',
|
|
25
|
+
idAccountDepreciation: 1109,
|
|
26
|
+
idAccountRecovery: 500,
|
|
27
|
+
},
|
|
28
|
+
FOR_CUSTOMER_WARRANTY: {
|
|
29
|
+
idAccount: 156,
|
|
30
|
+
number: '151200',
|
|
31
|
+
label: 'Provisions pour garanties données aux clients',
|
|
32
|
+
idAccountDepreciation: 1109,
|
|
33
|
+
idAccountRecovery: 500,
|
|
34
|
+
},
|
|
35
|
+
FOR_MARKET_LOSSES: {
|
|
36
|
+
idAccount: 157,
|
|
37
|
+
number: '151300',
|
|
38
|
+
label: 'Provisions pour pertes sur marchés à terme',
|
|
39
|
+
idAccountDepreciation: 1109,
|
|
40
|
+
idAccountRecovery: 500,
|
|
41
|
+
},
|
|
42
|
+
FOR_FORFEIT_PENALITIES: {
|
|
43
|
+
idAccount: 162,
|
|
44
|
+
number: '151400',
|
|
45
|
+
label: 'Provisions pour amendes et pénalités',
|
|
46
|
+
idAccountDepreciation: 1109,
|
|
47
|
+
idAccountRecovery: 500,
|
|
48
|
+
},
|
|
49
|
+
FOR_CHANGES_LOSSES: {
|
|
50
|
+
idAccount: 163,
|
|
51
|
+
number: '151500',
|
|
52
|
+
label: 'Provisions pour pertes de change',
|
|
53
|
+
idAccountDepreciation: 1109,
|
|
54
|
+
idAccountRecovery: 500,
|
|
55
|
+
},
|
|
56
|
+
FOR_DEAL_LOSSES: {
|
|
57
|
+
idAccount: 164,
|
|
58
|
+
number: '151600',
|
|
59
|
+
label: 'Provisions pour pertes sur contrats',
|
|
60
|
+
idAccountDepreciation: 1109,
|
|
61
|
+
idAccountRecovery: 500,
|
|
62
|
+
},
|
|
63
|
+
OTHER_RISKS: {
|
|
64
|
+
idAccount: 168,
|
|
65
|
+
number: '151800',
|
|
66
|
+
label: 'Autres provisions pour risques',
|
|
67
|
+
idAccountDepreciation: 1109,
|
|
68
|
+
idAccountRecovery: 500,
|
|
69
|
+
},
|
|
70
|
+
FOR_PENSIONS_AND_SIMILAR: {
|
|
71
|
+
idAccount: 169,
|
|
72
|
+
number: '153000',
|
|
73
|
+
label: 'Provisions pour pensions et obligations similaires',
|
|
74
|
+
idAccountDepreciation: 1109,
|
|
75
|
+
idAccountRecovery: 500,
|
|
76
|
+
},
|
|
77
|
+
FOR_RESTRUCTURING: {
|
|
78
|
+
idAccount: 171,
|
|
79
|
+
number: '154000',
|
|
80
|
+
label: 'Provisions pour restructurations',
|
|
81
|
+
idAccountDepreciation: 1109,
|
|
82
|
+
idAccountRecovery: 500,
|
|
83
|
+
},
|
|
84
|
+
FOR_TAXES: {
|
|
85
|
+
idAccount: 172,
|
|
86
|
+
number: '155000',
|
|
87
|
+
label: 'Provisions pour restructurations',
|
|
88
|
+
idAccountDepreciation: 1109,
|
|
89
|
+
idAccountRecovery: 500,
|
|
90
|
+
},
|
|
91
|
+
FOR_IMMOBILIZATIONS_RENEW: {
|
|
92
|
+
idAccount: 175,
|
|
93
|
+
number: '156000',
|
|
94
|
+
label: 'Provisions pour renouvellement des immobilisations - entreprises concessionnaires',
|
|
95
|
+
idAccountDepreciation: 1109,
|
|
96
|
+
idAccountRecovery: 500,
|
|
97
|
+
},
|
|
98
|
+
FOR_MULTIPLE_EXERCICES: {
|
|
99
|
+
idAccount: 176,
|
|
100
|
+
number: '157000',
|
|
101
|
+
label: 'Provisions pour charges à répartir sur plusieurs exercices',
|
|
102
|
+
idAccountDepreciation: 1109,
|
|
103
|
+
idAccountRecovery: 500,
|
|
104
|
+
},
|
|
105
|
+
FOR_BIG_REVIEWS: {
|
|
106
|
+
idAccount: 177,
|
|
107
|
+
number: '157200',
|
|
108
|
+
label: 'Provisions pour gros entretien ou grandes révisions',
|
|
109
|
+
idAccountDepreciation: 1109,
|
|
110
|
+
idAccountRecovery: 500,
|
|
111
|
+
},
|
|
112
|
+
OTHERS_CHARGES: {
|
|
113
|
+
idAccount: 178,
|
|
114
|
+
number: '158000',
|
|
115
|
+
label: 'Autres provisions pour charges',
|
|
116
|
+
idAccountDepreciation: 1109,
|
|
117
|
+
idAccountRecovery: 500,
|
|
118
|
+
},
|
|
119
|
+
FOR_REPAIR: {
|
|
120
|
+
idAccount: 179,
|
|
121
|
+
number: '158100',
|
|
122
|
+
label: 'Provisions pour remises en état',
|
|
123
|
+
idAccountDepreciation: 1109,
|
|
124
|
+
idAccountRecovery: 500,
|
|
125
|
+
},
|
|
126
|
+
};
|
|
@@ -15,6 +15,12 @@ export class CreateBalanceSheetModuleForm {
|
|
|
15
15
|
@ApiPropertyOptional()
|
|
16
16
|
salariesFile?: boolean;
|
|
17
17
|
|
|
18
|
+
@ApiPropertyOptional()
|
|
19
|
+
@IsBoolean()
|
|
20
|
+
@ToBoolean()
|
|
21
|
+
@IsOptional()
|
|
22
|
+
provisionToDeclare?: boolean | null;
|
|
23
|
+
|
|
18
24
|
@ApiPropertyOptional()
|
|
19
25
|
hasCustomerInvoiceToEstablish?: boolean | null;
|
|
20
26
|
|
|
@@ -12,6 +12,12 @@ export class UpdateBalanceSheetModuleForm {
|
|
|
12
12
|
// @ApiPropertyOptional()
|
|
13
13
|
// deadlinerecoveryImmobilization: boolean;
|
|
14
14
|
|
|
15
|
+
@ApiPropertyOptional()
|
|
16
|
+
@IsBoolean()
|
|
17
|
+
@ToBoolean()
|
|
18
|
+
@IsOptional()
|
|
19
|
+
provisionToDeclare?: boolean | null;
|
|
20
|
+
|
|
15
21
|
@ApiPropertyOptional()
|
|
16
22
|
hasCustomerInvoiceToEstablish?: boolean | null;
|
|
17
23
|
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IsNumber, IsOptional, IsString, Min,
|
|
3
|
+
} from 'class-validator';
|
|
4
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
5
|
+
import { ProvisionType } from '../../../Enum/ProvisionType';
|
|
6
|
+
|
|
7
|
+
export class CreateProvisionForm {
|
|
8
|
+
@ApiProperty({ description: 'Désignation' })
|
|
9
|
+
@IsString()
|
|
10
|
+
designation: string;
|
|
11
|
+
|
|
12
|
+
@ApiProperty()
|
|
13
|
+
@IsNumber()
|
|
14
|
+
@Min(0, {
|
|
15
|
+
message: 'Amount should be positive',
|
|
16
|
+
})
|
|
17
|
+
amount: number;
|
|
18
|
+
|
|
19
|
+
@ApiProperty()
|
|
20
|
+
@IsString()
|
|
21
|
+
type: keyof typeof ProvisionType;
|
|
22
|
+
|
|
23
|
+
@ApiPropertyOptional()
|
|
24
|
+
@IsOptional()
|
|
25
|
+
@IsNumber()
|
|
26
|
+
idPreviousProvision?: number;
|
|
27
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IsOptional } from 'class-validator';
|
|
2
|
+
import { ApiPropertyOptional } from '../../../../utils';
|
|
3
|
+
|
|
4
|
+
export class QueryGetProvisions {
|
|
5
|
+
@ApiPropertyOptional()
|
|
6
|
+
idExercice?: number;
|
|
7
|
+
|
|
8
|
+
@ApiPropertyOptional()
|
|
9
|
+
@IsOptional()
|
|
10
|
+
previousExercice?: boolean;
|
|
11
|
+
|
|
12
|
+
@ApiPropertyOptional()
|
|
13
|
+
@IsOptional()
|
|
14
|
+
filterAlreadyProceed?: boolean;
|
|
15
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IsDateString, IsNumber, IsOptional, Min,
|
|
3
|
+
} from 'class-validator';
|
|
4
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
5
|
+
|
|
6
|
+
export class QueryGetProvisions {
|
|
7
|
+
@ApiProperty()
|
|
8
|
+
@IsNumber()
|
|
9
|
+
@Min(0, {
|
|
10
|
+
message: 'page should be positive',
|
|
11
|
+
})
|
|
12
|
+
page: number;
|
|
13
|
+
|
|
14
|
+
@ApiProperty()
|
|
15
|
+
@IsNumber()
|
|
16
|
+
@Min(0, {
|
|
17
|
+
message: 'limit should be positive',
|
|
18
|
+
})
|
|
19
|
+
limit: number;
|
|
20
|
+
|
|
21
|
+
@ApiPropertyOptional()
|
|
22
|
+
@IsDateString()
|
|
23
|
+
startDate?: string;
|
|
24
|
+
|
|
25
|
+
@ApiPropertyOptional()
|
|
26
|
+
@IsDateString()
|
|
27
|
+
@IsOptional()
|
|
28
|
+
endDate?: string;
|
|
29
|
+
|
|
30
|
+
@ApiPropertyOptional()
|
|
31
|
+
@IsNumber()
|
|
32
|
+
@IsOptional()
|
|
33
|
+
idExercice?: string;
|
|
34
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ProvisionType } from '../../../Enum/ProvisionType';
|
|
2
|
+
|
|
3
|
+
export class ReadProvision {
|
|
4
|
+
idAccountingTransaction: number;
|
|
5
|
+
idParentTransaction: number | null;
|
|
6
|
+
idExercice: number;
|
|
7
|
+
idSociety: number;
|
|
8
|
+
designation: string;
|
|
9
|
+
amount: number;
|
|
10
|
+
type: keyof typeof ProvisionType;
|
|
11
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IsString, IsNumber, Min, IsOptional,
|
|
3
|
+
} from 'class-validator';
|
|
4
|
+
import { ApiPropertyOptional } from '../../../../utils';
|
|
5
|
+
import { ProvisionType } from '../../../Enum/ProvisionType';
|
|
6
|
+
|
|
7
|
+
export class UpdateProvisionForm {
|
|
8
|
+
@ApiPropertyOptional({ description: 'Désignation' })
|
|
9
|
+
@IsString()
|
|
10
|
+
@IsOptional()
|
|
11
|
+
designation?: string;
|
|
12
|
+
|
|
13
|
+
@ApiPropertyOptional()
|
|
14
|
+
@IsOptional()
|
|
15
|
+
@IsNumber()
|
|
16
|
+
@Min(0, {
|
|
17
|
+
message: 'Amount should be positive',
|
|
18
|
+
})
|
|
19
|
+
amount?: number;
|
|
20
|
+
|
|
21
|
+
@ApiPropertyOptional()
|
|
22
|
+
@IsString()
|
|
23
|
+
@IsOptional()
|
|
24
|
+
type?: keyof typeof ProvisionType;
|
|
25
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IExercice } from './IExercice';
|
|
2
2
|
import { ICalendarEvent } from './ICalendarEvent';
|
|
3
|
+
import { ISupervision } from './ISupervision';
|
|
3
4
|
|
|
4
5
|
// balanceSheet
|
|
5
6
|
export interface IBalanceSheet {
|
|
@@ -13,6 +14,7 @@ export interface IBalanceSheet {
|
|
|
13
14
|
updatedAt?: Date | null;
|
|
14
15
|
|
|
15
16
|
// Associations
|
|
16
|
-
exercice
|
|
17
|
-
calendarEvent
|
|
17
|
+
exercice?: IExercice;
|
|
18
|
+
calendarEvent?: ICalendarEvent;
|
|
19
|
+
supervision: ISupervision;
|
|
18
20
|
}
|
|
@@ -1,19 +1,13 @@
|
|
|
1
1
|
import { IBalanceSheet } from './IBalanceSheet';
|
|
2
|
-
import { IBalanceSheetPartial } from './IBalanceSheetPartial';
|
|
3
|
-
import { IBalanceSheetLiquidation } from './IBalanceSheetLiquidation';
|
|
4
2
|
|
|
5
3
|
// balanceSheetHistory
|
|
6
4
|
export interface IBalanceSheetHistory {
|
|
7
5
|
id?: number;
|
|
8
6
|
idState: number;
|
|
9
7
|
idBalanceSheet: number | null;
|
|
10
|
-
idBalanceSheetPartial: number | null;
|
|
11
|
-
idBalanceSheetLiquidation: number | null;
|
|
12
8
|
createdAt?: Date | null;
|
|
13
9
|
updatedAt?: Date | null;
|
|
14
10
|
|
|
15
11
|
// Associations
|
|
16
12
|
balanceSheet: IBalanceSheet;
|
|
17
|
-
balanceSheetPartial: IBalanceSheetPartial;
|
|
18
|
-
balanceSheetLiquidation: IBalanceSheetLiquidation;
|
|
19
13
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { IPrestation } from './IPrestation';
|
|
2
|
-
import {
|
|
3
|
-
import { IBalanceSheetLiquidation } from './IBalanceSheetLiquidation';
|
|
2
|
+
import { IBalanceSheet } from './IBalanceSheet';
|
|
4
3
|
|
|
5
4
|
// exercicesPrestations
|
|
6
5
|
export interface IExercicePrestation {
|
|
@@ -11,8 +10,7 @@ export interface IExercicePrestation {
|
|
|
11
10
|
amountSocial: number | null;
|
|
12
11
|
monthOffers: number | null;
|
|
13
12
|
isInCA: boolean;
|
|
14
|
-
|
|
15
|
-
idBalanceSheetLiquidation: number | null;
|
|
13
|
+
idBalanceSheet: number | null;
|
|
16
14
|
createdAt?: Date | null;
|
|
17
15
|
updatedAt?: Date | null;
|
|
18
16
|
idExercice: number | null;
|
|
@@ -20,6 +18,5 @@ export interface IExercicePrestation {
|
|
|
20
18
|
|
|
21
19
|
// Associations
|
|
22
20
|
prestation: IPrestation;
|
|
23
|
-
|
|
24
|
-
balanceSheetLiquidation: IBalanceSheetLiquidation;
|
|
21
|
+
balanceSheet?: IBalanceSheet;
|
|
25
22
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IAccountingTransaction } from './IAccountingTransaction';
|
|
2
|
+
|
|
3
|
+
// accountingTransactions
|
|
4
|
+
export interface IRelatedAccountingTransaction {
|
|
5
|
+
id?: number;
|
|
6
|
+
idChild:number;
|
|
7
|
+
idParent:number
|
|
8
|
+
createdAt?: Date | null;
|
|
9
|
+
updatedAt?: Date | null;
|
|
10
|
+
deletedAt?: Date | null;
|
|
11
|
+
|
|
12
|
+
// Associations
|
|
13
|
+
parent?: IAccountingTransaction
|
|
14
|
+
child?: IAccountingTransaction
|
|
15
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { IExercice } from './IExercice';
|
|
2
2
|
import { ISupervisionJob } from './ISupervisionJob';
|
|
3
3
|
import { IUser } from './IUser';
|
|
4
|
-
import {
|
|
5
|
-
import { IBalanceSheetLiquidation } from './IBalanceSheetLiquidation';
|
|
4
|
+
import { IBalanceSheet } from './IBalanceSheet';
|
|
6
5
|
import { IFile } from './IFile';
|
|
7
6
|
import { IPendingPoint } from './IPendingPoint';
|
|
8
7
|
import { IJob } from './IJob';
|
|
8
|
+
import { ILetter } from './ILetter';
|
|
9
9
|
|
|
10
10
|
// supervisions
|
|
11
11
|
export interface ISupervision {
|
|
@@ -22,8 +22,7 @@ export interface ISupervision {
|
|
|
22
22
|
idFile: number | null;
|
|
23
23
|
idLetter: number | null;
|
|
24
24
|
checkDateRecommandation: Date | null;
|
|
25
|
-
|
|
26
|
-
idBalanceSheetLiquidation: number | null;
|
|
25
|
+
idBalanceSheet: number | null;
|
|
27
26
|
createdAt?: Date | null;
|
|
28
27
|
updatedAt?: Date | null;
|
|
29
28
|
|
|
@@ -33,10 +32,9 @@ export interface ISupervision {
|
|
|
33
32
|
supervisionUsers: IUser;
|
|
34
33
|
supervisionExpertUsers: IUser;
|
|
35
34
|
supervisionAccountant: IUser;
|
|
36
|
-
|
|
37
|
-
balanceSheetLiquidation: IBalanceSheetLiquidation;
|
|
35
|
+
balanceSheet: IBalanceSheet;
|
|
38
36
|
file: IFile;
|
|
39
|
-
letter:
|
|
37
|
+
letter: ILetter;
|
|
40
38
|
pendingPoints: IPendingPoint[];
|
|
41
39
|
jobs: IJob[];
|
|
42
40
|
}
|
package/ts/types/index.ts
CHANGED
|
@@ -29,8 +29,6 @@ export * from './Interface/models/IAutoLoginToken';
|
|
|
29
29
|
export * from './Interface/models/IBalanceBankAccount';
|
|
30
30
|
export * from './Interface/models/IBalanceSheet';
|
|
31
31
|
export * from './Interface/models/IBalanceSheetHistory';
|
|
32
|
-
export * from './Interface/models/IBalanceSheetLiquidation';
|
|
33
|
-
export * from './Interface/models/IBalanceSheetPartial';
|
|
34
32
|
export * from './Interface/models/IBankAccountSynchroHistory';
|
|
35
33
|
export * from './Interface/models/IBankAccount';
|
|
36
34
|
export * from './Interface/models/IBankConnection';
|
|
@@ -295,6 +293,7 @@ export * from './Interface/models/IAnswerType';
|
|
|
295
293
|
export * from './Interface/models/IAnswerTypeValue';
|
|
296
294
|
export * from './Interface/models/IBalanceSheetQuestion';
|
|
297
295
|
export * from './Interface/models/IExerciceQuestion';
|
|
296
|
+
export * from './Interface/models/IRelatedAccountingTransaction';
|
|
298
297
|
|
|
299
298
|
// Forms
|
|
300
299
|
export * from './Form/FormAuthenticate';
|
|
@@ -378,6 +377,7 @@ export * from './Enum/MimeType';
|
|
|
378
377
|
export * from './Enum/BalanceSheetQuestion';
|
|
379
378
|
export * from './Enum/AnswerTypeValue';
|
|
380
379
|
export * from './Enum/PartneredAccountantServiceType';
|
|
380
|
+
export * from './Enum/ProvisionType';
|
|
381
381
|
|
|
382
382
|
// Interfaces API
|
|
383
383
|
export * from './Interface/api/businessPartner/ReadBusinessPartner';
|
|
@@ -568,3 +568,7 @@ export * from './Interface/api/mealExpense/CreateMealExpense';
|
|
|
568
568
|
export * from './Interface/api/mealExpense/ReadMealExpense';
|
|
569
569
|
export * from './Interface/api/exerciceQuestion/QueryQuestion';
|
|
570
570
|
export * from './Interface/api/exerciceQuestion/CreateExerciceQuestion';
|
|
571
|
+
export * from './Interface/api/provision/ReadProvision';
|
|
572
|
+
export * from './Interface/api/provision/CreateProvisionForm';
|
|
573
|
+
export * from './Interface/api/provision/UpdateProvisionForm';
|
|
574
|
+
export * from './Interface/api/provision/QueryGetProvisions';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ICalendarEvent } from './ICalendarEvent';
|
|
2
|
-
import { ISupervision } from './ISupervision';
|
|
3
|
-
export interface IBalanceSheetLiquidation {
|
|
4
|
-
id?: number;
|
|
5
|
-
dateEnd: Date | null;
|
|
6
|
-
state: number;
|
|
7
|
-
deadline: Date | null;
|
|
8
|
-
idCalendarEvent: number | null;
|
|
9
|
-
createdAt?: Date | null;
|
|
10
|
-
updatedAt?: Date | null;
|
|
11
|
-
calendarEvent: ICalendarEvent;
|
|
12
|
-
supervision: ISupervision;
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=IBalanceSheetLiquidation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IBalanceSheetLiquidation.d.ts","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IBalanceSheetLiquidation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAG9C,MAAM,WAAW,wBAAwB;IACvC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,IAAI,GAAG,IAAI,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,IAAI,GAAG,IAAI,CAAC;IACtB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAGxB,aAAa,EAAE,cAAc,CAAC;IAC9B,WAAW,EAAE,YAAY,CAAC;CAC3B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IBalanceSheetLiquidation.js","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IBalanceSheetLiquidation.ts"],"names":[],"mappings":"","sourcesContent":["import { ICalendarEvent } from './ICalendarEvent';\nimport { ISupervision } from './ISupervision';\n\n// balanceSheetLiquidation\nexport interface IBalanceSheetLiquidation {\n id?: number;\n dateEnd: Date | null;\n state: number;\n deadline: Date | null;\n idCalendarEvent: number | null;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n\n // Associations\n calendarEvent: ICalendarEvent;\n supervision: ISupervision;\n}\n"]}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ICalendarEvent } from './ICalendarEvent';
|
|
2
|
-
import { ISupervision } from './ISupervision';
|
|
3
|
-
export interface IBalanceSheetPartial {
|
|
4
|
-
id?: number;
|
|
5
|
-
dateEnd: Date | null;
|
|
6
|
-
state: number;
|
|
7
|
-
deadline: Date | null;
|
|
8
|
-
idCalendarEvent: number | null;
|
|
9
|
-
createdAt?: Date | null;
|
|
10
|
-
updatedAt?: Date | null;
|
|
11
|
-
calendarEvent: ICalendarEvent;
|
|
12
|
-
supervision: ISupervision;
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=IBalanceSheetPartial.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IBalanceSheetPartial.d.ts","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IBalanceSheetPartial.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAG9C,MAAM,WAAW,oBAAoB;IACnC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,IAAI,GAAG,IAAI,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,IAAI,GAAG,IAAI,CAAC;IACtB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAGxB,aAAa,EAAE,cAAc,CAAC;IAC9B,WAAW,EAAE,YAAY,CAAC;CAC3B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IBalanceSheetPartial.js","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IBalanceSheetPartial.ts"],"names":[],"mappings":"","sourcesContent":["import { ICalendarEvent } from './ICalendarEvent';\nimport { ISupervision } from './ISupervision';\n\n// balanceSheetPartial\nexport interface IBalanceSheetPartial {\n id?: number;\n dateEnd: Date | null;\n state: number;\n deadline: Date | null;\n idCalendarEvent: number | null;\n createdAt?: Date | null;\n updatedAt?: Date | null;\n\n // Associations\n calendarEvent: ICalendarEvent;\n supervision: ISupervision;\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","sourceRoot":"","file":"IBalanceSheetPartial.js"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ICalendarEvent } from './ICalendarEvent';
|
|
2
|
-
import { ISupervision } from './ISupervision';
|
|
3
|
-
|
|
4
|
-
// balanceSheetLiquidation
|
|
5
|
-
export interface IBalanceSheetLiquidation {
|
|
6
|
-
id?: number;
|
|
7
|
-
dateEnd: Date | null;
|
|
8
|
-
state: number;
|
|
9
|
-
deadline: Date | null;
|
|
10
|
-
idCalendarEvent: number | null;
|
|
11
|
-
createdAt?: Date | null;
|
|
12
|
-
updatedAt?: Date | null;
|
|
13
|
-
|
|
14
|
-
// Associations
|
|
15
|
-
calendarEvent: ICalendarEvent;
|
|
16
|
-
supervision: ISupervision;
|
|
17
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ICalendarEvent } from './ICalendarEvent';
|
|
2
|
-
import { ISupervision } from './ISupervision';
|
|
3
|
-
|
|
4
|
-
// balanceSheetPartial
|
|
5
|
-
export interface IBalanceSheetPartial {
|
|
6
|
-
id?: number;
|
|
7
|
-
dateEnd: Date | null;
|
|
8
|
-
state: number;
|
|
9
|
-
deadline: Date | null;
|
|
10
|
-
idCalendarEvent: number | null;
|
|
11
|
-
createdAt?: Date | null;
|
|
12
|
-
updatedAt?: Date | null;
|
|
13
|
-
|
|
14
|
-
// Associations
|
|
15
|
-
calendarEvent: ICalendarEvent;
|
|
16
|
-
supervision: ISupervision;
|
|
17
|
-
}
|