@silexpert/core 1.3.40 → 1.3.42

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 (97) hide show
  1. package/dist/cjs/api/resources/Card.d.ts +18 -2
  2. package/dist/cjs/api/resources/Card.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/Card.js +19 -0
  4. package/dist/cjs/api/resources/Card.js.map +1 -1
  5. package/dist/cjs/api/resources/SocietyDetail.js +1 -1
  6. package/dist/cjs/api/resources/SocietyDetail.js.map +1 -1
  7. package/dist/cjs/types/Enum/Card.d.ts +110 -22
  8. package/dist/cjs/types/Enum/Card.d.ts.map +1 -1
  9. package/dist/cjs/types/Enum/Card.js +162 -26
  10. package/dist/cjs/types/Enum/Card.js.map +1 -1
  11. package/dist/cjs/types/Enum/PriceGridClementine.d.ts.map +1 -1
  12. package/dist/cjs/types/Enum/PriceGridClementine.js +20 -0
  13. package/dist/cjs/types/Enum/PriceGridClementine.js.map +1 -1
  14. package/dist/cjs/types/Enum/TeamType.d.ts +16 -0
  15. package/dist/cjs/types/Enum/TeamType.d.ts.map +1 -0
  16. package/dist/cjs/types/Enum/TeamType.js +57 -0
  17. package/dist/cjs/types/Enum/TeamType.js.map +1 -0
  18. package/dist/cjs/types/Enum/TimeCounterType.d.ts +9 -362
  19. package/dist/cjs/types/Enum/TimeCounterType.d.ts.map +1 -1
  20. package/dist/cjs/types/Enum/TimeCounterType.js +8 -0
  21. package/dist/cjs/types/Enum/TimeCounterType.js.map +1 -1
  22. package/dist/cjs/types/Interface/api/card/UpdateCard.d.ts +11 -1
  23. package/dist/cjs/types/Interface/api/card/UpdateCard.d.ts.map +1 -1
  24. package/dist/cjs/types/Interface/api/card/UpdateCard.js +38 -2
  25. package/dist/cjs/types/Interface/api/card/UpdateCard.js.map +1 -1
  26. package/dist/cjs/types/Interface/api/team/QueryUpdate.d.ts +2 -0
  27. package/dist/cjs/types/Interface/api/team/QueryUpdate.d.ts.map +1 -1
  28. package/dist/cjs/types/Interface/api/team/QueryUpdate.js +7 -0
  29. package/dist/cjs/types/Interface/api/team/QueryUpdate.js.map +1 -1
  30. package/dist/cjs/types/Interface/models/ICard.d.ts +20 -0
  31. package/dist/cjs/types/Interface/models/ICard.d.ts.map +1 -1
  32. package/dist/cjs/types/Interface/models/ICard.js.map +1 -1
  33. package/dist/cjs/types/Interface/models/ITeam.d.ts +2 -0
  34. package/dist/cjs/types/Interface/models/ITeam.d.ts.map +1 -1
  35. package/dist/cjs/types/Interface/models/ITeam.js.map +1 -1
  36. package/dist/cjs/types/index.d.ts +1 -0
  37. package/dist/cjs/types/index.d.ts.map +1 -1
  38. package/dist/cjs/types/index.js +1 -0
  39. package/dist/cjs/types/index.js.map +1 -1
  40. package/dist/cjs/utils/prestation.d.ts.map +1 -1
  41. package/dist/cjs/utils/prestation.js +3 -0
  42. package/dist/cjs/utils/prestation.js.map +1 -1
  43. package/dist/mjs/api/resources/Card.d.ts +18 -2
  44. package/dist/mjs/api/resources/Card.d.ts.map +1 -1
  45. package/dist/mjs/api/resources/Card.js +19 -0
  46. package/dist/mjs/api/resources/Card.js.map +1 -1
  47. package/dist/mjs/api/resources/SocietyDetail.js +1 -1
  48. package/dist/mjs/api/resources/SocietyDetail.js.map +1 -1
  49. package/dist/mjs/types/Enum/Card.d.ts +110 -22
  50. package/dist/mjs/types/Enum/Card.d.ts.map +1 -1
  51. package/dist/mjs/types/Enum/Card.js +162 -26
  52. package/dist/mjs/types/Enum/Card.js.map +1 -1
  53. package/dist/mjs/types/Enum/PriceGridClementine.d.ts.map +1 -1
  54. package/dist/mjs/types/Enum/PriceGridClementine.js +20 -0
  55. package/dist/mjs/types/Enum/PriceGridClementine.js.map +1 -1
  56. package/dist/mjs/types/Enum/TeamType.d.ts +16 -0
  57. package/dist/mjs/types/Enum/TeamType.d.ts.map +1 -0
  58. package/dist/mjs/types/Enum/TeamType.js +54 -0
  59. package/dist/mjs/types/Enum/TeamType.js.map +1 -0
  60. package/dist/mjs/types/Enum/TimeCounterType.d.ts +9 -362
  61. package/dist/mjs/types/Enum/TimeCounterType.d.ts.map +1 -1
  62. package/dist/mjs/types/Enum/TimeCounterType.js +8 -0
  63. package/dist/mjs/types/Enum/TimeCounterType.js.map +1 -1
  64. package/dist/mjs/types/Interface/api/card/UpdateCard.d.ts +11 -1
  65. package/dist/mjs/types/Interface/api/card/UpdateCard.d.ts.map +1 -1
  66. package/dist/mjs/types/Interface/api/card/UpdateCard.js +42 -2
  67. package/dist/mjs/types/Interface/api/card/UpdateCard.js.map +1 -1
  68. package/dist/mjs/types/Interface/api/team/QueryUpdate.d.ts +2 -0
  69. package/dist/mjs/types/Interface/api/team/QueryUpdate.d.ts.map +1 -1
  70. package/dist/mjs/types/Interface/api/team/QueryUpdate.js +9 -1
  71. package/dist/mjs/types/Interface/api/team/QueryUpdate.js.map +1 -1
  72. package/dist/mjs/types/Interface/models/ICard.d.ts +20 -0
  73. package/dist/mjs/types/Interface/models/ICard.d.ts.map +1 -1
  74. package/dist/mjs/types/Interface/models/ICard.js.map +1 -1
  75. package/dist/mjs/types/Interface/models/ITeam.d.ts +2 -0
  76. package/dist/mjs/types/Interface/models/ITeam.d.ts.map +1 -1
  77. package/dist/mjs/types/Interface/models/ITeam.js.map +1 -1
  78. package/dist/mjs/types/index.d.ts +1 -0
  79. package/dist/mjs/types/index.d.ts.map +1 -1
  80. package/dist/mjs/types/index.js +1 -0
  81. package/dist/mjs/types/index.js.map +1 -1
  82. package/dist/mjs/utils/prestation.d.ts.map +1 -1
  83. package/dist/mjs/utils/prestation.js +3 -0
  84. package/dist/mjs/utils/prestation.js.map +1 -1
  85. package/package.json +1 -1
  86. package/ts/api/resources/Card.ts +25 -1
  87. package/ts/api/resources/SocietyDetail.ts +1 -1
  88. package/ts/types/Enum/Card.ts +174 -29
  89. package/ts/types/Enum/PriceGridClementine.ts +20 -0
  90. package/ts/types/Enum/TeamType.ts +53 -0
  91. package/ts/types/Enum/TimeCounterType.ts +18 -1
  92. package/ts/types/Interface/api/card/UpdateCard.ts +32 -2
  93. package/ts/types/Interface/api/team/QueryUpdate.ts +7 -1
  94. package/ts/types/Interface/models/ICard.ts +20 -0
  95. package/ts/types/Interface/models/ITeam.ts +2 -0
  96. package/ts/types/index.ts +1 -0
  97. package/ts/utils/prestation.ts +3 -0
