@silexpert/core 1.0.96 → 1.0.99

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/es/types/Enum/AbsenceType.d.ts +7 -1
  2. package/es/types/Enum/AbsenceType.d.ts.map +1 -1
  3. package/es/types/Enum/AbsenceType.js +36 -0
  4. package/es/types/Enum/AbsenceType.js.map +1 -1
  5. package/es/types/Enum/BalanceSheetQuestionWording.d.ts +1 -1
  6. package/es/types/Enum/BalanceSheetQuestionWording.d.ts.map +1 -1
  7. package/es/types/Enum/BalanceSheetQuestionWording.js +1 -1
  8. package/es/types/Enum/BalanceSheetQuestionWording.js.map +1 -1
  9. package/es/types/Interface/api/commercial/QueryGetStats.d.ts +8 -1
  10. package/es/types/Interface/api/commercial/QueryGetStats.d.ts.map +1 -1
  11. package/es/types/Interface/api/commercial/QueryGetStats.js +49 -4
  12. package/es/types/Interface/api/commercial/QueryGetStats.js.map +1 -1
  13. package/es/types/Interface/api/commercial/QueryPaginatedSocietyWithStatsCa.d.ts +3 -5
  14. package/es/types/Interface/api/commercial/QueryPaginatedSocietyWithStatsCa.d.ts.map +1 -1
  15. package/es/types/Interface/api/commercial/QueryPaginatedSocietyWithStatsCa.js +4 -22
  16. package/es/types/Interface/api/commercial/QueryPaginatedSocietyWithStatsCa.js.map +1 -1
  17. package/es/types/Interface/api/facturation/QueryPaginatedSocietyWithFacturation.d.ts +2 -3
  18. package/es/types/Interface/api/facturation/QueryPaginatedSocietyWithFacturation.d.ts.map +1 -1
  19. package/es/types/Interface/api/facturation/QueryPaginatedSocietyWithFacturation.js +2 -13
  20. package/es/types/Interface/api/facturation/QueryPaginatedSocietyWithFacturation.js.map +1 -1
  21. package/es/types/Interface/api/society/UpdateSociety.d.ts +7 -0
  22. package/es/types/Interface/api/society/UpdateSociety.d.ts.map +1 -1
  23. package/es/types/Interface/api/society/UpdateSociety.js +33 -0
  24. package/es/types/Interface/api/society/UpdateSociety.js.map +1 -1
  25. package/es/utils/prestation.d.ts.map +1 -1
  26. package/es/utils/prestation.js +1 -1
  27. package/es/utils/prestation.js.map +1 -1
  28. package/js/types/Enum/AbsenceType.js +28 -0
  29. package/js/types/Enum/AbsenceType.js.map +1 -1
  30. package/js/types/Enum/BalanceSheetQuestionWording.js +1 -1
  31. package/js/types/Enum/BalanceSheetQuestionWording.js.map +1 -1
  32. package/js/types/Interface/api/commercial/QueryGetStats.js +19 -1
  33. package/js/types/Interface/api/commercial/QueryGetStats.js.map +1 -1
  34. package/js/types/Interface/api/commercial/QueryPaginatedSocietyWithStatsCa.js +6 -12
  35. package/js/types/Interface/api/commercial/QueryPaginatedSocietyWithStatsCa.js.map +1 -1
  36. package/js/types/Interface/api/facturation/QueryPaginatedSocietyWithFacturation.js +3 -9
  37. package/js/types/Interface/api/facturation/QueryPaginatedSocietyWithFacturation.js.map +1 -1
  38. package/js/types/Interface/api/society/UpdateSociety.js +18 -0
  39. package/js/types/Interface/api/society/UpdateSociety.js.map +1 -1
  40. package/js/utils/prestation.js +1 -1
  41. package/js/utils/prestation.js.map +1 -1
  42. package/package.json +1 -1
  43. package/ts/types/Enum/AbsenceType.ts +38 -1
  44. package/ts/types/Enum/BalanceSheetQuestionWording.ts +1 -1
  45. package/ts/types/Interface/api/commercial/QueryGetStats.ts +41 -2
  46. package/ts/types/Interface/api/commercial/QueryPaginatedSocietyWithStatsCa.ts +4 -19
  47. package/ts/types/Interface/api/facturation/QueryPaginatedSocietyWithFacturation.ts +2 -11
  48. package/ts/types/Interface/api/society/UpdateSociety.ts +26 -0
  49. package/ts/utils/prestation.ts +1 -1
