@silexpert/core 1.1.63 → 1.1.65
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/es/api/resources/Society.d.ts +1 -0
- package/es/api/resources/Society.d.ts.map +1 -1
- package/es/api/resources/Society.js +3 -0
- package/es/api/resources/Society.js.map +1 -1
- package/es/api/resources/User.d.ts +8 -1
- package/es/api/resources/User.d.ts.map +1 -1
- package/es/api/resources/User.js +9 -0
- package/es/api/resources/User.js.map +1 -1
- package/es/types/Enum/BalanceSheet.d.ts +38 -3
- package/es/types/Enum/BalanceSheet.d.ts.map +1 -1
- package/es/types/Enum/BalanceSheet.js +42 -2
- package/es/types/Enum/BalanceSheet.js.map +1 -1
- package/es/types/Enum/BankCollectingState.d.ts +4 -1
- package/es/types/Enum/BankCollectingState.d.ts.map +1 -1
- package/es/types/Enum/BankCollectingState.js +16 -1
- package/es/types/Enum/BankCollectingState.js.map +1 -1
- package/es/types/Enum/Supervision.d.ts +8 -1
- package/es/types/Enum/Supervision.d.ts.map +1 -1
- package/es/types/Enum/Supervision.js +51 -0
- package/es/types/Enum/Supervision.js.map +1 -1
- package/es/types/Interface/api/statistic/ExitRequest.d.ts +2 -0
- package/es/types/Interface/api/statistic/ExitRequest.d.ts.map +1 -1
- package/es/types/Interface/api/statistic/ExitRequest.js.map +1 -1
- package/es/types/Interface/api/user/QuerySocieties.d.ts +4 -0
- package/es/types/Interface/api/user/QuerySocieties.d.ts.map +1 -1
- package/es/types/Interface/api/user/QuerySocieties.js +10 -0
- package/es/types/Interface/api/user/QuerySocieties.js.map +1 -1
- package/es/utils/vat/registration.d.ts.map +1 -1
- package/es/utils/vat/registration.js +4 -3
- package/es/utils/vat/registration.js.map +1 -1
- package/js/api/resources/Society.js +3 -0
- package/js/api/resources/Society.js.map +1 -1
- package/js/api/resources/User.js +11 -0
- package/js/api/resources/User.js.map +1 -1
- package/js/types/Enum/BalanceSheet.js +37 -2
- package/js/types/Enum/BalanceSheet.js.map +1 -1
- package/js/types/Enum/BankCollectingState.js +18 -4
- package/js/types/Enum/BankCollectingState.js.map +1 -1
- package/js/types/Enum/Supervision.js +42 -0
- package/js/types/Enum/Supervision.js.map +1 -1
- package/js/types/Interface/api/statistic/ExitRequest.js.map +1 -1
- package/js/types/Interface/api/user/QuerySocieties.js +6 -1
- package/js/types/Interface/api/user/QuerySocieties.js.map +1 -1
- package/js/utils/vat/registration.js +4 -3
- package/js/utils/vat/registration.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Society.ts +4 -0
- package/ts/api/resources/User.ts +13 -1
- package/ts/types/Enum/BalanceSheet.ts +42 -2
- package/ts/types/Enum/BankCollectingState.ts +17 -1
- package/ts/types/Enum/Supervision.ts +53 -1
- package/ts/types/Interface/api/statistic/ExitRequest.ts +3 -1
- package/ts/types/Interface/api/user/QuerySocieties.ts +9 -0
- package/ts/utils/vat/registration.ts +1 -0
|
@@ -3,22 +3,38 @@ export enum BankCollectingState {
|
|
|
3
3
|
PENDING_COLLECTION = 2,
|
|
4
4
|
INVOICED = 3,
|
|
5
5
|
REFUSED_INVOICE = 4,
|
|
6
|
+
UNPAID = 5,
|
|
6
7
|
}
|
|
7
8
|
|
|
8
9
|
export const BankCollectingStateList = [
|
|
9
10
|
{
|
|
10
11
|
id: BankCollectingState.INVOICE_IN_PROGRESS,
|
|
11
12
|
label: 'Facturation en cours',
|
|
13
|
+
color: 'yellow darken-3',
|
|
14
|
+
textColor: 'yellow--text text--darken-1',
|
|
12
15
|
},
|
|
13
16
|
{
|
|
14
17
|
id: BankCollectingState.PENDING_COLLECTION,
|
|
15
18
|
label: 'Encaissement en att.',
|
|
19
|
+
color: 'yellow darken-3',
|
|
20
|
+
textColor: 'yellow--text text--darken-1',
|
|
16
21
|
},
|
|
17
22
|
{
|
|
18
23
|
id: BankCollectingState.INVOICED,
|
|
19
24
|
label: 'Facturé et encaissé',
|
|
25
|
+
color: 'green darken-4',
|
|
26
|
+
textColor: 'green--text ',
|
|
20
27
|
},
|
|
21
28
|
{
|
|
22
29
|
id: BankCollectingState.REFUSED_INVOICE,
|
|
23
30
|
label: 'Facturation refusée',
|
|
24
|
-
|
|
31
|
+
color: 'red lighten-2',
|
|
32
|
+
textColor: 'red--text red--lighten-3',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
id: BankCollectingState.UNPAID,
|
|
36
|
+
label: 'Impayé',
|
|
37
|
+
color: 'red lighten-2',
|
|
38
|
+
textColor: 'red--text red--lighten-3',
|
|
39
|
+
},
|
|
40
|
+
];
|
|
@@ -6,4 +6,56 @@ export enum Supervision {
|
|
|
6
6
|
ATTEST_REFUSED = 8,
|
|
7
7
|
ATTEST_WITH_OBSERVATIONS = 9,
|
|
8
8
|
TO_REVIEW = 10,
|
|
9
|
-
|
|
9
|
+
SUPERVISION_WAITING = 11,
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export const SupervisionStateList = [
|
|
13
|
+
{
|
|
14
|
+
id: Supervision.WAITING,
|
|
15
|
+
label: 'En attente',
|
|
16
|
+
color: 'grey',
|
|
17
|
+
textColor: 'grey--text',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
id: Supervision.SIGNED,
|
|
21
|
+
label: 'Signé',
|
|
22
|
+
color: 'green darken-1',
|
|
23
|
+
textColor: 'green--text text--darken-1',
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
id: Supervision.TO_ATTEST,
|
|
27
|
+
label: 'A attesté',
|
|
28
|
+
color: 'yellow darken-3',
|
|
29
|
+
textColor: 'yellow--text text--darken-1',
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
id: Supervision.ATTESTED,
|
|
33
|
+
label: 'Attesté',
|
|
34
|
+
color: 'green darken-1',
|
|
35
|
+
textColor: 'green--text text--darken-1',
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
id: Supervision.ATTEST_REFUSED,
|
|
39
|
+
label: 'Attesté avec refus',
|
|
40
|
+
color: 'green darken-1',
|
|
41
|
+
textColor: 'green--text text--darken-1',
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
id: Supervision.ATTEST_WITH_OBSERVATIONS,
|
|
45
|
+
label: 'Attesté avec observations',
|
|
46
|
+
color: 'green darken-1',
|
|
47
|
+
textColor: 'green--text text--darken-1',
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
id: Supervision.TO_REVIEW,
|
|
51
|
+
label: 'A revoir',
|
|
52
|
+
color: 'red lighten-2',
|
|
53
|
+
textColor: 'red--text red--lighten-3',
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
id: Supervision.SUPERVISION_WAITING,
|
|
57
|
+
label: 'En cours de supervision',
|
|
58
|
+
color: 'yellow darken-3',
|
|
59
|
+
textColor: 'yellow--text text--darken-1',
|
|
60
|
+
},
|
|
61
|
+
];
|
|
@@ -3,7 +3,8 @@ import { ISociety } from '../../models/ISociety';
|
|
|
3
3
|
export interface CountLateToDoDone {
|
|
4
4
|
late: string[],
|
|
5
5
|
toDo: string[],
|
|
6
|
-
done: string[]
|
|
6
|
+
done: string[],
|
|
7
|
+
doneByDefault?: string[],
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
export interface Count {
|
|
@@ -88,6 +89,7 @@ export interface StatisticBalanceSheetDetail {
|
|
|
88
89
|
toRevised: string[],
|
|
89
90
|
toSupervised: string[],
|
|
90
91
|
acceptedSIE: string[],
|
|
92
|
+
acceptedSIEByDefault: string[],
|
|
91
93
|
ARCAttested: string[],
|
|
92
94
|
ARCNoAttested: string[],
|
|
93
95
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { IsNumber, IsOptional } from 'class-validator';
|
|
1
2
|
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
|
+
import { SubscriptionType } from '../../../Enum/SubscriptionType';
|
|
2
4
|
|
|
3
5
|
export class QuerySocieties {
|
|
4
6
|
@ApiProperty({
|
|
@@ -15,4 +17,11 @@ export class QuerySocieties {
|
|
|
15
17
|
example: 100,
|
|
16
18
|
})
|
|
17
19
|
idTypeSubscription: number;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export class QueryUserSociety {
|
|
23
|
+
@ApiPropertyOptional()
|
|
24
|
+
@IsNumber()
|
|
25
|
+
@IsOptional()
|
|
26
|
+
idSubscriptionType?: SubscriptionType;
|
|
18
27
|
}
|
|
@@ -58,6 +58,7 @@ export function getTicks(registration: ReadRegistration): ReadRegistrationTick[]
|
|
|
58
58
|
declarations.forEach((declaration) => {
|
|
59
59
|
const response: ReadRegistrationTick[] = [
|
|
60
60
|
{
|
|
61
|
+
type: isDefined(declaration?.type) && isDefined(declaration?.declarationType?.label) ? `${declaration?.type} - ${declaration?.declarationType?.label}` : null,
|
|
61
62
|
state: RegistrationTickState.FINISHED,
|
|
62
63
|
title: 'Déclaration envoyée',
|
|
63
64
|
date: registration.sendAt ? dayjs(registration.sendAt).toISOString() : null,
|