@silexpert/core 1.3.36 → 1.3.37-3

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 (111) hide show
  1. package/dist/cjs/api/resources/Card.d.ts +2 -2
  2. package/dist/cjs/api/resources/Card.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/Card.js.map +1 -1
  4. package/dist/cjs/api/resources/SocietyDetail.js +1 -1
  5. package/dist/cjs/api/resources/SocietyDetail.js.map +1 -1
  6. package/dist/cjs/types/Enum/Account.d.ts +4 -0
  7. package/dist/cjs/types/Enum/Account.d.ts.map +1 -1
  8. package/dist/cjs/types/Enum/Account.js +4 -0
  9. package/dist/cjs/types/Enum/Account.js.map +1 -1
  10. package/dist/cjs/types/Enum/Card.d.ts +110 -22
  11. package/dist/cjs/types/Enum/Card.d.ts.map +1 -1
  12. package/dist/cjs/types/Enum/Card.js +162 -13
  13. package/dist/cjs/types/Enum/Card.js.map +1 -1
  14. package/dist/cjs/types/Enum/TeamType.d.ts +11 -0
  15. package/dist/cjs/types/Enum/TeamType.d.ts.map +1 -0
  16. package/dist/cjs/types/Enum/TeamType.js +15 -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/cerfa/2571.d.ts +2 -0
  27. package/dist/cjs/types/Interface/api/cerfa/2571.d.ts.map +1 -1
  28. package/dist/cjs/types/Interface/api/cerfa/2571.js.map +1 -1
  29. package/dist/cjs/types/Interface/api/cerfa/2573.d.ts +3 -1
  30. package/dist/cjs/types/Interface/api/cerfa/2573.d.ts.map +1 -1
  31. package/dist/cjs/types/Interface/api/cerfa/2573.js.map +1 -1
  32. package/dist/cjs/types/Interface/api/cerfa/ReadCerfa.d.ts +2 -2
  33. package/dist/cjs/types/Interface/api/cerfa/ReadCerfa.d.ts.map +1 -1
  34. package/dist/cjs/types/Interface/api/cerfa/ReadCerfa.js.map +1 -1
  35. package/dist/cjs/types/Interface/api/team/QueryUpdate.d.ts +2 -0
  36. package/dist/cjs/types/Interface/api/team/QueryUpdate.d.ts.map +1 -1
  37. package/dist/cjs/types/Interface/api/team/QueryUpdate.js +7 -0
  38. package/dist/cjs/types/Interface/api/team/QueryUpdate.js.map +1 -1
  39. package/dist/cjs/types/Interface/models/ICard.d.ts +20 -0
  40. package/dist/cjs/types/Interface/models/ICard.d.ts.map +1 -1
  41. package/dist/cjs/types/Interface/models/ICard.js.map +1 -1
  42. package/dist/cjs/types/Interface/models/ITeam.d.ts +2 -0
  43. package/dist/cjs/types/Interface/models/ITeam.d.ts.map +1 -1
  44. package/dist/cjs/types/Interface/models/ITeam.js.map +1 -1
  45. package/dist/cjs/types/index.d.ts +1 -0
  46. package/dist/cjs/types/index.d.ts.map +1 -1
  47. package/dist/cjs/types/index.js +1 -0
  48. package/dist/cjs/types/index.js.map +1 -1
  49. package/dist/mjs/api/resources/Card.d.ts +2 -2
  50. package/dist/mjs/api/resources/Card.d.ts.map +1 -1
  51. package/dist/mjs/api/resources/Card.js.map +1 -1
  52. package/dist/mjs/api/resources/SocietyDetail.js +1 -1
  53. package/dist/mjs/api/resources/SocietyDetail.js.map +1 -1
  54. package/dist/mjs/types/Enum/Account.d.ts +4 -0
  55. package/dist/mjs/types/Enum/Account.d.ts.map +1 -1
  56. package/dist/mjs/types/Enum/Account.js +4 -0
  57. package/dist/mjs/types/Enum/Account.js.map +1 -1
  58. package/dist/mjs/types/Enum/Card.d.ts +110 -22
  59. package/dist/mjs/types/Enum/Card.d.ts.map +1 -1
  60. package/dist/mjs/types/Enum/Card.js +162 -13
  61. package/dist/mjs/types/Enum/Card.js.map +1 -1
  62. package/dist/mjs/types/Enum/TeamType.d.ts +11 -0
  63. package/dist/mjs/types/Enum/TeamType.d.ts.map +1 -0
  64. package/dist/mjs/types/Enum/TeamType.js +12 -0
  65. package/dist/mjs/types/Enum/TeamType.js.map +1 -0
  66. package/dist/mjs/types/Enum/TimeCounterType.d.ts +9 -362
  67. package/dist/mjs/types/Enum/TimeCounterType.d.ts.map +1 -1
  68. package/dist/mjs/types/Enum/TimeCounterType.js +8 -0
  69. package/dist/mjs/types/Enum/TimeCounterType.js.map +1 -1
  70. package/dist/mjs/types/Interface/api/card/UpdateCard.d.ts +11 -1
  71. package/dist/mjs/types/Interface/api/card/UpdateCard.d.ts.map +1 -1
  72. package/dist/mjs/types/Interface/api/card/UpdateCard.js +42 -2
  73. package/dist/mjs/types/Interface/api/card/UpdateCard.js.map +1 -1
  74. package/dist/mjs/types/Interface/api/cerfa/2571.d.ts +2 -0
  75. package/dist/mjs/types/Interface/api/cerfa/2571.d.ts.map +1 -1
  76. package/dist/mjs/types/Interface/api/cerfa/2571.js.map +1 -1
  77. package/dist/mjs/types/Interface/api/cerfa/2573.d.ts +3 -1
  78. package/dist/mjs/types/Interface/api/cerfa/2573.d.ts.map +1 -1
  79. package/dist/mjs/types/Interface/api/cerfa/2573.js.map +1 -1
  80. package/dist/mjs/types/Interface/api/cerfa/ReadCerfa.d.ts +2 -2
  81. package/dist/mjs/types/Interface/api/cerfa/ReadCerfa.d.ts.map +1 -1
  82. package/dist/mjs/types/Interface/api/cerfa/ReadCerfa.js.map +1 -1
  83. package/dist/mjs/types/Interface/api/team/QueryUpdate.d.ts +2 -0
  84. package/dist/mjs/types/Interface/api/team/QueryUpdate.d.ts.map +1 -1
  85. package/dist/mjs/types/Interface/api/team/QueryUpdate.js +9 -1
  86. package/dist/mjs/types/Interface/api/team/QueryUpdate.js.map +1 -1
  87. package/dist/mjs/types/Interface/models/ICard.d.ts +20 -0
  88. package/dist/mjs/types/Interface/models/ICard.d.ts.map +1 -1
  89. package/dist/mjs/types/Interface/models/ICard.js.map +1 -1
  90. package/dist/mjs/types/Interface/models/ITeam.d.ts +2 -0
  91. package/dist/mjs/types/Interface/models/ITeam.d.ts.map +1 -1
  92. package/dist/mjs/types/Interface/models/ITeam.js.map +1 -1
  93. package/dist/mjs/types/index.d.ts +1 -0
  94. package/dist/mjs/types/index.d.ts.map +1 -1
  95. package/dist/mjs/types/index.js +1 -0
  96. package/dist/mjs/types/index.js.map +1 -1
  97. package/package.json +1 -1
  98. package/ts/api/resources/Card.ts +2 -1
  99. package/ts/api/resources/SocietyDetail.ts +1 -1
  100. package/ts/types/Enum/Account.ts +4 -0
  101. package/ts/types/Enum/Card.ts +174 -16
  102. package/ts/types/Enum/TeamType.ts +10 -0
  103. package/ts/types/Enum/TimeCounterType.ts +18 -1
  104. package/ts/types/Interface/api/card/UpdateCard.ts +32 -2
  105. package/ts/types/Interface/api/cerfa/2571.ts +4 -0
  106. package/ts/types/Interface/api/cerfa/2573.ts +4 -1
  107. package/ts/types/Interface/api/cerfa/ReadCerfa.ts +2 -3
  108. package/ts/types/Interface/api/team/QueryUpdate.ts +7 -1
  109. package/ts/types/Interface/models/ICard.ts +20 -0
  110. package/ts/types/Interface/models/ITeam.ts +2 -0
  111. package/ts/types/index.ts +1 -0
