@silexpert/core 1.3.35 → 1.3.37-1
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.
- package/dist/cjs/api/resources/Card.d.ts +2 -2
- package/dist/cjs/api/resources/Card.d.ts.map +1 -1
- package/dist/cjs/api/resources/Card.js.map +1 -1
- package/dist/cjs/api/resources/SocietyDetail.js +1 -1
- package/dist/cjs/api/resources/SocietyDetail.js.map +1 -1
- package/dist/cjs/types/Enum/Card.d.ts +129 -3
- package/dist/cjs/types/Enum/Card.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Card.js +152 -13
- package/dist/cjs/types/Enum/Card.js.map +1 -1
- package/dist/cjs/types/Enum/JobTitle.d.ts +3 -1
- package/dist/cjs/types/Enum/JobTitle.d.ts.map +1 -1
- package/dist/cjs/types/Enum/JobTitle.js +12 -0
- package/dist/cjs/types/Enum/JobTitle.js.map +1 -1
- package/dist/cjs/types/Enum/TeamType.d.ts +8 -0
- package/dist/cjs/types/Enum/TeamType.d.ts.map +1 -0
- package/dist/cjs/types/Enum/TeamType.js +12 -0
- package/dist/cjs/types/Enum/TeamType.js.map +1 -0
- package/dist/cjs/types/Enum/TimeCounterType.d.ts +9 -362
- package/dist/cjs/types/Enum/TimeCounterType.d.ts.map +1 -1
- package/dist/cjs/types/Enum/TimeCounterType.js +8 -0
- package/dist/cjs/types/Enum/TimeCounterType.js.map +1 -1
- package/dist/cjs/types/Interface/api/card/UpdateCard.d.ts +11 -1
- package/dist/cjs/types/Interface/api/card/UpdateCard.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/card/UpdateCard.js +38 -2
- package/dist/cjs/types/Interface/api/card/UpdateCard.js.map +1 -1
- package/dist/cjs/types/Interface/api/team/QueryUpdate.d.ts +2 -0
- package/dist/cjs/types/Interface/api/team/QueryUpdate.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/team/QueryUpdate.js +7 -0
- package/dist/cjs/types/Interface/api/team/QueryUpdate.js.map +1 -1
- package/dist/cjs/types/Interface/models/ICard.d.ts +20 -0
- package/dist/cjs/types/Interface/models/ICard.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/ICard.js.map +1 -1
- package/dist/cjs/types/Interface/models/ITeam.d.ts +2 -0
- package/dist/cjs/types/Interface/models/ITeam.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/ITeam.js.map +1 -1
- package/dist/cjs/types/Interface/models/IUser.d.ts +1 -0
- package/dist/cjs/types/Interface/models/IUser.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IUser.js.map +1 -1
- package/dist/cjs/types/index.d.ts +1 -0
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +1 -0
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/mjs/api/resources/Card.d.ts +2 -2
- package/dist/mjs/api/resources/Card.d.ts.map +1 -1
- package/dist/mjs/api/resources/Card.js.map +1 -1
- package/dist/mjs/api/resources/SocietyDetail.js +1 -1
- package/dist/mjs/api/resources/SocietyDetail.js.map +1 -1
- package/dist/mjs/types/Enum/Card.d.ts +129 -3
- package/dist/mjs/types/Enum/Card.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Card.js +152 -13
- package/dist/mjs/types/Enum/Card.js.map +1 -1
- package/dist/mjs/types/Enum/JobTitle.d.ts +3 -1
- package/dist/mjs/types/Enum/JobTitle.d.ts.map +1 -1
- package/dist/mjs/types/Enum/JobTitle.js +12 -0
- package/dist/mjs/types/Enum/JobTitle.js.map +1 -1
- package/dist/mjs/types/Enum/TeamType.d.ts +8 -0
- package/dist/mjs/types/Enum/TeamType.d.ts.map +1 -0
- package/dist/mjs/types/Enum/TeamType.js +9 -0
- package/dist/mjs/types/Enum/TeamType.js.map +1 -0
- package/dist/mjs/types/Enum/TimeCounterType.d.ts +9 -362
- package/dist/mjs/types/Enum/TimeCounterType.d.ts.map +1 -1
- package/dist/mjs/types/Enum/TimeCounterType.js +8 -0
- package/dist/mjs/types/Enum/TimeCounterType.js.map +1 -1
- package/dist/mjs/types/Interface/api/card/UpdateCard.d.ts +11 -1
- package/dist/mjs/types/Interface/api/card/UpdateCard.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/card/UpdateCard.js +42 -2
- package/dist/mjs/types/Interface/api/card/UpdateCard.js.map +1 -1
- package/dist/mjs/types/Interface/api/team/QueryUpdate.d.ts +2 -0
- package/dist/mjs/types/Interface/api/team/QueryUpdate.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/team/QueryUpdate.js +9 -1
- package/dist/mjs/types/Interface/api/team/QueryUpdate.js.map +1 -1
- package/dist/mjs/types/Interface/models/ICard.d.ts +20 -0
- package/dist/mjs/types/Interface/models/ICard.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/ICard.js.map +1 -1
- package/dist/mjs/types/Interface/models/ITeam.d.ts +2 -0
- package/dist/mjs/types/Interface/models/ITeam.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/ITeam.js.map +1 -1
- package/dist/mjs/types/Interface/models/IUser.d.ts +1 -0
- package/dist/mjs/types/Interface/models/IUser.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IUser.js.map +1 -1
- package/dist/mjs/types/index.d.ts +1 -0
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +1 -0
- package/dist/mjs/types/index.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Card.ts +2 -1
- package/ts/api/resources/SocietyDetail.ts +1 -1
- package/ts/types/Enum/Card.ts +152 -13
- package/ts/types/Enum/JobTitle.ts +12 -0
- package/ts/types/Enum/TeamType.ts +7 -0
- package/ts/types/Enum/TimeCounterType.ts +18 -1
- package/ts/types/Interface/api/card/UpdateCard.ts +32 -2
- package/ts/types/Interface/api/team/QueryUpdate.ts +7 -1
- package/ts/types/Interface/models/ICard.ts +20 -0
- package/ts/types/Interface/models/ITeam.ts +2 -0
- package/ts/types/Interface/models/IUser.ts +1 -0
- package/ts/types/index.ts +1 -0
package/ts/types/Enum/Card.ts
CHANGED
|
@@ -10,17 +10,28 @@ export enum CardType {
|
|
|
10
10
|
// REINFORCED_CHECKLIST = 7,
|
|
11
11
|
CHECK_BALANCE_ANNOTATION_NEW_CLIENT = 8,
|
|
12
12
|
CHECK_BALANCE_ANNOTATION = 9,
|
|
13
|
+
SETUP_BANK_ACCOUNT = 10, // Mise en place banque
|
|
14
|
+
UPDATE_BANK_BALANCE = 11, // MAJ du solde bancaire
|
|
15
|
+
UPDATE_ANNOTATIONS = 12, // MAJ Annotations
|
|
16
|
+
CONTROL_REVISION_SURVEY = 13, // Contrôle/Revision/Sondage
|
|
17
|
+
SETUP_AND_INTEGRATION_N_MINUS_1 = 14, // Paramétrage & Intégration N-1
|
|
18
|
+
VAT_REFUSED = 15, // TVA Refus (Refus SIE + Refus client)
|
|
19
|
+
ADVANCE_IS = 16, // Acompte IS
|
|
20
|
+
VAT_EXPRESS = 17, // TVA EXPRESS
|
|
21
|
+
ADVANCE_IS_REFUSED = 18, // Acompte Refus SIE
|
|
22
|
+
CLR = 19, // CLR
|
|
23
|
+
CLR_EXCEPTIONAL_MISSION = 20, // CLR mission exceptionnelle (V2)
|
|
24
|
+
CUT_OFF = 21, // Cut Off
|
|
25
|
+
BALANCE_SHEET_PREPARATION = 22, // Préparation et Formalisation du Bilan
|
|
26
|
+
BALANCE_SHEET_SEND_SIE = 23, // Envoi du bilan SIE
|
|
27
|
+
BALANCE_SHEET_REFUSED = 24, // Bilan Refus (Refus SIE + Refus client)
|
|
13
28
|
}
|
|
14
29
|
|
|
15
30
|
export enum CardState {
|
|
16
31
|
TODO = 1,
|
|
17
32
|
IN_PROGRESS = 2,
|
|
18
33
|
DONE = 3,
|
|
19
|
-
|
|
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
|
|
34
|
+
NOT_DONE = 4,
|
|
24
35
|
}
|
|
25
36
|
|
|
26
37
|
export enum CardGroupEnum {
|
|
@@ -28,6 +39,11 @@ export enum CardGroupEnum {
|
|
|
28
39
|
VAT_GROUP = 2,
|
|
29
40
|
// REINFORCED_CHECKLIST_GROUP = 3,
|
|
30
41
|
ACCEPTATION_GROUP = 4,
|
|
42
|
+
CARRY_FORWARD = 5, // A nouveaux
|
|
43
|
+
BANK = 6,
|
|
44
|
+
ANNOTATION = 7,
|
|
45
|
+
CLR = 8,
|
|
46
|
+
CUT_OFF = 9,
|
|
31
47
|
}
|
|
32
48
|
|
|
33
49
|
export const CardGroup = [
|
|
@@ -40,15 +56,18 @@ export const CardGroup = [
|
|
|
40
56
|
CardType.BALANCE_SHEET_PREVISIONAL,
|
|
41
57
|
CardType.BALANCE_SHEET_LIQUIDATION,
|
|
42
58
|
CardType.BALANCE_SHEET_EXPRESS,
|
|
59
|
+
CardType.BALANCE_SHEET_PREPARATION,
|
|
60
|
+
CardType.BALANCE_SHEET_SEND_SIE,
|
|
61
|
+
CardType.BALANCE_SHEET_REFUSED,
|
|
43
62
|
] as CardType[],
|
|
44
|
-
roles: [Role.
|
|
63
|
+
roles: [Role.ACCOUNTANT],
|
|
45
64
|
maxByDay: 3,
|
|
46
65
|
},
|
|
47
66
|
{
|
|
48
67
|
id: CardGroupEnum.VAT_GROUP,
|
|
49
68
|
label: 'Déclarations',
|
|
50
|
-
types: [CardType.VAT] as CardType[],
|
|
51
|
-
roles: [Role.
|
|
69
|
+
types: [CardType.VAT, CardType.VAT_EXPRESS, CardType.VAT_REFUSED, CardType.ADVANCE_IS, CardType.ADVANCE_IS_REFUSED] as CardType[],
|
|
70
|
+
roles: [Role.ACCOUNTANT],
|
|
52
71
|
maxByDay: 6,
|
|
53
72
|
},
|
|
54
73
|
// {
|
|
@@ -65,6 +84,41 @@ export const CardGroup = [
|
|
|
65
84
|
roles: [Role.DATA_OFFICER],
|
|
66
85
|
maxByDay: 25,
|
|
67
86
|
},
|
|
87
|
+
{
|
|
88
|
+
id: CardGroupEnum.CARRY_FORWARD,
|
|
89
|
+
label: 'A nouveaux',
|
|
90
|
+
types: [CardType.SETUP_AND_INTEGRATION_N_MINUS_1] as CardType[],
|
|
91
|
+
roles: [Role.ACCOUNTANT],
|
|
92
|
+
maxByDay: 3,
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
id: CardGroupEnum.BANK,
|
|
96
|
+
label: 'Banque',
|
|
97
|
+
types: [CardType.SETUP_BANK_ACCOUNT, CardType.UPDATE_BANK_BALANCE] as CardType[],
|
|
98
|
+
roles: [Role.ACCOUNTANT],
|
|
99
|
+
maxByDay: 3,
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
id: CardGroupEnum.ANNOTATION,
|
|
103
|
+
label: 'Annotations',
|
|
104
|
+
types: [CardType.UPDATE_ANNOTATIONS, CardType.CONTROL_REVISION_SURVEY] as CardType[],
|
|
105
|
+
roles: [Role.ACCOUNTANT],
|
|
106
|
+
maxByDay: 3,
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
id: CardGroupEnum.CLR,
|
|
110
|
+
label: 'CLR',
|
|
111
|
+
types: [CardType.CLR, CardType.CLR_EXCEPTIONAL_MISSION] as CardType[],
|
|
112
|
+
roles: [Role.ACCOUNTANT],
|
|
113
|
+
maxByDay: 3,
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
id: CardGroupEnum.CUT_OFF,
|
|
117
|
+
label: 'Cut Off',
|
|
118
|
+
types: [CardType.CUT_OFF] as CardType[],
|
|
119
|
+
roles: [Role.ACCOUNTANT],
|
|
120
|
+
maxByDay: 3,
|
|
121
|
+
},
|
|
68
122
|
] as const;
|
|
69
123
|
|
|
70
124
|
export const CardTypeLabel = [
|
|
@@ -98,17 +152,54 @@ export const CardTypeLabel = [
|
|
|
98
152
|
refLabel: 'BE',
|
|
99
153
|
groupId: CardGroupEnum.BALANCE_SHEET_GROUP,
|
|
100
154
|
},
|
|
155
|
+
{
|
|
156
|
+
id: CardType.BALANCE_SHEET_PREPARATION,
|
|
157
|
+
label: 'Préparation et Formalisation du Bilan',
|
|
158
|
+
refLabel: 'PFB',
|
|
159
|
+
groupId: CardGroupEnum.BALANCE_SHEET_GROUP,
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
id: CardType.BALANCE_SHEET_SEND_SIE,
|
|
163
|
+
label: 'Envoi du bilan SIE',
|
|
164
|
+
refLabel: 'EBS',
|
|
165
|
+
groupId: CardGroupEnum.BALANCE_SHEET_GROUP,
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
id: CardType.BALANCE_SHEET_REFUSED,
|
|
169
|
+
label: 'Bilan Refus SIE',
|
|
170
|
+
refLabel: 'BRS',
|
|
171
|
+
groupId: CardGroupEnum.BALANCE_SHEET_GROUP,
|
|
172
|
+
},
|
|
101
173
|
{
|
|
102
174
|
id: CardType.VAT,
|
|
103
175
|
label: 'TVA',
|
|
104
176
|
refLabel: 'TVA',
|
|
105
177
|
groupId: CardGroupEnum.VAT_GROUP,
|
|
106
178
|
},
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
179
|
+
{
|
|
180
|
+
id: CardType.VAT_EXPRESS,
|
|
181
|
+
label: 'TVA EXPRESS',
|
|
182
|
+
refLabel: 'TVAE',
|
|
183
|
+
groupId: CardGroupEnum.VAT_GROUP,
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
id: CardType.VAT_REFUSED,
|
|
187
|
+
label: 'TVA Refus SIE',
|
|
188
|
+
refLabel: 'TVARS',
|
|
189
|
+
groupId: CardGroupEnum.VAT_GROUP,
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
id: CardType.ADVANCE_IS,
|
|
193
|
+
label: 'Acompte IS',
|
|
194
|
+
refLabel: 'AIS',
|
|
195
|
+
groupId: CardGroupEnum.VAT_GROUP,
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
id: CardType.ADVANCE_IS_REFUSED,
|
|
199
|
+
label: 'Acompte Refus SIE',
|
|
200
|
+
refLabel: 'ARS',
|
|
201
|
+
groupId: CardGroupEnum.VAT_GROUP,
|
|
202
|
+
},
|
|
112
203
|
{
|
|
113
204
|
id: CardType.CHECK_BALANCE_ANNOTATION_NEW_CLIENT,
|
|
114
205
|
label: 'Contrôle solde bancaire & mise en place annotation nouveau client',
|
|
@@ -121,6 +212,54 @@ export const CardTypeLabel = [
|
|
|
121
212
|
refLabel: 'LABC',
|
|
122
213
|
groupId: CardGroupEnum.ACCEPTATION_GROUP,
|
|
123
214
|
},
|
|
215
|
+
{
|
|
216
|
+
id: CardType.SETUP_BANK_ACCOUNT,
|
|
217
|
+
label: 'Mise en place banque',
|
|
218
|
+
refLabel: 'MPB',
|
|
219
|
+
groupId: CardGroupEnum.BANK,
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
id: CardType.UPDATE_BANK_BALANCE,
|
|
223
|
+
label: 'MAJ du solde bancaire',
|
|
224
|
+
refLabel: 'MSB',
|
|
225
|
+
groupId: CardGroupEnum.BANK,
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
id: CardType.UPDATE_ANNOTATIONS,
|
|
229
|
+
label: 'MAJ Annotations',
|
|
230
|
+
refLabel: 'MA',
|
|
231
|
+
groupId: CardGroupEnum.ANNOTATION,
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
id: CardType.CONTROL_REVISION_SURVEY,
|
|
235
|
+
label: 'Contrôle/Revision/Sondage',
|
|
236
|
+
refLabel: 'CRS',
|
|
237
|
+
groupId: CardGroupEnum.ANNOTATION,
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
id: CardType.SETUP_AND_INTEGRATION_N_MINUS_1,
|
|
241
|
+
label: 'Paramétrage & Intégration N-1',
|
|
242
|
+
refLabel: 'PIN1',
|
|
243
|
+
groupId: CardGroupEnum.CARRY_FORWARD,
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
id: CardType.CLR,
|
|
247
|
+
label: 'CLR',
|
|
248
|
+
refLabel: 'CLR',
|
|
249
|
+
groupId: CardGroupEnum.CLR,
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
id: CardType.CLR_EXCEPTIONAL_MISSION,
|
|
253
|
+
label: 'CLR mission exceptionnelle (V2)',
|
|
254
|
+
refLabel: 'CLRM',
|
|
255
|
+
groupId: CardGroupEnum.CLR,
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
id: CardType.CUT_OFF,
|
|
259
|
+
label: 'Cut Off',
|
|
260
|
+
refLabel: 'CO',
|
|
261
|
+
groupId: CardGroupEnum.CUT_OFF,
|
|
262
|
+
},
|
|
124
263
|
] as const;
|
|
125
264
|
|
|
126
265
|
export interface UserCardsStats {
|
|
@@ -39,6 +39,8 @@ export enum JobTitle {
|
|
|
39
39
|
RECRUITMENT_OFFICER = 38,
|
|
40
40
|
HUMAN_RESOURCES_ASSISTANT = 39,
|
|
41
41
|
HUMAN_RESOURCES = 40,
|
|
42
|
+
DEVELOPER = 41,
|
|
43
|
+
CAMERA_EDITOR = 42,
|
|
42
44
|
}
|
|
43
45
|
|
|
44
46
|
export const JobTitleList: Array<{ id: JobTitle; menText: string; womenText: string }> = [
|
|
@@ -242,4 +244,14 @@ export const JobTitleList: Array<{ id: JobTitle; menText: string; womenText: str
|
|
|
242
244
|
menText: 'Responsable Ressources Humaines',
|
|
243
245
|
womenText: 'Responsable Ressources Humaines',
|
|
244
246
|
},
|
|
247
|
+
{
|
|
248
|
+
id: JobTitle.DEVELOPER,
|
|
249
|
+
menText: 'Développeur web',
|
|
250
|
+
womenText: 'Développeur web',
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
id: JobTitle.CAMERA_EDITOR,
|
|
254
|
+
menText: 'Monteur / Cadreur',
|
|
255
|
+
womenText: 'Monteur / Cadreur',
|
|
256
|
+
},
|
|
245
257
|
];
|
|
@@ -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?:
|
|
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
|
@@ -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';
|