@silexpert/core 2.0.40 → 2.0.41

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.
Files changed (31) hide show
  1. package/dist/types/Enum/Annotation.d.ts +79 -20
  2. package/dist/types/Enum/Annotation.d.ts.map +1 -1
  3. package/dist/types/Enum/Annotation.js +40 -21
  4. package/dist/types/Enum/Annotation.js.map +1 -1
  5. package/dist/types/Enum/RoleDetail.d.ts +1 -0
  6. package/dist/types/Enum/RoleDetail.d.ts.map +1 -1
  7. package/dist/types/Enum/RoleDetail.js +2 -1
  8. package/dist/types/Enum/RoleDetail.js.map +1 -1
  9. package/dist/types/Enum/SalesContractBrandClementine.d.ts.map +1 -1
  10. package/dist/types/Enum/SalesContractBrandClementine.js +13 -23
  11. package/dist/types/Enum/SalesContractBrandClementine.js.map +1 -1
  12. package/dist/types/Enum/SalesContractBrandLegalstart.d.ts.map +1 -1
  13. package/dist/types/Enum/SalesContractBrandLegalstart.js +12 -22
  14. package/dist/types/Enum/SalesContractBrandLegalstart.js.map +1 -1
  15. package/dist/types/Enum/SalesContractBrandPourcentage.d.ts.map +1 -1
  16. package/dist/types/Enum/SalesContractBrandPourcentage.js +12 -22
  17. package/dist/types/Enum/SalesContractBrandPourcentage.js.map +1 -1
  18. package/dist/types/Enum/TimeSlot.js +2 -2
  19. package/dist/types/Enum/TimeSlot.js.map +1 -1
  20. package/dist/types/Interface/api/gedFile/createFileAndGed.d.ts +3 -0
  21. package/dist/types/Interface/api/gedFile/createFileAndGed.d.ts.map +1 -1
  22. package/dist/types/Interface/api/gedFile/createFileAndGed.js +10 -1
  23. package/dist/types/Interface/api/gedFile/createFileAndGed.js.map +1 -1
  24. package/package.json +1 -1
  25. package/ts/types/Enum/Annotation.ts +60 -20
  26. package/ts/types/Enum/RoleDetail.ts +2 -1
  27. package/ts/types/Enum/SalesContractBrandClementine.ts +13 -23
  28. package/ts/types/Enum/SalesContractBrandLegalstart.ts +12 -22
  29. package/ts/types/Enum/SalesContractBrandPourcentage.ts +12 -22
  30. package/ts/types/Enum/TimeSlot.ts +2 -2
  31. package/ts/types/Interface/api/gedFile/createFileAndGed.ts +8 -1
@@ -80,94 +80,84 @@ export const SalesContractLegalstart = [
80
80
  label: 'Conditions Générals de Vente (CGV) 1/2',
81
81
  name: 'bloc_cgv_first',
82
82
  needBgImage: false,
83
- idPrestationType: [PrestationType.COMPTA_PRO_COMPTASTART, PrestationType.COMPTA_PRO_COMPTASTART_EXPRESS],
83
+ idPrestationType: [],
84
84
  versionable: false,
85
85
  },
86
86
  {
87
87
  label: 'Conditions Générals de Vente (CGV) 2/2',
88
88
  name: 'bloc_cgv_second',
89
89
  needBgImage: false,
90
- idPrestationType: [PrestationType.COMPTA_PRO_COMPTASTART, PrestationType.COMPTA_PRO_COMPTASTART_EXPRESS],
90
+ idPrestationType: [],
91
91
  versionable: false,
92
92
  },
93
93
  {
94
94
  label: 'Conditions Générales de Vente 2026 (CGV) 1/10',
95
95
  name: 'bloc_cgv_first_2026',
96
96
  needBgImage: false,
97
- idPrestationType: [],
98
- // idPrestationType: [PrestationType.COMPTA_PRO_COMPTASTART, PrestationType.COMPTA_PRO_COMPTASTART_EXPRESS],
97
+ idPrestationType: [PrestationType.COMPTA_PRO_COMPTASTART, PrestationType.COMPTA_PRO_COMPTASTART_EXPRESS],
99
98
  versionable: false,
100
99
  },
