@silexpert/core 1.2.65 → 1.2.67

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 (49) hide show
  1. package/dist/cjs/types/Enum/Supervision.d.ts +3 -1
  2. package/dist/cjs/types/Enum/Supervision.d.ts.map +1 -1
  3. package/dist/cjs/types/Enum/Supervision.js +14 -0
  4. package/dist/cjs/types/Enum/Supervision.js.map +1 -1
  5. package/dist/cjs/types/Interface/api/balanceSheet/Query.d.ts.map +1 -1
  6. package/dist/cjs/types/Interface/api/balanceSheet/Query.js +7 -1
  7. package/dist/cjs/types/Interface/api/balanceSheet/Query.js.map +1 -1
  8. package/dist/cjs/types/Interface/api/commercialManagement/Create.d.ts +7 -2
  9. package/dist/cjs/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
  10. package/dist/cjs/types/Interface/api/commercialManagement/Create.js +20 -10
  11. package/dist/cjs/types/Interface/api/commercialManagement/Create.js.map +1 -1
  12. package/dist/cjs/types/Interface/api/report/QueryReports.d.ts +1 -0
  13. package/dist/cjs/types/Interface/api/report/QueryReports.d.ts.map +1 -1
  14. package/dist/cjs/types/Interface/api/report/QueryReports.js +9 -0
  15. package/dist/cjs/types/Interface/api/report/QueryReports.js.map +1 -1
  16. package/dist/cjs/types/Interface/models/ISocietyGescom.d.ts +4 -0
  17. package/dist/cjs/types/Interface/models/ISocietyGescom.d.ts.map +1 -1
  18. package/dist/cjs/types/Interface/models/ISocietyGescom.js.map +1 -1
  19. package/dist/cjs/utils/documents.d.ts.map +1 -1
  20. package/dist/cjs/utils/documents.js +2 -0
  21. package/dist/cjs/utils/documents.js.map +1 -1
  22. package/dist/mjs/types/Enum/Supervision.d.ts +3 -1
  23. package/dist/mjs/types/Enum/Supervision.d.ts.map +1 -1
  24. package/dist/mjs/types/Enum/Supervision.js +14 -0
  25. package/dist/mjs/types/Enum/Supervision.js.map +1 -1
  26. package/dist/mjs/types/Interface/api/balanceSheet/Query.d.ts.map +1 -1
  27. package/dist/mjs/types/Interface/api/balanceSheet/Query.js +7 -1
  28. package/dist/mjs/types/Interface/api/balanceSheet/Query.js.map +1 -1
  29. package/dist/mjs/types/Interface/api/commercialManagement/Create.d.ts +7 -2
  30. package/dist/mjs/types/Interface/api/commercialManagement/Create.d.ts.map +1 -1
  31. package/dist/mjs/types/Interface/api/commercialManagement/Create.js +22 -10
  32. package/dist/mjs/types/Interface/api/commercialManagement/Create.js.map +1 -1
  33. package/dist/mjs/types/Interface/api/report/QueryReports.d.ts +1 -0
  34. package/dist/mjs/types/Interface/api/report/QueryReports.d.ts.map +1 -1
  35. package/dist/mjs/types/Interface/api/report/QueryReports.js +10 -0
  36. package/dist/mjs/types/Interface/api/report/QueryReports.js.map +1 -1
  37. package/dist/mjs/types/Interface/models/ISocietyGescom.d.ts +4 -0
  38. package/dist/mjs/types/Interface/models/ISocietyGescom.d.ts.map +1 -1
  39. package/dist/mjs/types/Interface/models/ISocietyGescom.js.map +1 -1
  40. package/dist/mjs/utils/documents.d.ts.map +1 -1
  41. package/dist/mjs/utils/documents.js +2 -0
  42. package/dist/mjs/utils/documents.js.map +1 -1
  43. package/package.json +1 -1
  44. package/ts/types/Enum/Supervision.ts +14 -0
  45. package/ts/types/Interface/api/balanceSheet/Query.ts +7 -1
  46. package/ts/types/Interface/api/commercialManagement/Create.ts +20 -10
  47. package/ts/types/Interface/api/report/QueryReports.ts +8 -0
  48. package/ts/types/Interface/models/ISocietyGescom.ts +4 -0
  49. package/ts/utils/documents.ts +2 -0
@@ -12,7 +12,7 @@ import {
12
12
  IsString,
13
13
  Min,
14
14
  } from 'class-validator';
15
- import { IFile, ReadProductEditing } from '../../..';
15
+ import { BorderLineType, IFile, ReadProductEditing } from '../../..';
16
16
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
17
17
  import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
