@silexpert/core 1.3.37-1 → 1.3.37-4
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 +17 -1
- 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/types/Enum/Account.d.ts +4 -0
- package/dist/cjs/types/Enum/Account.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Account.js +4 -0
- package/dist/cjs/types/Enum/Account.js.map +1 -1
- package/dist/cjs/types/Enum/Card.d.ts +12 -50
- package/dist/cjs/types/Enum/Card.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Card.js +10 -0
- package/dist/cjs/types/Enum/Card.js.map +1 -1
- package/dist/cjs/types/Enum/TeamType.d.ts +8 -5
- package/dist/cjs/types/Enum/TeamType.d.ts.map +1 -1
- package/dist/cjs/types/Enum/TeamType.js +8 -5
- package/dist/cjs/types/Enum/TeamType.js.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2571.d.ts +2 -0
- package/dist/cjs/types/Interface/api/cerfa/2571.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2571.js.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2573.d.ts +3 -1
- package/dist/cjs/types/Interface/api/cerfa/2573.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2573.js.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/ReadCerfa.d.ts +2 -2
- package/dist/cjs/types/Interface/api/cerfa/ReadCerfa.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/ReadCerfa.js.map +1 -1
- package/dist/mjs/api/resources/Card.d.ts +17 -1
- 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/types/Enum/Account.d.ts +4 -0
- package/dist/mjs/types/Enum/Account.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Account.js +4 -0
- package/dist/mjs/types/Enum/Account.js.map +1 -1
- package/dist/mjs/types/Enum/Card.d.ts +12 -50
- package/dist/mjs/types/Enum/Card.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Card.js +10 -0
- package/dist/mjs/types/Enum/Card.js.map +1 -1
- package/dist/mjs/types/Enum/TeamType.d.ts +8 -5
- package/dist/mjs/types/Enum/TeamType.d.ts.map +1 -1
- package/dist/mjs/types/Enum/TeamType.js +8 -5
- package/dist/mjs/types/Enum/TeamType.js.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2571.d.ts +2 -0
- package/dist/mjs/types/Interface/api/cerfa/2571.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2571.js.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2573.d.ts +3 -1
- package/dist/mjs/types/Interface/api/cerfa/2573.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2573.js.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/ReadCerfa.d.ts +2 -2
- package/dist/mjs/types/Interface/api/cerfa/ReadCerfa.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/ReadCerfa.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Card.ts +23 -0
- package/ts/types/Enum/Account.ts +4 -0
- package/ts/types/Enum/Card.ts +28 -9
- package/ts/types/Enum/TeamType.ts +8 -5
- package/ts/types/Interface/api/cerfa/2571.ts +4 -0
- package/ts/types/Interface/api/cerfa/2573.ts +4 -1
- package/ts/types/Interface/api/cerfa/ReadCerfa.ts +2 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "1.3.37-
|
|
3
|
+
"version": "1.3.37-4",
|
|
4
4
|
"description": "Silex Core perform HTTP Request and object binding. Silex core helps developers to retrieve and return formatted object",
|
|
5
5
|
"homepage": "https://gitlab.compta-clementine.fr/dev/silex-api",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
package/ts/api/resources/Card.ts
CHANGED
|
@@ -14,6 +14,8 @@ import {
|
|
|
14
14
|
QueryInternalCardsStats,
|
|
15
15
|
InternalCardStats,
|
|
16
16
|
BasePaginate,
|
|
17
|
+
UpdateCardV2,
|
|
18
|
+
CardType,
|
|
17
19
|
} from '../../types';
|
|
18
20
|
|
|
19
21
|
export class Card extends Resource {
|
|
@@ -61,6 +63,9 @@ export class Card extends Resource {
|
|
|
61
63
|
});
|
|
62
64
|
}
|
|
63
65
|
|
|
66
|
+
/**
|
|
67
|
+
* @deprecated Use updateV2 instead
|
|
68
|
+
*/
|
|
64
69
|
update(id: number, data: UpdateCard): Promise<ICard> {
|
|
65
70
|
return this.axios.$put(`/cards/${id}`, data);
|
|
66
71
|
}
|
|
@@ -69,15 +74,33 @@ export class Card extends Resource {
|
|
|
69
74
|
return this.axios.$delete(`/cards/${id}`);
|
|
70
75
|
}
|
|
71
76
|
|
|
77
|
+
/**
|
|
78
|
+
* @deprecated comptallo v1 endpoint
|
|
79
|
+
*/
|
|
72
80
|
modifyTeamPlanning(data: ModifyTeamPlanning): Promise<true> {
|
|
73
81
|
return this.axios.$put('/cards/assign/modify-team-planning', data);
|
|
74
82
|
}
|
|
75
83
|
|
|
84
|
+
/**
|
|
85
|
+
* @deprecated comptallo v1 endpoint
|
|
86
|
+
*/
|
|
76
87
|
modifyExercisePlanning(data: ModifyExercisePlanning): Promise<true> {
|
|
77
88
|
return this.axios.$put('/cards/assign/modify-exercise-planning', data);
|
|
78
89
|
}
|
|
79
90
|
|
|
91
|
+
/**
|
|
92
|
+
* @deprecated comptallo v1 endpoint
|
|
93
|
+
*/
|
|
80
94
|
organizeFutureBalanceSheets(data: OrganizeBalanceSheets): Promise<OrganizeBalanceSheetsResponse> {
|
|
81
95
|
return this.axios.$post('/cards/accountant/organize/future-balance-sheets', data);
|
|
82
96
|
}
|
|
97
|
+
|
|
98
|
+
updateV2(idCard: number, data: UpdateCardV2): Promise<ICard> {
|
|
99
|
+
return this.axios.$put(`/cards/${idCard}/v2`, data);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
// TODO: improve types
|
|
103
|
+
assignCard(payload: { type: CardType }): Promise<ICard> {
|
|
104
|
+
return this.axios.$post('/cards/assign', payload);
|
|
105
|
+
}
|
|
83
106
|
}
|
package/ts/types/Enum/Account.ts
CHANGED
package/ts/types/Enum/Card.ts
CHANGED
|
@@ -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,
|
|
@@ -32,6 +33,7 @@ export enum CardState {
|
|
|
32
33
|
IN_PROGRESS = 2,
|
|
33
34
|
DONE = 3,
|
|
34
35
|
NOT_DONE = 4,
|
|
36
|
+
WAITING_CLIENT = 5,
|
|
35
37
|
}
|
|
36
38
|
|
|
37
39
|
export enum CardGroupEnum {
|
|
@@ -46,7 +48,16 @@ export enum CardGroupEnum {
|
|
|
46
48
|
CUT_OFF = 9,
|
|
47
49
|
}
|
|
48
50
|
|
|
49
|
-
export
|
|
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[] = [
|
|
50
61
|
{
|
|
51
62
|
id: CardGroupEnum.BALANCE_SHEET_GROUP,
|
|
52
63
|
label: 'Bilans',
|
|
@@ -59,15 +70,17 @@ export const CardGroup = [
|
|
|
59
70
|
CardType.BALANCE_SHEET_PREPARATION,
|
|
60
71
|
CardType.BALANCE_SHEET_SEND_SIE,
|
|
61
72
|
CardType.BALANCE_SHEET_REFUSED,
|
|
62
|
-
]
|
|
73
|
+
],
|
|
63
74
|
roles: [Role.ACCOUNTANT],
|
|
75
|
+
teamType: TeamType.BALANCESHEET,
|
|
64
76
|
maxByDay: 3,
|
|
65
77
|
},
|
|
66
78
|
{
|
|
67
79
|
id: CardGroupEnum.VAT_GROUP,
|
|
68
80
|
label: 'Déclarations',
|
|
69
|
-
types: [CardType.VAT, CardType.VAT_EXPRESS, CardType.VAT_REFUSED, CardType.ADVANCE_IS, CardType.ADVANCE_IS_REFUSED]
|
|
81
|
+
types: [CardType.VAT, CardType.VAT_EXPRESS, CardType.VAT_REFUSED, CardType.ADVANCE_IS, CardType.ADVANCE_IS_REFUSED],
|
|
70
82
|
roles: [Role.ACCOUNTANT],
|
|
83
|
+
teamType: TeamType.VAT,
|
|
71
84
|
maxByDay: 6,
|
|
72
85
|
},
|
|
73
86
|
// {
|
|
@@ -80,44 +93,50 @@ export const CardGroup = [
|
|
|
80
93
|
{
|
|
81
94
|
id: CardGroupEnum.ACCEPTATION_GROUP,
|
|
82
95
|
label: 'Contrôle solde bancaire & annotations',
|
|
83
|
-
types: [CardType.CHECK_BALANCE_ANNOTATION_NEW_CLIENT, CardType.CHECK_BALANCE_ANNOTATION]
|
|
96
|
+
types: [CardType.CHECK_BALANCE_ANNOTATION_NEW_CLIENT, CardType.CHECK_BALANCE_ANNOTATION],
|
|
84
97
|
roles: [Role.DATA_OFFICER],
|
|
85
98
|
maxByDay: 25,
|
|
99
|
+
teamType: TeamType.ACCEPTATION,
|
|
86
100
|
},
|
|
87
101
|
{
|
|
88
102
|
id: CardGroupEnum.CARRY_FORWARD,
|
|
89
103
|
label: 'A nouveaux',
|
|
90
|
-
types: [CardType.SETUP_AND_INTEGRATION_N_MINUS_1]
|
|
104
|
+
types: [CardType.SETUP_AND_INTEGRATION_N_MINUS_1],
|
|
91
105
|
roles: [Role.ACCOUNTANT],
|
|
92
106
|
maxByDay: 3,
|
|
107
|
+
teamType: TeamType.CARRY_FORWARD,
|
|
93
108
|
},
|
|
94
109
|
{
|
|
95
110
|
id: CardGroupEnum.BANK,
|
|
96
111
|
label: 'Banque',
|
|
97
|
-
types: [CardType.SETUP_BANK_ACCOUNT, CardType.UPDATE_BANK_BALANCE]
|
|
112
|
+
types: [CardType.SETUP_BANK_ACCOUNT, CardType.UPDATE_BANK_BALANCE],
|
|
98
113
|
roles: [Role.ACCOUNTANT],
|
|
99
114
|
maxByDay: 3,
|
|
115
|
+
teamType: TeamType.BANK,
|
|
100
116
|
},
|
|
101
117
|
{
|
|
102
118
|
id: CardGroupEnum.ANNOTATION,
|
|
103
119
|
label: 'Annotations',
|
|
104
|
-
types: [CardType.UPDATE_ANNOTATIONS, CardType.CONTROL_REVISION_SURVEY]
|
|
120
|
+
types: [CardType.UPDATE_ANNOTATIONS, CardType.CONTROL_REVISION_SURVEY],
|
|
105
121
|
roles: [Role.ACCOUNTANT],
|
|
106
122
|
maxByDay: 3,
|
|
123
|
+
teamType: TeamType.ANNOTATION,
|
|
107
124
|
},
|
|
108
125
|
{
|
|
109
126
|
id: CardGroupEnum.CLR,
|
|
110
127
|
label: 'CLR',
|
|
111
|
-
types: [CardType.CLR, CardType.CLR_EXCEPTIONAL_MISSION]
|
|
128
|
+
types: [CardType.CLR, CardType.CLR_EXCEPTIONAL_MISSION],
|
|
112
129
|
roles: [Role.ACCOUNTANT],
|
|
113
130
|
maxByDay: 3,
|
|
131
|
+
teamType: TeamType.CLR,
|
|
114
132
|
},
|
|
115
133
|
{
|
|
116
134
|
id: CardGroupEnum.CUT_OFF,
|
|
117
135
|
label: 'Cut Off',
|
|
118
|
-
types: [CardType.CUT_OFF]
|
|
136
|
+
types: [CardType.CUT_OFF],
|
|
119
137
|
roles: [Role.ACCOUNTANT],
|
|
120
138
|
maxByDay: 3,
|
|
139
|
+
teamType: TeamType.CUT_OFF,
|
|
121
140
|
},
|
|
122
141
|
] as const;
|
|
123
142
|
|
|
@@ -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:
|
|
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?:
|
|
121
|
+
cerfa2571?: AnyCerfa2571Century;
|
|
123
122
|
cerfa2031?: AnyCerfa2031Century;
|
|
124
123
|
cerfa2033?: AnyCerfa2033Century;
|
|
125
124
|
cerfa2065?: AnyCerfa2065Century;
|