101
100
  {
102
101
  label: 'Conditions Générales de Vente 2026 (CGV) 2/10',
103
102
  name: 'bloc_cgv_second_2026',
104
103
  needBgImage: false,
105
- idPrestationType: [],
106
- // idPrestationType: [PrestationType.COMPTA_PRO_COMPTASTART, PrestationType.COMPTA_PRO_COMPTASTART_EXPRESS],
104
+ idPrestationType: [PrestationType.COMPTA_PRO_COMPTASTART, PrestationType.COMPTA_PRO_COMPTASTART_EXPRESS],
107
105
  versionable: false,
108
106
  },
109
107
  {
110
108
  label: 'Conditions Générales de Vente 2026 (CGV) 3/10',
111
109
  name: 'bloc_cgv_third_2026',
112
110
  needBgImage: false,
113
- idPrestationType: [],
114
- // idPrestationType: [PrestationType.COMPTA_PRO_COMPTASTART, PrestationType.COMPTA_PRO_COMPTASTART_EXPRESS],
111
+ idPrestationType: [PrestationType.COMPTA_PRO_COMPTASTART, PrestationType.COMPTA_PRO_COMPTASTART_EXPRESS],
115
112
  versionable: false,
116
113
  },
117
114
  {
118
115
  label: 'Conditions Générales de Vente 2026 (CGV) 4/10',
119
116
  name: 'bloc_cgv_fourth_2026',
120
117
  needBgImage: false,
121
- idPrestationType: [],
122
- // idPrestationType: [PrestationType.COMPTA_PRO_COMPTASTART, PrestationType.COMPTA_PRO_COMPTASTART_EXPRESS],
118
+ idPrestationType: [PrestationType.COMPTA_PRO_COMPTASTART, PrestationType.COMPTA_PRO_COMPTASTART_EXPRESS],
123
119
  versionable: false,
124
120
  },
125
121
  {
126
122
  label: 'Conditions Générales de Vente 2026 (CGV) 5/10',
127
123
  name: 'bloc_cgv_fifth_2026',
128
124
  needBgImage: false,
129
- idPrestationType: [],
130
- // idPrestationType: [PrestationType.COMPTA_PRO_COMPTASTART, PrestationType.COMPTA_PRO_COMPTASTART_EXPRESS],
125
+ idPrestationType: [PrestationType.COMPTA_PRO_COMPTASTART, PrestationType.COMPTA_PRO_COMPTASTART_EXPRESS],
131
126
  versionable: false,
132
127
  },
133
128
  {
134
129
  label: 'Conditions Générales de Vente 2026 (CGV) 6/10',
135
130
  name: 'bloc_cgv_sixth_2026',
136
131
  needBgImage: false,
137
- idPrestationType: [],
138
- // idPrestationType: [PrestationType.COMPTA_PRO_COMPTASTART, PrestationType.COMPTA_PRO_COMPTASTART_EXPRESS],
132
+ idPrestationType: [PrestationType.COMPTA_PRO_COMPTASTART, PrestationType.COMPTA_PRO_COMPTASTART_EXPRESS],
139
133
  versionable: false,
140
134
  },
141
135
  {
142
136
  label: 'Conditions Générales de Vente 2026 (CGV) 7/10',
143
137
  name: 'bloc_cgv_seventh_2026',
144
138
  needBgImage: false,
145
- idPrestationType: [],
146
- // idPrestationType: [PrestationType.COMPTA_PRO_COMPTASTART, PrestationType.COMPTA_PRO_COMPTASTART_EXPRESS],
139
+ idPrestationType: [PrestationType.COMPTA_PRO_COMPTASTART, PrestationType.COMPTA_PRO_COMPTASTART_EXPRESS],
147
140
  versionable: false,
148
141
  },
