@silexpert/core 1.3.42 → 1.3.44
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/dist/cjs/api/resources/BankStatement.d.ts +3 -1
- package/dist/cjs/api/resources/BankStatement.d.ts.map +1 -1
- package/dist/cjs/api/resources/BankStatement.js +6 -0
- package/dist/cjs/api/resources/BankStatement.js.map +1 -1
- package/dist/cjs/api/resources/Library.d.ts +1 -1
- package/dist/cjs/api/resources/Library.d.ts.map +1 -1
- package/dist/cjs/api/resources/Library.js.map +1 -1
- package/dist/cjs/types/Enum/AIPrompt.d.ts +2 -0
- package/dist/cjs/types/Enum/AIPrompt.d.ts.map +1 -1
- package/dist/cjs/types/Enum/AIPrompt.js +10 -0
- package/dist/cjs/types/Enum/AIPrompt.js.map +1 -1
- package/dist/cjs/types/Enum/PrestationType.d.ts +2 -2
- package/dist/cjs/types/Enum/PrestationType.d.ts.map +1 -1
- package/dist/cjs/types/Enum/PrestationType.js +12 -12
- package/dist/cjs/types/Enum/PrestationType.js.map +1 -1
- package/dist/cjs/types/Enum/PriceGridClementine.d.ts.map +1 -1
- package/dist/cjs/types/Enum/PriceGridClementine.js +41 -1
- package/dist/cjs/types/Enum/PriceGridClementine.js.map +1 -1
- package/dist/cjs/types/Enum/SalesContractBrandClementine.d.ts.map +1 -1
- package/dist/cjs/types/Enum/SalesContractBrandClementine.js +37 -50
- package/dist/cjs/types/Enum/SalesContractBrandClementine.js.map +1 -1
- package/dist/cjs/types/Interface/api/bankStatement/QueryBankStatement.d.ts +7 -0
- package/dist/cjs/types/Interface/api/bankStatement/QueryBankStatement.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/bankStatement/QueryBankStatement.js +24 -1
- package/dist/cjs/types/Interface/api/bankStatement/QueryBankStatement.js.map +1 -1
- package/dist/cjs/types/Interface/api/bankStatement/ReadBankStatement.d.ts +7 -0
- package/dist/cjs/types/Interface/api/bankStatement/ReadBankStatement.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/bankStatement/ReadBankStatement.js +7 -1
- package/dist/cjs/types/Interface/api/bankStatement/ReadBankStatement.js.map +1 -1
- package/dist/cjs/types/Interface/api/library/QueryLibrary.d.ts +1 -2
- package/dist/cjs/types/Interface/api/library/QueryLibrary.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/library/QueryLibrary.js +1 -1
- package/dist/cjs/types/Interface/api/library/QueryLibrary.js.map +1 -1
- package/dist/cjs/types/Interface/models/IGedFile.d.ts +2 -0
- package/dist/cjs/types/Interface/models/IGedFile.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IGedFile.js.map +1 -1
- package/dist/cjs/utils/prestation.js +2 -2
- package/dist/cjs/utils/prestation.js.map +1 -1
- package/dist/mjs/api/resources/BankStatement.d.ts +3 -1
- package/dist/mjs/api/resources/BankStatement.d.ts.map +1 -1
- package/dist/mjs/api/resources/BankStatement.js +6 -0
- package/dist/mjs/api/resources/BankStatement.js.map +1 -1
- package/dist/mjs/api/resources/Library.d.ts +1 -1
- package/dist/mjs/api/resources/Library.d.ts.map +1 -1
- package/dist/mjs/api/resources/Library.js.map +1 -1
- package/dist/mjs/types/Enum/AIPrompt.d.ts +2 -0
- package/dist/mjs/types/Enum/AIPrompt.d.ts.map +1 -1
- package/dist/mjs/types/Enum/AIPrompt.js +10 -0
- package/dist/mjs/types/Enum/AIPrompt.js.map +1 -1
- package/dist/mjs/types/Enum/PrestationType.d.ts +2 -2
- package/dist/mjs/types/Enum/PrestationType.d.ts.map +1 -1
- package/dist/mjs/types/Enum/PrestationType.js +12 -12
- package/dist/mjs/types/Enum/PrestationType.js.map +1 -1
- package/dist/mjs/types/Enum/PriceGridClementine.d.ts.map +1 -1
- package/dist/mjs/types/Enum/PriceGridClementine.js +41 -1
- package/dist/mjs/types/Enum/PriceGridClementine.js.map +1 -1
- package/dist/mjs/types/Enum/SalesContractBrandClementine.d.ts.map +1 -1
- package/dist/mjs/types/Enum/SalesContractBrandClementine.js +38 -51
- package/dist/mjs/types/Enum/SalesContractBrandClementine.js.map +1 -1
- package/dist/mjs/types/Interface/api/bankStatement/QueryBankStatement.d.ts +7 -0
- package/dist/mjs/types/Interface/api/bankStatement/QueryBankStatement.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/bankStatement/QueryBankStatement.js +25 -1
- package/dist/mjs/types/Interface/api/bankStatement/QueryBankStatement.js.map +1 -1
- package/dist/mjs/types/Interface/api/bankStatement/ReadBankStatement.d.ts +7 -0
- package/dist/mjs/types/Interface/api/bankStatement/ReadBankStatement.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/bankStatement/ReadBankStatement.js +7 -0
- package/dist/mjs/types/Interface/api/bankStatement/ReadBankStatement.js.map +1 -1
- package/dist/mjs/types/Interface/api/library/QueryLibrary.d.ts +1 -2
- package/dist/mjs/types/Interface/api/library/QueryLibrary.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/library/QueryLibrary.js +1 -1
- package/dist/mjs/types/Interface/api/library/QueryLibrary.js.map +1 -1
- package/dist/mjs/types/Interface/models/IGedFile.d.ts +2 -0
- package/dist/mjs/types/Interface/models/IGedFile.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IGedFile.js.map +1 -1
- package/dist/mjs/utils/prestation.js +2 -2
- package/dist/mjs/utils/prestation.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/BankStatement.ts +13 -1
- package/ts/api/resources/Library.ts +1 -1
- package/ts/types/Enum/AIPrompt.ts +15 -2
- package/ts/types/Enum/PrestationType.ts +12 -12
- package/ts/types/Enum/PriceGridClementine.ts +41 -1
- package/ts/types/Enum/SalesContractBrandClementine.ts +43 -51
- package/ts/types/Interface/api/bankStatement/QueryBankStatement.ts +19 -1
- package/ts/types/Interface/api/bankStatement/ReadBankStatement.ts +9 -0
- package/ts/types/Interface/api/library/QueryLibrary.ts +1 -1
- package/ts/types/Interface/models/IGedFile.ts +2 -0
- package/ts/utils/prestation.ts +2 -2
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { SaleContract } from '..';
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
PrestationType,
|
|
4
|
+
allPrestationsWithBrochure,
|
|
5
|
+
PrestationDetail,
|
|
6
|
+
allPrestations2025WithBrochure,
|
|
7
|
+
} from './PrestationType';
|
|
3
8
|
|
|
4
9
|
export const SalesContractClementine: SaleContract[] = [
|
|
5
10
|
{
|
|
@@ -24,40 +29,34 @@ export const SalesContractClementine: SaleContract[] = [
|
|
|
24
29
|
idPrestationType: allPrestationsWithBrochure,
|
|
25
30
|
},
|
|
26
31
|
{
|
|
27
|
-
label:
|
|
32
|
+
label: 'Page chiffres 2025',
|
|
28
33
|
name: 'page_numbers_2025',
|
|
29
34
|
needBgImage: true,
|
|
30
35
|
versionable: false,
|
|
31
36
|
idPrestationType: allPrestations2025WithBrochure,
|
|
32
37
|
},
|
|
33
38
|
{
|
|
34
|
-
label:
|
|
39
|
+
label: 'Page expertise 2025',
|
|
35
40
|
name: 'page_expertise_2025',
|
|
36
41
|
needBgImage: false,
|
|
37
42
|
versionable: false,
|
|
38
|
-
idPrestationType: [
|
|
39
|
-
PrestationType.EXPERTISE,
|
|
40
|
-
],
|
|
43
|
+
idPrestationType: [PrestationType.EXPERTISE],
|
|
41
44
|
condition: (turnover: number): boolean => turnover < 250000,
|
|
42
45
|
},
|
|
43
46
|
{
|
|
44
|
-
label:
|
|
47
|
+
label: 'Page accompagnement 2025',
|
|
45
48
|
name: 'page_support_2025',
|
|
46
49
|
needBgImage: false,
|
|
47
50
|
versionable: false,
|
|
48
|
-
idPrestationType: [
|
|
49
|
-
PrestationType.SUPPORT,
|
|
50
|
-
],
|
|
51
|
+
idPrestationType: [PrestationType.SUPPORT],
|
|
51
52
|
condition: (turnover: number): boolean => turnover < 750000,
|
|
52
53
|
},
|
|
53
54
|
{
|
|
54
|
-
label:
|
|
55
|
+
label: 'Page premium 2025',
|
|
55
56
|
name: 'page_premium_2025',
|
|
56
57
|
needBgImage: false,
|
|
57
58
|
versionable: false,
|
|
58
|
-
idPrestationType: [
|
|
59
|
-
PrestationType.PREMIUM,
|
|
60
|
-
],
|
|
59
|
+
idPrestationType: [PrestationType.PREMIUM],
|
|
61
60
|
condition: (turnover: number): boolean => turnover < 1200000,
|
|
62
61
|
},
|
|
63
62
|
{
|
|
@@ -65,27 +64,21 @@ export const SalesContractClementine: SaleContract[] = [
|
|
|
65
64
|
name: 'page_ei_2025',
|
|
66
65
|
needBgImage: false,
|
|
67
66
|
versionable: false,
|
|
68
|
-
idPrestationType: [
|
|
69
|
-
PrestationType.EI,
|
|
70
|
-
],
|
|
67
|
+
idPrestationType: [PrestationType.EI],
|
|
71
68
|
},
|
|
72
69
|
{
|
|
73
|
-
label: 'Page
|
|
74
|
-
name: '
|
|
70
|
+
label: 'Page Micro 2025',
|
|
71
|
+
name: 'page_micro_2025',
|
|
75
72
|
needBgImage: false,
|
|
76
73
|
versionable: false,
|
|
77
|
-
idPrestationType: [
|
|
78
|
-
PrestationType.SCI,
|
|
79
|
-
],
|
|
74
|
+
idPrestationType: [PrestationType.MICRO],
|
|
80
75
|
},
|
|
81
76
|
{
|
|
82
|
-
label: 'Page
|
|
83
|
-
name: '
|
|
77
|
+
label: 'Page Gestion Immo 2025',
|
|
78
|
+
name: 'page_gestion_immo_2025',
|
|
84
79
|
needBgImage: false,
|
|
85
80
|
versionable: false,
|
|
86
|
-
idPrestationType: [
|
|
87
|
-
PrestationType.LMNP,
|
|
88
|
-
],
|
|
81
|
+
idPrestationType: [PrestationType.GESTION_IMMO],
|
|
89
82
|
},
|
|
90
83
|
// {
|
|
91
84
|
// label: 'Forfait social 2025',
|
|
@@ -123,34 +116,33 @@ export const SalesContractClementine: SaleContract[] = [
|
|
|
123
116
|
label: 'Prestations complémentaires 2025',
|
|
124
117
|
name: 'page_presta_complem_2025',
|
|
125
118
|
needBgImage: false,
|
|
126
|
-
idPrestationType:
|
|
119
|
+
idPrestationType: [
|
|
120
|
+
PrestationType.EXPERTISE,
|
|
121
|
+
PrestationType.SUPPORT,
|
|
122
|
+
PrestationType.PREMIUM,
|
|
123
|
+
PrestationType.CUSTOM_MADE,
|
|
124
|
+
],
|
|
127
125
|
versionable: false,
|
|
128
126
|
},
|
|
129
127
|
{
|
|
130
128
|
label: 'Prestations complémentaires EI 2025',
|
|
131
129
|
name: 'page_presta_complem_ei_2025',
|
|
132
130
|
needBgImage: false,
|
|
133
|
-
idPrestationType: [
|
|
134
|
-
PrestationType.EI,
|
|
135
|
-
],
|
|
131
|
+
idPrestationType: [PrestationType.EI],
|
|
136
132
|
versionable: false,
|
|
137
133
|
},
|
|
138
134
|
{
|
|
139
|
-
label: 'Prestations complémentaires
|
|
140
|
-
name: '
|
|
135
|
+
label: 'Prestations complémentaires Micro 2025',
|
|
136
|
+
name: 'page_presta_complem_micro_2025',
|
|
141
137
|
needBgImage: false,
|
|
142
|
-
idPrestationType: [
|
|
143
|
-
PrestationType.SCI,
|
|
144
|
-
],
|
|
138
|
+
idPrestationType: [PrestationType.MICRO],
|
|
145
139
|
versionable: false,
|
|
146
140
|
},
|
|
147
141
|
{
|
|
148
|
-
label: 'Prestations complémentaires
|
|
149
|
-
name: '
|
|
142
|
+
label: 'Prestations complémentaires Gestion Immo 2025',
|
|
143
|
+
name: 'page_presta_complem_gestion_immo_2025',
|
|
150
144
|
needBgImage: false,
|
|
151
|
-
idPrestationType: [
|
|
152
|
-
PrestationType.LMNP,
|
|
153
|
-
],
|
|
145
|
+
idPrestationType: [PrestationType.GESTION_IMMO],
|
|
154
146
|
versionable: false,
|
|
155
147
|
},
|
|
156
148
|
{
|
|
@@ -358,7 +350,7 @@ export const SalesContractClementine: SaleContract[] = [
|
|
|
358
350
|
name: 'page_detail_ldm_2025',
|
|
359
351
|
needBgImage: false,
|
|
360
352
|
versionable: false,
|
|
361
|
-
idPrestationType: allPrestations2025WithBrochure
|
|
353
|
+
idPrestationType: allPrestations2025WithBrochure,
|
|
362
354
|
},
|
|
363
355
|
{
|
|
364
356
|
label: 'Devis 2025',
|
|
@@ -650,13 +642,13 @@ export const SalesContractKlems: SaleContract[] = [
|
|
|
650
642
|
],
|
|
651
643
|
versionable: false,
|
|
652
644
|
},
|
|
653
|
-
{
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
},
|
|
645
|
+
// {
|
|
646
|
+
// label: 'Page EI 2025',
|
|
647
|
+
// name: 'page_ei_2025',
|
|
648
|
+
// needBgImage: false,
|
|
649
|
+
// versionable: false,
|
|
650
|
+
// idPrestationType: [
|
|
651
|
+
// PrestationType.EI,
|
|
652
|
+
// ],
|
|
653
|
+
// },
|
|
662
654
|
];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IsBoolean, IsNotEmpty, IsNumber, IsOptional } from 'class-validator';
|
|
1
|
+
import { IsBoolean, IsNotEmpty, IsNumber, IsOptional, IsString } from 'class-validator';
|
|
2
2
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
3
|
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
4
4
|
|
|
@@ -25,3 +25,21 @@ export class UploadBankStatement {
|
|
|
25
25
|
|
|
26
26
|
file: File;
|
|
27
27
|
}
|
|
28
|
+
|
|
29
|
+
export class AskPeriodFromFileName {
|
|
30
|
+
@ApiProperty()
|
|
31
|
+
@IsString()
|
|
32
|
+
fileName: string;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export class AskFileNameFromPeriod {
|
|
36
|
+
@ApiProperty()
|
|
37
|
+
@IsString()
|
|
38
|
+
@IsNotEmpty()
|
|
39
|
+
startDate: string;
|
|
40
|
+
|
|
41
|
+
@ApiPropertyOptional()
|
|
42
|
+
@IsString()
|
|
43
|
+
@IsOptional()
|
|
44
|
+
endDate?: string;
|
|
45
|
+
}
|
|
@@ -20,6 +20,8 @@ export interface IGedFile {
|
|
|
20
20
|
idSociety: number;
|
|
21
21
|
idFile: number;
|
|
22
22
|
typeFile?: number | null;
|
|
23
|
+
startDate?: Date | null;
|
|
24
|
+
endDate?: Date | null;
|
|
23
25
|
idExercice?: number | null;
|
|
24
26
|
idBalanceSheet?: number | null;
|
|
25
27
|
idUserBP?: number | null; // Attention: lorsqu'on ajoute un fichier dans la modale "Documents manquants", on stock ici l'idUser associé au BP
|
package/ts/utils/prestation.ts
CHANGED
|
@@ -457,8 +457,8 @@ const calculatePrestationPrice = (
|
|
|
457
457
|
PrestationType.PREMIUM,
|
|
458
458
|
PrestationType.CUSTOM_MADE,
|
|
459
459
|
PrestationType.EI,
|
|
460
|
-
PrestationType.
|
|
461
|
-
PrestationType.
|
|
460
|
+
PrestationType.MICRO,
|
|
461
|
+
PrestationType.GESTION_IMMO,
|
|
462
462
|
].includes(idPrestationList)
|
|
463
463
|
) {
|
|
464
464
|
let exerciceNbr: number = 0;
|