@silexpert/core 1.2.34 → 1.2.36
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/Report.d.ts +2 -1
- package/dist/cjs/api/resources/Report.d.ts.map +1 -1
- package/dist/cjs/api/resources/Report.js +12 -0
- package/dist/cjs/api/resources/Report.js.map +1 -1
- package/dist/cjs/types/Enum/IssueType.d.ts +53 -0
- package/dist/cjs/types/Enum/IssueType.d.ts.map +1 -0
- package/dist/cjs/types/Enum/IssueType.js +72 -0
- package/dist/cjs/types/Enum/IssueType.js.map +1 -0
- package/dist/cjs/types/Enum/ReportType.d.ts +35 -76
- package/dist/cjs/types/Enum/ReportType.d.ts.map +1 -1
- package/dist/cjs/types/Enum/ReportType.js +72 -20
- package/dist/cjs/types/Enum/ReportType.js.map +1 -1
- 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/types/Interface/api/report/CreateReport.d.ts +2 -0
- package/dist/cjs/types/Interface/api/report/CreateReport.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/report/CreateReport.js +35 -0
- package/dist/cjs/types/Interface/api/report/CreateReport.js.map +1 -1
- package/dist/cjs/types/Interface/api/report/ExternalReport.d.ts +9 -0
- package/dist/cjs/types/Interface/api/report/ExternalReport.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/report/ExternalReport.js +48 -0
- package/dist/cjs/types/Interface/api/report/ExternalReport.js.map +1 -0
- package/dist/cjs/types/Interface/models/IFile.d.ts +2 -1
- package/dist/cjs/types/Interface/models/IFile.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IFile.js.map +1 -1
- package/dist/cjs/types/Interface/models/IReport.d.ts +13 -3
- package/dist/cjs/types/Interface/models/IReport.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IReport.js.map +1 -1
- package/dist/cjs/types/Interface/models/ITicketSupport.d.ts +27 -2
- package/dist/cjs/types/Interface/models/ITicketSupport.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/ITicketSupport.js.map +1 -1
- package/dist/cjs/types/index.d.ts +2 -0
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +2 -0
- package/dist/cjs/types/index.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/api/resources/Report.d.ts +2 -1
- package/dist/mjs/api/resources/Report.d.ts.map +1 -1
- package/dist/mjs/api/resources/Report.js +12 -0
- package/dist/mjs/api/resources/Report.js.map +1 -1
- package/dist/mjs/types/Enum/IssueType.d.ts +53 -0
- package/dist/mjs/types/Enum/IssueType.d.ts.map +1 -0
- package/dist/mjs/types/Enum/IssueType.js +69 -0
- package/dist/mjs/types/Enum/IssueType.js.map +1 -0
- package/dist/mjs/types/Enum/ReportType.d.ts +35 -76
- package/dist/mjs/types/Enum/ReportType.d.ts.map +1 -1
- package/dist/mjs/types/Enum/ReportType.js +71 -19
- package/dist/mjs/types/Enum/ReportType.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/types/Interface/api/report/CreateReport.d.ts +2 -0
- package/dist/mjs/types/Interface/api/report/CreateReport.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/report/CreateReport.js +37 -0
- package/dist/mjs/types/Interface/api/report/CreateReport.js.map +1 -1
- package/dist/mjs/types/Interface/api/report/ExternalReport.d.ts +9 -0
- package/dist/mjs/types/Interface/api/report/ExternalReport.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/report/ExternalReport.js +49 -0
- package/dist/mjs/types/Interface/api/report/ExternalReport.js.map +1 -0
- package/dist/mjs/types/Interface/models/IFile.d.ts +2 -1
- package/dist/mjs/types/Interface/models/IFile.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IFile.js.map +1 -1
- package/dist/mjs/types/Interface/models/IReport.d.ts +13 -3
- package/dist/mjs/types/Interface/models/IReport.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IReport.js.map +1 -1
- package/dist/mjs/types/Interface/models/ITicketSupport.d.ts +27 -2
- package/dist/mjs/types/Interface/models/ITicketSupport.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/ITicketSupport.js.map +1 -1
- package/dist/mjs/types/index.d.ts +2 -0
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +2 -0
- package/dist/mjs/types/index.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/api/resources/Report.ts +16 -1
- package/ts/types/Enum/IssueType.ts +85 -0
- package/ts/types/Enum/ReportType.ts +86 -21
- 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/types/Interface/api/report/CreateReport.ts +48 -15
- package/ts/types/Interface/api/report/ExternalReport.ts +30 -0
- package/ts/types/Interface/models/IFile.ts +2 -1
- package/ts/types/Interface/models/IReport.ts +13 -3
- package/ts/types/Interface/models/ITicketSupport.ts +31 -2
- package/ts/types/index.ts +2 -0
- 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
|
@@ -202,6 +202,12 @@ export class CreateCommercialSetting {
|
|
|
202
202
|
@ToBoolean()
|
|
203
203
|
areLinesSeparationHidden?: boolean;
|
|
204
204
|
|
|
205
|
+
@ApiPropertyOptional()
|
|
206
|
+
@IsOptional()
|
|
207
|
+
@IsBoolean()
|
|
208
|
+
@ToBoolean()
|
|
209
|
+
areExternalBordersHidden?: boolean;
|
|
210
|
+
|
|
205
211
|
@ApiPropertyOptional()
|
|
206
212
|
@IsOptional()
|
|
207
213
|
@IsBoolean()
|
|
@@ -295,6 +301,22 @@ export class CreateCommercialSetting {
|
|
|
295
301
|
@IsOptional()
|
|
296
302
|
@IsInt()
|
|
297
303
|
idSignatureFile?: number | null;
|
|
304
|
+
|
|
305
|
+
@ApiPropertyOptional()
|
|
306
|
+
@IsOptional()
|
|
307
|
+
@IsString()
|
|
308
|
+
logoUrl?: string;
|
|
309
|
+
|
|
310
|
+
@ApiPropertyOptional()
|
|
311
|
+
@IsOptional()
|
|
312
|
+
@IsString()
|
|
313
|
+
paymentType?: string;
|
|
314
|
+
|
|
315
|
+
@ApiPropertyOptional()
|
|
316
|
+
@IsBoolean()
|
|
317
|
+
@ToBoolean()
|
|
318
|
+
@IsOptional()
|
|
319
|
+
bonPour?: boolean;
|
|
298
320
|
}
|
|
299
321
|
|
|
300
322
|
export class CreateCommercialMail {
|
|
@@ -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
|
}
|
|
@@ -1,50 +1,83 @@
|
|
|
1
|
+
import { IsInt, IsOptional, IsString } from 'class-validator';
|
|
1
2
|
import { IReport } from '../../..';
|
|
2
3
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
4
|
import { TFile } from '../file/TFile';
|
|
4
5
|
|
|
5
6
|
export class CreateReport implements IReport {
|
|
6
7
|
@ApiPropertyOptional()
|
|
7
|
-
|
|
8
|
+
@IsOptional()
|
|
9
|
+
@IsInt()
|
|
10
|
+
idReportType?: number;
|
|
8
11
|
|
|
9
12
|
@ApiPropertyOptional()
|
|
10
|
-
|
|
13
|
+
@IsOptional()
|
|
14
|
+
@IsInt()
|
|
15
|
+
idSociety?: number;
|
|
16
|
+
|
|
17
|
+
@ApiPropertyOptional()
|
|
18
|
+
@IsOptional()
|
|
19
|
+
@IsInt()
|
|
20
|
+
idFile?: number;
|
|
11
21
|
|
|
12
22
|
@ApiProperty()
|
|
13
|
-
|
|
23
|
+
@IsInt()
|
|
24
|
+
idUser: number;
|
|
14
25
|
|
|
15
26
|
@ApiPropertyOptional()
|
|
16
|
-
|
|
27
|
+
@IsOptional()
|
|
28
|
+
@IsInt()
|
|
29
|
+
idServiceConcerned?: number;
|
|
17
30
|
|
|
18
31
|
@ApiProperty()
|
|
19
|
-
|
|
32
|
+
@IsString()
|
|
33
|
+
comment: string;
|
|
34
|
+
|
|
35
|
+
@ApiPropertyOptional()
|
|
36
|
+
@IsOptional()
|
|
37
|
+
@IsString()
|
|
38
|
+
search?: string;
|
|
20
39
|
|
|
21
40
|
@ApiPropertyOptional()
|
|
22
|
-
|
|
41
|
+
@IsOptional()
|
|
42
|
+
declareSoupcons?: boolean;
|
|
23
43
|
|
|
24
44
|
@ApiPropertyOptional()
|
|
25
|
-
|
|
45
|
+
@IsOptional()
|
|
46
|
+
@IsInt()
|
|
47
|
+
state?: number;
|
|
26
48
|
|
|
27
49
|
@ApiPropertyOptional()
|
|
28
|
-
|
|
50
|
+
@IsOptional()
|
|
51
|
+
informerjlb?: boolean;
|
|
29
52
|
|
|
30
53
|
@ApiPropertyOptional()
|
|
31
|
-
|
|
54
|
+
@IsOptional()
|
|
55
|
+
@IsInt()
|
|
56
|
+
ressenti?: number;
|
|
32
57
|
|
|
33
58
|
@ApiPropertyOptional()
|
|
34
|
-
|
|
59
|
+
@IsOptional()
|
|
60
|
+
@IsInt()
|
|
61
|
+
action?: number;
|
|
35
62
|
|
|
36
63
|
@ApiPropertyOptional()
|
|
37
|
-
|
|
64
|
+
@IsOptional()
|
|
65
|
+
processed?: boolean;
|
|
38
66
|
|
|
39
67
|
@ApiPropertyOptional()
|
|
40
|
-
|
|
68
|
+
@IsOptional()
|
|
69
|
+
letterDate?: Date;
|
|
41
70
|
|
|
42
71
|
@ApiPropertyOptional()
|
|
43
|
-
|
|
72
|
+
@IsOptional()
|
|
73
|
+
receivedFile?: TFile;
|
|
44
74
|
|
|
45
75
|
@ApiPropertyOptional()
|
|
46
|
-
|
|
76
|
+
@IsOptional()
|
|
77
|
+
responseFile?: TFile;
|
|
47
78
|
|
|
48
79
|
@ApiPropertyOptional()
|
|
49
|
-
|
|
80
|
+
@IsOptional()
|
|
81
|
+
@IsString()
|
|
82
|
+
token?: string;
|
|
50
83
|
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { IsEnum, IsInt, IsNumber, IsOptional, IsString } from 'class-validator';
|
|
2
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
|
+
import { IssueTypeEnum } from '../../../Enum/IssueType';
|
|
4
|
+
import { ReportTypeEnum } from '../../../Enum/ReportType';
|
|
5
|
+
import { TFile } from '../file/TFile';
|
|
6
|
+
|
|
7
|
+
export class CreateExternalReport {
|
|
8
|
+
@ApiPropertyOptional()
|
|
9
|
+
@IsOptional()
|
|
10
|
+
@IsInt()
|
|
11
|
+
@IsEnum(IssueTypeEnum)
|
|
12
|
+
idIssueType?: number;
|
|
13
|
+
|
|
14
|
+
@ApiPropertyOptional()
|
|
15
|
+
@IsOptional()
|
|
16
|
+
@IsInt()
|
|
17
|
+
@IsEnum(ReportTypeEnum)
|
|
18
|
+
idReportType?: number;
|
|
19
|
+
|
|
20
|
+
@ApiProperty()
|
|
21
|
+
@IsNumber()
|
|
22
|
+
idSociety: number;
|
|
23
|
+
|
|
24
|
+
@ApiProperty()
|
|
25
|
+
@IsString()
|
|
26
|
+
comment: string;
|
|
27
|
+
|
|
28
|
+
@ApiPropertyOptional()
|
|
29
|
+
file?: TFile;
|
|
30
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IAttachmentFile } from './IAttachmentFile';
|
|
2
2
|
import { IFolderFile } from './IFolderFile';
|
|
3
3
|
import { IFileType } from './IFileType';
|
|
4
|
-
import { ICommercialMail, IEstimateInvoice, IMail, IMailAttachment, ISociety } from '../..';
|
|
4
|
+
import { ICommercialMail, IEstimateInvoice, IMail, IMailAttachment, IReport, ISociety } from '../..';
|
|
5
5
|
import { IPaymentRecovery } from './IPaymentRecovery';
|
|
6
6
|
|
|
7
7
|
// files
|
|
@@ -25,4 +25,5 @@ export interface IFile {
|
|
|
25
25
|
mailAttachment?: IMailAttachment | null;
|
|
26
26
|
paymentRecovery?: IPaymentRecovery | null;
|
|
27
27
|
estimateInvoice?: IEstimateInvoice | null;
|
|
28
|
+
report?: IReport | null;
|
|
28
29
|
}
|
|
@@ -1,14 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReportTypeEnum } from '../../Enum/ReportType';
|
|
2
|
+
import { ICalendarEvent } from './ICalendarEvent';
|
|
3
|
+
import { IComment } from './IComment';
|
|
4
|
+
import { ICustomerAcceptance } from './ICustomerAcceptance';
|
|
5
|
+
import { IFile } from './IFile';
|
|
6
|
+
import { ILetter } from './ILetter';
|
|
2
7
|
import { ISociety } from './ISociety';
|
|
3
8
|
|
|
4
9
|
// report
|
|
5
10
|
export interface IReport {
|
|
6
11
|
id?: number;
|
|
7
12
|
idSociety?: number | null;
|
|
8
|
-
idReportType?:
|
|
13
|
+
idReportType?: ReportTypeEnum | null;
|
|
9
14
|
idCalendarEvent?: number;
|
|
10
15
|
idServiceConcerned?: number | null;
|
|
11
16
|
idService?: number | null;
|
|
17
|
+
idFile?: number | null;
|
|
12
18
|
idLetterType?: number | null;
|
|
13
19
|
declareSoupcons?: boolean | null;
|
|
14
20
|
token?: string | null;
|
|
@@ -24,6 +30,10 @@ export interface IReport {
|
|
|
24
30
|
updatedAt?: Date | null;
|
|
25
31
|
|
|
26
32
|
// Associations
|
|
27
|
-
reportType?: IReportType;
|
|
28
33
|
society?: ISociety;
|
|
34
|
+
file?: IFile;
|
|
35
|
+
calendarEvent?: ICalendarEvent;
|
|
36
|
+
comments?: IComment[];
|
|
37
|
+
customerAcceptance?: ICustomerAcceptance;
|
|
38
|
+
letter?: ILetter;
|
|
29
39
|
}
|
|
@@ -1,10 +1,39 @@
|
|
|
1
|
+
import { IssueTypeEnum } from '../../Enum/IssueType';
|
|
2
|
+
import { IFile } from './IFile';
|
|
3
|
+
import { ISociety } from './ISociety';
|
|
4
|
+
import { IUser } from './IUser';
|
|
5
|
+
|
|
1
6
|
// ticketSupport
|
|
2
7
|
export interface ITicketSupport {
|
|
3
8
|
id?: number;
|
|
4
9
|
title: string;
|
|
5
10
|
message: string;
|
|
6
|
-
|
|
7
|
-
|
|
11
|
+
url?: string | null;
|
|
12
|
+
idIssueType: IssueTypeEnum;
|
|
13
|
+
idSociety: number;
|
|
14
|
+
idUser: number;
|
|
15
|
+
idUserWithSameProblem?: number;
|
|
16
|
+
idUserConstatation?: number;
|
|
17
|
+
dateChangeConstatation?: Date;
|
|
18
|
+
idUserState?: number;
|
|
19
|
+
dateChangeState?: Date;
|
|
20
|
+
idFile?: number;
|
|
21
|
+
idFile2?: number;
|
|
22
|
+
tool: number;
|
|
23
|
+
reproduce?: boolean;
|
|
24
|
+
isUrgent?: boolean;
|
|
25
|
+
constatation?: number;
|
|
26
|
+
state?: number;
|
|
27
|
+
dateRdvProgram?: Date;
|
|
8
28
|
createdAt?: Date | null;
|
|
9
29
|
updatedAt?: Date | null;
|
|
30
|
+
|
|
31
|
+
// Associations
|
|
32
|
+
society?: ISociety;
|
|
33
|
+
user?: IUser;
|
|
34
|
+
userWithSameProblem?: IUser;
|
|
35
|
+
userConstatation?: IUser;
|
|
36
|
+
file?: IFile;
|
|
37
|
+
file2?: IFile;
|
|
38
|
+
|
|
10
39
|
}
|
package/ts/types/index.ts
CHANGED
|
@@ -404,6 +404,7 @@ export * from './Enum/SurveyType';
|
|
|
404
404
|
export * from './Enum/SurveyTypeDatas';
|
|
405
405
|
export * from './Enum/PaymentMethod';
|
|
406
406
|
export * from './Enum/ReportType';
|
|
407
|
+
export * from './Enum/IssueType';
|
|
407
408
|
export * from './Enum/AdjustmentType';
|
|
408
409
|
export * from './Enum/ReportState';
|
|
409
410
|
export * from './Enum/Proceding';
|
|
@@ -882,6 +883,7 @@ export * from './Interface/api/humanResourceLibrary/QueryPaginatedHumanResourceL
|
|
|
882
883
|
export * from './Interface/api/humanResourceLibrary/QueryHumanResourceLibrary';
|
|
883
884
|
export * from './Interface/api/humanResourceLibrary/CreateHumanResourceLibrary';
|
|
884
885
|
export * from './Interface/api/humanResourceLibrary/CreateUserHumanResourceLibrary';
|
|
886
|
+
export * from './Interface/api/report/ExternalReport';
|
|
885
887
|
|
|
886
888
|
export * from './Interface/api/library/QueryLibrary';
|
|
887
889
|
export * from './Interface/api/library/ReadLibraryFile';
|
|
@@ -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
|
}
|