149
142
  {
150
143
  label: 'Conditions Générales de Vente 2026 (CGV) 8/10',
151
144
  name: 'bloc_cgv_eighth_2026',
152
145
  needBgImage: false,
153
- idPrestationType: [],
154
- // idPrestationType: [PrestationType.COMPTA_PRO_COMPTASTART, PrestationType.COMPTA_PRO_COMPTASTART_EXPRESS],
146
+ idPrestationType: [PrestationType.COMPTA_PRO_COMPTASTART, PrestationType.COMPTA_PRO_COMPTASTART_EXPRESS],
155
147
  versionable: false,
156
148
  },
157
149
  {
158
150
  label: 'Conditions Générales de Vente 2026 (CGV) 9/10',
159
151
  name: 'bloc_cgv_ninth_2026',
160
152
  needBgImage: false,
161
- idPrestationType: [],
162
- // idPrestationType: [PrestationType.COMPTA_PRO_COMPTASTART, PrestationType.COMPTA_PRO_COMPTASTART_EXPRESS],
153
+ idPrestationType: [PrestationType.COMPTA_PRO_COMPTASTART, PrestationType.COMPTA_PRO_COMPTASTART_EXPRESS],
163
154
  versionable: false,
164
155
  },
165
156
  {
166
157
  label: 'Conditions Générales de Vente 2026 (CGV) 10/10',
167
158
  name: 'bloc_cgv_tenth_2026',
168
159
  needBgImage: false,
169
- idPrestationType: [],
170
- // idPrestationType: [PrestationType.COMPTA_PRO_COMPTASTART, PrestationType.COMPTA_PRO_COMPTASTART_EXPRESS],
160
+ idPrestationType: [PrestationType.COMPTA_PRO_COMPTASTART, PrestationType.COMPTA_PRO_COMPTASTART_EXPRESS],
171
161
  versionable: false,
172
162
  },