@@ -5,4 +5,41 @@ export enum AbsenceType {
5
5
  ABSENCE = 4,
6
6
  OVERTIME = 5,
7
7
  REMOTE = 6,
8
- }
8
+ SCHOOL = 7,
9
+ UNJUSTIFIED = 8,
10
+ }
11
+
12
+ export const AbsenceTypeList = [
13
+ {
14
+ id: AbsenceType.DAY_OFF,
15
+ label: 'Jours de congé',
16
+ },
17
+ {
18
+ id: AbsenceType.RTT,
19
+ label: 'RTT',
20
+ },
21
+ {
22
+ id: AbsenceType.HOUR_CHANGE,
23
+ label: 'Changement d\'heures',
24
+ },
25
+ {
26
+ id: AbsenceType.ABSENCE,
27
+ label: 'Arrêt maladie',
28
+ },
29
+ {
30
+ id: AbsenceType.OVERTIME,
31
+ label: 'Heures supplémentaires',
32
+ },
33
+ {
34
+ id: AbsenceType.REMOTE,
35
+ label: 'Télétravail',
36
+ },
37
+ {
38
+ id: AbsenceType.SCHOOL,
39
+ label: 'École/Cours',
40
+ },
41
+ {
42
+ id: AbsenceType.UNJUSTIFIED,
43
+ label: 'Absence non justifiée',
44
+ },
45
+ ];
@@ -256,7 +256,7 @@ export enum QuestionWording {
256
256
  * used in IS tax credit and 2572
257
257
  */
258
258
 
259
- 'N-1_PAYMENT_OR_DEPOSIT' = 'Avez-vous réalisé des versements ou acomptes sur l’année 2021 ?',
259
+ 'N-1_PAYMENT_OR_DEPOSIT' = 'Avez-vous réalisé des versements ou acomptes au cours de l\'exercice ?',
260
260
 
261
261
  ENTITY_ADDRESS = 'Adresse de l\'entité',
262
262
  PREVIOUS_ENTITY_ADDRESS = 'Précédente adresse de l\'entité',
@@ -1,9 +1,33 @@
1
1
  import {
2
+ IsBoolean,
2
3
  IsInt, IsOptional, IsString,
3
4
  } from 'class-validator';
4
5
  import { ApiPropertyOptional } from '../../../../utils';
6
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
5
7
 
6
8
  export class QueryGetStats {
9
+ @ApiPropertyOptional()
10
+ @IsOptional()
11
+ @IsString()
12
+ search?: string;
13
+
14
+ @ApiPropertyOptional()
15
+ @IsOptional()
16
+ @IsBoolean()
17
+ @ToBoolean()
18
+ isInCA?: boolean;
19
+
20
+ @ApiPropertyOptional()
21
+ @IsOptional()
22
+ @IsBoolean()
23
+ @ToBoolean()
24
+ isAdditionalSales?: boolean;
25
+
26
+ @ApiPropertyOptional()
27
+ @IsOptional()
28
+ @IsInt()
29
+ day?: number;
30
+
7
31
  @ApiPropertyOptional()
8
32
  @IsOptional()
9
33
  @IsInt()
@@ -21,6 +45,21 @@ export class QueryGetStats {
21
45
 
22
46
  @ApiPropertyOptional()
23
47
  @IsOptional()
24
- @IsString()
25
- search?: string;
48
+ @IsInt()
49
+ idSource?: number;
50
+
51
+ @ApiPropertyOptional()
52
+ @IsOptional()
53
+ @IsInt()
54
+ idPrestationList?: number;
55
+
56
+ @ApiPropertyOptional()
57
+ @IsOptional()
58
+ @IsInt({ each: true })
59
+ idConstitutionState?: number[];
60
+
61
+ @ApiPropertyOptional()
62
+ @IsOptional()
63
+ @IsInt()
64
+ idBillingState?: number;
26
65
  }
@@ -4,8 +4,9 @@ import {
4
4
  } from 'class-validator';
5
5
  import { ApiPropertyOptional } from '../../../../utils';
6
6
  import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
7
+ import { OptionalQueryPaginate } from '../BasePaginate';
7
8
 
8
- export class QueryPaginatedSocietyWithStatsCa {
9
+ export class QueryPaginatedSocietyWithStatsCa extends OptionalQueryPaginate {
9
10
  @ApiPropertyOptional()
10
11
  @IsOptional()
11
12
  @IsString()
@@ -17,12 +18,6 @@ export class QueryPaginatedSocietyWithStatsCa {
17
18
  @ToBoolean()
18
19
  isInCA?: boolean;
19
20
 
20
- @ApiPropertyOptional()
21
- @IsOptional()
22
- @IsBoolean()
23
- @ToBoolean()
24
- turnoverRefused?: boolean;
25
-
26
21
  @ApiPropertyOptional()
27
22
  @IsOptional()
28
23
  @IsBoolean()
@@ -66,21 +61,11 @@ export class QueryPaginatedSocietyWithStatsCa {
66
61
 
67
62
  @ApiPropertyOptional()
68
63
  @IsOptional()
69
- @IsInt()
70
- idConstitutionState?: number;
64
+ @IsInt({ each: true })
65
+ idConstitutionState?: number[];
71
66
 
72
67
  @ApiPropertyOptional()
73
68
  @IsOptional()
74
69
  @IsInt()
75
70
  idBillingState?: number;
76
-
77
- @ApiPropertyOptional({ default: 20 })
78
- @IsOptional()
79
- @IsInt()
80
- limit?: number;
81
-
82
- @ApiPropertyOptional({ default: 1 })
83
- @IsOptional()
84
- @IsInt()
85
- page?: number;
86
71
  }
@@ -2,8 +2,9 @@ import {
2
2
  IsInt, IsOptional, IsString,
3
3
  } from 'class-validator';
4
4
  import { ApiPropertyOptional } from '../../../../utils';
5
+ import { OptionalQueryPaginate } from '../BasePaginate';
5
6
 
6
- export class QueryPaginatedSocietyWithFacturation {
7
+ export class QueryPaginatedSocietyWithFacturation extends OptionalQueryPaginate {
7
8
  @ApiPropertyOptional()
8
9
  @IsOptional()
9
10
  @IsString()
@@ -33,14 +34,4 @@ export class QueryPaginatedSocietyWithFacturation {
33
34
  @IsOptional()
34
35
  @IsInt()
35
36
  idBillingState?: number;
36
-
37
- @ApiPropertyOptional({ default: 20 })
38
- @IsOptional()
39
- @IsInt()
40
- limit?: number;
41
-
42
- @ApiPropertyOptional({ default: 1 })
43
- @IsOptional()
44
- @IsInt()
45
- page?: number;
46
37
  }
@@ -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
  import { ISociety } from '../../models/ISociety';
3
5
 
4
6
  export class UpdateSociety {
@@ -17,6 +19,9 @@ export class UpdateSociety {
17
19
  @ApiPropertyOptional()
18
20
  city?: string;
19
21
 
22
+ @ApiPropertyOptional()
23
+ zipCode?: string;
24
+
20
25
  @ApiPropertyOptional()
21
26
  idCountry?: number;
22
27
 
@@ -46,6 +51,27 @@ export class UpdateSociety {
46
51
 
47
52
  @ApiPropertyOptional()
48
53
  socialCapital?: string;
54
+
55
+ @ApiPropertyOptional()
56
+ siret?: string;
57
+
58
+ @ApiPropertyOptional()
59
+ oldNafCode?: string;
60
+
61
+ @ApiPropertyOptional()
62
+ vatUploadDay?: number;
63
+
64
+ @ApiPropertyOptional()
65
+ startAt?: Date;
66
+
67
+ @ApiPropertyOptional()
68
+ canceledFirstStepTourAt?: Date;
69
+
70
+ @ApiPropertyOptional()
71
+ @IsBoolean()
72
+ @ToBoolean()
73
+ @IsOptional()
74
+ autoAnnotate?: boolean;
49
75
  }
50
76
  export class UpdateSocietyPayload {
51
77
  @ApiPropertyOptional()
@@ -17,7 +17,7 @@ const isAdditionalPresta = (hidden:boolean, isCatalog:boolean): boolean => !hidd
17
17
 
18
18
  const isOnlyPrevi = (idPrestationList: number[]):boolean => !idPrestationList.filter((idPL:number) => ![PrestationType.PREVISIONNEL, PrestationType.BILAN_PREVISIONNEL, PrestationType.PV_AG].includes(idPL)).length;
19
19
 
20
- const isOnlySocial = (idPrestationList: number[]):boolean => !idPrestationList.filter((idPL:number) => ![PrestationType.FRUCTUPAIE].includes(idPL)).length;
20
+ const isOnlySocial = (idPrestationList: number[]):boolean => !idPrestationList.filter((idPL:number) => ![PrestationType.FRUCTUPAIE, PrestationType.SOCIAL].includes(idPL)).length;
21
21
 
22
22
  const isOnlyJuridic = (idPrestationList: number[]):boolean => !idPrestationList.filter((idPL:number) => ![PrestationType.GESTION_JURIDIQUE].includes(idPL)).length;
23
23