@@ -1,8 +1,37 @@
1
- import { IsBoolean, IsEnum, IsInt, IsOptional, IsString } from 'class-validator';
1
+ import { IsBoolean, IsDate, IsEnum, IsInt, IsOptional, IsString } from 'class-validator';
2
2
  import { ApiPropertyOptional } from '../../../../utils';
3
3
  import { CardState, CardType } from '../../../Enum/Card';
4
4
  import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
5
5
 
6
+ export class UpdateCardV2 {
7
+ @ApiPropertyOptional()
8
+ @IsOptional()
9
+ @IsEnum(CardState)
10
+ state?: CardState;
11
+
12
+ @ApiPropertyOptional()
13
+ @IsOptional()
14
+ plannedAt?: Date | null;
15
+
16
+ @ApiPropertyOptional()
17
+ @IsOptional()
18
+ @IsInt()
19
+ idUser?: number;
20
+
21
+ @ApiPropertyOptional()
22
+ @IsOptional()
23
+ @IsString()
24
+ comment?: string;
25
+
26
+ @ApiPropertyOptional()
27
+ @IsOptional()
28
+ @IsInt()
29
+ priority?: number;
30
+ }
31
+
32
+ /**
33
+ * @deprecated Use UpdateCardV2 instead
34
+ */
6
35
  export class UpdateCard {
7
36
  @ApiPropertyOptional()
8
37
  @IsOptional()
@@ -19,7 +48,7 @@ export class UpdateCard {
19
48
  @IsOptional()
20
49
  @IsBoolean()
21
50
  @ToBoolean()
22
- isBlocked?: string;
51
+ isBlocked?: boolean;
23
52
 
24
53
  @ApiPropertyOptional()
25
54
  @IsOptional()
@@ -29,6 +58,7 @@ export class UpdateCard {
29
58
 
30
59
  @ApiPropertyOptional()
31
60
  @IsOptional()
61
+ @IsDate()
32
62
  plannedAt?: Date | null;
33
63
 
34
64
  @ApiPropertyOptional()
@@ -1,5 +1,6 @@
1
- import { IsArray, IsNumber, IsOptional, IsString } from 'class-validator';
1
+ import { IsArray, IsEnum, IsNumber, IsOptional, IsString } from 'class-validator';
2
2
  import { ApiPropertyOptional } from '../../../../utils';
3
+ import { TeamType } from '../../../Enum/TeamType';
3
4
 
4
5
  export class QueryUpdateTeam {
5
6
  @ApiPropertyOptional()
@@ -21,4 +22,9 @@ export class QueryUpdateTeam {
21
22
  @IsOptional()
22
23
  @IsArray()
23
24
  usersToDelete?: number[];
25
+
26
+ @ApiPropertyOptional()
27
+ @IsOptional()
28
+ @IsEnum(TeamType)
29
+ idType?: TeamType | null;
24
30
  }
@@ -7,6 +7,9 @@ import { ICustomerVat } from './ICustomerVat';
7
7
  import { ICardHistory } from './ICardHistory';
8
8
  import { IComment } from './IComment';
9
9
  import { ITeam } from './ITeam';
10
+ import { IChecklist } from './IChecklist';
11
+ import { ICustomerIsRegime } from './ICustomerIsRegime';
12
+ import { IExercice } from './IExercice';
10
13
 
11
14
  export interface ICard {
12
15
  id?: number;
@@ -14,10 +17,16 @@ export interface ICard {
14
17
  state: CardState;
15
18
  isManual: boolean;
16
19
  isBlocked: boolean;
20
+ priority?: number | null;
17
21
  plannedAt?: Date | null;
18
22
  idUser?: number | null;
19
23
  idTeam?: number | null;
20
24
  idSociety: number;
25
+ idBalanceSheet?: number | null;
26
+ idCustomerVat?: number | null;
27
+ idCustomerIsRegime?: number | null;
28
+ idChecklist?: number | null;
29
+ idExercice?: number | null;
21
30
  createdAt?: Date;
22
31
  updatedAt?: Date;
23
32
  deletedAt?: Date;
@@ -26,7 +35,18 @@ export interface ICard {
26
35
  user?: IUser;
27
36
  team?: ITeam;
28
37
  society?: ISociety;
38
+ balancesheet?: IBalanceSheet;
39
+ vat?: ICustomerVat;
40
+ customerIsRegime?: ICustomerIsRegime;
41
+ checklist?: IChecklist;
42
+ exercice?: IExercice;
43
+ /**
44
+ * @deprecated old relationship with balance sheet
45
+ */
29
46
  balanceSheet?: IBalanceSheet;
47
+ /**
48
+ * @deprecated old relationship with customer vat
49
+ */
30
50
  customerVat?: ICustomerVat;
31
51
  events?: ICalendarEvent[];
32
52
  history?: ICardHistory[];
@@ -1,3 +1,4 @@
1
+ import { TeamType } from '../../Enum/TeamType';
1
2
  import { IBusinessLine } from './IBusinessLine';
2
3
  import { IUser } from './IUser';
3
4
  import { IUserTeam } from './IUserTeam';
@@ -7,6 +8,7 @@ export interface ITeam {
7
8
  id?: number;
8
9
  name: string;
9
10
  nbTotalActive?: number;
11
+ idType?: TeamType | null;
10
12
  createdAt?: Date | null;
11
13
  updatedAt?: Date | null;
12
14
 
package/ts/types/index.ts CHANGED
@@ -552,6 +552,7 @@ export * from './Enum/Marketing';
552
552
  export * from './Enum/EnglishLevel';
553
553
  export * from './Enum/AIPrompt';
554
554
  export * from './Enum/SocietyTypeExportCsv';
555
+ export * from './Enum/TeamType';
555
556
  export * from './Enum/PartneredAccountantServiceType';
556
557
  export * from './Enum/PartneredAccountantServiceTypeId';
557
558
 
@@ -456,6 +456,9 @@ const calculatePrestationPrice = (
456
456
  PrestationType.SUPPORT,
457
457
  PrestationType.PREMIUM,
458
458
  PrestationType.CUSTOM_MADE,
459
+ PrestationType.EI,
460
+ PrestationType.SCI,
461
+ PrestationType.LMNP,
459
462
  ].includes(idPrestationList)
460
463
  ) {
461
464
  let exerciceNbr: number = 0;