@silexpert/core 1.2.34 → 1.2.35
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/types/Enum/TimeSlot.d.ts +2 -1
- package/dist/cjs/types/Enum/TimeSlot.d.ts.map +1 -1
- package/dist/cjs/types/Enum/TimeSlot.js +10 -0
- package/dist/cjs/types/Enum/TimeSlot.js.map +1 -1
- package/dist/cjs/types/Interface/api/commercialManagement/Create.d.ts +4 -0
- package/dist/cjs/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/commercialManagement/Create.js +26 -0
- package/dist/cjs/types/Interface/api/commercialManagement/Create.js.map +1 -1
- package/dist/cjs/types/Interface/api/previsionalForm/CreatePrevisionalForm.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/previsionalForm/CreatePrevisionalForm.js +4 -3
- package/dist/cjs/types/Interface/api/previsionalForm/CreatePrevisionalForm.js.map +1 -1
- package/dist/cjs/utils/commercialManagement/saleEmail.js.map +1 -1
- package/dist/cjs/utils/email/templates/signature.d.ts +1 -1
- package/dist/cjs/utils/email/templates/signature.js +1 -1
- package/dist/cjs/utils/email/templates/signature.js.map +1 -1
- package/dist/cjs/utils/vat/utils.d.ts.map +1 -1
- package/dist/cjs/utils/vat/utils.js +1 -0
- package/dist/cjs/utils/vat/utils.js.map +1 -1
- package/dist/mjs/types/Enum/TimeSlot.d.ts +2 -1
- package/dist/mjs/types/Enum/TimeSlot.d.ts.map +1 -1
- package/dist/mjs/types/Enum/TimeSlot.js +10 -0
- package/dist/mjs/types/Enum/TimeSlot.js.map +1 -1
- package/dist/mjs/types/Interface/api/commercialManagement/Create.d.ts +4 -0
- package/dist/mjs/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/commercialManagement/Create.js +30 -0
- package/dist/mjs/types/Interface/api/commercialManagement/Create.js.map +1 -1
- package/dist/mjs/types/Interface/api/previsionalForm/CreatePrevisionalForm.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/previsionalForm/CreatePrevisionalForm.js +4 -3
- package/dist/mjs/types/Interface/api/previsionalForm/CreatePrevisionalForm.js.map +1 -1
- package/dist/mjs/utils/commercialManagement/saleEmail.js.map +1 -1
- package/dist/mjs/utils/email/templates/signature.d.ts +1 -1
- package/dist/mjs/utils/email/templates/signature.js +1 -1
- package/dist/mjs/utils/email/templates/signature.js.map +1 -1
- package/dist/mjs/utils/vat/utils.d.ts.map +1 -1
- package/dist/mjs/utils/vat/utils.js +1 -0
- package/dist/mjs/utils/vat/utils.js.map +1 -1
- package/package.json +1 -1
- package/ts/types/Enum/TimeSlot.ts +20 -10
- package/ts/types/Interface/api/commercialManagement/Create.ts +22 -0
- package/ts/types/Interface/api/previsionalForm/CreatePrevisionalForm.ts +59 -58
- package/ts/utils/commercialManagement/saleEmail.ts +1 -1
- package/ts/utils/email/templates/signature.ts +1 -1
- package/ts/utils/vat/utils.ts +1 -0
|
@@ -8,42 +8,42 @@ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
|
8
8
|
export class NumberFiscalYearsValidation implements NumberFiscalYears {
|
|
9
9
|
@ApiProperty()
|
|
10
10
|
@IsNumber()
|
|
11
|
-
|
|
11
|
+
n: number;
|
|
12
12
|
|
|
13
13
|
@ApiProperty()
|
|
14
14
|
@IsNumber()
|
|
15
|
-
|
|
15
|
+
n1: number;
|
|
16
16
|
|
|
17
17
|
@ApiProperty()
|
|
18
18
|
@IsNumber()
|
|
19
|
-
|
|
19
|
+
n2: number;
|
|
20
20
|
|
|
21
21
|
@ApiPropertyOptional()
|
|
22
22
|
@IsOptional()
|
|
23
23
|
@IsNumber()
|
|
24
|
-
|
|
24
|
+
vat?: number;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
export class LoansInformations implements LoanInformation {
|
|
28
28
|
@ApiProperty()
|
|
29
29
|
@IsIn(['n', 'n1', 'n2'])
|
|
30
|
-
|
|
30
|
+
year: 'n' | 'n1' | 'n2';
|
|
31
31
|
|
|
32
32
|
@ApiProperty()
|
|
33
33
|
@IsNumber()
|
|
34
|
-
|
|
34
|
+
duration: number;
|
|
35
35
|
|
|
36
36
|
@ApiProperty()
|
|
37
37
|
@IsNumber()
|
|
38
|
-
|
|
38
|
+
rate: number;
|
|
39
39
|
|
|
40
40
|
@ApiProperty()
|
|
41
41
|
@IsNumber()
|
|
42
|
-
|
|
42
|
+
payment: number;
|
|
43
43
|
|
|
44
44
|
@ApiProperty()
|
|
45
45
|
@IsNumber()
|
|
46
|
-
|
|
46
|
+
amount: number;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
export class CreatePrevisionalFormData implements PrevisionalFormPayload {
|
|
@@ -53,207 +53,208 @@ export class CreatePrevisionalFormData implements PrevisionalFormPayload {
|
|
|
53
53
|
@ApiProperty()
|
|
54
54
|
@IsBoolean()
|
|
55
55
|
@ToBoolean()
|
|
56
|
-
|
|
56
|
+
isCompanyCreation: boolean;
|
|
57
57
|
|
|
58
58
|
@ApiProperty()
|
|
59
59
|
@IsEnum(LegalFormTypeEnum)
|
|
60
|
-
|
|
60
|
+
idLegalForm: LegalFormTypeEnum;
|
|
61
61
|
|
|
62
62
|
@ApiProperty()
|
|
63
63
|
@IsEnum(TaxSystem)
|
|
64
|
-
|
|
64
|
+
idTaxSystem: TaxSystem;
|
|
65
65
|
|
|
66
66
|
@ApiProperty()
|
|
67
67
|
@IsEnum(PrevisionalFormActivity)
|
|
68
|
-
|
|
68
|
+
activity: PrevisionalFormActivity;
|
|
69
69
|
|
|
70
70
|
/**
|
|
71
71
|
* Investissement
|
|
72
72
|
*/
|
|
73
73
|
@ApiProperty()
|
|
74
74
|
@ValidateNested()
|
|
75
|
-
|
|
75
|
+
computerHardware: Required<NumberFiscalYearsValidation>;
|
|
76
76
|
|
|
77
77
|
@ApiProperty()
|
|
78
78
|
@ValidateNested()
|
|
79
|
-
|
|
79
|
+
utilityVehicle: Required<NumberFiscalYearsValidation>;
|
|
80
80
|
|
|
81
81
|
@ApiProperty()
|
|
82
82
|
@ValidateNested()
|
|
83
|
-
|
|
83
|
+
personalVehicle: Required<NumberFiscalYearsValidation>;
|
|
84
84
|
|
|
85
85
|
@ApiProperty()
|
|
86
86
|
@ValidateNested()
|
|
87
|
-
|
|
87
|
+
toolsEquipment: Required<NumberFiscalYearsValidation>;
|
|
88
88
|
|
|
89
89
|
@ApiProperty()
|
|
90
90
|
@ValidateNested()
|
|
91
|
-
|
|
91
|
+
software: Required<NumberFiscalYearsValidation>;
|
|
92
92
|
|
|
93
93
|
@ApiProperty()
|
|
94
94
|
@ValidateNested()
|
|
95
|
-
|
|
95
|
+
website: Required<NumberFiscalYearsValidation>;
|
|
96
96
|
|
|
97
97
|
@ApiProperty()
|
|
98
98
|
@ValidateNested()
|
|
99
|
-
|
|
99
|
+
businessAssets: Required<NumberFiscalYearsValidation>;
|
|
100
100
|
|
|
101
101
|
@ApiProperty()
|
|
102
102
|
@ValidateNested()
|
|
103
|
-
|
|
103
|
+
immobilizedSecurities: Required<NumberFiscalYearsValidation>;
|
|
104
104
|
|
|
105
105
|
@ApiProperty()
|
|
106
106
|
@ValidateNested()
|
|
107
|
-
|
|
107
|
+
deposit: Required<NumberFiscalYearsValidation>;
|
|
108
108
|
|
|
109
109
|
/**
|
|
110
110
|
* Financement
|
|
111
111
|
*/
|
|
112
112
|
@ApiProperty()
|
|
113
113
|
@ValidateNested()
|
|
114
|
-
|
|
114
|
+
socialCapital: NumberFiscalYearsValidation;
|
|
115
115
|
|
|
116
116
|
@ApiProperty()
|
|
117
117
|
@ValidateNested()
|
|
118
|
-
|
|
118
|
+
accountContribution: NumberFiscalYearsValidation;
|
|
119
119
|
|
|
120
120
|
@ApiProperty()
|
|
121
|
-
@ValidateNested()
|
|
122
|
-
|
|
121
|
+
@ValidateNested({ each: true })
|
|
122
|
+
loans: LoansInformations[];
|
|
123
123
|
|
|
124
124
|
/**
|
|
125
125
|
* Chiffres d’affaires et charge liées à l’activité
|
|
126
126
|
*/
|
|
127
127
|
@ApiProperty()
|
|
128
|
-
@ValidateNested()
|
|
129
|
-
|
|
128
|
+
@ValidateNested({ each: true })
|
|
129
|
+
turnover: Required<NumberFiscalYearsValidation>[];
|
|
130
130
|
|
|
131
131
|
@ApiProperty()
|
|
132
|
-
@ValidateNested()
|
|
133
|
-
|
|
132
|
+
@ValidateNested({ each: true })
|
|
133
|
+
outsourcing: Required<NumberFiscalYearsValidation>[];
|
|
134
134
|
|
|
135
135
|
@ApiPropertyOptional()
|
|
136
|
-
|
|
136
|
+
@ValidateNested({ each: true })
|
|
137
|
+
merchandisePurchase?: OptionNumberFiscalYears[];
|
|
137
138
|
|
|
138
139
|
/**
|
|
139
140
|
* Consommables
|
|
140
141
|
*/
|
|
141
142
|
@ApiProperty()
|
|
142
143
|
@ValidateNested()
|
|
143
|
-
|
|
144
|
+
packaging: Required<NumberFiscalYearsValidation>;
|
|
144
145
|
|
|
145
146
|
@ApiProperty()
|
|
146
147
|
@ValidateNested()
|
|
147
|
-
|
|
148
|
+
utilities: Required<NumberFiscalYearsValidation>;
|
|
148
149
|
|
|
149
150
|
@ApiProperty()
|
|
150
151
|
@ValidateNested()
|
|
151
|
-
|
|
152
|
+
fuel: Required<NumberFiscalYearsValidation>;
|
|
152
153
|
|
|
153
154
|
@ApiProperty()
|
|
154
155
|
@ValidateNested()
|
|
155
|
-
|
|
156
|
+
equipmentAndSupplies: Required<NumberFiscalYearsValidation>;
|
|
156
157
|
|
|
157
158
|
@ApiProperty()
|
|
158
159
|
@ValidateNested()
|
|
159
|
-
|
|
160
|
+
administrativeSupplies: Required<NumberFiscalYearsValidation>;
|
|
160
161
|
|
|
161
162
|
/**
|
|
162
163
|
* Autes charges liées à l’activité
|
|
163
164
|
*/
|
|
164
165
|
@ApiProperty()
|
|
165
166
|
@ValidateNested()
|
|
166
|
-
|
|
167
|
+
realEstateRental: Required<NumberFiscalYearsValidation>;
|
|
167
168
|
|
|
168
169
|
@ApiProperty()
|
|
169
170
|
@ValidateNested()
|
|
170
|
-
|
|
171
|
+
otherRental: Required<NumberFiscalYearsValidation>;
|
|
171
172
|
|
|
172
173
|
@ApiProperty()
|
|
173
174
|
@ValidateNested()
|
|
174
|
-
|
|
175
|
+
maintenanceAndRepair: Required<NumberFiscalYearsValidation>;
|
|
175
176
|
|
|
176
177
|
@ApiProperty()
|
|
177
178
|
@ValidateNested()
|
|
178
|
-
|
|
179
|
+
insuranceAndProfessionalLiability: Required<NumberFiscalYearsValidation>;
|
|
179
180
|
|
|
180
181
|
@ApiProperty()
|
|
181
182
|
@ValidateNested()
|
|
182
|
-
|
|
183
|
+
accountingFees: Required<NumberFiscalYearsValidation>;
|
|
183
184
|
|
|
184
185
|
@ApiProperty()
|
|
185
186
|
@ValidateNested()
|
|
186
|
-
|
|
187
|
+
otherFees: Required<NumberFiscalYearsValidation>;
|
|
187
188
|
|
|
188
189
|
@ApiProperty()
|
|
189
190
|
@ValidateNested()
|
|
190
|
-
|
|
191
|
+
advertising: Required<NumberFiscalYearsValidation>;
|
|
191
192
|
|
|
192
193
|
@ApiProperty()
|
|
193
194
|
@ValidateNested()
|
|
194
|
-
|
|
195
|
+
kilometricAllowances: Required<NumberFiscalYearsValidation>;
|
|
195
196
|
|
|
196
197
|
@ApiProperty()
|
|
197
198
|
@ValidateNested()
|
|
198
|
-
|
|
199
|
+
otherTravelExpenses: Required<NumberFiscalYearsValidation>;
|
|
199
200
|
|
|
200
201
|
@ApiProperty()
|
|
201
202
|
@ValidateNested()
|
|
202
|
-
|
|
203
|
+
telephonyInternetNetworks: Required<NumberFiscalYearsValidation>;
|
|
203
204
|
|
|
204
205
|
@ApiProperty()
|
|
205
206
|
@ValidateNested()
|
|
206
|
-
|
|
207
|
+
bankFees: Required<NumberFiscalYearsValidation>;
|
|
207
208
|
|
|
208
209
|
/**
|
|
209
210
|
* Social et rémunération
|
|
210
211
|
*/
|
|
211
212
|
@ApiProperty()
|
|
212
213
|
@ValidateNested()
|
|
213
|
-
|
|
214
|
+
employee1GrossSalary: NumberFiscalYearsValidation;
|
|
214
215
|
|
|
215
216
|
@ApiProperty()
|
|
216
217
|
@ValidateNested()
|
|
217
|
-
|
|
218
|
+
employee2GrossSalary: NumberFiscalYearsValidation;
|
|
218
219
|
|
|
219
220
|
@ApiProperty()
|
|
220
221
|
@ValidateNested()
|
|
221
|
-
|
|
222
|
+
employee3GrossSalary: NumberFiscalYearsValidation;
|
|
222
223
|
|
|
223
224
|
@ApiProperty()
|
|
224
225
|
@ValidateNested()
|
|
225
|
-
|
|
226
|
+
remunerationPresident: NumberFiscalYearsValidation;
|
|
226
227
|
|
|
227
228
|
@ApiProperty()
|
|
228
229
|
@ValidateNested()
|
|
229
|
-
|
|
230
|
+
remunerationManager: NumberFiscalYearsValidation;
|
|
230
231
|
|
|
231
232
|
/**
|
|
232
233
|
* Impôts
|
|
233
234
|
*/
|
|
234
235
|
@ApiProperty()
|
|
235
|
-
|
|
236
|
+
cfe: NumberFiscalYears | undefined;
|
|
236
237
|
|
|
237
238
|
@ApiProperty()
|
|
238
|
-
|
|
239
|
+
tvs: NumberFiscalYears | undefined;
|
|
239
240
|
|
|
240
241
|
@ApiProperty()
|
|
241
|
-
|
|
242
|
+
otherTaxes: NumberFiscalYears | undefined;
|
|
242
243
|
|
|
243
244
|
/**
|
|
244
245
|
* Récapitulatif
|
|
245
246
|
*/
|
|
246
247
|
@ApiProperty()
|
|
247
248
|
@IsString()
|
|
248
|
-
|
|
249
|
+
summary: string;
|
|
249
250
|
}
|
|
250
251
|
|
|
251
252
|
export class CreatePrevisionalForm {
|
|
252
253
|
@ApiProperty()
|
|
253
254
|
@IsNumber()
|
|
254
|
-
|
|
255
|
+
idSociety: number;
|
|
255
256
|
|
|
256
257
|
@ApiProperty()
|
|
257
258
|
@ValidateNested()
|
|
258
|
-
|
|
259
|
+
payload: CreatePrevisionalFormData;
|
|
259
260
|
}
|
|
@@ -15,7 +15,7 @@ export function transformModelWithCharcodeToString(datas: InfoToUseType, templat
|
|
|
15
15
|
|
|
16
16
|
const charcodesFound: RegExpMatchArray | [] = template.match(reg) ?? [];
|
|
17
17
|
const charcodesFoundWithoutBrackets: string[] = [];
|
|
18
|
-
charcodesFound.forEach((f) => charcodesFoundWithoutBrackets.push(f.replace(/[\[\]']+/g, '')));
|
|
18
|
+
charcodesFound.forEach((f) => charcodesFoundWithoutBrackets.push((f as unknown as string).replace(/[\[\]']+/g, '')));
|
|
19
19
|
|
|
20
20
|
// we get the list of matching key template with key data
|
|
21
21
|
const charcodesDetected = emailTemplateVariableAffiliatedData.filter((data) => intersection(emailTemplateVariableAffiliatedData.map((d) => d.name), charcodesFoundWithoutBrackets).includes(data.name));
|
|
@@ -46,7 +46,7 @@ const footer = `<% if(commercialName === 'Clementine') { %>
|
|
|
46
46
|
Une question ? Découvrez votre <a href="https://www.clementine.fr/aide/" style="color: #FF7E3C">centre d'aide</a>
|
|
47
47
|
</span>
|
|
48
48
|
<span style="text-align: right; text-decoration: none; color: #A0A1A6; white-space: nowrap; float: right;">
|
|
49
|
-
Jusqu’à
|
|
49
|
+
Jusqu’à 600€ avec notre <a href="https://www.clementine.fr/parrainage/?utm_source=signature&utm_medium=email&utm_campaign=signature&utm_content=cta" style="color: #FF7E3C">programme de parrainage</a>
|
|
50
50
|
</span>
|
|
51
51
|
</td>
|
|
52
52
|
</tr>
|
package/ts/utils/vat/utils.ts
CHANGED
|
@@ -54,6 +54,7 @@ export function textFormatting(value: any, length: number | null = null): string
|
|
|
54
54
|
formattedValue = formattedValue.replace(/^ */, ''); // Suppression des espaces de début
|
|
55
55
|
formattedValue = formattedValue.replace(/ *$/, ''); // Suppression des espaces de fin
|
|
56
56
|
formattedValue = formattedValue.replace(/€/g, 'EUR');
|
|
57
|
+
formattedValue = formattedValue.replace(/œ/g, 'oe');
|
|
57
58
|
if (length) formattedValue = formattedValue.slice(0, length);
|
|
58
59
|
return formattedValue;
|
|
59
60
|
}
|