@silexpert/core 1.1.49 → 1.1.51
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/AccountsSectors.d.ts +2 -1
- package/es/api/resources/AccountsSectors.d.ts.map +1 -1
- package/es/api/resources/AccountsSectors.js +3 -0
- package/es/api/resources/AccountsSectors.js.map +1 -1
- package/es/api/resources/BusinessSector.d.ts +8 -0
- package/es/api/resources/BusinessSector.d.ts.map +1 -0
- package/es/api/resources/BusinessSector.js +13 -0
- package/es/api/resources/BusinessSector.js.map +1 -0
- package/es/api/resources/Library.d.ts +4 -1
- package/es/api/resources/Library.d.ts.map +1 -1
- package/es/api/resources/Library.js +9 -0
- package/es/api/resources/Library.js.map +1 -1
- package/es/api/resources/Payment.d.ts +2 -1
- package/es/api/resources/Payment.d.ts.map +1 -1
- package/es/api/resources/Payment.js +9 -0
- package/es/api/resources/Payment.js.map +1 -1
- package/es/api/resources.d.ts +2 -0
- package/es/api/resources.d.ts.map +1 -1
- package/es/api/resources.js +2 -0
- package/es/api/resources.js.map +1 -1
- package/es/types/Enum/Sector.d.ts +33 -3
- package/es/types/Enum/Sector.d.ts.map +1 -1
- package/es/types/Enum/Sector.js +288 -3
- package/es/types/Enum/Sector.js.map +1 -1
- package/es/types/Interface/api/account/QueryAccounts.d.ts +3 -0
- package/es/types/Interface/api/account/QueryAccounts.d.ts.map +1 -1
- package/es/types/Interface/api/account/QueryAccounts.js +12 -0
- package/es/types/Interface/api/account/QueryAccounts.js.map +1 -1
- package/es/types/Interface/api/accountsSectors/Query.d.ts +4 -0
- package/es/types/Interface/api/accountsSectors/Query.d.ts.map +1 -0
- package/es/types/Interface/api/accountsSectors/Query.js +19 -0
- package/es/types/Interface/api/accountsSectors/Query.js.map +1 -0
- package/es/types/Interface/api/businessSector/Create.d.ts +4 -0
- package/es/types/Interface/api/businessSector/Create.d.ts.map +1 -0
- package/es/types/Interface/api/businessSector/Create.js +17 -0
- package/es/types/Interface/api/businessSector/Create.js.map +1 -0
- package/es/types/Interface/api/businessSector/Delete.d.ts +4 -0
- package/es/types/Interface/api/businessSector/Delete.d.ts.map +1 -0
- package/es/types/Interface/api/businessSector/Delete.js +17 -0
- package/es/types/Interface/api/businessSector/Delete.js.map +1 -0
- package/es/types/Interface/api/businessSector/Query.d.ts +4 -0
- package/es/types/Interface/api/businessSector/Query.d.ts.map +1 -0
- package/es/types/Interface/api/businessSector/Query.js +17 -0
- package/es/types/Interface/api/businessSector/Query.js.map +1 -0
- package/es/types/Interface/api/library/QueryLibrary.d.ts +2 -0
- package/es/types/Interface/api/library/QueryLibrary.d.ts.map +1 -1
- package/es/types/Interface/api/library/QueryLibrary.js +12 -0
- package/es/types/Interface/api/library/QueryLibrary.js.map +1 -1
- package/es/types/Interface/api/payment/QueryPayment.d.ts +5 -0
- package/es/types/Interface/api/payment/QueryPayment.d.ts.map +1 -0
- package/es/types/Interface/api/payment/QueryPayment.js +34 -0
- package/es/types/Interface/api/payment/QueryPayment.js.map +1 -0
- package/es/types/Interface/models/IBusinessPartner.d.ts +2 -0
- package/es/types/Interface/models/IBusinessPartner.d.ts.map +1 -1
- package/es/types/Interface/models/IBusinessPartner.js.map +1 -1
- package/es/types/Interface/models/IBusinessSector.d.ts +10 -0
- package/es/types/Interface/models/IBusinessSector.d.ts.map +1 -0
- package/es/types/Interface/models/IBusinessSector.js +2 -0
- package/es/types/Interface/models/IBusinessSector.js.map +1 -0
- package/es/types/Interface/models/ISocietyDetail.d.ts +4 -0
- package/es/types/Interface/models/ISocietyDetail.d.ts.map +1 -1
- package/es/types/Interface/models/ISocietyDetail.js.map +1 -1
- package/es/types/index.d.ts +6 -0
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +6 -0
- package/es/types/index.js.map +1 -1
- package/js/api/resources/AccountsSectors.js +5 -0
- package/js/api/resources/AccountsSectors.js.map +1 -1
- package/js/api/resources/BusinessSector.js +24 -0
- package/js/api/resources/BusinessSector.js.map +1 -0
- package/js/api/resources/Library.js +13 -0
- package/js/api/resources/Library.js.map +1 -1
- package/js/api/resources/Payment.js +9 -0
- package/js/api/resources/Payment.js.map +1 -1
- package/js/api/resources.js +3 -1
- package/js/api/resources.js.map +1 -1
- package/js/types/Enum/Sector.js +244 -3
- package/js/types/Enum/Sector.js.map +1 -1
- package/js/types/Interface/api/account/QueryAccounts.js +3 -0
- package/js/types/Interface/api/account/QueryAccounts.js.map +1 -1
- package/js/types/Interface/api/accountsSectors/Query.js +22 -0
- package/js/types/Interface/api/accountsSectors/Query.js.map +1 -0
- package/js/types/Interface/api/businessSector/Create.js +21 -0
- package/js/types/Interface/api/businessSector/Create.js.map +1 -0
- package/js/types/Interface/api/businessSector/Delete.js +21 -0
- package/js/types/Interface/api/businessSector/Delete.js.map +1 -0
- package/js/types/Interface/api/businessSector/Query.js +21 -0
- package/js/types/Interface/api/businessSector/Query.js.map +1 -0
- package/js/types/Interface/api/library/QueryLibrary.js +2 -0
- package/js/types/Interface/api/library/QueryLibrary.js.map +1 -1
- package/js/types/Interface/api/payment/QueryPayment.js +33 -0
- package/js/types/Interface/api/payment/QueryPayment.js.map +1 -0
- package/js/types/Interface/models/IBusinessPartner.js.map +1 -1
- package/js/types/Interface/models/IBusinessSector.js +6 -0
- package/js/types/Interface/models/IBusinessSector.js.map +1 -0
- package/js/types/Interface/models/ISocietyDetail.js.map +1 -1
- package/js/types/index.js +60 -0
- package/js/types/index.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/AccountsSectors.ts +7 -1
- package/ts/api/resources/BusinessSector.ts +17 -0
- package/ts/api/resources/Library.ts +13 -1
- package/ts/api/resources/Payment.ts +11 -1
- package/ts/api/resources.ts +2 -0
- package/ts/types/Enum/Sector.ts +308 -4
- package/ts/types/Interface/api/account/QueryAccounts.ts +9 -0
- package/ts/types/Interface/api/accountsSectors/Query.ts +8 -0
- package/ts/types/Interface/api/businessSector/Create.ts +6 -0
- package/ts/types/Interface/api/businessSector/Delete.ts +6 -0
- package/ts/types/Interface/api/businessSector/Query.ts +6 -0
- package/ts/types/Interface/api/library/QueryLibrary.ts +10 -0
- package/ts/types/Interface/api/payment/QueryPayment.ts +22 -0
- package/ts/types/Interface/models/IBusinessPartner.ts +3 -0
- package/ts/types/Interface/models/IBusinessSector.ts +12 -0
- package/ts/types/Interface/models/ISocietyDetail.ts +4 -0
- package/ts/types/index.ts +6 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.51",
|
|
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": "js/index.js",
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
IAccountsSectors, UpdateOrCreateMultipleAccounts, CreateMultipleAccountsSectors, QueryAccountsSectors,
|
|
3
|
+
} from '../..';
|
|
2
4
|
import { Resource } from '../Resource';
|
|
3
5
|
|
|
4
6
|
export class AccountsSector extends Resource {
|
|
@@ -6,6 +8,10 @@ export class AccountsSector extends Resource {
|
|
|
6
8
|
return this.axios.$get(`/sectors/${idAccount}`);
|
|
7
9
|
}
|
|
8
10
|
|
|
11
|
+
getBySector(params: QueryAccountsSectors): Promise<IAccountsSectors[]> {
|
|
12
|
+
return this.axios.$get('/sectors', { params });
|
|
13
|
+
}
|
|
14
|
+
|
|
9
15
|
create(idAccount: number, payload: UpdateOrCreateMultipleAccounts): Promise<IAccountsSectors[]> {
|
|
10
16
|
return this.axios.$post(`/sectors/${idAccount}`, payload);
|
|
11
17
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IBusinessSector, QueryGetAllForSociety, CreateBusinessSector, DeleteBusinessSector,
|
|
3
|
+
} from '../../types';
|
|
4
|
+
import { Resource } from '../Resource';
|
|
5
|
+
|
|
6
|
+
export class BusinessSector extends Resource {
|
|
7
|
+
get(idSociety: number, params: QueryGetAllForSociety): Promise<IBusinessSector[]> {
|
|
8
|
+
return this.axios.$get(`/societies/${idSociety}/business-sectors`, { params });
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
create(idSociety: number, payload: CreateBusinessSector): Promise<IBusinessSector[]> {
|
|
12
|
+
return this.axios.$post(`societies/${idSociety}/business-sectors`, payload);
|
|
13
|
+
}
|
|
14
|
+
delete(idSociety: number, payload: DeleteBusinessSector): Promise<number> {
|
|
15
|
+
return this.axios.$delete(`societies/${idSociety}/business-sectors`, { params: payload });
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Resource } from '../Resource';
|
|
2
2
|
import {
|
|
3
|
-
QueryLibraryFile, UpdateOrCreateGedFile, IGedFile, QueryDownloadFile,
|
|
3
|
+
QueryLibraryFile, UpdateOrCreateGedFile, IGedFile, QueryDownloadFile, UpdateGedFile,
|
|
4
4
|
} from '../../types';
|
|
5
5
|
|
|
6
6
|
export class Library extends Resource {
|
|
@@ -16,10 +16,22 @@ export class Library extends Resource {
|
|
|
16
16
|
return this.axios.$get('/library/files', { params });
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
getAllForLibrary(params: QueryLibraryFile): Promise<IGedFile[]> {
|
|
20
|
+
return this.axios.$get('/library/files-for-library', { params });
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
countAll(params: QueryLibraryFile): Promise<Array<object>> {
|
|
24
|
+
return this.axios.$get('/library/count-for-library', { params });
|
|
25
|
+
}
|
|
26
|
+
|
|
19
27
|
updateOrCreate(idFile: number, params: UpdateOrCreateGedFile): Promise<IGedFile> {
|
|
20
28
|
return this.axios.$post(`/library/file/${idFile}`, params);
|
|
21
29
|
}
|
|
22
30
|
|
|
31
|
+
update(idFile: number, params: UpdateGedFile): Promise<IGedFile> {
|
|
32
|
+
return this.axios.$put(`/library/file/${idFile}`, params);
|
|
33
|
+
}
|
|
34
|
+
|
|
23
35
|
download(idSociety: number, params: QueryDownloadFile, isPdfFile = false): Promise<Buffer> {
|
|
24
36
|
return this.axios.$get(`/library/${idSociety}/file/download`,
|
|
25
37
|
{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Resource } from '../Resource';
|
|
2
|
-
import { QueryMonthlyPayment } from '../../types';
|
|
2
|
+
import { QueryMonthlyPayment, QueryPaymentCsv } from '../../types';
|
|
3
3
|
|
|
4
4
|
export class Payment extends Resource {
|
|
5
5
|
getMonthlyCsv(query: QueryMonthlyPayment): Promise<void> {
|
|
@@ -11,4 +11,14 @@ export class Payment extends Resource {
|
|
|
11
11
|
},
|
|
12
12
|
});
|
|
13
13
|
}
|
|
14
|
+
|
|
15
|
+
getInternalPaymentCsv(query: QueryPaymentCsv): Promise<void> {
|
|
16
|
+
return this.axios.$get('payment/internal-payment/csv', {
|
|
17
|
+
params: query,
|
|
18
|
+
responseType: 'arraybuffer',
|
|
19
|
+
headers: {
|
|
20
|
+
Accept: 'application/csv',
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
}
|
|
14
24
|
}
|
package/ts/api/resources.ts
CHANGED
|
@@ -127,6 +127,7 @@ import { Team } from './resources/Team';
|
|
|
127
127
|
import { CashAndExpense } from './resources/CashAndExpense';
|
|
128
128
|
import { Archive } from './resources/Archive';
|
|
129
129
|
import { AccountsSector } from './resources/AccountsSectors';
|
|
130
|
+
import { BusinessSector } from './resources/BusinessSector';
|
|
130
131
|
|
|
131
132
|
export const resources = {
|
|
132
133
|
simulation: Simulation,
|
|
@@ -258,4 +259,5 @@ export const resources = {
|
|
|
258
259
|
cashAndExpense: CashAndExpense,
|
|
259
260
|
archive: Archive,
|
|
260
261
|
accountsSector: AccountsSector,
|
|
262
|
+
businessSector: BusinessSector,
|
|
261
263
|
};
|
package/ts/types/Enum/Sector.ts
CHANGED
|
@@ -1,6 +1,310 @@
|
|
|
1
1
|
export enum Sector {
|
|
2
2
|
DEFAULT = 1,
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
ECOMMERCE = 2,
|
|
4
|
+
BNC_LIBERAL = 3,
|
|
5
|
+
SCI = 4,
|
|
6
|
+
BTP = 5,
|
|
7
|
+
CHR = 6,
|
|
8
|
+
AGRICOLE = 7,
|
|
9
|
+
ASSOCATION = 8,
|
|
10
|
+
TAXI_VTC = 9,
|
|
11
|
+
ESPECES = 10,
|
|
12
|
+
VAT = 11,
|
|
13
|
+
SERVICE = 12,
|
|
14
|
+
PRODUITS = 13,
|
|
15
|
+
MARCHANDISES = 14,
|
|
16
|
+
VEHICULE = 15,
|
|
17
|
+
IS = 16,
|
|
18
|
+
GERANCE_MAJORITAIRE = 17,
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export type BusinessSectorDescription = {
|
|
22
|
+
activated: boolean;
|
|
23
|
+
label: string;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export type BusinessSectorTypeContent = {
|
|
27
|
+
name: string;
|
|
28
|
+
id: number;
|
|
29
|
+
type: 'add' | 'subtract';
|
|
30
|
+
tag: string;
|
|
31
|
+
module: boolean,
|
|
32
|
+
description?: BusinessSectorDescription[],
|
|
33
|
+
icon?: string;
|
|
34
|
+
};
|
|
35
|
+
export type BusinessSectorType = {
|
|
36
|
+
[key: string]: BusinessSectorTypeContent
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export const businessSectors: BusinessSectorType = {
|
|
40
|
+
DEFAULT: {
|
|
41
|
+
id: Sector.DEFAULT,
|
|
42
|
+
name: 'Autre',
|
|
43
|
+
tag: 'AUT',
|
|
44
|
+
type: 'add',
|
|
45
|
+
module: false,
|
|
46
|
+
icon: 'work',
|
|
47
|
+
description: [
|
|
48
|
+
{
|
|
49
|
+
activated: true,
|
|
50
|
+
label: 'Base plan comptable : Autre',
|
|
51
|
+
},
|
|
52
|
+
],
|
|
53
|
+
},
|
|
54
|
+
ECOMMERCE: {
|
|
55
|
+
id: Sector.ECOMMERCE,
|
|
56
|
+
name: 'E-commerce',
|
|
57
|
+
type: 'add',
|
|
58
|
+
tag: 'ECO',
|
|
59
|
+
icon: 'language',
|
|
60
|
+
module: false,
|
|
61
|
+
description: [
|
|
62
|
+
{
|
|
63
|
+
activated: true,
|
|
64
|
+
label: 'Base plan comptable : E-commerce',
|
|
65
|
+
},
|
|
66
|
+
],
|
|
67
|
+
},
|
|
68
|
+
BNC_LIBERAL: {
|
|
69
|
+
id: Sector.BNC_LIBERAL,
|
|
70
|
+
name: 'Profession libéral',
|
|
71
|
+
type: 'add',
|
|
72
|
+
tag: 'BNC',
|
|
73
|
+
icon: 'person',
|
|
74
|
+
module: false,
|
|
75
|
+
description: [
|
|
76
|
+
{
|
|
77
|
+
activated: true,
|
|
78
|
+
label: 'Base plan comptable : BNC et libéral',
|
|
79
|
+
},
|
|
80
|
+
],
|
|
81
|
+
},
|
|
82
|
+
SCI: {
|
|
83
|
+
id: Sector.SCI,
|
|
84
|
+
name: 'SCI',
|
|
85
|
+
type: 'add',
|
|
86
|
+
tag: 'SCI',
|
|
87
|
+
icon: 'home',
|
|
88
|
+
module: false,
|
|
89
|
+
description: [
|
|
90
|
+
{
|
|
91
|
+
activated: true,
|
|
92
|
+
label: 'Base plan comptable : SCI',
|
|
93
|
+
},
|
|
94
|
+
],
|
|
95
|
+
},
|
|
96
|
+
BTP: {
|
|
97
|
+
id: Sector.BTP,
|
|
98
|
+
name: 'BTP',
|
|
99
|
+
type: 'add',
|
|
100
|
+
tag: 'BTP',
|
|
101
|
+
icon: 'construction',
|
|
102
|
+
module: false,
|
|
103
|
+
description: [
|
|
104
|
+
{
|
|
105
|
+
activated: true,
|
|
106
|
+
label: 'Base plan comptable : BTP',
|
|
107
|
+
},
|
|
108
|
+
],
|
|
109
|
+
},
|
|
110
|
+
CHR: {
|
|
111
|
+
id: Sector.CHR,
|
|
112
|
+
name: 'Café, hôtel ou restaurant',
|
|
113
|
+
type: 'add',
|
|
114
|
+
tag: 'CHR',
|
|
115
|
+
icon: 'coffee',
|
|
116
|
+
module: false,
|
|
117
|
+
description: [
|
|
118
|
+
{
|
|
119
|
+
activated: true,
|
|
120
|
+
label: 'Base plan comptable : Café, hôtel ou restaurant',
|
|
121
|
+
},
|
|
122
|
+
],
|
|
123
|
+
},
|
|
124
|
+
AGRICOLE: {
|
|
125
|
+
id: Sector.AGRICOLE,
|
|
126
|
+
name: 'Agricole',
|
|
127
|
+
type: 'add',
|
|
128
|
+
tag: 'AGR',
|
|
129
|
+
icon: 'florist',
|
|
130
|
+
module: false,
|
|
131
|
+
description: [
|
|
132
|
+
{
|
|
133
|
+
activated: true,
|
|
134
|
+
label: 'Base plan comptable : Agricole',
|
|
135
|
+
},
|
|
136
|
+
],
|
|
137
|
+
},
|
|
138
|
+
ASSOCATION: {
|
|
139
|
+
id: Sector.ASSOCATION,
|
|
140
|
+
name: 'Association',
|
|
141
|
+
type: 'add',
|
|
142
|
+
tag: 'ASS',
|
|
143
|
+
icon: 'favorite',
|
|
144
|
+
module: false,
|
|
145
|
+
description: [
|
|
146
|
+
{
|
|
147
|
+
activated: true,
|
|
148
|
+
label: 'Base plan comptable : Association',
|
|
149
|
+
},
|
|
150
|
+
],
|
|
151
|
+
},
|
|
152
|
+
TAXI_VTC: {
|
|
153
|
+
id: Sector.TAXI_VTC,
|
|
154
|
+
name: 'Taxis ou VTC',
|
|
155
|
+
type: 'add',
|
|
156
|
+
tag: 'VTC',
|
|
157
|
+
icon: 'taxi',
|
|
158
|
+
module: false,
|
|
159
|
+
description: [
|
|
160
|
+
{
|
|
161
|
+
activated: true,
|
|
162
|
+
label: 'Base plan comptable : Taxi ou VTC',
|
|
163
|
+
},
|
|
164
|
+
],
|
|
165
|
+
},
|
|
166
|
+
ESPECES: {
|
|
167
|
+
id: Sector.ESPECES,
|
|
168
|
+
name: 'Espèces',
|
|
169
|
+
type: 'add',
|
|
170
|
+
tag: 'ESP',
|
|
171
|
+
module: true,
|
|
172
|
+
description: [
|
|
173
|
+
{
|
|
174
|
+
activated: false,
|
|
175
|
+
label: 'Désactivation de la catégorie de dépôt de liquidités',
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
activated: false,
|
|
179
|
+
label: 'Désactivation de la catégorie de dépôt de liquidités',
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
activated: true,
|
|
183
|
+
label: 'Ajout de la catégorie de dépôt de liquidités',
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
activated: true,
|
|
187
|
+
label: 'Ajout de la catégorie Dons et pourboires',
|
|
188
|
+
},
|
|
189
|
+
],
|
|
190
|
+
},
|
|
191
|
+
TVA: {
|
|
192
|
+
id: Sector.VAT,
|
|
193
|
+
name: 'Sans TVA',
|
|
194
|
+
type: 'subtract',
|
|
195
|
+
tag: 'TVA',
|
|
196
|
+
description: [
|
|
197
|
+
{
|
|
198
|
+
activated: false,
|
|
199
|
+
label: 'Désactivation des catégories liées à la TVA',
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
activated: true,
|
|
203
|
+
label: 'Ajout des catégories liées à la TVA',
|
|
204
|
+
},
|
|
205
|
+
],
|
|
206
|
+
module: true,
|
|
207
|
+
},
|
|
208
|
+
SERVICE: {
|
|
209
|
+
id: Sector.SERVICE,
|
|
210
|
+
name: 'Prestation de services',
|
|
211
|
+
type: 'add',
|
|
212
|
+
tag: 'SER',
|
|
213
|
+
description: [
|
|
214
|
+
{
|
|
215
|
+
activated: false,
|
|
216
|
+
label: 'Désactivation des catégories liées à la prestation de services',
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
activated: true,
|
|
220
|
+
label: 'Ajout de la catégorie Vente de prestation de services',
|
|
221
|
+
},
|
|
222
|
+
],
|
|
223
|
+
module: true,
|
|
224
|
+
},
|
|
225
|
+
PRODUITS: {
|
|
226
|
+
id: Sector.PRODUITS,
|
|
227
|
+
name: 'Produits',
|
|
228
|
+
type: 'add',
|
|
229
|
+
tag: 'PRO',
|
|
230
|
+
module: true,
|
|
231
|
+
description: [
|
|
232
|
+
{
|
|
233
|
+
activated: false,
|
|
234
|
+
label: 'Désactivation des catégories liées à la vente de produits',
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
activated: true,
|
|
238
|
+
label: 'Ajout des catégories liées à la vente de produits',
|
|
239
|
+
},
|
|
240
|
+
],
|
|
241
|
+
},
|
|
242
|
+
MARCHANDISES: {
|
|
243
|
+
id: Sector.MARCHANDISES,
|
|
244
|
+
name: 'Marchandises',
|
|
245
|
+
type: 'add',
|
|
246
|
+
module: true,
|
|
247
|
+
tag: 'MAR',
|
|
248
|
+
description: [
|
|
249
|
+
{
|
|
250
|
+
activated: false,
|
|
251
|
+
label: 'Désactivation des catégories liées à la vente de marchandises',
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
activated: true,
|
|
255
|
+
label: 'Ajout des catégories liées à la vente de marchandises',
|
|
256
|
+
},
|
|
257
|
+
],
|
|
258
|
+
},
|
|
259
|
+
VEHICULE: {
|
|
260
|
+
id: Sector.VEHICULE,
|
|
261
|
+
name: 'Véhicule',
|
|
262
|
+
type: 'add',
|
|
263
|
+
tag: 'VEH',
|
|
264
|
+
module: true,
|
|
265
|
+
description: [
|
|
266
|
+
{
|
|
267
|
+
activated: false,
|
|
268
|
+
label: 'Désactivation des catégories véhicule',
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
activated: true,
|
|
272
|
+
label: 'Ajout des catégories véhicule',
|
|
273
|
+
},
|
|
274
|
+
],
|
|
275
|
+
},
|
|
276
|
+
IS: {
|
|
277
|
+
id: Sector.IS,
|
|
278
|
+
name: 'Impôt sur les sociétés (IS)',
|
|
279
|
+
type: 'add',
|
|
280
|
+
tag: 'IS',
|
|
281
|
+
module: true,
|
|
282
|
+
description: [
|
|
283
|
+
{
|
|
284
|
+
activated: false,
|
|
285
|
+
label: 'Désactivationde la catégorie Impôt sur les sociétés (IS)',
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
activated: true,
|
|
289
|
+
label: 'Ajout de la catégorie Impôt sur les sociétés (IS)',
|
|
290
|
+
},
|
|
291
|
+
],
|
|
292
|
+
},
|
|
293
|
+
GERANCE_MAJORITAIRE: {
|
|
294
|
+
id: Sector.GERANCE_MAJORITAIRE,
|
|
295
|
+
name: 'Gérance majoritaire',
|
|
296
|
+
type: 'add',
|
|
297
|
+
tag: 'GEM',
|
|
298
|
+
module: true,
|
|
299
|
+
description: [
|
|
300
|
+
{
|
|
301
|
+
activated: false,
|
|
302
|
+
label: 'Désactivation des catégories liées à la gérance majoritaire',
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
activated: true,
|
|
306
|
+
label: 'Ajout des catégories liées à la gérance majoritaire',
|
|
307
|
+
},
|
|
308
|
+
],
|
|
309
|
+
},
|
|
310
|
+
};
|
|
@@ -20,4 +20,13 @@ export class QueryAccounts {
|
|
|
20
20
|
|
|
21
21
|
@ApiPropertyOptional()
|
|
22
22
|
includeDeletedAccount?: boolean;
|
|
23
|
+
|
|
24
|
+
@ApiPropertyOptional()
|
|
25
|
+
onlyGeneric?: boolean;
|
|
26
|
+
|
|
27
|
+
@ApiPropertyOptional()
|
|
28
|
+
filteredByPersonilizedBusiness?: boolean;
|
|
29
|
+
|
|
30
|
+
@ApiPropertyOptional()
|
|
31
|
+
newVersion?: boolean;
|
|
23
32
|
}
|
|
@@ -43,6 +43,16 @@ export class QueryLibraryFile {
|
|
|
43
43
|
})
|
|
44
44
|
attributes?: string[];
|
|
45
45
|
|
|
46
|
+
@ApiPropertyOptional()
|
|
47
|
+
@IsNumber()
|
|
48
|
+
@IsOptional()
|
|
49
|
+
page?: number;
|
|
50
|
+
|
|
51
|
+
@ApiPropertyOptional()
|
|
52
|
+
@IsNumber()
|
|
53
|
+
@IsOptional()
|
|
54
|
+
limit?: number;
|
|
55
|
+
|
|
46
56
|
@ApiPropertyOptional()
|
|
47
57
|
@IsOptional()
|
|
48
58
|
@IsString({
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IsDefined } from 'class-validator';
|
|
2
|
+
import { ApiProperty } from '../../../../utils';
|
|
3
|
+
|
|
4
|
+
export class QueryPaymentCsv {
|
|
5
|
+
@IsDefined()
|
|
6
|
+
@ApiProperty({
|
|
7
|
+
description: 'start date',
|
|
8
|
+
required: true,
|
|
9
|
+
type: Date,
|
|
10
|
+
example: '2022-03-01',
|
|
11
|
+
})
|
|
12
|
+
startDate: Date;
|
|
13
|
+
|
|
14
|
+
@IsDefined()
|
|
15
|
+
@ApiProperty({
|
|
16
|
+
description: 'end date',
|
|
17
|
+
required: true,
|
|
18
|
+
type: Date,
|
|
19
|
+
example: '2022-03-31',
|
|
20
|
+
})
|
|
21
|
+
endDate: Date;
|
|
22
|
+
}
|
|
@@ -10,6 +10,7 @@ export interface IBusinessPartner {
|
|
|
10
10
|
isPhysical: boolean;
|
|
11
11
|
address: string | null;
|
|
12
12
|
zipCodeBirth: string | null;
|
|
13
|
+
// @deprecated
|
|
13
14
|
birthPlace: string | null;
|
|
14
15
|
departmentBirth: string | null;
|
|
15
16
|
idCountryBirth: number | null;
|
|
@@ -23,12 +24,14 @@ export interface IBusinessPartner {
|
|
|
23
24
|
identityDocument: string | null;
|
|
24
25
|
otherActivities: string | null;
|
|
25
26
|
activityBefore: string | null;
|
|
27
|
+
maritalStatus: string | null;
|
|
26
28
|
idGedFileKbis: number | null;
|
|
27
29
|
idGedFileIC: number | null;
|
|
28
30
|
idGedFileStatus: number | null;
|
|
29
31
|
idSociety: number | null;
|
|
30
32
|
idUser: number | null;
|
|
31
33
|
idSocietyParent: number;
|
|
34
|
+
idMaritalStatus: number;
|
|
32
35
|
createdAt?: Date | null;
|
|
33
36
|
updatedAt?: Date | null;
|
|
34
37
|
|
|
@@ -97,6 +97,10 @@ export interface ISocietyDetail {
|
|
|
97
97
|
bankSynchronisationState?: number | null;
|
|
98
98
|
platformExplanation?:number | null;
|
|
99
99
|
mobileAppInstallationProposal?:number | null;
|
|
100
|
+
notaryOfficeName?:string | null;
|
|
101
|
+
notaryOfficeAddress?:string | null;
|
|
102
|
+
notaryOfficeZipCode?:string | null;
|
|
103
|
+
notaryOfficeCity?:string | null;
|
|
100
104
|
verifiedDocuments?: boolean | null;
|
|
101
105
|
createdAt?: Date | null;
|
|
102
106
|
updatedAt?: Date | null;
|
package/ts/types/index.ts
CHANGED
|
@@ -304,6 +304,7 @@ export * from './Interface/models/IVatRegimeHistory';
|
|
|
304
304
|
export * from './Interface/models/ICustomerAcceptance';
|
|
305
305
|
export * from './Interface/models/IUnpaidCallHistory';
|
|
306
306
|
export * from './Interface/models/IAppNotification';
|
|
307
|
+
export * from './Interface/models/IBusinessSector';
|
|
307
308
|
|
|
308
309
|
// Schemas
|
|
309
310
|
export * from './Interface/schemas/IRegistrationDetail';
|
|
@@ -490,6 +491,7 @@ export * from './Interface/api/accountingEntry/CreateManualEntry';
|
|
|
490
491
|
export * from './Interface/api/immobilization/ReadFormattedImmobilization';
|
|
491
492
|
export * from './Interface/api/immobilization/CreateImmobilization';
|
|
492
493
|
export * from './Interface/api/payment/QueryMonthlyPayment';
|
|
494
|
+
export * from './Interface/api/payment/QueryPayment';
|
|
493
495
|
export * from './Interface/api/firstStep/Create';
|
|
494
496
|
export * from './Interface/api/registration/QueryRegistration';
|
|
495
497
|
export * from './Interface/api/paymentExpectationCustomer/ReadPaymentExpectationCustomer';
|
|
@@ -915,6 +917,10 @@ export * from './Interface/api/commercialImport/Query';
|
|
|
915
917
|
export * from './Interface/api/commercialImport/Create';
|
|
916
918
|
export * from './Interface/api/cashAndExpense/Create';
|
|
917
919
|
export * from './Interface/api/accountsSectors/Create';
|
|
920
|
+
export * from './Interface/api/businessSector/Create';
|
|
921
|
+
export * from './Interface/api/businessSector/Query';
|
|
922
|
+
export * from './Interface/api/businessSector/Delete';
|
|
923
|
+
export * from './Interface/api/accountsSectors/Query';
|
|
918
924
|
// Enums types
|
|
919
925
|
export * from './Interface/enum/Util';
|
|
920
926
|
export * from './Interface/enum/Date';
|