@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.
- package/dist/cjs/api/resources/Card.d.ts +18 -2
- package/dist/cjs/api/resources/Card.d.ts.map +1 -1
- package/dist/cjs/api/resources/Card.js +19 -0
- 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 +110 -22
- package/dist/cjs/types/Enum/Card.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Card.js +162 -26
- package/dist/cjs/types/Enum/Card.js.map +1 -1
- package/dist/cjs/types/Enum/PriceGridClementine.d.ts.map +1 -1
- package/dist/cjs/types/Enum/PriceGridClementine.js +20 -0
- package/dist/cjs/types/Enum/PriceGridClementine.js.map +1 -1
- package/dist/cjs/types/Enum/TeamType.d.ts +16 -0
- package/dist/cjs/types/Enum/TeamType.d.ts.map +1 -0
- package/dist/cjs/types/Enum/TeamType.js +57 -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/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/cjs/utils/prestation.d.ts.map +1 -1
- package/dist/cjs/utils/prestation.js +3 -0
- package/dist/cjs/utils/prestation.js.map +1 -1
- package/dist/mjs/api/resources/Card.d.ts +18 -2
- package/dist/mjs/api/resources/Card.d.ts.map +1 -1
- package/dist/mjs/api/resources/Card.js +19 -0
- 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 +110 -22
- package/dist/mjs/types/Enum/Card.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Card.js +162 -26
- package/dist/mjs/types/Enum/Card.js.map +1 -1
- package/dist/mjs/types/Enum/PriceGridClementine.d.ts.map +1 -1
- package/dist/mjs/types/Enum/PriceGridClementine.js +20 -0
- package/dist/mjs/types/Enum/PriceGridClementine.js.map +1 -1
- package/dist/mjs/types/Enum/TeamType.d.ts +16 -0
- package/dist/mjs/types/Enum/TeamType.d.ts.map +1 -0
- package/dist/mjs/types/Enum/TeamType.js +54 -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/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/dist/mjs/utils/prestation.d.ts.map +1 -1
- package/dist/mjs/utils/prestation.js +3 -0
- package/dist/mjs/utils/prestation.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Card.ts +25 -1
- package/ts/api/resources/SocietyDetail.ts +1 -1
- package/ts/types/Enum/Card.ts +174 -29
- package/ts/types/Enum/PriceGridClementine.ts +20 -0
- package/ts/types/Enum/TeamType.ts +53 -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/index.ts +1 -0
- 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?:
|
|
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
|
|
package/ts/utils/prestation.ts
CHANGED
|
@@ -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;
|