@silexpert/core 1.1.119 → 1.1.121
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/BalanceSheet.d.ts +3 -1
- package/es/api/resources/BalanceSheet.d.ts.map +1 -1
- package/es/api/resources/BalanceSheet.js +11 -0
- package/es/api/resources/BalanceSheet.js.map +1 -1
- package/es/api/resources/Library.d.ts +2 -1
- package/es/api/resources/Library.d.ts.map +1 -1
- package/es/api/resources/Library.js +3 -0
- package/es/api/resources/Library.js.map +1 -1
- package/es/api/resources/Society.d.ts +4 -1
- package/es/api/resources/Society.d.ts.map +1 -1
- package/es/api/resources/Society.js +3 -0
- package/es/api/resources/Society.js.map +1 -1
- package/es/types/Enum/Bank.d.ts +6 -0
- package/es/types/Enum/Bank.d.ts.map +1 -0
- package/es/types/Enum/Bank.js +7 -0
- package/es/types/Enum/Bank.js.map +1 -0
- package/es/types/Enum/Ged.d.ts +6 -0
- package/es/types/Enum/Ged.d.ts.map +1 -1
- package/es/types/Enum/Ged.js +38 -0
- package/es/types/Enum/Ged.js.map +1 -1
- package/es/types/Interface/api/balanceSheet/Query.d.ts +15 -0
- package/es/types/Interface/api/balanceSheet/Query.d.ts.map +1 -1
- package/es/types/Interface/api/balanceSheet/Query.js +64 -1
- package/es/types/Interface/api/balanceSheet/Query.js.map +1 -1
- package/es/types/Interface/api/balanceSheet/UpdateBalanceSheet.d.ts +2 -0
- package/es/types/Interface/api/balanceSheet/UpdateBalanceSheet.d.ts.map +1 -1
- package/es/types/Interface/api/balanceSheet/UpdateBalanceSheet.js +13 -1
- package/es/types/Interface/api/balanceSheet/UpdateBalanceSheet.js.map +1 -1
- package/es/types/Interface/api/library/QueryLibrary.d.ts +10 -1
- package/es/types/Interface/api/library/QueryLibrary.d.ts.map +1 -1
- package/es/types/Interface/api/library/QueryLibrary.js +32 -2
- package/es/types/Interface/api/library/QueryLibrary.js.map +1 -1
- package/es/types/Interface/api/library/ReadLibraryFile.d.ts +6 -0
- package/es/types/Interface/api/library/ReadLibraryFile.d.ts.map +1 -1
- package/es/types/Interface/api/library/ReadLibraryFile.js.map +1 -1
- package/es/types/Interface/api/society/UpdateUserToSocietyWithPermission.d.ts +9 -0
- package/es/types/Interface/api/society/UpdateUserToSocietyWithPermission.d.ts.map +1 -1
- package/es/types/Interface/api/society/UpdateUserToSocietyWithPermission.js +45 -0
- package/es/types/Interface/api/society/UpdateUserToSocietyWithPermission.js.map +1 -1
- package/es/types/Interface/models/IBalanceSheet.d.ts +6 -0
- package/es/types/Interface/models/IBalanceSheet.d.ts.map +1 -1
- package/es/types/Interface/models/IBalanceSheet.js.map +1 -1
- package/es/types/index.d.ts +1 -0
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +1 -0
- package/es/types/index.js.map +1 -1
- package/js/api/resources/BalanceSheet.js +13 -0
- package/js/api/resources/BalanceSheet.js.map +1 -1
- package/js/api/resources/Library.js +6 -0
- package/js/api/resources/Library.js.map +1 -1
- package/js/api/resources/Society.js +3 -0
- package/js/api/resources/Society.js.map +1 -1
- package/js/types/Enum/Bank.js +12 -0
- package/js/types/Enum/Bank.js.map +1 -0
- package/js/types/Enum/Ged.js +181 -0
- package/js/types/Enum/Ged.js.map +1 -1
- package/js/types/Interface/api/balanceSheet/Query.js +17 -1
- package/js/types/Interface/api/balanceSheet/Query.js.map +1 -1
- package/js/types/Interface/api/balanceSheet/UpdateBalanceSheet.js +2 -0
- package/js/types/Interface/api/balanceSheet/UpdateBalanceSheet.js.map +1 -1
- package/js/types/Interface/api/library/QueryLibrary.js +11 -1
- package/js/types/Interface/api/library/QueryLibrary.js.map +1 -1
- package/js/types/Interface/api/library/ReadLibraryFile.js.map +1 -1
- package/js/types/Interface/api/society/UpdateUserToSocietyWithPermission.js +18 -1
- package/js/types/Interface/api/society/UpdateUserToSocietyWithPermission.js.map +1 -1
- package/js/types/Interface/models/IBalanceSheet.js.map +1 -1
- package/js/types/index.js +10 -0
- package/js/types/index.js.map +1 -1
- package/package.json +1 -2
- package/ts/api/resources/BalanceSheet.ts +14 -1
- package/ts/api/resources/Library.ts +5 -1
- package/ts/api/resources/Society.ts +5 -0
- package/ts/types/Enum/Bank.ts +5 -0
- package/ts/types/Enum/Ged.ts +40 -1
- package/ts/types/Interface/api/balanceSheet/Query.ts +53 -1
- package/ts/types/Interface/api/balanceSheet/UpdateBalanceSheet.ts +11 -1
- package/ts/types/Interface/api/library/QueryLibrary.ts +29 -2
- package/ts/types/Interface/api/library/ReadLibraryFile.ts +7 -0
- package/ts/types/Interface/api/society/UpdateUserToSocietyWithPermission.ts +40 -0
- package/ts/types/Interface/models/IBalanceSheet.ts +6 -0
- package/ts/types/index.ts +1 -0
package/package.json
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.121",
|
|
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",
|
|
7
|
-
"type": "module",
|
|
8
7
|
"scripts": {
|
|
9
8
|
"clean": "rimraf ./es ./js",
|
|
10
9
|
"watch": "tsc -w",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IBalanceSheet, QueryBalanceSheetMonthlyStatistic, QueryBalanceSheetStatistic, ReadBalanceSheetMonthlyStatistic, ReadBalanceSheetStatistic, ReadFreelanceTurnover, UpdateBalanceSheet } from '../..';
|
|
1
|
+
import { IBalanceSheet, QueryBalanceSheetMonthlyStatistic, QueryBalanceSheetStatistic, QueryBalanceSheetAttestation, ReadBalanceSheetMonthlyStatistic, ReadBalanceSheetStatistic, ReadFreelanceTurnover, UpdateBalanceSheet, CreateBalanceSheetAttestation } from '../..';
|
|
2
2
|
import { Resource } from '../Resource';
|
|
3
3
|
|
|
4
4
|
export class BalanceSheet extends Resource {
|
|
@@ -10,6 +10,19 @@ export class BalanceSheet extends Resource {
|
|
|
10
10
|
return this.axios.$get('/exercice/balanceSheet/monthly-statistics', { params });
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
createAttestation(idBalanceSheet: number, params: CreateBalanceSheetAttestation): Promise<Buffer> {
|
|
14
|
+
return this.axios.$post(`/exercice/balanceSheet/${idBalanceSheet}/attestations`, params, {
|
|
15
|
+
responseType: 'arraybuffer',
|
|
16
|
+
headers: {
|
|
17
|
+
Accept: 'application/pdf',
|
|
18
|
+
},
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
getAttestation(params: QueryBalanceSheetAttestation): Promise<string> {
|
|
23
|
+
return this.axios.$get('/exercice/balanceSheet/attestations', { params });
|
|
24
|
+
}
|
|
25
|
+
|
|
13
26
|
getPdf(params: { idExercice: number }): Promise<Buffer> {
|
|
14
27
|
return this.axios.$get(`/exercice/${params.idExercice}/balanceSheet/pdf`, {
|
|
15
28
|
responseType: 'arraybuffer',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Resource } from '../Resource';
|
|
2
2
|
import {
|
|
3
|
-
QueryLibraryFile, UpdateOrCreateGedFile, IGedFile, QueryDownloadFile, UpdateGedFile,
|
|
3
|
+
QueryLibraryFile, UpdateOrCreateGedFile, IGedFile, QueryDownloadFile, UpdateGedFile, QueryLibrarySociety, BasePaginate, ReadSocietyLibrary,
|
|
4
4
|
} from '../../types';
|
|
5
5
|
|
|
6
6
|
export class Library extends Resource {
|
|
@@ -48,4 +48,8 @@ export class Library extends Resource {
|
|
|
48
48
|
delete(idFile: number): Promise<number> {
|
|
49
49
|
return this.axios.$delete(`/library/file/${idFile}`);
|
|
50
50
|
}
|
|
51
|
+
|
|
52
|
+
getPaginatedForSociety(idSociety: number, params: QueryLibrarySociety, signal: AbortSignal): Promise<BasePaginate<ReadSocietyLibrary>> {
|
|
53
|
+
return this.axios.$get(`/societies/${idSociety}/library`, { params, signal });
|
|
54
|
+
}
|
|
51
55
|
}
|
|
@@ -20,6 +20,7 @@ import {
|
|
|
20
20
|
QueryPaginatedSociety,
|
|
21
21
|
ReadInvalidFieldState,
|
|
22
22
|
BasePaginate,
|
|
23
|
+
UpdateUserSociety,
|
|
23
24
|
} from '../../types';
|
|
24
25
|
import { CancelToken } from 'axios';
|
|
25
26
|
|
|
@@ -101,4 +102,8 @@ export class Society extends Resource {
|
|
|
101
102
|
getOwner(id: number): Promise<IUser> {
|
|
102
103
|
return this.axios.$get(`/societies/${id}/owner`);
|
|
103
104
|
}
|
|
105
|
+
|
|
106
|
+
updateUserAndAccess(idSociety: number, idUser: number, payload: UpdateUserSociety): Promise<{ data: IUser }> {
|
|
107
|
+
return this.axios.patch(`/societies/${idSociety}/users/${idUser}`, payload);
|
|
108
|
+
}
|
|
104
109
|
}
|
package/ts/types/Enum/Ged.ts
CHANGED
|
@@ -251,4 +251,43 @@ export const GedFileTypeDetail = {
|
|
|
251
251
|
id: GedFileType.PERSONNAL_RIB,
|
|
252
252
|
name: 'RIB Personnel',
|
|
253
253
|
},
|
|
254
|
-
};
|
|
254
|
+
};
|
|
255
|
+
|
|
256
|
+
export const GedFolderList: Array<{ id: GedFolder, isVisibleForClient: boolean; idGedCategory: GedCategory; name: string }> = [
|
|
257
|
+
{ id: GedFolder.KBIS, name: 'K-bis & Carte d\'identité & Mémento fiscal', isVisibleForClient: true, idGedCategory: GedCategory.COMPANY },
|
|
258
|
+
{ id: GedFolder.LDM, name: 'Lettres de missions', isVisibleForClient: true, idGedCategory: GedCategory.COMPANY },
|
|
259
|
+
{ id: GedFolder.RIB_MANDATES, name: 'Mandats & RIB', isVisibleForClient: true, idGedCategory: GedCategory.COMPANY },
|
|
260
|
+
{ id: GedFolder.BALANCE_GL, name: 'Balance-GL Journaux', isVisibleForClient: true, idGedCategory: GedCategory.ACCOUNTING_AND_TAX },
|
|
261
|
+
{ id: GedFolder.CLOSE_BALANCE_SHEET, name: 'Clôtures & Bilans', isVisibleForClient: true, idGedCategory: GedCategory.ACCOUNTING_AND_TAX },
|
|
262
|
+
{ id: GedFolder.VAT, name: 'Déclarations de TVA', isVisibleForClient: true, idGedCategory: GedCategory.ACCOUNTING_AND_TAX },
|
|
263
|
+
{ id: GedFolder.IS_DECLARATIONS, name: 'Déclarations d\'IS', isVisibleForClient: true, idGedCategory: GedCategory.ACCOUNTING_AND_TAX },
|
|
264
|
+
{ id: GedFolder.STATUTES, name: 'Statuts & avenants', isVisibleForClient: true, idGedCategory: GedCategory.COMPANY },
|
|
265
|
+
{ id: GedFolder.TRAINING_AND_PROFESSIONAL_TAX, name: 'Formation et taxe professionnelle', isVisibleForClient: true, idGedCategory: GedCategory.SOCIAL },
|
|
266
|
+
{ id: GedFolder.DADS_U_DUE, name: 'DADS-U & DUE', isVisibleForClient: true, idGedCategory: GedCategory.SOCIAL },
|
|
267
|
+
{ id: GedFolder.URSSAF, name: 'URSSAF & Pôle-Emploi', isVisibleForClient: true, idGedCategory: GedCategory.SOCIAL },
|
|
268
|
+
{ id: GedFolder.PAY_SLIPS, name: 'Bulletins de salaires', isVisibleForClient: true, idGedCategory: GedCategory.SOCIAL },
|
|
269
|
+
{ id: GedFolder.TNS, name: 'TNS', isVisibleForClient: true, idGedCategory: GedCategory.SOCIAL },
|
|
270
|
+
{ id: GedFolder.AGM, name: 'PV d\'AG', isVisibleForClient: true, idGedCategory: GedCategory.JURIDIC },
|
|
271
|
+
{ id: GedFolder.CONTRACTS_LEASES, name: 'Contrats & Baux', isVisibleForClient: true, idGedCategory: GedCategory.GENERALITY },
|
|
272
|
+
{ id: GedFolder.INSURANCES, name: 'Assurances', isVisibleForClient: true, idGedCategory: GedCategory.GENERALITY },
|
|
273
|
+
{ id: GedFolder.CABINET_INVOICES, name: 'Factures Cabinet', isVisibleForClient: true, idGedCategory: GedCategory.BILLING },
|
|
274
|
+
{ id: GedFolder.OTHER, name: 'Autres', isVisibleForClient: true, idGedCategory: GedCategory.GENERALITY },
|
|
275
|
+
{ id: GedFolder.VEHICLES, name: 'Véhicules', isVisibleForClient: true, idGedCategory: GedCategory.GENERALITY },
|
|
276
|
+
{ id: GedFolder.BORROWING_TABLES, name: 'Tableaux d’emprunts', isVisibleForClient: true, idGedCategory: GedCategory.GENERALITY },
|
|
277
|
+
{ id: GedFolder.RSI_URSSAF, name: 'RSI & URSSAF', isVisibleForClient: true, idGedCategory: GedCategory.GENERALITY },
|
|
278
|
+
{ id: GedFolder.GA_BALANCE_PV, name: 'Bilan & PV d’AG antérieur', isVisibleForClient: true, idGedCategory: GedCategory.GENERALITY },
|
|
279
|
+
{ id: GedFolder.SLIPS_CFE, name: 'Bordereaux pour la CFE', isVisibleForClient: true, idGedCategory: GedCategory.GENERALITY },
|
|
280
|
+
{ id: GedFolder.APPENDIX_PROVIDERS_CUSTOMERS, name: 'Annexes fournisseurs/clients', isVisibleForClient: true, idGedCategory: GedCategory.GENERALITY },
|
|
281
|
+
{ id: GedFolder.MISCELLANEOUS, name: 'Divers', isVisibleForClient: true, idGedCategory: GedCategory.ACCOUNTING_AND_TAX },
|
|
282
|
+
{ id: GedFolder.LEGAL_ANNOUNCEMENTS, name: 'Annonces Légales', isVisibleForClient: true, idGedCategory: GedCategory.JURIDIC },
|
|
283
|
+
{ id: GedFolder.CERTIFICATES, name: 'Attestations', isVisibleForClient: true, idGedCategory: GedCategory.GENERALITY },
|
|
284
|
+
{ id: GedFolder.PARTNERS, name: 'Associés', isVisibleForClient: true, idGedCategory: GedCategory.COMPANY },
|
|
285
|
+
{ id: GedFolder.INCOMING_MAILS, name: 'Courriers entrants', isVisibleForClient: true, idGedCategory: GedCategory.MAIL },
|
|
286
|
+
{ id: GedFolder.OUTGOING_MAIL, name: 'Courriers sortants', isVisibleForClient: true, idGedCategory: GedCategory.MAIL },
|
|
287
|
+
{ id: GedFolder.BANK_STATEMENT, name: 'Relevés Bancaires', isVisibleForClient: true, idGedCategory: GedCategory.BANK_STATEMENT },
|
|
288
|
+
{ id: GedFolder.FORMALISM, name: 'Formalisme', isVisibleForClient:false, idGedCategory: GedCategory.ACCOUNTING_AND_TAX },
|
|
289
|
+
{ id: GedFolder.PENDING_POINTS, name: 'Points en suspens', isVisibleForClient:false, idGedCategory: GedCategory.ACCOUNTING_AND_TAX },
|
|
290
|
+
{ id: GedFolder.BALANCE_GL_JOURNALS_YEAR, name: 'Balance-GL Journaux Année N-1', isVisibleForClient: true, idGedCategory: GedCategory.ACCOUNTING_AND_TAX },
|
|
291
|
+
{ id: GedFolder.JURIDICAL, name: 'Juridique', isVisibleForClient: true, idGedCategory: GedCategory.JURIDIC },
|
|
292
|
+
{ id: GedFolder.SUBVENTION, name: 'Subvention', isVisibleForClient: true, idGedCategory: GedCategory.GENERALITY },
|
|
293
|
+
];
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
2
2
|
import {
|
|
3
|
-
IsDateString, IsNumber, IsOptional,
|
|
3
|
+
IsDateString, IsIn, IsNumber, IsOptional, IsString,
|
|
4
4
|
} from 'class-validator';
|
|
5
|
+
import { Supervision } from '../../../Enum/Supervision';
|
|
5
6
|
|
|
6
7
|
|
|
7
8
|
export class QueryBalanceSheetStatistic {
|
|
@@ -19,4 +20,55 @@ export class QueryBalanceSheetMonthlyStatistic {
|
|
|
19
20
|
@ApiProperty()
|
|
20
21
|
@IsDateString()
|
|
21
22
|
date: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export class QueryBalanceSheetAttestation {
|
|
26
|
+
@ApiProperty()
|
|
27
|
+
@IsNumber()
|
|
28
|
+
idState: number;
|
|
29
|
+
|
|
30
|
+
@ApiProperty()
|
|
31
|
+
@IsNumber()
|
|
32
|
+
idSociety: number;
|
|
33
|
+
|
|
34
|
+
@ApiProperty()
|
|
35
|
+
@IsNumber()
|
|
36
|
+
idBalanceSheet: number;
|
|
37
|
+
|
|
38
|
+
@ApiProperty()
|
|
39
|
+
@IsNumber()
|
|
40
|
+
idExercice: number;
|
|
41
|
+
|
|
42
|
+
@ApiProperty()
|
|
43
|
+
@IsNumber()
|
|
44
|
+
idExpertAccountant: number;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export class CreateBalanceSheetAttestation {
|
|
48
|
+
@ApiProperty()
|
|
49
|
+
@IsString()
|
|
50
|
+
attestation: string;
|
|
51
|
+
|
|
52
|
+
@ApiPropertyOptional()
|
|
53
|
+
@IsString()
|
|
54
|
+
@IsOptional()
|
|
55
|
+
attestationDetail?: string;
|
|
56
|
+
|
|
57
|
+
@ApiProperty()
|
|
58
|
+
@IsNumber()
|
|
59
|
+
idSociety: number;
|
|
60
|
+
|
|
61
|
+
@ApiPropertyOptional()
|
|
62
|
+
@IsNumber()
|
|
63
|
+
@IsOptional()
|
|
64
|
+
idFile: number;
|
|
65
|
+
|
|
66
|
+
@ApiProperty()
|
|
67
|
+
@IsNumber()
|
|
68
|
+
idSupervision: number;
|
|
69
|
+
|
|
70
|
+
@ApiProperty()
|
|
71
|
+
@IsNumber()
|
|
72
|
+
@IsIn([Supervision.ATTESTED, Supervision.ATTEST_REFUSED, Supervision.ATTEST_WITH_OBSERVATIONS])
|
|
73
|
+
state: number;
|
|
22
74
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
-
IsDate, IsNumber, IsOptional,
|
|
2
|
+
IsDate, IsNumber, IsOptional, IsString,
|
|
3
3
|
} from 'class-validator';
|
|
4
4
|
import { ApiPropertyOptional } from '../../../../utils/decorators';
|
|
5
5
|
|
|
@@ -28,4 +28,14 @@ export class UpdateBalanceSheet {
|
|
|
28
28
|
@IsNumber()
|
|
29
29
|
@IsOptional()
|
|
30
30
|
turnover?: number;
|
|
31
|
+
|
|
32
|
+
@ApiPropertyOptional()
|
|
33
|
+
@IsString()
|
|
34
|
+
@IsOptional()
|
|
35
|
+
attestationDetail?: string;
|
|
36
|
+
|
|
37
|
+
@ApiPropertyOptional()
|
|
38
|
+
@IsNumber()
|
|
39
|
+
@IsOptional()
|
|
40
|
+
idFile?: number;
|
|
31
41
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
IsIn, IsOptional, IsString, IsNumber, IsBoolean,
|
|
2
|
+
IsIn, IsOptional, IsString, IsNumber, IsBoolean, IsEnum, IsDateString,
|
|
3
3
|
} from 'class-validator';
|
|
4
4
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
5
|
-
import { GedFolder, GedFileType } from '../../../Enum/Ged';
|
|
5
|
+
import { GedFolder, GedFileType, GedCategory } from '../../../Enum/Ged';
|
|
6
|
+
import { RequiredQueryPaginate } from '../BasePaginate';
|
|
7
|
+
import { Order } from 'sequelize';
|
|
6
8
|
|
|
7
9
|
export class QueryLibraryFile {
|
|
8
10
|
@ApiProperty()
|
|
@@ -97,4 +99,29 @@ export class UpdateOrCreateGedFile {
|
|
|
97
99
|
|
|
98
100
|
@ApiPropertyOptional()
|
|
99
101
|
idTypeGedFile?: number;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export class QueryLibrarySociety extends RequiredQueryPaginate {
|
|
105
|
+
|
|
106
|
+
@ApiProperty()
|
|
107
|
+
@IsEnum(GedCategory, { each: true })
|
|
108
|
+
idGedCategories: GedCategory[];
|
|
109
|
+
|
|
110
|
+
@ApiPropertyOptional()
|
|
111
|
+
@IsDateString()
|
|
112
|
+
@IsOptional()
|
|
113
|
+
startDate?: string;
|
|
114
|
+
|
|
115
|
+
@ApiPropertyOptional()
|
|
116
|
+
@IsDateString()
|
|
117
|
+
@IsOptional()
|
|
118
|
+
endDate?: string;
|
|
119
|
+
|
|
120
|
+
@ApiPropertyOptional()
|
|
121
|
+
@IsOptional()
|
|
122
|
+
@IsString()
|
|
123
|
+
search?: string;
|
|
124
|
+
|
|
125
|
+
@ApiPropertyOptional()
|
|
126
|
+
orderBy?: Order;
|
|
100
127
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { IsEmail, IsObject, IsOptional, IsString, IsStrongPassword } from 'class-validator';
|
|
1
2
|
import { ApiPropertyOptional } from '../../../../utils';
|
|
2
3
|
import { Permissions } from '../user/Permissions';
|
|
4
|
+
import { IPermission } from '../../models/IPermission';
|
|
3
5
|
|
|
4
6
|
export class UpdateUserToSocietyWithPermission {
|
|
5
7
|
@ApiPropertyOptional()
|
|
@@ -14,4 +16,42 @@ export class UpdateUserToSocietyWithPermission {
|
|
|
14
16
|
lastname: string;
|
|
15
17
|
@ApiPropertyOptional()
|
|
16
18
|
permissions: Partial<Permissions>;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export class UpdateUserSociety {
|
|
22
|
+
@ApiPropertyOptional()
|
|
23
|
+
@IsEmail()
|
|
24
|
+
@IsOptional()
|
|
25
|
+
username?: string;
|
|
26
|
+
|
|
27
|
+
@ApiPropertyOptional()
|
|
28
|
+
@IsEmail()
|
|
29
|
+
@IsOptional()
|
|
30
|
+
email?: string;
|
|
31
|
+
|
|
32
|
+
@ApiPropertyOptional()
|
|
33
|
+
@IsStrongPassword({
|
|
34
|
+
minLength: 8,
|
|
35
|
+
minLowercase: 0,
|
|
36
|
+
minNumbers: 0,
|
|
37
|
+
minSymbols: 0,
|
|
38
|
+
minUppercase: 0,
|
|
39
|
+
}, { message: 'Le mot de passe doit comporter 8 caractères minimum' })
|
|
40
|
+
@IsOptional()
|
|
41
|
+
password?: string;
|
|
42
|
+
|
|
43
|
+
@ApiPropertyOptional()
|
|
44
|
+
@IsString()
|
|
45
|
+
@IsOptional()
|
|
46
|
+
firstname?: string;
|
|
47
|
+
|
|
48
|
+
@ApiPropertyOptional()
|
|
49
|
+
@IsString()
|
|
50
|
+
@IsOptional()
|
|
51
|
+
lastname?: string;
|
|
52
|
+
|
|
53
|
+
@ApiPropertyOptional()
|
|
54
|
+
@IsObject()
|
|
55
|
+
@IsOptional()
|
|
56
|
+
permission?: Partial<IPermission>;
|
|
17
57
|
}
|
|
@@ -3,6 +3,7 @@ import { ICalendarEvent } from './ICalendarEvent';
|
|
|
3
3
|
import { ISupervision } from './ISupervision';
|
|
4
4
|
import { IPrestation } from './IPrestation';
|
|
5
5
|
import { IGedFile } from './IGedFile';
|
|
6
|
+
import { IFile } from './IFile';
|
|
6
7
|
|
|
7
8
|
// balanceSheet
|
|
8
9
|
export interface IBalanceSheet {
|
|
@@ -11,6 +12,10 @@ export interface IBalanceSheet {
|
|
|
11
12
|
dateBalanceSend: Date | null;
|
|
12
13
|
deadline: Date | null;
|
|
13
14
|
turnover: number | null;
|
|
15
|
+
netIncome: number | null;
|
|
16
|
+
total: number | null;
|
|
17
|
+
idFile: number | null;
|
|
18
|
+
attestationDetail: string | null;
|
|
14
19
|
endDate: Date | null;
|
|
15
20
|
bankCollectingState: number;
|
|
16
21
|
idExercice: number;
|
|
@@ -24,4 +29,5 @@ export interface IBalanceSheet {
|
|
|
24
29
|
supervision?: ISupervision;
|
|
25
30
|
prestations?: IPrestation[];
|
|
26
31
|
gedFiles?: IGedFile[];
|
|
32
|
+
file?: IFile;
|
|
27
33
|
}
|
package/ts/types/index.ts
CHANGED
|
@@ -484,6 +484,7 @@ export * from './Enum/ThirdParty';
|
|
|
484
484
|
export * from './Enum/PaymentExpectation';
|
|
485
485
|
export * from './Enum/FollowList';
|
|
486
486
|
export * from './Enum/ClientOrProspect';
|
|
487
|
+
export * from './Enum/Bank';
|
|
487
488
|
|
|
488
489
|
// Interfaces API
|
|
489
490
|
export * from './Interface/api/adjustment/Query';
|