18
18
  import {
@@ -270,7 +270,7 @@ export class CreateCommercialSetting {
270
270
 
271
271
  @ApiPropertyOptional()
272
272
  @IsOptional()
273
- @IsString()
273
+ @IsEnum(BorderLineType)
274
274
  lineSeparationType?: string;
275
275
 
276
276
  @ApiPropertyOptional()
@@ -285,7 +285,7 @@ export class CreateCommercialSetting {
285
285
 
286
286
  @ApiPropertyOptional()
287
287
  @IsOptional()
288
- @IsString()
288
+ @IsEnum(BorderLineType)
289
289
  columnSeparationType?: string;
290
290
 
291
291
  @ApiPropertyOptional()
@@ -300,7 +300,7 @@ export class CreateCommercialSetting {
300
300
 
301
301
  @ApiPropertyOptional()
302
302
  @IsOptional()
303
- @IsString()
303
+ @IsEnum(BorderLineType)
304
304
  externalBorderType?: string;
305
305
 
306
306
  @ApiPropertyOptional()
@@ -308,6 +308,11 @@ export class CreateCommercialSetting {
308
308
  @IsString()
309
309
  externalBorderColor?: string;
310
310
 
311
+ @ApiPropertyOptional()
312
+ @IsOptional()
313
+ @IsNumber()
314
+ reminderCustomizedDayDiff?: number | null;
315
+
311
316
  @ApiPropertyOptional()
312
317
  @IsOptional()
313
318
  @IsInt()
@@ -323,6 +328,11 @@ export class CreateCommercialSetting {
323
328
  @IsInt()
324
329
  idGeneralConditionOfSale?: number | null;
325
330
 
331
+ @ApiPropertyOptional()
332
+ @IsOptional()
333
+ @IsInt()
334
+ idReminderSaleEmail?: number | null;
335
+
326
336
  @ApiPropertyOptional()
327
337
  @IsOptional()
328
338
  @IsString()
@@ -525,7 +535,7 @@ export class CreateInvoiceDocument extends CommercialDocumentInputs {
525
535
  assetMarginVatIds?: number[]; // Laisser vide côté front, utilisé pour l'affichage des tva sur marge sur les acomptes
526
536
  advanceProducts?: ReadProductEditing[]; // Laisser vide côté front, utilisé pour l'affichage des bases TVA sur les acomptes
527
537
  language?: InvoiceLanguage;
528
- reminder?: CreateReminder | null;
538
+ reminder?: CreateReminderForTemplate | null;
529
539
  recurrence?: CreateRecurrence | null;
530
540
  }
531
541
 
@@ -579,17 +589,17 @@ export class CreateReminder {
579
589
  @IsOptional()
580
590
  customizedDate?: Date;
581
591
 
582
- @ApiPropertyOptional()
583
- @IsNumber()
584
- @IsOptional()
585
- customizedDayDiff?: number;
586
-
587
592
  @ApiPropertyOptional()
588
593
  @IsArray()
589
594
  @IsInt({ each: true })
590
595
  idFiles?: number[];
591
596
  }
592
597
 
598
+ export class CreateReminderForTemplate extends CreateReminder {
599
+ idSaleEmail?: number | null;
600
+ customizedDayDiff?: number | null;
601
+ }
602
+
593
603
  export class CreateRecurrence {
594
604
  @ApiProperty()
595
605
  @IsEnum(RecurrenceType)
@@ -1,4 +1,6 @@
1
+ import { IsBoolean, IsOptional } from 'class-validator';
1
2
  import { ApiPropertyOptional } from '../../../../utils';
3
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
2
4
 
3
5
  export class QueryReports {
4
6
  @ApiPropertyOptional()
@@ -27,4 +29,10 @@ export class QueryReports {
27
29
 
28
30
  @ApiPropertyOptional()
29
31
  idUser?: number | number[];
32
+
33
+ @ApiPropertyOptional()
34
+ @IsOptional()
35
+ @IsBoolean()
36
+ @ToBoolean()
37
+ onlyClient?: boolean;
30
38
  }
@@ -1,5 +1,6 @@
1
1
  import { AccountingCategoryId, FontIds, LogoAlignment } from '../../Enum/CommercialManagement';
2
2
  import { IFile } from './IFile';
3
+ import { ISaleEmail } from './ISaleEmail';
3
4
 
4
5
  // societyGescom
5
6
  export interface ISocietyGescom {
@@ -62,11 +63,14 @@ export interface ISocietyGescom {
62
63
  externalBorderThickness?: number | null;
63
64
  externalBorderType?: string | null;
64
65
  externalBorderColor?: string | null;
66
+ reminderCustomizedDayDiff?: number | null;
65
67
  idRibFile?: number | null;
66
68
  idSignatureFile?: number | null;
67
69
  idGeneralConditionOfSale?: number | null;
70
+ idReminderSaleEmail?: number | null;
68
71
  ribFile?: IFile;
69
72
  signatureFile?: IFile;
73
+ defaultReminderSaleEmail?: ISaleEmail;
70
74
  createdAt?: Date | null;
71
75
  updatedAt?: Date | null;
72
76
  }
@@ -49,8 +49,10 @@ const requiredListDocs = (params: RequiredDocsType): GedFileType[] => {
49
49
  LegalForm.SAS.id,
50
50
  LegalForm.SARL.id,
51
51
  LegalForm.SCI.id,
52
+ LegalForm.SCCV.id,
52
53
  LegalForm.EARL.id,
53
54
  LegalForm.GIE.id,
55
+ LegalForm.SELASU.id,
54
56
  LegalForm.SOCIETE_CIVILE.id,
55
57
  ].includes(idLegalForm)
56
58
  ) {