@silexpert/core 1.1.120 → 1.1.122
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/BrandClementine.d.ts.map +1 -1
- package/es/types/Enum/BrandClementine.js +16 -2
- package/es/types/Enum/BrandClementine.js.map +1 -1
- package/es/types/Enum/BrandPourcentage.d.ts +2 -2
- package/es/types/Enum/BrandPourcentage.d.ts.map +1 -1
- package/es/types/Enum/BrandPourcentage.js +24 -37
- package/es/types/Enum/BrandPourcentage.js.map +1 -1
- 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/Read.d.ts +3 -0
- package/es/types/Interface/api/balanceSheet/Read.d.ts.map +1 -1
- package/es/types/Interface/api/balanceSheet/Read.js.map +1 -1
- package/es/types/Interface/api/balanceSheet/UpdateBalanceSheet.d.ts +3 -0
- package/es/types/Interface/api/balanceSheet/UpdateBalanceSheet.d.ts.map +1 -1
- package/es/types/Interface/api/balanceSheet/UpdateBalanceSheet.js +19 -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/BrandClementine.js +14 -2
- package/js/types/Enum/BrandClementine.js.map +1 -1
- package/js/types/Enum/BrandPourcentage.js +26 -39
- package/js/types/Enum/BrandPourcentage.js.map +1 -1
- 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/Read.js.map +1 -1
- package/js/types/Interface/api/balanceSheet/UpdateBalanceSheet.js +3 -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 -1
- 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/BrandClementine.ts +16 -2
- package/ts/types/Enum/BrandPourcentage.ts +24 -37
- package/ts/types/Enum/Ged.ts +40 -1
- package/ts/types/Interface/api/balanceSheet/Query.ts +53 -1
- package/ts/types/Interface/api/balanceSheet/Read.ts +2 -1
- package/ts/types/Interface/api/balanceSheet/UpdateBalanceSheet.ts +16 -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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.122",
|
|
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",
|
|
@@ -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
|
}
|
|
@@ -214,6 +214,20 @@ export const BrandClementine = [
|
|
|
214
214
|
versionable: true,
|
|
215
215
|
keyName: 'idPrestationCreation',
|
|
216
216
|
},
|
|
217
|
+
{
|
|
218
|
+
label: 'Forfait création Entreprise + accompagnement comptable',
|
|
219
|
+
name: 'bloc_creation_enterprise_accompagnement',
|
|
220
|
+
idPrestationType: [],
|
|
221
|
+
needBgImage: false,
|
|
222
|
+
versionable: true,
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
label: 'Forfait création Entreprise + bilan prévisionnel',
|
|
226
|
+
name: 'bloc_creation_enterprise_bilan_previsionnel',
|
|
227
|
+
idPrestationType: [],
|
|
228
|
+
needBgImage: false,
|
|
229
|
+
versionable: true,
|
|
230
|
+
},
|
|
217
231
|
{
|
|
218
232
|
label: 'Forfait approbation des comptes annuels',
|
|
219
233
|
name: 'bloc_annual_accounts',
|
|
@@ -223,7 +237,7 @@ export const BrandClementine = [
|
|
|
223
237
|
keyName: 'idPrestationJuridique',
|
|
224
238
|
},
|
|
225
239
|
{
|
|
226
|
-
label: 'Prise en charge de votre déclaration d\'impôts sur le revenu
|
|
240
|
+
label: 'Prise en charge de votre déclaration d\'impôts sur le revenu',
|
|
227
241
|
name: 'bloc_tax_return',
|
|
228
242
|
needBgImage: false,
|
|
229
243
|
idPrestationType: allPrestationsWithBrochure,
|
|
@@ -231,7 +245,7 @@ export const BrandClementine = [
|
|
|
231
245
|
keyName: 'idPrestationSocial',
|
|
232
246
|
},
|
|
233
247
|
{
|
|
234
|
-
label: 'Accompagnement contrôle fiscal
|
|
248
|
+
label: 'Accompagnement contrôle fiscal',
|
|
235
249
|
name: 'bloc_tax_audit',
|
|
236
250
|
needBgImage: false,
|
|
237
251
|
idPrestationType: allPrestationsWithBrochure,
|
|
@@ -151,48 +151,33 @@ export const BrandPourcentage = [
|
|
|
151
151
|
versionable: false,
|
|
152
152
|
idPrestationType: Object.values(PrestationDetail).filter(p => p.isBack && !p.hidden && allPrestationsWithBrochure.includes(p.id!)).map(({ id }) => id), // Prestations express
|
|
153
153
|
},
|
|
154
|
-
// pour les pages dynamiques
|
|
155
154
|
{
|
|
156
|
-
label: 'Compta
|
|
157
|
-
name: '
|
|
155
|
+
label: 'Compta Pourcentage',
|
|
156
|
+
name: 'bloc_compta_pourcentage',
|
|
158
157
|
needBgImage: false,
|
|
159
|
-
versionable:
|
|
160
|
-
idPrestationType: [
|
|
161
|
-
keyName: 'isWithApplicationFees',
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
label: 'Compta Entreprise',
|
|
165
|
-
name: 'bloc_compta_entreprise',
|
|
166
|
-
needBgImage: false,
|
|
167
|
-
versionable: true,
|
|
168
|
-
keyName: 'isWithApplicationFees',
|
|
169
|
-
idPrestationType: [PrestationType.COMPTA_ENTREPRISE, PrestationType.COMPTA_ENTREPRISE_EXPRESS, PrestationType.COMPTA_STARTER_ENTREPRISE],
|
|
170
|
-
condition: (turnover: number): boolean => turnover < 900000,
|
|
158
|
+
versionable: false,
|
|
159
|
+
idPrestationType: [],
|
|
171
160
|
},
|
|
172
161
|
{
|
|
173
|
-
label: 'Compta
|
|
174
|
-
name: '
|
|
162
|
+
label: 'Compta Pourcentage sur mesure',
|
|
163
|
+
name: 'bloc_compta_pourcentage_sur_mesure',
|
|
175
164
|
needBgImage: false,
|
|
176
|
-
versionable:
|
|
177
|
-
|
|
178
|
-
idPrestationType: [PrestationType.COMPTA_ENTREPRISE, PrestationType.COMPTA_ENTREPRISE_EXPRESS, PrestationType.COMPTA_STARTER_ENTREPRISE],
|
|
179
|
-
condition: (turnover: number): boolean => turnover >= 900000,
|
|
165
|
+
versionable: false,
|
|
166
|
+
idPrestationType: [PrestationType.COMPTA_POURCENTAGE, PrestationType.COMPTA_POURCENTAGE_EXPRESS],
|
|
180
167
|
},
|
|
181
168
|
{
|
|
182
|
-
label: 'Compta
|
|
183
|
-
name: '
|
|
169
|
+
label: 'Compta Pourcentage Premium',
|
|
170
|
+
name: 'bloc_compta_pourcentage_premium',
|
|
184
171
|
needBgImage: false,
|
|
185
|
-
versionable:
|
|
186
|
-
idPrestationType: [
|
|
187
|
-
keyName: 'isWithApplicationFees',
|
|
172
|
+
versionable: false,
|
|
173
|
+
idPrestationType: [],
|
|
188
174
|
},
|
|
189
175
|
{
|
|
190
|
-
label: 'Compta
|
|
191
|
-
name: '
|
|
176
|
+
label: 'Compta Pourcentage Premium sur mesure',
|
|
177
|
+
name: 'bloc_compta_pourcentage_premium_sur_mesure',
|
|
192
178
|
needBgImage: false,
|
|
193
|
-
versionable:
|
|
194
|
-
idPrestationType: [PrestationType.
|
|
195
|
-
keyName: 'isWithApplicationFees',
|
|
179
|
+
versionable: false,
|
|
180
|
+
idPrestationType: [PrestationType.COMPTA_POURCENTAGE_PREMIUM, PrestationType.COMPTA_POURCENTAGE_PREMIUM_EXPRESS],
|
|
196
181
|
},
|
|
197
182
|
{
|
|
198
183
|
label: 'Forfait social',
|
|
@@ -205,18 +190,20 @@ export const BrandPourcentage = [
|
|
|
205
190
|
{
|
|
206
191
|
label: 'Forfait création société',
|
|
207
192
|
name: 'bloc_creation',
|
|
208
|
-
idPrestationType: allPrestationsWithBrochure
|
|
193
|
+
idPrestationType: allPrestationsWithBrochure,
|
|
209
194
|
needBgImage: false,
|
|
210
195
|
versionable: true,
|
|
211
196
|
keyName: 'idPrestationCreation',
|
|
197
|
+
condition: (price: number): boolean => price === 500,
|
|
212
198
|
},
|
|
213
199
|
{
|
|
214
|
-
label: 'Forfait création société
|
|
215
|
-
name: '
|
|
216
|
-
idPrestationType:
|
|
200
|
+
label: 'Forfait création société premium',
|
|
201
|
+
name: 'bloc_creation_premium',
|
|
202
|
+
idPrestationType: allPrestationsWithBrochure,
|
|
217
203
|
needBgImage: false,
|
|
218
204
|
versionable: true,
|
|
219
205
|
keyName: 'idPrestationCreation',
|
|
206
|
+
condition: (price: number): boolean => price === 1000,
|
|
220
207
|
},
|
|
221
208
|
{
|
|
222
209
|
label: 'Forfait approbation des comptes annuels',
|
|
@@ -227,7 +214,7 @@ export const BrandPourcentage = [
|
|
|
227
214
|
keyName: 'idPrestationJuridique',
|
|
228
215
|
},
|
|
229
216
|
{
|
|
230
|
-
label: 'Prise en charge de votre déclaration d\'impôts sur le revenu
|
|
217
|
+
label: 'Prise en charge de votre déclaration d\'impôts sur le revenu',
|
|
231
218
|
name: 'bloc_tax_return',
|
|
232
219
|
needBgImage: false,
|
|
233
220
|
idPrestationType: allPrestationsWithBrochure,
|
|
@@ -235,7 +222,7 @@ export const BrandPourcentage = [
|
|
|
235
222
|
keyName: 'idPrestationSocial',
|
|
236
223
|
},
|
|
237
224
|
{
|
|
238
|
-
label: 'Accompagnement contrôle fiscal
|
|
225
|
+
label: 'Accompagnement contrôle fiscal',
|
|
239
226
|
name: 'bloc_tax_audit',
|
|
240
227
|
needBgImage: false,
|
|
241
228
|
idPrestationType: allPrestationsWithBrochure,
|
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
|
export type ReadBalanceSheetYearStatistic = {
|
|
2
|
-
doneIsBack: number; doneNoBack: number; todoIsBack: number; todoNoBack: number;
|
|
2
|
+
doneIsBack: number; doneNoBack: number; todoIsBack: number; todoNoBack: number; labIsBack: number; labNoBack: number;
|
|
3
3
|
};
|
|
4
4
|
|
|
5
5
|
export type ReadBalanceSheetStatistic = {
|
|
@@ -7,6 +7,7 @@ export type ReadBalanceSheetStatistic = {
|
|
|
7
7
|
firstname: string;
|
|
8
8
|
lastname: string;
|
|
9
9
|
statistics: {
|
|
10
|
+
actualYearMinusFive: ReadBalanceSheetYearStatistic;
|
|
10
11
|
actualYearMinusFour: ReadBalanceSheetYearStatistic;
|
|
11
12
|
actualYearMinusThree: ReadBalanceSheetYearStatistic;
|
|
12
13
|
actualYearMinusTwo: ReadBalanceSheetYearStatistic;
|
|
@@ -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,19 @@ 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;
|
|
41
|
+
|
|
42
|
+
@ApiPropertyOptional()
|
|
43
|
+
@IsNumber()
|
|
44
|
+
@IsOptional()
|
|
45
|
+
state?: number;
|
|
31
46
|
}
|
|
@@ -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';
|