173
163
  {
@@ -141,94 +141,84 @@ export const SalesContractBrandPourcentageOnline: SaleContract[] = [
141
141
  label: 'Conditions Générals de Vente (CGV) 1/2',
142
142
  name: 'bloc_cgv_first',
143
143
  needBgImage: false,
144
- idPrestationType: allPrestationsWithBrochure,
144
+ idPrestationType: [],
145
145
  versionable: false,
146
146
  },
147
147
  {
148
148
  label: 'Conditions Générals de Vente (CGV) 2/2',
149
149
  name: 'bloc_cgv_second',
150
150
  needBgImage: false,
151
- idPrestationType: allPrestationsWithBrochure,
151
+ idPrestationType: [],
152
152
  versionable: false,
153
153
  },
154
154
  {
155
155
  label: 'Conditions Générales de Vente 2026 (CGV) 1/10',
156
156
  name: 'bloc_cgv_first_2026',
157
157
  needBgImage: false,
158
- idPrestationType: [],
159
- // idPrestationType: allPrestationsWithBrochure,
158
+ idPrestationType: allPrestationsWithBrochure,
160
159
  versionable: false,
161
160
  },
162
161
  {
163
162
  label: 'Conditions Générales de Vente 2026 (CGV) 2/10',
164
163
  name: 'bloc_cgv_second_2026',
165
164
  needBgImage: false,
166
- idPrestationType: [],
167
- // idPrestationType: allPrestationsWithBrochure,
165
+ idPrestationType: allPrestationsWithBrochure,
168
166
  versionable: false,
169
167
  },
170
168
  {
171
169
  label: 'Conditions Générales de Vente 2026 (CGV) 3/10',
172
170
  name: 'bloc_cgv_third_2026',
173
171
  needBgImage: false,
174
- idPrestationType: [],
175
- // idPrestationType: allPrestationsWithBrochure,
172
+ idPrestationType: allPrestationsWithBrochure,
176
173
  versionable: false,
177
174
  },
178
175
  {
179
176
  label: 'Conditions Générales de Vente 2026 (CGV) 4/10',
180
177
  name: 'bloc_cgv_fourth_2026',
181
178
  needBgImage: false,
182
- idPrestationType: [],
183
- // idPrestationType: allPrestationsWithBrochure,
179
+ idPrestationType: allPrestationsWithBrochure,
184
180
  versionable: false,
185
181
  },
186
182
  {
187
183
  label: 'Conditions Générales de Vente 2026 (CGV) 5/10',
188
184
  name: 'bloc_cgv_fifth_2026',
189
185
  needBgImage: false,
190
- idPrestationType: [],
191
- // idPrestationType: allPrestationsWithBrochure,
186
+ idPrestationType: allPrestationsWithBrochure,
192
187
  versionable: false,
193
188
  },
194
189
  {
195
190
  label: 'Conditions Générales de Vente 2026 (CGV) 6/10',
196
191
  name: 'bloc_cgv_sixth_2026',
197
192
  needBgImage: false,
198
- idPrestationType: [],
199
- // idPrestationType: allPrestationsWithBrochure,
193
+ idPrestationType: allPrestationsWithBrochure,
200
194
  versionable: false,
201
195
  },
202
196
  {
203
197
  label: 'Conditions Générales de Vente 2026 (CGV) 7/10',
204
198
  name: 'bloc_cgv_seventh_2026',
205
199
  needBgImage: false,
206
- idPrestationType: [],
207
- // idPrestationType: allPrestationsWithBrochure,
200
+ idPrestationType: allPrestationsWithBrochure,
208
201
  versionable: false,
209
202
  },
210
203
  {
211
204
  label: 'Conditions Générales de Vente 2026 (CGV) 8/10',
212
205
  name: 'bloc_cgv_eighth_2026',
213
206
  needBgImage: false,
214
- idPrestationType: [],
215
- // idPrestationType: allPrestationsWithBrochure,
207
+ idPrestationType: allPrestationsWithBrochure,
216
208
  versionable: false,
217
209
  },
218
210
  {
219
211
  label: 'Conditions Générales de Vente 2026 (CGV) 9/10',
220
212
  name: 'bloc_cgv_ninth_2026',
221
213
  needBgImage: false,
222
- idPrestationType: [],
223
- // idPrestationType: allPrestationsWithBrochure,
214
+ idPrestationType: allPrestationsWithBrochure,
224
215
  versionable: false,
225
216
  },
226
217
  {
227
218
  label: 'Conditions Générales de Vente 2026 (CGV) 10/10',
228
219
  name: 'bloc_cgv_tenth_2026',
229
220
  needBgImage: false,
230
- idPrestationType: [],
231
- // idPrestationType: allPrestationsWithBrochure,
221
+ idPrestationType: allPrestationsWithBrochure,
232
222
  versionable: false,
233
223
  },
234
224
  {
@@ -98,7 +98,7 @@ export const TimeSlotDetail: TimeSlotDetailType[] = [
98
98
  id: TimeSlot.ONBOARDING,
99
99
  name: 'OnBoarding',
100
100
  internalName: 'Rdv OnBoarding',
101
- duration: 45,
101
+ duration: 20,
102
102
  idRole: [Role.ON_BOARDER],
103
103
  forWholeService: true,
104
104
  idTimeCounterType: TimeCounterType.ONBOARDING.id,
@@ -107,7 +107,7 @@ export const TimeSlotDetail: TimeSlotDetailType[] = [
107
107
  id: TimeSlot.ONBOARDING_SHORT,
108
108
  name: 'OnBoarding',
109
109
  internalName: 'Rdv OnBoarding Court',
110
- duration: 45,
110
+ duration: 20,
111
111
  idRole: [Role.ON_BOARDER],
112
112
  forWholeService: true,
113
113
  idTimeCounterType: TimeCounterType.ONBOARDING.id,
@@ -1,8 +1,15 @@
1
- import { IsBoolean, IsDate, IsInt, IsNumber, IsOptional, IsString } from 'class-validator';
1
+ import { IsBoolean, IsDate, IsDateString, IsInt, IsNumber, IsOptional, IsString } from 'class-validator';
2
2
  import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
3
3
  import { type TFile } from '../file/TFile.js';
4
4
  import { ToBoolean } from '../../../../utils/transforms/boolean.transform.js';
5
5
 
6
+ export class CreateSaleContract {
7
+ @ApiPropertyOptional()
8
+ @IsDateString()
9
+ @IsOptional()
10
+ emissionDate?: string;
11
+ }
12
+
6
13
  export class CreateFileAndGed {
7
14
  @ApiProperty()
8
15
  file: TFile;