@silexpert/core 1.1.331 → 1.1.333

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 (142) hide show
  1. package/dist/cjs/api/resources/AccountingFiles.d.ts.map +1 -1
  2. package/dist/cjs/api/resources/AccountingFiles.js +3 -0
  3. package/dist/cjs/api/resources/AccountingFiles.js.map +1 -1
  4. package/dist/cjs/api/resources/CompanyCreationForm.d.ts +10 -0
  5. package/dist/cjs/api/resources/CompanyCreationForm.d.ts.map +1 -0
  6. package/dist/cjs/api/resources/CompanyCreationForm.js +23 -0
  7. package/dist/cjs/api/resources/CompanyCreationForm.js.map +1 -0
  8. package/dist/cjs/api/resources/SalariesFile.d.ts +1 -1
  9. package/dist/cjs/api/resources/SalariesFile.d.ts.map +1 -1
  10. package/dist/cjs/api/resources/SalariesFile.js.map +1 -1
  11. package/dist/cjs/api/resources.d.ts +2 -0
  12. package/dist/cjs/api/resources.d.ts.map +1 -1
  13. package/dist/cjs/api/resources.js +2 -0
  14. package/dist/cjs/api/resources.js.map +1 -1
  15. package/dist/cjs/types/Enum/FiscalRegime.d.ts +5 -0
  16. package/dist/cjs/types/Enum/FiscalRegime.d.ts.map +1 -1
  17. package/dist/cjs/types/Enum/FiscalRegime.js +28 -1
  18. package/dist/cjs/types/Enum/FiscalRegime.js.map +1 -1
  19. package/dist/cjs/types/Enum/LegalForm.d.ts +2 -1
  20. package/dist/cjs/types/Enum/LegalForm.d.ts.map +1 -1
  21. package/dist/cjs/types/Enum/LegalForm.js +10 -0
  22. package/dist/cjs/types/Enum/LegalForm.js.map +1 -1
  23. package/dist/cjs/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts +1 -0
  24. package/dist/cjs/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts.map +1 -1
  25. package/dist/cjs/types/Interface/api/accountingFiles/queryAccountingFiles.js +7 -0
  26. package/dist/cjs/types/Interface/api/accountingFiles/queryAccountingFiles.js.map +1 -1
  27. package/dist/cjs/types/Interface/api/companyCreationForm/CompanyCreationFormPayload.d.ts +107 -0
  28. package/dist/cjs/types/Interface/api/companyCreationForm/CompanyCreationFormPayload.d.ts.map +1 -0
  29. package/dist/cjs/types/Interface/api/companyCreationForm/CompanyCreationFormPayload.js +3 -0
  30. package/dist/cjs/types/Interface/api/companyCreationForm/CompanyCreationFormPayload.js.map +1 -0
  31. package/dist/cjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.d.ts +196 -0
  32. package/dist/cjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.d.ts.map +1 -0
  33. package/dist/cjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.js +737 -0
  34. package/dist/cjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.js.map +1 -0
  35. package/dist/cjs/types/Interface/api/companyCreationForm/UpdateCompanyCreationForm.d.ts +6 -0
  36. package/dist/cjs/types/Interface/api/companyCreationForm/UpdateCompanyCreationForm.d.ts.map +1 -0
  37. package/dist/cjs/types/Interface/api/companyCreationForm/UpdateCompanyCreationForm.js +24 -0
  38. package/dist/cjs/types/Interface/api/companyCreationForm/UpdateCompanyCreationForm.js.map +1 -0
  39. package/dist/cjs/types/Interface/api/societyConfig/update.d.ts +1 -0
  40. package/dist/cjs/types/Interface/api/societyConfig/update.d.ts.map +1 -1
  41. package/dist/cjs/types/Interface/api/societyConfig/update.js +7 -0
  42. package/dist/cjs/types/Interface/api/societyConfig/update.js.map +1 -1
  43. package/dist/cjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.d.ts +1 -1
  44. package/dist/cjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.d.ts.map +1 -1
  45. package/dist/cjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.js +1 -0
  46. package/dist/cjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.js.map +1 -1
  47. package/dist/cjs/types/Interface/api/vatDeclaration/ReadVatDeclaration.d.ts +18 -0
  48. package/dist/cjs/types/Interface/api/vatDeclaration/ReadVatDeclaration.d.ts.map +1 -1
  49. package/dist/cjs/types/Interface/api/vatDeclaration/ReadVatDeclaration.js +4 -1
  50. package/dist/cjs/types/Interface/api/vatDeclaration/ReadVatDeclaration.js.map +1 -1
  51. package/dist/cjs/types/Interface/models/ICompanyCreationForm.d.ts +12 -0
  52. package/dist/cjs/types/Interface/models/ICompanyCreationForm.d.ts.map +1 -0
  53. package/dist/cjs/types/Interface/models/ICompanyCreationForm.js +3 -0
  54. package/dist/cjs/types/Interface/models/ICompanyCreationForm.js.map +1 -0
  55. package/dist/cjs/types/Interface/models/ISocietyConfig.d.ts +1 -0
  56. package/dist/cjs/types/Interface/models/ISocietyConfig.d.ts.map +1 -1
  57. package/dist/cjs/types/Interface/models/ISocietyConfig.js.map +1 -1
  58. package/dist/cjs/types/index.d.ts +4 -0
  59. package/dist/cjs/types/index.d.ts.map +1 -1
  60. package/dist/cjs/types/index.js +4 -0
  61. package/dist/cjs/types/index.js.map +1 -1
  62. package/dist/cjs/utils/vat/3310/century23.js.map +1 -1
  63. package/dist/mjs/api/resources/AccountingFiles.d.ts.map +1 -1
  64. package/dist/mjs/api/resources/AccountingFiles.js +3 -0
  65. package/dist/mjs/api/resources/AccountingFiles.js.map +1 -1
  66. package/dist/mjs/api/resources/CompanyCreationForm.d.ts +10 -0
  67. package/dist/mjs/api/resources/CompanyCreationForm.d.ts.map +1 -0
  68. package/dist/mjs/api/resources/CompanyCreationForm.js +23 -0
  69. package/dist/mjs/api/resources/CompanyCreationForm.js.map +1 -0
  70. package/dist/mjs/api/resources/SalariesFile.d.ts +1 -1
  71. package/dist/mjs/api/resources/SalariesFile.d.ts.map +1 -1
  72. package/dist/mjs/api/resources/SalariesFile.js.map +1 -1
  73. package/dist/mjs/api/resources.d.ts +2 -0
  74. package/dist/mjs/api/resources.d.ts.map +1 -1
  75. package/dist/mjs/api/resources.js +2 -0
  76. package/dist/mjs/api/resources.js.map +1 -1
  77. package/dist/mjs/types/Enum/FiscalRegime.d.ts +5 -0
  78. package/dist/mjs/types/Enum/FiscalRegime.d.ts.map +1 -1
  79. package/dist/mjs/types/Enum/FiscalRegime.js +27 -0
  80. package/dist/mjs/types/Enum/FiscalRegime.js.map +1 -1
  81. package/dist/mjs/types/Enum/LegalForm.d.ts +2 -1
  82. package/dist/mjs/types/Enum/LegalForm.d.ts.map +1 -1
  83. package/dist/mjs/types/Enum/LegalForm.js +10 -0
  84. package/dist/mjs/types/Enum/LegalForm.js.map +1 -1
  85. package/dist/mjs/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts +1 -0
  86. package/dist/mjs/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts.map +1 -1
  87. package/dist/mjs/types/Interface/api/accountingFiles/queryAccountingFiles.js +9 -1
  88. package/dist/mjs/types/Interface/api/accountingFiles/queryAccountingFiles.js.map +1 -1
  89. package/dist/mjs/types/Interface/api/companyCreationForm/CompanyCreationFormPayload.d.ts +107 -0
  90. package/dist/mjs/types/Interface/api/companyCreationForm/CompanyCreationFormPayload.d.ts.map +1 -0
  91. package/dist/mjs/types/Interface/api/companyCreationForm/CompanyCreationFormPayload.js +2 -0
  92. package/dist/mjs/types/Interface/api/companyCreationForm/CompanyCreationFormPayload.js.map +1 -0
  93. package/dist/mjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.d.ts +196 -0
  94. package/dist/mjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.d.ts.map +1 -0
  95. package/dist/mjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.js +897 -0
  96. package/dist/mjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.js.map +1 -0
  97. package/dist/mjs/types/Interface/api/companyCreationForm/UpdateCompanyCreationForm.d.ts +6 -0
  98. package/dist/mjs/types/Interface/api/companyCreationForm/UpdateCompanyCreationForm.d.ts.map +1 -0
  99. package/dist/mjs/types/Interface/api/companyCreationForm/UpdateCompanyCreationForm.js +21 -0
  100. package/dist/mjs/types/Interface/api/companyCreationForm/UpdateCompanyCreationForm.js.map +1 -0
  101. package/dist/mjs/types/Interface/api/societyConfig/update.d.ts +1 -0
  102. package/dist/mjs/types/Interface/api/societyConfig/update.d.ts.map +1 -1
  103. package/dist/mjs/types/Interface/api/societyConfig/update.js +8 -0
  104. package/dist/mjs/types/Interface/api/societyConfig/update.js.map +1 -1
  105. package/dist/mjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.d.ts +1 -1
  106. package/dist/mjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.d.ts.map +1 -1
  107. package/dist/mjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.js +1 -0
  108. package/dist/mjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.js.map +1 -1
  109. package/dist/mjs/types/Interface/api/vatDeclaration/ReadVatDeclaration.d.ts +18 -0
  110. package/dist/mjs/types/Interface/api/vatDeclaration/ReadVatDeclaration.d.ts.map +1 -1
  111. package/dist/mjs/types/Interface/api/vatDeclaration/ReadVatDeclaration.js +4 -0
  112. package/dist/mjs/types/Interface/api/vatDeclaration/ReadVatDeclaration.js.map +1 -1
  113. package/dist/mjs/types/Interface/models/ICompanyCreationForm.d.ts +12 -0
  114. package/dist/mjs/types/Interface/models/ICompanyCreationForm.d.ts.map +1 -0
  115. package/dist/mjs/types/Interface/models/ICompanyCreationForm.js +2 -0
  116. package/dist/mjs/types/Interface/models/ICompanyCreationForm.js.map +1 -0
  117. package/dist/mjs/types/Interface/models/ISocietyConfig.d.ts +1 -0
  118. package/dist/mjs/types/Interface/models/ISocietyConfig.d.ts.map +1 -1
  119. package/dist/mjs/types/Interface/models/ISocietyConfig.js.map +1 -1
  120. package/dist/mjs/types/index.d.ts +4 -0
  121. package/dist/mjs/types/index.d.ts.map +1 -1
  122. package/dist/mjs/types/index.js +4 -0
  123. package/dist/mjs/types/index.js.map +1 -1
  124. package/dist/mjs/utils/vat/3310/century23.js.map +1 -1
  125. package/package.json +1 -1
  126. package/ts/api/resources/AccountingFiles.ts +5 -0
  127. package/ts/api/resources/CompanyCreationForm.ts +29 -0
  128. package/ts/api/resources/SalariesFile.ts +1 -1
  129. package/ts/api/resources.ts +2 -0
  130. package/ts/types/Enum/FiscalRegime.ts +28 -0
  131. package/ts/types/Enum/LegalForm.ts +10 -0
  132. package/ts/types/Interface/api/accountingFiles/queryAccountingFiles.ts +9 -1
  133. package/ts/types/Interface/api/companyCreationForm/CompanyCreationFormPayload.ts +110 -0
  134. package/ts/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.ts +646 -0
  135. package/ts/types/Interface/api/companyCreationForm/UpdateCompanyCreationForm.ts +10 -0
  136. package/ts/types/Interface/api/societyConfig/update.ts +5 -0
  137. package/ts/types/Interface/api/vatDeclaration/QueryVatDeclaration.ts +2 -1
  138. package/ts/types/Interface/api/vatDeclaration/ReadVatDeclaration.ts +11 -0
  139. package/ts/types/Interface/models/ICompanyCreationForm.ts +13 -0
  140. package/ts/types/Interface/models/ISocietyConfig.ts +1 -0
  141. package/ts/types/index.ts +4 -0
  142. package/ts/utils/vat/3310/century23.ts +1 -1