@@ -91,6 +91,10 @@ export const Account = {
91
91
  id: 117,
92
92
  number: 625100,
93
93
  },
94
+ TRAVELING_EXPENSES: {
95
+ id: 118,
96
+ number: 625110,
97
+ },
94
98
  DEDUCTIBLE_VAT: {
95
99
  id: 221,
96
100
  number: 445660,
@@ -1,4 +1,5 @@
1
1
  import { Role } from './Role';
2
+ import { TeamType } from './TeamType';
2
3
 
3
4
  export enum CardType {
4
5
  BALANCE_SHEET = 1,
@@ -10,17 +11,29 @@ export enum CardType {
10
11
  // REINFORCED_CHECKLIST = 7,
11
12
  CHECK_BALANCE_ANNOTATION_NEW_CLIENT = 8,
12
13
  CHECK_BALANCE_ANNOTATION = 9,
14
+ SETUP_BANK_ACCOUNT = 10, // Mise en place banque
15
+ UPDATE_BANK_BALANCE = 11, // MAJ du solde bancaire
16
+ UPDATE_ANNOTATIONS = 12, // MAJ Annotations
17
+ CONTROL_REVISION_SURVEY = 13, // Contrôle/Revision/Sondage
18
+ SETUP_AND_INTEGRATION_N_MINUS_1 = 14, // Paramétrage & Intégration N-1
19
+ VAT_REFUSED = 15, // TVA Refus (Refus SIE + Refus client)
20
+ ADVANCE_IS = 16, // Acompte IS
21
+ VAT_EXPRESS = 17, // TVA EXPRESS
22
+ ADVANCE_IS_REFUSED = 18, // Acompte Refus SIE
23
+ CLR = 19, // CLR
24
+ CLR_EXCEPTIONAL_MISSION = 20, // CLR mission exceptionnelle (V2)
25
+ CUT_OFF = 21, // Cut Off
26
+ BALANCE_SHEET_PREPARATION = 22, // Préparation et Formalisation du Bilan
27
+ BALANCE_SHEET_SEND_SIE = 23, // Envoi du bilan SIE
28
+ BALANCE_SHEET_REFUSED = 24, // Bilan Refus (Refus SIE + Refus client)
13
29
  }
14
30
 
15
31
  export enum CardState {
16
32
  TODO = 1,
17
33
  IN_PROGRESS = 2,
18
34
  DONE = 3,
19
- // ETAT "Calculer" pour le front mais pas en base
20
- // - Non Fait => si date passé et tjs dans l'état A faire ou En cours
21
- // - Non Terminée => Sélectionable si l'état est en cours et qu'on arrive à la fin de journée pour reportée. Et passe donc en A faire un jour suivant
22
- // - Reportée => Toutes les cards avec au moins 2 history et dans l'était Todo ou In progress
23
- // - Non Plannifiable => Toutes les cards A faire non plannifiée
35
+ NOT_DONE = 4,
36
+ WAITING_CLIENT = 5,
24
37
  }
25
38
 
26
39
  export enum CardGroupEnum {
@@ -28,9 +41,23 @@ export enum CardGroupEnum {
28
41
  VAT_GROUP = 2,
29
42
  // REINFORCED_CHECKLIST_GROUP = 3,
30
43
  ACCEPTATION_GROUP = 4,
44
+ CARRY_FORWARD = 5, // A nouveaux
45
+ BANK = 6,
46
+ ANNOTATION = 7,
47
+ CLR = 8,
48
+ CUT_OFF = 9,
31
49
  }
32
50
 
33
- export const CardGroup = [
51
+ export interface CardGroupType {
52
+ id: CardGroupEnum;
53
+ label: string;
54
+ types: CardType[];
55
+ roles: Role[];
56
+ maxByDay?: number;
57
+ teamType: TeamType;
58
+ }
59
+
60
+ export const CardGroup: readonly CardGroupType[] = [
34
61
  {
35
62
  id: CardGroupEnum.BALANCE_SHEET_GROUP,
36
63
  label: 'Bilans',
@@ -40,15 +67,20 @@ export const CardGroup = [
40
67
  CardType.BALANCE_SHEET_PREVISIONAL,
41
68
  CardType.BALANCE_SHEET_LIQUIDATION,
42
69
  CardType.BALANCE_SHEET_EXPRESS,
43
- ] as CardType[],
44
- roles: [Role.FRONT_OFFICE],
70
+ CardType.BALANCE_SHEET_PREPARATION,
71
+ CardType.BALANCE_SHEET_SEND_SIE,
72
+ CardType.BALANCE_SHEET_REFUSED,
73
+ ],
74
+ roles: [Role.ACCOUNTANT],
75
+ teamType: TeamType.BALANCESHEET,
45
76
  maxByDay: 3,
46
77
  },
47
78
  {
48
79
  id: CardGroupEnum.VAT_GROUP,
49
80
  label: 'Déclarations',
50
- types: [CardType.VAT] as CardType[],
51
- roles: [Role.FRONT_OFFICE],
81
+ types: [CardType.VAT, CardType.VAT_EXPRESS, CardType.VAT_REFUSED, CardType.ADVANCE_IS, CardType.ADVANCE_IS_REFUSED],
82
+ roles: [Role.ACCOUNTANT],
83
+ teamType: TeamType.VAT,
52
84
  maxByDay: 6,
53
85
  },
54
86
  // {
@@ -61,9 +93,50 @@ export const CardGroup = [
61
93
  {
62
94
  id: CardGroupEnum.ACCEPTATION_GROUP,
63
95
  label: 'Contrôle solde bancaire & annotations',
64
- types: [CardType.CHECK_BALANCE_ANNOTATION_NEW_CLIENT, CardType.CHECK_BALANCE_ANNOTATION] as CardType[],
96
+ types: [CardType.CHECK_BALANCE_ANNOTATION_NEW_CLIENT, CardType.CHECK_BALANCE_ANNOTATION],
65
97
  roles: [Role.DATA_OFFICER],
66
98
  maxByDay: 25,
99
+ teamType: TeamType.ACCEPTATION,
100
+ },
101
+ {
102
+ id: CardGroupEnum.CARRY_FORWARD,
103
+ label: 'A nouveaux',
104
+ types: [CardType.SETUP_AND_INTEGRATION_N_MINUS_1],
105
+ roles: [Role.ACCOUNTANT],
106
+ maxByDay: 3,
107
+ teamType: TeamType.CARRY_FORWARD,
108
+ },
109
+ {
110
+ id: CardGroupEnum.BANK,
111
+ label: 'Banque',
112
+ types: [CardType.SETUP_BANK_ACCOUNT, CardType.UPDATE_BANK_BALANCE],
113
+ roles: [Role.ACCOUNTANT],
114
+ maxByDay: 3,
115
+ teamType: TeamType.BANK,
116
+ },
117
+ {
118
+ id: CardGroupEnum.ANNOTATION,
119
+ label: 'Annotations',
120
+ types: [CardType.UPDATE_ANNOTATIONS, CardType.CONTROL_REVISION_SURVEY],
121
+ roles: [Role.ACCOUNTANT],
122
+ maxByDay: 3,
123
+ teamType: TeamType.ANNOTATION,
124
+ },
125
+ {
126
+ id: CardGroupEnum.CLR,
127
+ label: 'CLR',
128
+ types: [CardType.CLR, CardType.CLR_EXCEPTIONAL_MISSION],
129
+ roles: [Role.ACCOUNTANT],
130
+ maxByDay: 3,
131
+ teamType: TeamType.CLR,
132
+ },
133
+ {
134
+ id: CardGroupEnum.CUT_OFF,
135
+ label: 'Cut Off',
136
+ types: [CardType.CUT_OFF],
137
+ roles: [Role.ACCOUNTANT],
138
+ maxByDay: 3,
139
+ teamType: TeamType.CUT_OFF,
67
140
  },
68
141
  ] as const;
69
142
 
@@ -98,17 +171,54 @@ export const CardTypeLabel = [
98
171
  refLabel: 'BE',
99
172
  groupId: CardGroupEnum.BALANCE_SHEET_GROUP,
100
173
  },
174
+ {
175
+ id: CardType.BALANCE_SHEET_PREPARATION,
176
+ label: 'Préparation et Formalisation du Bilan',
177
+ refLabel: 'PFB',
178
+ groupId: CardGroupEnum.BALANCE_SHEET_GROUP,
179
+ },
180
+ {
181
+ id: CardType.BALANCE_SHEET_SEND_SIE,
182
+ label: 'Envoi du bilan SIE',
183
+ refLabel: 'EBS',
184
+ groupId: CardGroupEnum.BALANCE_SHEET_GROUP,
185
+ },
186
+ {
187
+ id: CardType.BALANCE_SHEET_REFUSED,
188
+ label: 'Bilan Refus SIE',
189
+ refLabel: 'BRS',
190
+ groupId: CardGroupEnum.BALANCE_SHEET_GROUP,
191
+ },
101
192
  {
102
193
  id: CardType.VAT,
103
194
  label: 'TVA',
104
195
  refLabel: 'TVA',
105
196
  groupId: CardGroupEnum.VAT_GROUP,
106
197
  },
107
- // {
108
- // id: CardType.REINFORCED_CHECKLIST,
109
- // label: 'Checklist',
110
- // groupId: CardGroupEnum.REINFORCED_CHECKLIST_GROUP,
111
- // },
198
+ {
199
+ id: CardType.VAT_EXPRESS,
200
+ label: 'TVA EXPRESS',
201
+ refLabel: 'TVAE',
202
+ groupId: CardGroupEnum.VAT_GROUP,
203
+ },
204
+ {
205
+ id: CardType.VAT_REFUSED,
206
+ label: 'TVA Refus SIE',
207
+ refLabel: 'TVARS',
208
+ groupId: CardGroupEnum.VAT_GROUP,
209
+ },
210
+ {
211
+ id: CardType.ADVANCE_IS,
212
+ label: 'Acompte IS',
213
+ refLabel: 'AIS',
214
+ groupId: CardGroupEnum.VAT_GROUP,
215
+ },
216
+ {
217
+ id: CardType.ADVANCE_IS_REFUSED,
218
+ label: 'Acompte Refus SIE',
219
+ refLabel: 'ARS',
220
+ groupId: CardGroupEnum.VAT_GROUP,
221
+ },
112
222
  {
113
223
  id: CardType.CHECK_BALANCE_ANNOTATION_NEW_CLIENT,
114
224
  label: 'Contrôle solde bancaire & mise en place annotation nouveau client',
@@ -121,6 +231,54 @@ export const CardTypeLabel = [
121
231
  refLabel: 'LABC',
122
232
  groupId: CardGroupEnum.ACCEPTATION_GROUP,
123
233
  },
234
+ {
235
+ id: CardType.SETUP_BANK_ACCOUNT,
236
+ label: 'Mise en place banque',
237
+ refLabel: 'MPB',
238
+ groupId: CardGroupEnum.BANK,
239
+ },
240
+ {
241
+ id: CardType.UPDATE_BANK_BALANCE,
242
+ label: 'MAJ du solde bancaire',
243
+ refLabel: 'MSB',
244
+ groupId: CardGroupEnum.BANK,
245
+ },
246
+ {
247
+ id: CardType.UPDATE_ANNOTATIONS,
248
+ label: 'MAJ Annotations',
249
+ refLabel: 'MA',
250
+ groupId: CardGroupEnum.ANNOTATION,
251
+ },
252
+ {
253
+ id: CardType.CONTROL_REVISION_SURVEY,
254
+ label: 'Contrôle/Revision/Sondage',
255
+ refLabel: 'CRS',
256
+ groupId: CardGroupEnum.ANNOTATION,
257
+ },
258
+ {
259
+ id: CardType.SETUP_AND_INTEGRATION_N_MINUS_1,
260
+ label: 'Paramétrage & Intégration N-1',
261
+ refLabel: 'PIN1',
262
+ groupId: CardGroupEnum.CARRY_FORWARD,
263
+ },
264
+ {
265
+ id: CardType.CLR,
266
+ label: 'CLR',
267
+ refLabel: 'CLR',
268
+ groupId: CardGroupEnum.CLR,
269
+ },
270
+ {
271
+ id: CardType.CLR_EXCEPTIONAL_MISSION,
272
+ label: 'CLR mission exceptionnelle (V2)',
273
+ refLabel: 'CLRM',
274
+ groupId: CardGroupEnum.CLR,
275
+ },
276
+ {
277
+ id: CardType.CUT_OFF,
278
+ label: 'Cut Off',
279
+ refLabel: 'CO',
280
+ groupId: CardGroupEnum.CUT_OFF,
281
+ },
124
282
  ] as const;
125
283
 
126
284
  export interface UserCardsStats {
@@ -0,0 +1,10 @@
1
+ export enum TeamType {
2
+ BALANCESHEET = 1,
3
+ VAT = 2,
4
+ ACCEPTATION = 3,
5
+ CARRY_FORWARD = 4,
6
+ BANK = 5,
7
+ ANNOTATION = 6,
8
+ CLR = 7,
9
+ CUT_OFF = 8,
10
+ }
@@ -1,9 +1,18 @@
1
1
  import { Role } from './Role';
2
2
 
3
+ export interface TimeCounterTypeInterface {
4
+ id: number;
5
+ label: string;
6
+ aberrantTime: number;
7
+ limitedRoles: Role[] | null;
8
+ color: string;
9
+ isOverlappable: boolean;
10
+ }
11
+
3
12
  /**
4
13
  * Pour les calendarEvent, utilisé comme type principal
5
14
  */
6
- export const TimeCounterType = {
15
+ export const TimeCounterType: Record<string, TimeCounterTypeInterface> = {
7
16
  ONBOARDING: {
8
17
  id: 1,
9
18
  label: 'OnBoarding',
@@ -382,4 +391,12 @@ export const TimeCounterType = {
382
391
  color: 'fern-dark',
383
392
  isOverlappable: false,
384
393
  },
394
+ CARD: {
395
+ id: 46,
396
+ label: 'Comptallo',
397
+ aberrantTime: 15,
398
+ limitedRoles: null,
399
+ color: 'fire',
400
+ isOverlappable: true,
401
+ }
385
402
  };
@@ -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()
@@ -145,8 +145,12 @@ export class Cerfa2571_2024 {
145
145
  };
146
146
  }
147
147
 
148
+ export type Cerfa2571_2025 = Cerfa2571_2024;
149
+
148
150
  export type Prepare2571Params = {
149
151
  idSociety: number;
150
152
  idExercice: number;
151
153
  idRegistration: number;
152
154
  };
155
+
156
+ export type AnyCerfa2571Century = Cerfa2571_2025 | Cerfa2571_2023;
@@ -61,10 +61,13 @@ export type Cerfa2573_2024 = {
61
61
  transferts: Transfert[];
62
62
  };
63
63
 
64
+ export type Cerfa2573_2025 = Cerfa2573_2024;
65
+ export type AnyCerfa2573Century = Cerfa2573_2024;
66
+
64
67
  export type Prepare2573Params = {
65
68
  idSociety: number;
66
69
  idExercice: number;
67
- values: Cerfa2573_2024;
70
+ values: AnyCerfa2573Century;
68
71
  };
69
72
 
70
73
  export type Cerfa2573_Refund_Input = {
@@ -4,10 +4,9 @@ import {
4
4
  AnyCerfa2033Century,
5
5
  AnyCerfa2035Century,
6
6
  AnyCerfa2065Century,
7
+ AnyCerfa2571Century,
7
8
  AnyCerfa2572Century,
8
9
  Cerfa2069RCI_2024,
9
- Cerfa2571_2023,
10
- Cerfa2571_2024,
11
10
  Cerfa2573_2024,
12
11
  Cerfa3519_2017,
13
12
  FieldForGeneration,
@@ -119,7 +118,7 @@ export type AsponeFormField = { name: string; fields: FieldForGeneration[] };
119
118
  export interface RegistrationPayload {
120
119
  cerfa2573?: Cerfa2573_2024;
121
120
  cerfa2572?: AnyCerfa2572Century;
122
- cerfa2571?: Cerfa2571_2023 | Cerfa2571_2024;
121
+ cerfa2571?: AnyCerfa2571Century;
123
122
  cerfa2031?: AnyCerfa2031Century;
124
123
  cerfa2033?: AnyCerfa2033Century;
125
124
  cerfa2065?: AnyCerfa2065Century;
@@ -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
@@ -551,6 +551,7 @@ export * from './Enum/Marketing';
551
551
  export * from './Enum/EnglishLevel';
552
552
  export * from './Enum/AIPrompt';
553
553
  export * from './Enum/SocietyTypeExportCsv';
554
+ export * from './Enum/TeamType';
554
555
 
555
556
  // Interfaces API
556
557
  export * from './Interface/api/exercice/ReadExercice';