@silexpert/core 1.1.124 → 1.1.126
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/Revision.d.ts +2 -1
- package/es/api/resources/Revision.d.ts.map +1 -1
- package/es/api/resources/Revision.js +3 -0
- package/es/api/resources/Revision.js.map +1 -1
- package/es/types/Enum/BrandClementine.js +5 -5
- package/es/types/Enum/BrandClementine.js.map +1 -1
- package/es/types/Enum/BrandPourcentage.js +6 -6
- package/es/types/Enum/BrandPourcentage.js.map +1 -1
- package/es/types/Interface/api/revision/Query.d.ts +69 -0
- package/es/types/Interface/api/revision/Query.d.ts.map +1 -0
- package/es/types/Interface/api/revision/Query.js +336 -0
- package/es/types/Interface/api/revision/Query.js.map +1 -0
- package/es/types/Interface/api/revision/Read.d.ts +121 -0
- package/es/types/Interface/api/revision/Read.d.ts.map +1 -0
- package/es/types/Interface/api/revision/Read.js +2 -0
- package/es/types/Interface/api/revision/Read.js.map +1 -0
- package/es/types/Interface/api/revision/Revision.d.ts +2 -0
- package/es/types/Interface/api/revision/Revision.d.ts.map +1 -1
- package/es/types/Interface/api/revision/Revision.js.map +1 -1
- package/es/types/Interface/models/IAccountDetail.d.ts +3 -0
- package/es/types/Interface/models/IAccountDetail.d.ts.map +1 -1
- package/es/types/Interface/models/IAccountDetail.js.map +1 -1
- package/es/types/index.d.ts +2 -10
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +2 -10
- package/es/types/index.js.map +1 -1
- package/js/api/resources/Revision.js +3 -0
- package/js/api/resources/Revision.js.map +1 -1
- package/js/types/Enum/BrandClementine.js +5 -5
- package/js/types/Enum/BrandClementine.js.map +1 -1
- package/js/types/Enum/BrandPourcentage.js +6 -6
- package/js/types/Enum/BrandPourcentage.js.map +1 -1
- package/js/types/Interface/api/revision/Query.js +131 -0
- package/js/types/Interface/api/revision/Query.js.map +1 -0
- package/js/types/Interface/api/revision/{ReadRevision.js → Read.js} +1 -1
- package/js/types/Interface/api/revision/Read.js.map +1 -0
- package/js/types/Interface/api/revision/Revision.js.map +1 -1
- package/js/types/Interface/models/IAccountDetail.js.map +1 -1
- package/js/types/index.js +75 -155
- package/js/types/index.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Revision.ts +5 -0
- package/ts/types/Enum/BrandClementine.ts +5 -5
- package/ts/types/Enum/BrandPourcentage.ts +6 -6
- package/ts/types/Interface/api/revision/Query.ts +279 -0
- package/ts/types/Interface/api/revision/Read.ts +123 -0
- package/ts/types/Interface/api/revision/Revision.ts +2 -0
- package/ts/types/Interface/models/IAccountDetail.ts +3 -0
- package/ts/types/index.ts +2 -10
- package/es/types/Interface/api/revision/QueryRevision.d.ts +0 -10
- package/es/types/Interface/api/revision/QueryRevision.d.ts.map +0 -1
- package/es/types/Interface/api/revision/QueryRevision.js +0 -58
- package/es/types/Interface/api/revision/QueryRevision.js.map +0 -1
- package/es/types/Interface/api/revision/QueryRevisionAccount.d.ts +0 -12
- package/es/types/Interface/api/revision/QueryRevisionAccount.d.ts.map +0 -1
- package/es/types/Interface/api/revision/QueryRevisionAccount.js +0 -58
- package/es/types/Interface/api/revision/QueryRevisionAccount.js.map +0 -1
- package/es/types/Interface/api/revision/QueryRevisionApprobation.d.ts +0 -7
- package/es/types/Interface/api/revision/QueryRevisionApprobation.d.ts.map +0 -1
- package/es/types/Interface/api/revision/QueryRevisionApprobation.js +0 -34
- package/es/types/Interface/api/revision/QueryRevisionApprobation.js.map +0 -1
- package/es/types/Interface/api/revision/QueryRevisionMergeIntoAccount.d.ts +0 -8
- package/es/types/Interface/api/revision/QueryRevisionMergeIntoAccount.d.ts.map +0 -1
- package/es/types/Interface/api/revision/QueryRevisionMergeIntoAccount.js +0 -41
- package/es/types/Interface/api/revision/QueryRevisionMergeIntoAccount.js.map +0 -1
- package/es/types/Interface/api/revision/QueryRevisionPaginate.d.ts +0 -10
- package/es/types/Interface/api/revision/QueryRevisionPaginate.d.ts.map +0 -1
- package/es/types/Interface/api/revision/QueryRevisionPaginate.js +0 -58
- package/es/types/Interface/api/revision/QueryRevisionPaginate.js.map +0 -1
- package/es/types/Interface/api/revision/QueryRevisionSearchEntries.d.ts +0 -21
- package/es/types/Interface/api/revision/QueryRevisionSearchEntries.d.ts.map +0 -1
- package/es/types/Interface/api/revision/QueryRevisionSearchEntries.js +0 -126
- package/es/types/Interface/api/revision/QueryRevisionSearchEntries.js.map +0 -1
- package/es/types/Interface/api/revision/ReadRevision.d.ts +0 -15
- package/es/types/Interface/api/revision/ReadRevision.d.ts.map +0 -1
- package/es/types/Interface/api/revision/ReadRevision.js +0 -2
- package/es/types/Interface/api/revision/ReadRevision.js.map +0 -1
- package/es/types/Interface/api/revision/ReadRevisionAccount.d.ts +0 -42
- package/es/types/Interface/api/revision/ReadRevisionAccount.d.ts.map +0 -1
- package/es/types/Interface/api/revision/ReadRevisionAccount.js +0 -2
- package/es/types/Interface/api/revision/ReadRevisionAccount.js.map +0 -1
- package/es/types/Interface/api/revision/ReadRevisionMergeIntoAccount.d.ts +0 -4
- package/es/types/Interface/api/revision/ReadRevisionMergeIntoAccount.d.ts.map +0 -1
- package/es/types/Interface/api/revision/ReadRevisionMergeIntoAccount.js +0 -2
- package/es/types/Interface/api/revision/ReadRevisionMergeIntoAccount.js.map +0 -1
- package/es/types/Interface/api/revision/ReadRevisionTransactionDetail.d.ts +0 -60
- package/es/types/Interface/api/revision/ReadRevisionTransactionDetail.d.ts.map +0 -1
- package/es/types/Interface/api/revision/ReadRevisionTransactionDetail.js +0 -2
- package/es/types/Interface/api/revision/ReadRevisionTransactionDetail.js.map +0 -1
- package/js/types/Interface/api/revision/QueryRevision.js +0 -39
- package/js/types/Interface/api/revision/QueryRevision.js.map +0 -1
- package/js/types/Interface/api/revision/QueryRevisionAccount.js +0 -39
- package/js/types/Interface/api/revision/QueryRevisionAccount.js.map +0 -1
- package/js/types/Interface/api/revision/QueryRevisionApprobation.js +0 -25
- package/js/types/Interface/api/revision/QueryRevisionApprobation.js.map +0 -1
- package/js/types/Interface/api/revision/QueryRevisionMergeIntoAccount.js +0 -26
- package/js/types/Interface/api/revision/QueryRevisionMergeIntoAccount.js.map +0 -1
- package/js/types/Interface/api/revision/QueryRevisionPaginate.js +0 -39
- package/js/types/Interface/api/revision/QueryRevisionPaginate.js.map +0 -1
- package/js/types/Interface/api/revision/QueryRevisionSearchEntries.js +0 -53
- package/js/types/Interface/api/revision/QueryRevisionSearchEntries.js.map +0 -1
- package/js/types/Interface/api/revision/ReadRevision.js.map +0 -1
- package/js/types/Interface/api/revision/ReadRevisionAccount.js +0 -6
- package/js/types/Interface/api/revision/ReadRevisionAccount.js.map +0 -1
- package/js/types/Interface/api/revision/ReadRevisionMergeIntoAccount.js +0 -6
- package/js/types/Interface/api/revision/ReadRevisionMergeIntoAccount.js.map +0 -1
- package/js/types/Interface/api/revision/ReadRevisionTransactionDetail.js +0 -6
- package/js/types/Interface/api/revision/ReadRevisionTransactionDetail.js.map +0 -1
- package/ts/types/Interface/api/revision/QueryRevision.ts +0 -40
- package/ts/types/Interface/api/revision/QueryRevisionAccount.ts +0 -43
- package/ts/types/Interface/api/revision/QueryRevisionApprobation.ts +0 -22
- package/ts/types/Interface/api/revision/QueryRevisionMergeIntoAccount.ts +0 -28
- package/ts/types/Interface/api/revision/QueryRevisionPaginate.ts +0 -40
- package/ts/types/Interface/api/revision/QueryRevisionSearchEntries.ts +0 -101
- package/ts/types/Interface/api/revision/ReadRevision.ts +0 -15
- package/ts/types/Interface/api/revision/ReadRevisionAccount.ts +0 -42
- package/ts/types/Interface/api/revision/ReadRevisionMergeIntoAccount.ts +0 -3
- package/ts/types/Interface/api/revision/ReadRevisionTransactionDetail.ts +0 -59
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.126",
|
|
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",
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
QueryRevisionPaginate,
|
|
9
9
|
IAccountingTransaction,
|
|
10
10
|
QueryRevisionApprobation,
|
|
11
|
+
QueryRevisionAccountComment, IAccountDetail,
|
|
11
12
|
} from '../..';
|
|
12
13
|
|
|
13
14
|
export class Revision extends Resource {
|
|
@@ -46,4 +47,8 @@ export class Revision extends Resource {
|
|
|
46
47
|
revise(idAccountingTransaction: number, idUser: number): Promise<IAccountingTransaction> {
|
|
47
48
|
return this.axios.patch(`/transactions/${idAccountingTransaction}`, { dateVerified: new Date(), idUser });
|
|
48
49
|
}
|
|
50
|
+
|
|
51
|
+
comment(id: number, params: QueryRevisionAccountComment): Promise<IAccountDetail[]> {
|
|
52
|
+
return this.axios.post(`/revisions/accounts/${id}/comment`, params);
|
|
53
|
+
}
|
|
49
54
|
}
|
|
@@ -195,13 +195,13 @@ export const BrandClementine = [
|
|
|
195
195
|
name: 'bloc_social',
|
|
196
196
|
needBgImage: false,
|
|
197
197
|
versionable: true,
|
|
198
|
-
idPrestationType: allPrestationsWithBrochure,
|
|
198
|
+
idPrestationType: allPrestationsWithBrochure.filter(p => p !== PrestationType.BILAN_PREVISIONNEL),
|
|
199
199
|
keyName: 'idPrestationSocial',
|
|
200
200
|
},
|
|
201
201
|
{
|
|
202
202
|
label: 'Forfait création société',
|
|
203
203
|
name: 'bloc_creation',
|
|
204
|
-
idPrestationType: allPrestationsWithBrochure.filter(p => p !== PrestationType.COMPTA_MICRO_EXPRESS && p !== PrestationType.COMPTA_MICRO),
|
|
204
|
+
idPrestationType: allPrestationsWithBrochure.filter(p => p !== PrestationType.COMPTA_MICRO_EXPRESS && p !== PrestationType.COMPTA_MICRO && p !== PrestationType.BILAN_PREVISIONNEL),
|
|
205
205
|
needBgImage: false,
|
|
206
206
|
versionable: true,
|
|
207
207
|
keyName: 'idPrestationCreation',
|
|
@@ -232,7 +232,7 @@ export const BrandClementine = [
|
|
|
232
232
|
label: 'Forfait approbation des comptes annuels',
|
|
233
233
|
name: 'bloc_annual_accounts',
|
|
234
234
|
needBgImage: false,
|
|
235
|
-
idPrestationType: allPrestationsWithBrochure,
|
|
235
|
+
idPrestationType: allPrestationsWithBrochure.filter(p => p !== PrestationType.BILAN_PREVISIONNEL),
|
|
236
236
|
versionable: true,
|
|
237
237
|
keyName: 'idPrestationJuridique',
|
|
238
238
|
},
|
|
@@ -240,7 +240,7 @@ export const BrandClementine = [
|
|
|
240
240
|
label: 'Prise en charge de votre déclaration d\'impôts sur le revenu',
|
|
241
241
|
name: 'bloc_tax_return',
|
|
242
242
|
needBgImage: false,
|
|
243
|
-
idPrestationType: allPrestationsWithBrochure,
|
|
243
|
+
idPrestationType: allPrestationsWithBrochure.filter(p => p !== PrestationType.BILAN_PREVISIONNEL),
|
|
244
244
|
versionable: true,
|
|
245
245
|
keyName: 'idPrestationSocial',
|
|
246
246
|
},
|
|
@@ -248,7 +248,7 @@ export const BrandClementine = [
|
|
|
248
248
|
label: 'Accompagnement contrôle fiscal',
|
|
249
249
|
name: 'bloc_tax_audit',
|
|
250
250
|
needBgImage: false,
|
|
251
|
-
idPrestationType: allPrestationsWithBrochure,
|
|
251
|
+
idPrestationType: allPrestationsWithBrochure.filter(p => p !== PrestationType.BILAN_PREVISIONNEL),
|
|
252
252
|
versionable: true,
|
|
253
253
|
keyName: 'idPrestationSocial',
|
|
254
254
|
},
|
|
@@ -184,13 +184,13 @@ export const BrandPourcentage = [
|
|
|
184
184
|
name: 'bloc_social',
|
|
185
185
|
needBgImage: false,
|
|
186
186
|
versionable: true,
|
|
187
|
-
idPrestationType: allPrestationsWithBrochure,
|
|
187
|
+
idPrestationType: allPrestationsWithBrochure.filter(p => p !== PrestationType.BILAN_PREVISIONNEL),
|
|
188
188
|
keyName: 'idPrestationSocial',
|
|
189
189
|
},
|
|
190
190
|
{
|
|
191
191
|
label: 'Forfait création société',
|
|
192
192
|
name: 'bloc_creation',
|
|
193
|
-
idPrestationType: allPrestationsWithBrochure,
|
|
193
|
+
idPrestationType: allPrestationsWithBrochure.filter(p => p !== PrestationType.BILAN_PREVISIONNEL),
|
|
194
194
|
needBgImage: false,
|
|
195
195
|
versionable: true,
|
|
196
196
|
keyName: 'idPrestationCreation',
|
|
@@ -199,7 +199,7 @@ export const BrandPourcentage = [
|
|
|
199
199
|
{
|
|
200
200
|
label: 'Forfait création société premium',
|
|
201
201
|
name: 'bloc_creation_premium',
|
|
202
|
-
idPrestationType: allPrestationsWithBrochure,
|
|
202
|
+
idPrestationType: allPrestationsWithBrochure.filter(p => p !== PrestationType.BILAN_PREVISIONNEL),
|
|
203
203
|
needBgImage: false,
|
|
204
204
|
versionable: true,
|
|
205
205
|
keyName: 'idPrestationCreation',
|
|
@@ -209,7 +209,7 @@ export const BrandPourcentage = [
|
|
|
209
209
|
label: 'Forfait approbation des comptes annuels',
|
|
210
210
|
name: 'bloc_annual_accounts',
|
|
211
211
|
needBgImage: false,
|
|
212
|
-
idPrestationType: allPrestationsWithBrochure,
|
|
212
|
+
idPrestationType: allPrestationsWithBrochure.filter(p => p !== PrestationType.BILAN_PREVISIONNEL),
|
|
213
213
|
versionable: true,
|
|
214
214
|
keyName: 'idPrestationJuridique',
|
|
215
215
|
},
|
|
@@ -217,7 +217,7 @@ export const BrandPourcentage = [
|
|
|
217
217
|
label: 'Prise en charge de votre déclaration d\'impôts sur le revenu',
|
|
218
218
|
name: 'bloc_tax_return',
|
|
219
219
|
needBgImage: false,
|
|
220
|
-
idPrestationType: allPrestationsWithBrochure,
|
|
220
|
+
idPrestationType: allPrestationsWithBrochure.filter(p => p !== PrestationType.BILAN_PREVISIONNEL),
|
|
221
221
|
versionable: true,
|
|
222
222
|
keyName: 'idPrestationSocial',
|
|
223
223
|
},
|
|
@@ -225,7 +225,7 @@ export const BrandPourcentage = [
|
|
|
225
225
|
label: 'Accompagnement contrôle fiscal',
|
|
226
226
|
name: 'bloc_tax_audit',
|
|
227
227
|
needBgImage: false,
|
|
228
|
-
idPrestationType: allPrestationsWithBrochure,
|
|
228
|
+
idPrestationType: allPrestationsWithBrochure.filter(p => p !== PrestationType.BILAN_PREVISIONNEL),
|
|
229
229
|
versionable: true,
|
|
230
230
|
keyName: 'idPrestationSocial',
|
|
231
231
|
},
|
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IsBoolean,
|
|
3
|
+
IsDate,
|
|
4
|
+
IsInt,
|
|
5
|
+
IsNumber,
|
|
6
|
+
IsOptional,
|
|
7
|
+
IsString,
|
|
8
|
+
IsArray,
|
|
9
|
+
} from 'class-validator';
|
|
10
|
+
import { ApiProperty, ApiPropertyOptional, QueryPaginate } from '../../../..';
|
|
11
|
+
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
12
|
+
|
|
13
|
+
export class QueryRevision {
|
|
14
|
+
@ApiProperty()
|
|
15
|
+
@IsDate()
|
|
16
|
+
startDate: Date;
|
|
17
|
+
|
|
18
|
+
@ApiProperty()
|
|
19
|
+
@IsDate()
|
|
20
|
+
endDate: Date;
|
|
21
|
+
|
|
22
|
+
@ApiProperty()
|
|
23
|
+
@IsInt()
|
|
24
|
+
idSociety: number;
|
|
25
|
+
|
|
26
|
+
@ApiPropertyOptional()
|
|
27
|
+
@IsString()
|
|
28
|
+
@IsOptional()
|
|
29
|
+
orderBy?: 'designation' | 'amount' | 'number';
|
|
30
|
+
|
|
31
|
+
@ApiPropertyOptional()
|
|
32
|
+
@IsBoolean()
|
|
33
|
+
@ToBoolean()
|
|
34
|
+
@IsOptional()
|
|
35
|
+
descending?: boolean;
|
|
36
|
+
|
|
37
|
+
// Interface paginate
|
|
38
|
+
@ApiProperty({ default: 25 })
|
|
39
|
+
@IsNumber()
|
|
40
|
+
limit?: number = 25;
|
|
41
|
+
|
|
42
|
+
@ApiProperty({ default: 1 })
|
|
43
|
+
@IsNumber()
|
|
44
|
+
page?: number = 1;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export class QueryRevisionAccount implements QueryPaginate {
|
|
48
|
+
@ApiProperty({ default: 1 })
|
|
49
|
+
@IsNumber()
|
|
50
|
+
page: number;
|
|
51
|
+
|
|
52
|
+
@ApiProperty()
|
|
53
|
+
@IsDate()
|
|
54
|
+
startDate: Date;
|
|
55
|
+
|
|
56
|
+
@ApiProperty()
|
|
57
|
+
@IsDate()
|
|
58
|
+
endDate: Date;
|
|
59
|
+
|
|
60
|
+
@ApiPropertyOptional({ default: 25 })
|
|
61
|
+
@IsNumber()
|
|
62
|
+
limit: number;
|
|
63
|
+
|
|
64
|
+
@ApiPropertyOptional({ default: 'date' })
|
|
65
|
+
@IsString()
|
|
66
|
+
@IsOptional()
|
|
67
|
+
orderBy?: 'date' | 'designation' | 'idAccount' | 'debit' | 'credit';
|
|
68
|
+
|
|
69
|
+
@ApiPropertyOptional({ default: true })
|
|
70
|
+
@IsBoolean()
|
|
71
|
+
@ToBoolean()
|
|
72
|
+
@IsOptional()
|
|
73
|
+
descending?: boolean;
|
|
74
|
+
|
|
75
|
+
@ApiPropertyOptional()
|
|
76
|
+
isRevised?: boolean;
|
|
77
|
+
|
|
78
|
+
@ApiProperty()
|
|
79
|
+
@IsInt()
|
|
80
|
+
idSociety: number;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export class QueryRevisionApprobation {
|
|
84
|
+
@ApiProperty()
|
|
85
|
+
@IsDate()
|
|
86
|
+
startDate: Date;
|
|
87
|
+
|
|
88
|
+
@ApiProperty()
|
|
89
|
+
@IsDate()
|
|
90
|
+
endDate: Date;
|
|
91
|
+
|
|
92
|
+
@ApiProperty()
|
|
93
|
+
@IsNumber()
|
|
94
|
+
idSociety: number;
|
|
95
|
+
|
|
96
|
+
@ApiProperty()
|
|
97
|
+
@IsBoolean()
|
|
98
|
+
@ToBoolean()
|
|
99
|
+
approvedBySupervisor: boolean;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export class QueryRevisionAccountComment {
|
|
103
|
+
@ApiProperty()
|
|
104
|
+
@IsDate()
|
|
105
|
+
startDate: Date;
|
|
106
|
+
|
|
107
|
+
@ApiProperty()
|
|
108
|
+
@IsDate()
|
|
109
|
+
endDate: Date;
|
|
110
|
+
|
|
111
|
+
@ApiProperty()
|
|
112
|
+
@IsNumber()
|
|
113
|
+
idSociety: number;
|
|
114
|
+
|
|
115
|
+
@ApiPropertyOptional()
|
|
116
|
+
@IsString()
|
|
117
|
+
@IsOptional()
|
|
118
|
+
comment: string | null;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export class QueryRevisionMergeIntoAccount {
|
|
122
|
+
@ApiProperty()
|
|
123
|
+
@IsDate()
|
|
124
|
+
startDate: Date;
|
|
125
|
+
|
|
126
|
+
@ApiProperty()
|
|
127
|
+
@IsDate()
|
|
128
|
+
endDate: Date;
|
|
129
|
+
|
|
130
|
+
@ApiProperty()
|
|
131
|
+
@IsNumber()
|
|
132
|
+
idSociety: number;
|
|
133
|
+
|
|
134
|
+
@ApiPropertyOptional()
|
|
135
|
+
@IsArray()
|
|
136
|
+
@IsOptional()
|
|
137
|
+
@IsInt({ each:true })
|
|
138
|
+
idAccounts?: Array<number>;
|
|
139
|
+
|
|
140
|
+
@ApiPropertyOptional()
|
|
141
|
+
@IsArray()
|
|
142
|
+
@IsOptional()
|
|
143
|
+
@IsInt({ each:true })
|
|
144
|
+
idAccountingEntries?: Array<number>;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export class QueryRevisionPaginate {
|
|
148
|
+
@ApiProperty()
|
|
149
|
+
@IsDate()
|
|
150
|
+
startDate: Date;
|
|
151
|
+
|
|
152
|
+
@ApiProperty()
|
|
153
|
+
@IsDate()
|
|
154
|
+
endDate: Date;
|
|
155
|
+
|
|
156
|
+
@ApiProperty()
|
|
157
|
+
@IsInt()
|
|
158
|
+
idSociety: number;
|
|
159
|
+
|
|
160
|
+
@ApiPropertyOptional()
|
|
161
|
+
@IsString()
|
|
162
|
+
@IsOptional()
|
|
163
|
+
orderBy?: 'designation' | 'amount' | 'number';
|
|
164
|
+
|
|
165
|
+
@ApiPropertyOptional()
|
|
166
|
+
@IsBoolean()
|
|
167
|
+
@ToBoolean()
|
|
168
|
+
@IsOptional()
|
|
169
|
+
descending?: boolean;
|
|
170
|
+
|
|
171
|
+
// Interface paginate
|
|
172
|
+
@ApiProperty({ default: 25 })
|
|
173
|
+
@IsNumber()
|
|
174
|
+
limit?: number = 25;
|
|
175
|
+
|
|
176
|
+
@ApiProperty({ default: 1 })
|
|
177
|
+
@IsNumber()
|
|
178
|
+
page?: number = 1;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export class QueryRevisionSearchEntries {
|
|
182
|
+
// Mandatory
|
|
183
|
+
@ApiProperty()
|
|
184
|
+
@IsNumber()
|
|
185
|
+
idSociety: number;
|
|
186
|
+
|
|
187
|
+
@ApiProperty()
|
|
188
|
+
@IsDate()
|
|
189
|
+
startDate: Date;
|
|
190
|
+
|
|
191
|
+
@ApiProperty()
|
|
192
|
+
@IsDate()
|
|
193
|
+
endDate: Date;
|
|
194
|
+
|
|
195
|
+
// Optional
|
|
196
|
+
@ApiPropertyOptional()
|
|
197
|
+
@IsNumber()
|
|
198
|
+
@IsOptional()
|
|
199
|
+
idThirdParty?: number;
|
|
200
|
+
|
|
201
|
+
@ApiPropertyOptional()
|
|
202
|
+
@IsNumber()
|
|
203
|
+
@IsOptional()
|
|
204
|
+
amount?: number;
|
|
205
|
+
|
|
206
|
+
@ApiPropertyOptional()
|
|
207
|
+
@IsNumber()
|
|
208
|
+
@IsOptional()
|
|
209
|
+
difference?: number;
|
|
210
|
+
|
|
211
|
+
@ApiPropertyOptional()
|
|
212
|
+
@IsString()
|
|
213
|
+
@IsOptional()
|
|
214
|
+
designation?: string;
|
|
215
|
+
|
|
216
|
+
@ApiPropertyOptional()
|
|
217
|
+
@IsString()
|
|
218
|
+
@IsOptional()
|
|
219
|
+
startAccountNumber?: string;
|
|
220
|
+
|
|
221
|
+
@ApiPropertyOptional()
|
|
222
|
+
@IsString()
|
|
223
|
+
@IsOptional()
|
|
224
|
+
endAccountNumber?: string;
|
|
225
|
+
|
|
226
|
+
// advanced search
|
|
227
|
+
@ApiPropertyOptional()
|
|
228
|
+
@IsNumber()
|
|
229
|
+
@IsOptional()
|
|
230
|
+
minimumAmount?: number;
|
|
231
|
+
|
|
232
|
+
@ApiPropertyOptional()
|
|
233
|
+
@IsNumber()
|
|
234
|
+
@IsOptional()
|
|
235
|
+
maximumAmount?: number;
|
|
236
|
+
|
|
237
|
+
@ApiPropertyOptional()
|
|
238
|
+
@IsArray()
|
|
239
|
+
@IsOptional()
|
|
240
|
+
idsAccountingJournal?: Array<number>;
|
|
241
|
+
|
|
242
|
+
@ApiPropertyOptional()
|
|
243
|
+
@IsNumber()
|
|
244
|
+
@IsOptional()
|
|
245
|
+
type?: number;
|
|
246
|
+
|
|
247
|
+
@ApiPropertyOptional()
|
|
248
|
+
@IsBoolean()
|
|
249
|
+
@ToBoolean()
|
|
250
|
+
@IsOptional()
|
|
251
|
+
isRevised?: boolean;
|
|
252
|
+
|
|
253
|
+
@ApiPropertyOptional({ default: 'date' })
|
|
254
|
+
@IsString()
|
|
255
|
+
@IsOptional()
|
|
256
|
+
orderBy?:
|
|
257
|
+
| 'date'
|
|
258
|
+
| 'accountNumber'
|
|
259
|
+
| 'amount'
|
|
260
|
+
| 'designation'
|
|
261
|
+
| 'vatRate'
|
|
262
|
+
| 'debit'
|
|
263
|
+
| 'credit';
|
|
264
|
+
|
|
265
|
+
@ApiPropertyOptional()
|
|
266
|
+
@IsBoolean()
|
|
267
|
+
@ToBoolean()
|
|
268
|
+
@IsOptional()
|
|
269
|
+
descending?: boolean;
|
|
270
|
+
|
|
271
|
+
// Interface paginate
|
|
272
|
+
@ApiProperty({ default: 25 })
|
|
273
|
+
@IsNumber()
|
|
274
|
+
limit?: number = 25;
|
|
275
|
+
|
|
276
|
+
@ApiProperty({ default: 1 })
|
|
277
|
+
@IsNumber()
|
|
278
|
+
page?: number = 1;
|
|
279
|
+
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IAccountDetail,
|
|
3
|
+
IAccountingFile, IAccountingJournal, ILettering, IUser,
|
|
4
|
+
} from '../../..';
|
|
5
|
+
import { IFile } from '../../..';
|
|
6
|
+
import { ThirdParty } from '../../../../api/resources/ThirdParty';
|
|
7
|
+
|
|
8
|
+
export interface ReadRevision {
|
|
9
|
+
balance: number;
|
|
10
|
+
balanceDebit: number;
|
|
11
|
+
balanceCredit: number;
|
|
12
|
+
account: {
|
|
13
|
+
id: number,
|
|
14
|
+
name: string | null,
|
|
15
|
+
number: number | null,
|
|
16
|
+
accountDetails: Array<IAccountDetail>
|
|
17
|
+
},
|
|
18
|
+
unlocked: number | null;
|
|
19
|
+
locked: number | null;
|
|
20
|
+
previousBalance: number;
|
|
21
|
+
nextBalance: number;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface ReadRevisionAccount {
|
|
25
|
+
id: number;
|
|
26
|
+
master: boolean;
|
|
27
|
+
dateValue: Date;
|
|
28
|
+
designation: string | null;
|
|
29
|
+
comment: string | null;
|
|
30
|
+
debit: number;
|
|
31
|
+
credit: number;
|
|
32
|
+
isPerso: boolean;
|
|
33
|
+
autoAnnotate: boolean;
|
|
34
|
+
idInherit: number | null;
|
|
35
|
+
idAccount: number;
|
|
36
|
+
idThirdParty: number;
|
|
37
|
+
idAccountingTransaction: number;
|
|
38
|
+
idVat: number | null;
|
|
39
|
+
idImmobilization: number | null;
|
|
40
|
+
idLettering?: number | null;
|
|
41
|
+
lettering?: ILettering;
|
|
42
|
+
createdAt: Date;
|
|
43
|
+
updatedAt: Date;
|
|
44
|
+
accountingTransaction: {
|
|
45
|
+
id: number;
|
|
46
|
+
idBankAccount: number,
|
|
47
|
+
dateLocked: Date | null;
|
|
48
|
+
dateVerified: Date | null;
|
|
49
|
+
idUser: number | null;
|
|
50
|
+
exported: Date | null;
|
|
51
|
+
idAccountingJournal: number;
|
|
52
|
+
accountingFiles: Array<IAccountingFile>;
|
|
53
|
+
accountingJournal: IAccountingJournal;
|
|
54
|
+
user: IUser;
|
|
55
|
+
},
|
|
56
|
+
accountDetails: IAccountDetail[],
|
|
57
|
+
thirdParty: { id: number, fullname: string } | null,
|
|
58
|
+
calculatedVat?: number[];
|
|
59
|
+
balance: number | null;
|
|
60
|
+
balanceCredit: number | null;
|
|
61
|
+
balanceDebit: number | null;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export interface ReadRevisionMergeIntoAccount {
|
|
65
|
+
updated: number;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export interface ReadRevisionTransactionDetail {
|
|
69
|
+
id: number;
|
|
70
|
+
invoiceNumber: string | null;
|
|
71
|
+
label: string | null;
|
|
72
|
+
reference: string | null;
|
|
73
|
+
dateValue: Date;
|
|
74
|
+
dateLocked: Date | null;
|
|
75
|
+
dateVerified: Date | null;
|
|
76
|
+
originalValue: number | null;
|
|
77
|
+
idUser: number | null;
|
|
78
|
+
isBlocked: boolean;
|
|
79
|
+
isMerged: boolean;
|
|
80
|
+
isAsset: boolean;
|
|
81
|
+
exported: Date | null;
|
|
82
|
+
kilometers: number | null;
|
|
83
|
+
internComment: string | null;
|
|
84
|
+
invoiceRequested: boolean;
|
|
85
|
+
idBankAccount: number | null;
|
|
86
|
+
idSociety: number;
|
|
87
|
+
idCurrency?: number | null;
|
|
88
|
+
idSocietyVehicle: number | null;
|
|
89
|
+
idSocietyPartner: number | null;
|
|
90
|
+
idRule: number | null;
|
|
91
|
+
idAccountingJournal: number;
|
|
92
|
+
idEstimateInvoice: number | null;
|
|
93
|
+
idEAF: number | null;
|
|
94
|
+
file: IFile[] | null;
|
|
95
|
+
accountingEntries: RevisionAccountingEntries[];
|
|
96
|
+
user?: { firstname: string; lastname: string; };
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export interface RevisionAccountingEntries {
|
|
100
|
+
id: number;
|
|
101
|
+
master: boolean;
|
|
102
|
+
dateValue: Date;
|
|
103
|
+
designation: string;
|
|
104
|
+
comment: string | null;
|
|
105
|
+
debit: number;
|
|
106
|
+
credit: number;
|
|
107
|
+
isPerso: boolean;
|
|
108
|
+
idInherit: number | null;
|
|
109
|
+
idAccount: number | null;
|
|
110
|
+
idThirdParty: number | null;
|
|
111
|
+
idVat: number | null;
|
|
112
|
+
idImmobilization?: number | null;
|
|
113
|
+
account: RevisionAccount;
|
|
114
|
+
thirdParty?: ThirdParty;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export interface RevisionAccount {
|
|
118
|
+
id: number;
|
|
119
|
+
number: number;
|
|
120
|
+
name: string;
|
|
121
|
+
idParentAccount: number | null;
|
|
122
|
+
idVat: number | null;
|
|
123
|
+
}
|
|
@@ -6,9 +6,12 @@ import { IUser } from './IUser';
|
|
|
6
6
|
export interface IAccountDetail {
|
|
7
7
|
id?: number;
|
|
8
8
|
comment?: string | null;
|
|
9
|
+
dateComment: Date | null;
|
|
9
10
|
isPending: boolean;
|
|
10
11
|
checkByIdAccountant: number | null;
|
|
12
|
+
dateCheckAccountant: Date | null;
|
|
11
13
|
checkByIdSupervisor: number | null;
|
|
14
|
+
dateCheckSupervisor: Date | null;
|
|
12
15
|
idAccount: number;
|
|
13
16
|
idExercice?: number;
|
|
14
17
|
idSociety: number;
|
package/ts/types/index.ts
CHANGED
|
@@ -627,18 +627,10 @@ export * from './Interface/api/bankStatement/QueryTransactionBankStatement';
|
|
|
627
627
|
export * from './Interface/api/ocr/OcrTypeTransactions';
|
|
628
628
|
export * from './Interface/api/bankStatement/ReadBankStatement';
|
|
629
629
|
export * from './Interface/api/tax/ReadCompanyTax';
|
|
630
|
-
export * from './Interface/api/revision/
|
|
631
|
-
export * from './Interface/api/revision/
|
|
632
|
-
export * from './Interface/api/revision/QueryRevisionPaginate';
|
|
633
|
-
export * from './Interface/api/revision/ReadRevision';
|
|
630
|
+
export * from './Interface/api/revision/Query';
|
|
631
|
+
export * from './Interface/api/revision/Read';
|
|
634
632
|
export * from './Interface/api/revision/RevisionObject';
|
|
635
633
|
export * from './Interface/api/revision/Revision';
|
|
636
|
-
export * from './Interface/api/revision/QueryRevisionAccount';
|
|
637
|
-
export * from './Interface/api/revision/ReadRevisionAccount';
|
|
638
|
-
export * from './Interface/api/revision/ReadRevisionTransactionDetail';
|
|
639
|
-
export * from './Interface/api/revision/QueryRevisionMergeIntoAccount';
|
|
640
|
-
export * from './Interface/api/revision/ReadRevisionMergeIntoAccount';
|
|
641
|
-
export * from './Interface/api/revision/QueryRevisionSearchEntries';
|
|
642
634
|
export * from './Interface/api/vatDeclaration/QueryVatDeclaration';
|
|
643
635
|
export * from './Interface/api/vatDeclaration/ReadVatVariousOperations';
|
|
644
636
|
export * from './Interface/api/vatDeclaration/ResultFormatToEntries';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"QueryRevision.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revision/QueryRevision.ts"],"names":[],"mappings":"AAOA,qBAAa,aAAa;IAGtB,SAAS,EAAE,IAAI,CAAC;IAIhB,OAAO,EAAE,IAAI,CAAC;IAId,SAAS,EAAE,MAAM,CAAC;IAKlB,OAAO,CAAC,EAAE,aAAa,GAAG,QAAQ,GAAG,QAAQ,CAAC;IAM9C,UAAU,CAAC,EAAE,OAAO,CAAC;IAKrB,KAAK,CAAC,EAAE,MAAM,CAAM;IAIpB,IAAI,CAAC,EAAE,MAAM,CAAK;CACrB"}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
import { IsBoolean, IsDate, IsInt, IsNumber, IsOptional, IsString, } from 'class-validator';
|
|
11
|
-
import { ApiProperty, ApiPropertyOptional } from '../../../..';
|
|
12
|
-
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
13
|
-
export class QueryRevision {
|
|
14
|
-
constructor() {
|
|
15
|
-
// Interface paginate
|
|
16
|
-
this.limit = 25;
|
|
17
|
-
this.page = 1;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
__decorate([
|
|
21
|
-
ApiProperty(),
|
|
22
|
-
IsDate(),
|
|
23
|
-
__metadata("design:type", Date)
|
|
24
|
-
], QueryRevision.prototype, "startDate", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
ApiProperty(),
|
|
27
|
-
IsDate(),
|
|
28
|
-
__metadata("design:type", Date)
|
|
29
|
-
], QueryRevision.prototype, "endDate", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
ApiProperty(),
|
|
32
|
-
IsInt(),
|
|
33
|
-
__metadata("design:type", Number)
|
|
34
|
-
], QueryRevision.prototype, "idSociety", void 0);
|
|
35
|
-
__decorate([
|
|
36
|
-
ApiPropertyOptional(),
|
|
37
|
-
IsString(),
|
|
38
|
-
IsOptional(),
|
|
39
|
-
__metadata("design:type", String)
|
|
40
|
-
], QueryRevision.prototype, "orderBy", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
ApiPropertyOptional(),
|
|
43
|
-
IsBoolean(),
|
|
44
|
-
ToBoolean(),
|
|
45
|
-
IsOptional(),
|
|
46
|
-
__metadata("design:type", Boolean)
|
|
47
|
-
], QueryRevision.prototype, "descending", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
ApiProperty({ default: 25 }),
|
|
50
|
-
IsNumber(),
|
|
51
|
-
__metadata("design:type", Number)
|
|
52
|
-
], QueryRevision.prototype, "limit", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
ApiProperty({ default: 1 }),
|
|
55
|
-
IsNumber(),
|
|
56
|
-
__metadata("design:type", Number)
|
|
57
|
-
], QueryRevision.prototype, "page", void 0);
|
|
58
|
-
//# sourceMappingURL=QueryRevision.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"QueryRevision.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revision/QueryRevision.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,SAAS,EACT,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,GAC9C,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAE3E,MAAM,OAAO,aAAa;IAA1B;QAwBE,qBAAqB;QAGnB,UAAK,GAAY,EAAE,CAAC;QAIpB,SAAI,GAAY,CAAC,CAAC;IACtB,CAAC;CAAA;AA/BC;IAAC,WAAW,EAAE;IACb,MAAM,EAAE;8BACI,IAAI;gDAAC;AAElB;IAAC,WAAW,EAAE;IACb,MAAM,EAAE;8BACE,IAAI;8CAAC;AAEhB;IAAC,WAAW,EAAE;IACb,KAAK,EAAE;;gDACY;AAEpB;IAAC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;8CACmC;AAEhD;IAAC,mBAAmB,EAAE;IACrB,SAAS,EAAE;IACX,SAAS,EAAE;IACX,UAAU,EAAE;;iDACU;AAGvB;IAAC,WAAW,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;IAC5B,QAAQ,EAAE;;4CACW;AAEtB;IAAC,WAAW,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;IAC3B,QAAQ,EAAE;;2CACS","sourcesContent":["import {\n IsBoolean,\n IsDate, IsInt, IsNumber, IsOptional, IsString,\n} from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../..';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class QueryRevision {\n @ApiProperty()\n @IsDate()\n startDate: Date;\n\n @ApiProperty()\n @IsDate()\n endDate: Date;\n\n @ApiProperty()\n @IsInt()\n idSociety: number;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n orderBy?: 'designation' | 'amount' | 'number';\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n descending?: boolean;\n\n // Interface paginate\n @ApiProperty({ default: 25 })\n @IsNumber()\n limit?: number = 25;\n\n @ApiProperty({ default: 1 })\n @IsNumber()\n page?: number = 1;\n}"]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { QueryPaginate } from '../../../..';
|
|
2
|
-
export declare class QueryRevisionAccount implements QueryPaginate {
|
|
3
|
-
page: number;
|
|
4
|
-
startDate: Date;
|
|
5
|
-
endDate: Date;
|
|
6
|
-
limit: number;
|
|
7
|
-
orderBy?: 'date' | 'designation' | 'idAccount' | 'debit' | 'credit';
|
|
8
|
-
descending?: boolean;
|
|
9
|
-
isRevised?: boolean;
|
|
10
|
-
idSociety: number;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=QueryRevisionAccount.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"QueryRevisionAccount.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/revision/QueryRevisionAccount.ts"],"names":[],"mappings":"AAIA,OAAO,EAAe,aAAa,EAAE,MAAM,aAAa,CAAC;AAIzD,qBAAa,oBAAqB,YAAW,aAAa;IAGtD,IAAI,EAAE,MAAM,CAAC;IAIb,SAAS,EAAE,IAAI,CAAC;IAIhB,OAAO,EAAE,IAAI,CAAC;IAId,KAAK,EAAE,MAAM,CAAC;IAKd,OAAO,CAAC,EAAE,MAAM,GAAG,aAAa,GAAG,WAAW,GAAG,OAAO,GAAG,QAAQ,CAAC;IAMpE,UAAU,CAAC,EAAE,OAAO,CAAC;IAGrB,SAAS,CAAC,EAAE,OAAO,CAAC;IAIpB,SAAS,EAAE,MAAM,CAAC;CACrB"}
|