@@ -0,0 +1,646 @@
1
+ import { LegalFormTypeEnum } from '../../../Enum/LegalForm';
2
+ import { Activity } from '../../../Enum/Activity';
3
+ import { TaxSystem } from '../../../Enum/TaxSystem';
4
+ import { VatRegime } from '../../../Enum/VatRegime';
5
+ import { CompanyCreationFormPayload, CountryId, MaritalStatus, NationalityId, Quality } from '../../..';
6
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
7
+ import { IsNumber, IsOptional, IsBoolean, IsString, IsIn, IsDate, IsInt, IsEnum } from 'class-validator';
8
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
9
+
10
+ export class CreateBusinessPartnersSociety {
11
+ @ApiProperty()
12
+ @IsInt()
13
+ idLegalForm: number;
14
+
15
+ @ApiProperty()
16
+ @IsString()
17
+ name: string;
18
+
19
+ @ApiProperty()
20
+ @IsString()
21
+ ownerName: string;
22
+
23
+ @ApiProperty()
24
+ @IsDate()
25
+ creationDate: Date;
26
+
27
+ @ApiProperty()
28
+ @IsString()
29
+ address: string;
30
+
31
+ @ApiPropertyOptional()
32
+ @IsOptional()
33
+ @IsString()
34
+ additionalAddress?: string;
35
+
36
+ @ApiProperty()
37
+ @IsString()
38
+ zipCode: string;
39
+
40
+ @ApiPropertyOptional()
41
+ @IsOptional()
42
+ @IsString()
43
+ city?: string;
44
+
45
+ @ApiProperty()
46
+ @IsEnum(CountryId)
47
+ idCountry: CountryId;
48
+ }
49
+
50
+ export class MaritalStatusInfos {
51
+ @ApiPropertyOptional()
52
+ @IsOptional()
53
+ @IsDate()
54
+ date?: Date;
55
+
56
+ @ApiPropertyOptional()
57
+ @IsOptional()
58
+ @IsString()
59
+ place?: string;
60
+
61
+ @ApiPropertyOptional()
62
+ @IsOptional()
63
+ @IsDate()
64
+ contractDate?: Date;
65
+
66
+ @ApiPropertyOptional()
67
+ @IsOptional()
68
+ @IsString()
69
+ notaryName?: string;
70
+
71
+ @ApiPropertyOptional()
72
+ @IsOptional()
73
+ @IsString()
74
+ notaryAddress?: string;
75
+
76
+ @ApiPropertyOptional()
77
+ @IsOptional()
78
+ @IsString()
79
+ spouseBirthname?: string;
80
+
81
+ @ApiPropertyOptional()
82
+ @IsOptional()
83
+ @IsEnum(NationalityId)
84
+ spouseIdNationality?: NationalityId;
85
+
86
+ @ApiPropertyOptional()
87
+ @IsOptional()
88
+ @IsDate()
89
+ spouseBirthdate?: Date;
90
+
91
+ @ApiPropertyOptional()
92
+ @IsOptional()
93
+ @IsString()
94
+ spouseBirthPlace?: string;
95
+
96
+ @ApiPropertyOptional()
97
+ @IsOptional()
98
+ @IsBoolean()
99
+ @ToBoolean()
100
+ spouseWorkInCompany?: boolean;
101
+
102
+ @ApiPropertyOptional()
103
+ @IsOptional()
104
+ @IsBoolean()
105
+ @ToBoolean()
106
+ spouseIsASalaried?: boolean;
107
+ }
108
+
109
+ export class CreateBusinessPartnersUser {
110
+ @ApiPropertyOptional()
111
+ @IsOptional()
112
+ @IsInt()
113
+ idUser?: number;
114
+
115
+ /**
116
+ * État civil
117
+ */
118
+ @ApiProperty()
119
+ @IsString()
120
+ firstname: string;
121
+
122
+ @ApiProperty()
123
+ @IsString()
124
+ lastname: string;
125
+
126
+ @ApiPropertyOptional()
127
+ @IsOptional()
128
+ @IsString()
129
+ birthname?: string;
130
+
131
+ @ApiProperty()
132
+ @IsEnum(NationalityId)
133
+ idNationality: NationalityId;
134
+
135
+ @ApiProperty()
136
+ @IsDate()
137
+ birthdate: Date;
138
+
139
+ @ApiProperty()
140
+ @IsString()
141
+ cityOfBirth: string;
142
+
143
+ @ApiProperty()
144
+ @IsEnum(CountryId)
145
+ idCountryBirth: CountryId;
146
+
147
+ @ApiProperty()
148
+ @IsBoolean()
149
+ @ToBoolean()
150
+ isOwner: boolean;
151
+
152
+ @ApiPropertyOptional()
153
+ @IsOptional()
154
+ @IsEnum(Quality)
155
+ idQuality?: Quality;
156
+
157
+ /**
158
+ * Situation marital
159
+ */
160
+ @ApiProperty()
161
+ @IsEnum(MaritalStatus)
162
+ idMaritalStatus: MaritalStatus;
163
+
164
+ @ApiPropertyOptional()
165
+ @IsOptional()
166
+ @IsString()
167
+ maritalStatus?: MaritalStatusInfos;
168
+
169
+ /**
170
+ * Contact
171
+ */
172
+ @ApiProperty()
173
+ @IsString()
174
+ address: string;
175
+
176
+ @ApiPropertyOptional()
177
+ @IsOptional()
178
+ @IsString()
179
+ additionalAddress?: string;
180
+
181
+ @ApiProperty()
182
+ @IsString()
183
+ zipCode: string;
184
+
185
+ @ApiProperty()
186
+ @IsString()
187
+ city: string;
188
+
189
+ @ApiProperty()
190
+ @IsString()
191
+ prefix: string;
192
+
193
+ @ApiProperty()
194
+ @IsString()
195
+ phone: string;
196
+
197
+ @ApiProperty()
198
+ @IsString()
199
+ email: string;
200
+ }
201
+
202
+ export class ContributionInfos {
203
+ @ApiProperty()
204
+ @IsString()
205
+ sourceOfFunds: string;
206
+
207
+ @ApiPropertyOptional()
208
+ @IsOptional()
209
+ @IsString()
210
+ description?: string;
211
+
212
+ @ApiProperty()
213
+ @IsNumber()
214
+ amount: number;
215
+
216
+ @ApiProperty()
217
+ @IsBoolean()
218
+ @ToBoolean()
219
+ isPercentage: boolean;
220
+ }
221
+
222
+ export class ParentInfos {
223
+ @ApiProperty()
224
+ @IsString()
225
+ firstname: string;
226
+
227
+ @ApiProperty()
228
+ @IsString()
229
+ lastname: string;
230
+
231
+ @ApiPropertyOptional()
232
+ @IsOptional()
233
+ @IsString()
234
+ birthname?: string;
235
+ }
236
+
237
+
238
+ export class CreateCompanyBusinessPartners {
239
+ @ApiPropertyOptional()
240
+ @IsOptional()
241
+ @IsBoolean()
242
+ @ToBoolean()
243
+ isPhysical?: boolean;
244
+
245
+ @ApiPropertyOptional()
246
+ @IsOptional()
247
+ parents?: ParentInfos[];
248
+
249
+ @ApiPropertyOptional()
250
+ @IsOptional()
251
+ user?: CreateBusinessPartnersUser;
252
+
253
+ @ApiPropertyOptional()
254
+ @IsOptional()
255
+ society?: CreateBusinessPartnersSociety;
256
+
257
+ @ApiPropertyOptional()
258
+ @IsOptional()
259
+ contribution?: ContributionInfos;
260
+ }
261
+
262
+ export class BeneficiaryInfos {
263
+ @ApiProperty()
264
+ @IsString()
265
+ parentalLink: string;
266
+
267
+ @ApiProperty()
268
+ @IsString()
269
+ firstname: string;
270
+
271
+ @ApiProperty()
272
+ @IsString()
273
+ lastname: string;
274
+
275
+ @ApiPropertyOptional()
276
+ @IsOptional()
277
+ @IsString()
278
+ birthname?: string;
279
+
280
+ @ApiPropertyOptional()
281
+ @IsOptional()
282
+ @IsString()
283
+ gender?: string;
284
+
285
+ @ApiProperty()
286
+ @IsDate()
287
+ birthdate: Date;
288
+
289
+ @ApiProperty()
290
+ @IsString()
291
+ birthPlace: string;
292
+
293
+ @ApiProperty()
294
+ @IsString()
295
+ birthZipCode: string;
296
+
297
+ @ApiProperty()
298
+ @IsString()
299
+ socialSecurityNumber: string;
300
+
301
+ @ApiProperty()
302
+ @IsEnum(NationalityId)
303
+ idNationality: NationalityId;
304
+ }
305
+
306
+ export class CreateCompanyCreationFormData implements CompanyCreationFormPayload {
307
+ /**
308
+ * Choix du statut
309
+ */
310
+ @ApiPropertyOptional()
311
+ @IsOptional()
312
+ @IsEnum(LegalFormTypeEnum)
313
+ idLegalForm?: LegalFormTypeEnum;
314
+
315
+ /**
316
+ * Dénomination sociale
317
+ */
318
+ @ApiPropertyOptional()
319
+ @IsOptional()
320
+ @IsString()
321
+ name?: string;
322
+
323
+ @ApiPropertyOptional()
324
+ @IsOptional()
325
+ @IsString()
326
+ sigle?: string;
327
+
328
+ @ApiPropertyOptional()
329
+ @IsOptional()
330
+ @IsString()
331
+ commercialName?: string;
332
+
333
+ @ApiPropertyOptional()
334
+ @IsOptional()
335
+ @IsString()
336
+ signboard?: string;
337
+
338
+ @ApiPropertyOptional()
339
+ @IsOptional()
340
+ @IsBoolean()
341
+ @ToBoolean()
342
+ wantToBeContactedForDeposition?: boolean;
343
+
344
+ /**
345
+ * Activité
346
+ */
347
+ @ApiPropertyOptional()
348
+ @IsOptional()
349
+ @IsEnum(Activity)
350
+ idActivity?: Activity;
351
+
352
+ @ApiPropertyOptional()
353
+ @IsOptional()
354
+ @IsString()
355
+ modeOfSale?: string;
356
+
357
+ @ApiPropertyOptional()
358
+ @IsOptional()
359
+ @IsString()
360
+ modeOfSaleDescription?: string;
361
+
362
+ @ApiPropertyOptional()
363
+ @IsOptional()
364
+ @IsNumber()
365
+ surfaceArea?: number;
366
+
367
+ @ApiPropertyOptional()
368
+ @IsOptional()
369
+ @IsBoolean()
370
+ @ToBoolean()
371
+ isActivitySubjectToObligation?: boolean;
372
+
373
+ /**
374
+ * Siège social
375
+ */
376
+ @ApiPropertyOptional()
377
+ @IsOptional()
378
+ @IsString()
379
+ address?: string;
380
+
381
+ @ApiPropertyOptional()
382
+ @IsOptional()
383
+ @IsString()
384
+ additionalAddress?: string;
385
+
386
+ @ApiPropertyOptional()
387
+ @IsOptional()
388
+ @IsString()
389
+ zipCode?: string;
390
+
391
+ @ApiPropertyOptional()
392
+ @IsOptional()
393
+ @IsString()
394
+ city?: string;
395
+
396
+ @ApiProperty()
397
+ @IsString()
398
+ type: string;
399
+
400
+ @ApiPropertyOptional()
401
+ @IsString()
402
+ sourceOfFunds?: string;
403
+
404
+ @ApiPropertyOptional()
405
+ @IsString()
406
+ @IsIn(['owner', 'tenant'])
407
+ headOfficeOccupationType?: 'owner' | 'tenant';
408
+
409
+ @ApiPropertyOptional()
410
+ @IsBoolean()
411
+ @ToBoolean()
412
+ isActivityAtDifferentAddress?: boolean;
413
+
414
+ @ApiPropertyOptional()
415
+ @IsString()
416
+ activityAddress?: string;
417
+
418
+ @ApiPropertyOptional()
419
+ @IsString()
420
+ additionalActivityAddress?: string;
421
+
422
+ @ApiPropertyOptional()
423
+ @IsString()
424
+ zipCodeActivity?: string;
425
+
426
+ @ApiPropertyOptional()
427
+ @IsString()
428
+ cityActivity?: string;
429
+
430
+ @ApiPropertyOptional()
431
+ @IsOptional()
432
+ @IsBoolean()
433
+ @ToBoolean()
434
+ wantToBeContactedForHeadOffice: boolean;
435
+
436
+ /**
437
+ * Calendrier
438
+ */
439
+ @ApiProperty()
440
+ @IsDate()
441
+ startDate: Date;
442
+
443
+ @ApiPropertyOptional()
444
+ @IsOptional()
445
+ @IsDate()
446
+ endDate?: Date;
447
+
448
+ @ApiPropertyOptional()
449
+ @IsOptional()
450
+ @IsBoolean()
451
+ @ToBoolean()
452
+ wantToStartActivityNow: boolean;
453
+
454
+ /**
455
+ * Salariés
456
+ */
457
+ @ApiProperty()
458
+ @IsNumber()
459
+ nbEmployees: number;
460
+
461
+ @ApiProperty()
462
+ @IsNumber()
463
+ nbApprentices: number;
464
+
465
+ /**
466
+ * Régime d'imposition
467
+ */
468
+ @ApiPropertyOptional()
469
+ @IsOptional()
470
+ @IsEnum(TaxSystem)
471
+ idTaxSystem?: TaxSystem;
472
+
473
+ /**
474
+ * Régime de TVA
475
+ */
476
+ @ApiPropertyOptional()
477
+ @IsOptional()
478
+ @IsEnum(VatRegime)
479
+ idVatRegime?: VatRegime;
480
+
481
+ /**
482
+ * Régime fiscal
483
+ */
484
+ @ApiPropertyOptional()
485
+ @IsOptional()
486
+ @IsString()
487
+ fiscalRegime?: string;
488
+
489
+ /**
490
+ * Dirigeants et associés
491
+ */
492
+ @ApiProperty()
493
+ partners: CreateCompanyBusinessPartners[];
494
+
495
+ /**
496
+ * Informations sociales
497
+ */
498
+ @ApiPropertyOptional()
499
+ @IsOptional()
500
+ @IsString()
501
+ socialSecurityNumber?: string;
502
+
503
+ @ApiPropertyOptional()
504
+ @IsOptional()
505
+ @IsString()
506
+ socialRegime?: string;
507
+
508
+ @ApiPropertyOptional()
509
+ @IsOptional()
510
+ @IsBoolean()
511
+ @ToBoolean()
512
+ hasAlreadyHaveSelfEmployedActivity?: boolean;
513
+
514
+ @ApiPropertyOptional()
515
+ @IsOptional()
516
+ @IsString()
517
+ selfEmployedActivitySiren?: string;
518
+
519
+ @ApiPropertyOptional()
520
+ @IsOptional()
521
+ @IsString()
522
+ selfEmployedActivityType?: string;
523
+
524
+ @ApiPropertyOptional()
525
+ @IsOptional()
526
+ @IsString()
527
+ selfEmployedActivityZipCode?: string;
528
+
529
+ @ApiPropertyOptional()
530
+ @IsOptional()
531
+ @IsString()
532
+ selfEmployedActivityCity?: string;
533
+
534
+ @ApiPropertyOptional()
535
+ @IsOptional()
536
+ @IsDate()
537
+ selfEmployedActivityEndDate?: Date;
538
+
539
+ @ApiPropertyOptional()
540
+ @IsOptional()
541
+ @IsString()
542
+ parallelActivityType?: string;
543
+
544
+ @ApiPropertyOptional()
545
+ @IsOptional()
546
+ @IsBoolean()
547
+ @ToBoolean()
548
+ hasSelectedHealthInsurance?: boolean;
549
+
550
+ @ApiPropertyOptional()
551
+ @IsOptional()
552
+ @IsBoolean()
553
+ @ToBoolean()
554
+ spouseHasHealthInsurance?: boolean;
555
+
556
+ @ApiPropertyOptional()
557
+ @IsOptional()
558
+ @IsString()
559
+ spouseAssociatedWithTheCompany?: string;
560
+
561
+ @ApiPropertyOptional()
562
+ @IsOptional()
563
+ @IsNumber()
564
+ nbChildren?: number;
565
+
566
+ @ApiPropertyOptional()
567
+ @IsOptional()
568
+ @IsBoolean()
569
+ @ToBoolean()
570
+ hasBeneficiaries?: boolean;
571
+
572
+ @ApiPropertyOptional()
573
+ beneficiaries?: BeneficiaryInfos[];
574
+
575
+ /**
576
+ * Capital social
577
+ */
578
+ @ApiPropertyOptional()
579
+ @IsOptional()
580
+ @IsNumber()
581
+ capitalAmount?: number;
582
+
583
+ @ApiPropertyOptional()
584
+ @IsOptional()
585
+ @IsBoolean()
586
+ @ToBoolean()
587
+ isAContributionInKind?: boolean;
588
+
589
+ @ApiPropertyOptional()
590
+ @IsOptional()
591
+ @IsString()
592
+ contributionInKindDescription?: string;
593
+
594
+ @ApiPropertyOptional()
595
+ @IsOptional()
596
+ @IsString()
597
+ bankName?: string;
598
+
599
+ @ApiPropertyOptional()
600
+ @IsOptional()
601
+ @IsString()
602
+ bankAddress?: string;
603
+
604
+ @ApiPropertyOptional()
605
+ @IsOptional()
606
+ @IsString()
607
+ bankZipCode?: string;
608
+
609
+ @ApiPropertyOptional()
610
+ @IsOptional()
611
+ @IsString()
612
+ bankCity?: string;
613
+
614
+ @ApiPropertyOptional()
615
+ @IsOptional()
616
+ @IsBoolean()
617
+ @ToBoolean()
618
+ hasNotYetSendSocialCapital?: boolean;
619
+
620
+ /**
621
+ * ACRE
622
+ */
623
+ @ApiPropertyOptional()
624
+ @IsOptional()
625
+ @IsBoolean()
626
+ @ToBoolean()
627
+ wantToBenefitFromACRE?: boolean;
628
+
629
+ /**
630
+ * Confidentialité
631
+ */
632
+ @ApiPropertyOptional()
633
+ @IsOptional()
634
+ @IsBoolean()
635
+ @ToBoolean()
636
+ informationsSharedToSirene?: boolean;
637
+ }
638
+
639
+ export class CreateCompanyCreationForm {
640
+ @ApiProperty()
641
+ @IsNumber()
642
+ idSociety: number;
643
+
644
+ @ApiProperty()
645
+ payload: CreateCompanyCreationFormData;
646
+ }
@@ -0,0 +1,10 @@
1
+ import { ICompanyCreationForm } from '../../models/ICompanyCreationForm';
2
+ import { CreateCompanyCreationFormData } from './CreateCompanyCreationForm';
3
+ import { ApiPropertyOptional } from '../../../../utils';
4
+ import { IsOptional } from 'class-validator';
5
+
6
+ export class UpdateCompanyCreationForm implements Partial<ICompanyCreationForm> {
7
+ @ApiPropertyOptional()
8
+ @IsOptional()
9
+ payload: CreateCompanyCreationFormData;
10
+ }
@@ -15,6 +15,11 @@ export class UpdateSocietyConfig {
15
15
  @IsOptional()
16
16
  noVat?: boolean;
17
17
 
18
+ @ApiPropertyOptional()
19
+ @IsBoolean()
20
+ @ToBoolean()
21
+ @IsOptional()
22
+ onCollection?: boolean;
18
23
 
19
24
  @ApiPropertyOptional()
20
25
  @IsNumber()
@@ -52,7 +52,8 @@ export class QueryVatEntry {
52
52
 
53
53
  @ApiProperty()
54
54
  @IsString()
55
- type: 'collected' | 'deductible';
55
+ @IsOptional()
56
+ type?: 'collected' | 'deductible';
56
57
  }
57
58
 
58
59
  export class QueryCerfa {
@@ -11,4 +11,15 @@ export class ReadVatDeclarationUpdatedEntry {
11
11
  form: FormEntry[];
12
12
  entries: IAccountingEntry[];
13
13
  };
14
+ }
15
+
16
+ export class ReadVatOnCollection {
17
+ amounts: {
18
+ sales: { [k: string]: number };
19
+ purchases: { [k: string]: number };
20
+ };
21
+ rates: {
22
+ sales: { [k: string]: number };
23
+ purchases: { [k: string]: number };
24
+ };
14
25
  }
@@ -0,0 +1,13 @@
1
+ import { ISociety } from '../..';
2
+ import { CompanyCreationFormPayload } from '../api/companyCreationForm/CompanyCreationFormPayload';
3
+
4
+ export interface ICompanyCreationForm {
5
+ id?: number;
6
+ idSociety: number;
7
+ payload: CompanyCreationFormPayload;
8
+ createdAt?: Date;
9
+ updatedAt?: Date;
10
+ deletedAt?: Date | null;
11
+
12
+ society?: ISociety;
13
+ }
@@ -12,6 +12,7 @@ export interface ISocietyConfig {
12
12
  acceptCgv: boolean;
13
13
  showWelcomeModal: boolean;
14
14
  modalNews: boolean;
15
+ onCollection?: boolean;
15
16
  typeMicroentreprise?: number | null;
16
17
  showTipSchedule: boolean;
17
18
  defaultBa?: number | null;