@silexpert/core 1.0.43 → 1.0.47
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/BudgetInsight.d.ts +0 -7
- package/es/api/resources/BudgetInsight.d.ts.map +1 -1
- package/es/api/resources/BudgetInsight.js +0 -8
- package/es/api/resources/BudgetInsight.js.map +1 -1
- package/es/api/resources/CommercialDocument.d.ts +2 -2
- package/es/api/resources/CommercialDocument.d.ts.map +1 -1
- package/es/api/resources/CommercialDocument.js.map +1 -1
- package/es/api/resources/FIle.d.ts +1 -0
- package/es/api/resources/FIle.d.ts.map +1 -1
- package/es/api/resources/FIle.js +3 -0
- package/es/api/resources/FIle.js.map +1 -1
- package/es/api/resources/Wallet.d.ts +8 -0
- package/es/api/resources/Wallet.d.ts.map +1 -0
- package/es/api/resources/Wallet.js +7 -0
- package/es/api/resources/Wallet.js.map +1 -0
- package/es/api/resources/statistic/Accountant.d.ts +53 -0
- package/es/api/resources/statistic/Accountant.d.ts.map +1 -0
- package/es/api/resources/statistic/Accountant.js +77 -0
- package/es/api/resources/statistic/Accountant.js.map +1 -0
- package/es/api/resources/statistic/Direction.d.ts +11 -0
- package/es/api/resources/statistic/Direction.d.ts.map +1 -0
- package/es/api/resources/statistic/Direction.js +14 -0
- package/es/api/resources/statistic/Direction.js.map +1 -0
- package/es/api/resources/statistic/ExpertAccountant.d.ts +29 -0
- package/es/api/resources/statistic/ExpertAccountant.d.ts.map +1 -0
- package/es/api/resources/statistic/ExpertAccountant.js +41 -0
- package/es/api/resources/statistic/ExpertAccountant.js.map +1 -0
- package/es/api/resources.d.ts +8 -0
- package/es/api/resources.d.ts.map +1 -1
- package/es/api/resources.js +8 -0
- package/es/api/resources.js.map +1 -1
- package/es/types/Enum/AdditionnalSells.d.ts +7 -0
- package/es/types/Enum/AdditionnalSells.d.ts.map +1 -0
- package/es/types/Enum/AdditionnalSells.js +8 -0
- package/es/types/Enum/AdditionnalSells.js.map +1 -0
- package/es/types/Enum/StatisticType.d.ts +15 -0
- package/es/types/Enum/StatisticType.d.ts.map +1 -0
- package/es/types/Enum/StatisticType.js +16 -0
- package/es/types/Enum/StatisticType.js.map +1 -0
- package/es/types/Enum/Unit.d.ts +31 -0
- package/es/types/Enum/Unit.d.ts.map +1 -1
- package/es/types/Enum/Unit.js +139 -20
- package/es/types/Enum/Unit.js.map +1 -1
- package/es/types/Enum/Vat.d.ts +17 -0
- package/es/types/Enum/Vat.d.ts.map +1 -1
- package/es/types/Enum/Vat.js +18 -0
- package/es/types/Enum/Vat.js.map +1 -1
- package/es/types/Interface/api/commercialManagement/Read.d.ts +3 -0
- package/es/types/Interface/api/commercialManagement/Read.d.ts.map +1 -1
- package/es/types/Interface/api/commercialManagement/Read.js.map +1 -1
- package/es/types/Interface/api/product/CreateProduct.d.ts +1 -0
- package/es/types/Interface/api/product/CreateProduct.d.ts.map +1 -1
- package/es/types/Interface/api/product/CreateProduct.js +6 -0
- package/es/types/Interface/api/product/CreateProduct.js.map +1 -1
- package/es/types/Interface/api/statistic/ExitRequest.d.ts +98 -0
- package/es/types/Interface/api/statistic/ExitRequest.d.ts.map +1 -0
- package/es/types/Interface/api/statistic/ExitRequest.js +2 -0
- package/es/types/Interface/api/statistic/ExitRequest.js.map +1 -0
- package/es/types/Interface/api/statistic/QueryAccountant.d.ts +6 -0
- package/es/types/Interface/api/statistic/QueryAccountant.d.ts.map +1 -0
- package/es/types/Interface/api/statistic/QueryAccountant.js +31 -0
- package/es/types/Interface/api/statistic/QueryAccountant.js.map +1 -0
- package/es/types/Interface/api/statistic/QueryDirection.d.ts +6 -0
- package/es/types/Interface/api/statistic/QueryDirection.d.ts.map +1 -0
- package/es/types/Interface/api/statistic/QueryDirection.js +31 -0
- package/es/types/Interface/api/statistic/QueryDirection.js.map +1 -0
- package/es/types/Interface/api/statistic/QueryExpertAccountant.d.ts +6 -0
- package/es/types/Interface/api/statistic/QueryExpertAccountant.d.ts.map +1 -0
- package/es/types/Interface/api/statistic/QueryExpertAccountant.js +31 -0
- package/es/types/Interface/api/statistic/QueryExpertAccountant.js.map +1 -0
- package/es/types/Interface/api/statistic/QueryGetAccountant.d.ts +5 -0
- package/es/types/Interface/api/statistic/QueryGetAccountant.d.ts.map +1 -0
- package/es/types/Interface/api/statistic/QueryGetAccountant.js +24 -0
- package/es/types/Interface/api/statistic/QueryGetAccountant.js.map +1 -0
- package/es/types/Interface/api/statistic/QueryGetDirection.d.ts +5 -0
- package/es/types/Interface/api/statistic/QueryGetDirection.d.ts.map +1 -0
- package/es/types/Interface/api/statistic/QueryGetDirection.js +24 -0
- package/es/types/Interface/api/statistic/QueryGetDirection.js.map +1 -0
- package/es/types/Interface/api/statistic/QueryGetExpertAccountant.d.ts +5 -0
- package/es/types/Interface/api/statistic/QueryGetExpertAccountant.d.ts.map +1 -0
- package/es/types/Interface/api/statistic/QueryGetExpertAccountant.js +24 -0
- package/es/types/Interface/api/statistic/QueryGetExpertAccountant.js.map +1 -0
- package/es/types/Interface/api/wallet/UpdateAttribution.d.ts +6 -0
- package/es/types/Interface/api/wallet/UpdateAttribution.d.ts.map +1 -0
- package/es/types/Interface/api/wallet/UpdateAttribution.js +34 -0
- package/es/types/Interface/api/wallet/UpdateAttribution.js.map +1 -0
- package/es/types/Interface/models/IAttributionHistory.d.ts +4 -4
- package/es/types/Interface/models/IAttributionHistory.d.ts.map +1 -1
- package/es/types/Interface/models/IAttributionHistory.js.map +1 -1
- package/es/types/Interface/models/IPrestationComplementary.d.ts +1 -1
- package/es/types/Interface/models/IPrestationComplementary.d.ts.map +1 -1
- package/es/types/Interface/models/IPrestationComplementary.js.map +1 -1
- package/es/types/Interface/models/IStatistic.d.ts +11 -0
- package/es/types/Interface/models/IStatistic.d.ts.map +1 -0
- package/es/types/Interface/models/IStatistic.js +2 -0
- package/es/types/Interface/models/IStatistic.js.map +1 -0
- package/es/types/index.d.ts +11 -0
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +11 -0
- package/es/types/index.js.map +1 -1
- package/js/api/resources/BudgetInsight.js +0 -10
- package/js/api/resources/BudgetInsight.js.map +1 -1
- package/js/api/resources/CommercialDocument.js.map +1 -1
- package/js/api/resources/FIle.js +4 -0
- package/js/api/resources/FIle.js.map +1 -1
- package/js/api/resources/Wallet.js +18 -0
- package/js/api/resources/Wallet.js.map +1 -0
- package/js/api/resources/statistic/Accountant.js +135 -0
- package/js/api/resources/statistic/Accountant.js.map +1 -0
- package/js/api/resources/statistic/Direction.js +30 -0
- package/js/api/resources/statistic/Direction.js.map +1 -0
- package/js/api/resources/statistic/ExpertAccountant.js +75 -0
- package/js/api/resources/statistic/ExpertAccountant.js.map +1 -0
- package/js/api/resources.js +13 -1
- package/js/api/resources.js.map +1 -1
- package/js/types/Enum/AdditionnalSells.js +14 -0
- package/js/types/Enum/AdditionnalSells.js.map +1 -0
- package/js/types/Enum/StatisticType.js +22 -0
- package/js/types/Enum/StatisticType.js.map +1 -0
- package/js/types/Enum/Unit.js +121 -20
- package/js/types/Enum/Unit.js.map +1 -1
- package/js/types/Enum/Vat.js +19 -0
- package/js/types/Enum/Vat.js.map +1 -1
- package/js/types/Interface/api/product/CreateProduct.js +2 -0
- package/js/types/Interface/api/product/CreateProduct.js.map +1 -1
- package/js/types/Interface/api/statistic/ExitRequest.js +6 -0
- package/js/types/Interface/api/statistic/ExitRequest.js.map +1 -0
- package/js/types/Interface/api/statistic/QueryAccountant.js +35 -0
- package/js/types/Interface/api/statistic/QueryAccountant.js.map +1 -0
- package/js/types/Interface/api/statistic/QueryDirection.js +35 -0
- package/js/types/Interface/api/statistic/QueryDirection.js.map +1 -0
- package/js/types/Interface/api/statistic/QueryExpertAccountant.js +35 -0
- package/js/types/Interface/api/statistic/QueryExpertAccountant.js.map +1 -0
- package/js/types/Interface/api/statistic/QueryGetAccountant.js +31 -0
- package/js/types/Interface/api/statistic/QueryGetAccountant.js.map +1 -0
- package/js/types/Interface/api/statistic/QueryGetDirection.js +31 -0
- package/js/types/Interface/api/statistic/QueryGetDirection.js.map +1 -0
- package/js/types/Interface/api/statistic/QueryGetExpertAccountant.js +31 -0
- package/js/types/Interface/api/statistic/QueryGetExpertAccountant.js.map +1 -0
- package/js/types/Interface/api/wallet/UpdateAttribution.js +35 -0
- package/js/types/Interface/api/wallet/UpdateAttribution.js.map +1 -0
- package/js/types/Interface/models/IStatistic.js +6 -0
- package/js/types/Interface/models/IStatistic.js.map +1 -0
- package/js/types/index.js +132 -0
- package/js/types/index.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/BudgetInsight.ts +0 -13
- package/ts/api/resources/CommercialDocument.ts +2 -2
- package/ts/api/resources/FIle.ts +4 -0
- package/ts/api/resources/Wallet.ts +8 -0
- package/ts/api/resources/statistic/Accountant.ts +108 -0
- package/ts/api/resources/statistic/Direction.ts +17 -0
- package/ts/api/resources/statistic/ExpertAccountant.ts +56 -0
- package/ts/api/resources.ts +8 -0
- package/ts/types/Enum/AdditionnalSells.ts +6 -0
- package/ts/types/Enum/StatisticType.ts +14 -0
- package/ts/types/Enum/Unit.ts +143 -21
- package/ts/types/Enum/Vat.ts +19 -1
- package/ts/types/Interface/api/commercialManagement/Read.ts +2 -0
- package/ts/types/Interface/api/product/CreateProduct.ts +5 -0
- package/ts/types/Interface/api/statistic/ExitRequest.ts +108 -0
- package/ts/types/Interface/api/statistic/QueryAccountant.ts +20 -0
- package/ts/types/Interface/api/statistic/QueryDirection.ts +20 -0
- package/ts/types/Interface/api/statistic/QueryExpertAccountant.ts +20 -0
- package/ts/types/Interface/api/statistic/QueryGetAccountant.ts +14 -0
- package/ts/types/Interface/api/statistic/QueryGetDirection.ts +14 -0
- package/ts/types/Interface/api/statistic/QueryGetExpertAccountant.ts +14 -0
- package/ts/types/Interface/api/wallet/UpdateAttribution.ts +23 -0
- package/ts/types/Interface/models/IAttributionHistory.ts +4 -4
- package/ts/types/Interface/models/IPrestationComplementary.ts +1 -1
- package/ts/types/Interface/models/IStatistic.ts +13 -0
- package/ts/types/index.ts +11 -0
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { Resource } from '../../Resource';
|
|
2
|
+
import { QueryGetAccountant, StatisticType } from '../../../types';
|
|
3
|
+
|
|
4
|
+
export class StatisticAccountant extends Resource {
|
|
5
|
+
/**
|
|
6
|
+
* Retourne les statistiques de demande de congé pour un manager comptable
|
|
7
|
+
* @param { QueryGetAccountant } payload
|
|
8
|
+
* @returns { JSON }
|
|
9
|
+
*/
|
|
10
|
+
public getAbsenceRequest(payload: QueryGetAccountant): Promise<JSON> {
|
|
11
|
+
const params = {
|
|
12
|
+
...payload,
|
|
13
|
+
type: StatisticType.DIRECTION,
|
|
14
|
+
};
|
|
15
|
+
return this.axios.$get('/statistic-accountant/absence-request', { params });
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Retourne les statistiques de relation client pour un comptable
|
|
20
|
+
* @param { QueryGetAccountant } payload
|
|
21
|
+
* @returns { JSON }
|
|
22
|
+
*/
|
|
23
|
+
public getCustomerRelation(payload: QueryGetAccountant): Promise<JSON> {
|
|
24
|
+
const params = {
|
|
25
|
+
...payload,
|
|
26
|
+
type: StatisticType.ACCOUNTANT_CUSTOMER_RELATION,
|
|
27
|
+
};
|
|
28
|
+
return this.axios.$get('/statistic-accountant', { params });
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Retourne les statistiques de portefeuille pour un comptable
|
|
33
|
+
* @param {QueryGetAccountant} payload
|
|
34
|
+
* @returns {JSON}
|
|
35
|
+
*/
|
|
36
|
+
public getWallet(payload: QueryGetAccountant): Promise<JSON> {
|
|
37
|
+
const params = {
|
|
38
|
+
...payload,
|
|
39
|
+
type: StatisticType.ACCOUNTANT_WALLET,
|
|
40
|
+
};
|
|
41
|
+
return this.axios.$get('/statistic-accountant', { params });
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Retourne les statistiques d'application pour un comptable
|
|
46
|
+
* @param { QueryGetAccountant} payload
|
|
47
|
+
* @returns {JSON}
|
|
48
|
+
*/
|
|
49
|
+
public getApplication(payload: QueryGetAccountant): Promise<JSON> {
|
|
50
|
+
const params = {
|
|
51
|
+
...payload,
|
|
52
|
+
type: StatisticType.ACCOUNTANT_APPLICATION,
|
|
53
|
+
};
|
|
54
|
+
return this.axios.$get('/statistic-accountant', { params });
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Retourne les statistiques de production pour un comptable
|
|
59
|
+
* @param {QueryGetAccountant} payload
|
|
60
|
+
* @returns {JSON}
|
|
61
|
+
*/
|
|
62
|
+
public getProduction(payload: QueryGetAccountant): Promise<JSON> {
|
|
63
|
+
const params = {
|
|
64
|
+
...payload,
|
|
65
|
+
type: StatisticType.ACCOUNTANT_PRODUCTION,
|
|
66
|
+
};
|
|
67
|
+
return this.axios.$get('/statistic-accountant', { params });
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Retourne les statistiques d'IS / IR pour un comptable
|
|
72
|
+
* @param {QueryGetAccountant} payload
|
|
73
|
+
* @returns {JSON}
|
|
74
|
+
*/
|
|
75
|
+
public getIsIr(payload: QueryGetAccountant): Promise<JSON> {
|
|
76
|
+
const params = {
|
|
77
|
+
...payload,
|
|
78
|
+
type: StatisticType.ACCOUNTANT_IS_IR,
|
|
79
|
+
};
|
|
80
|
+
return this.axios.$get('/statistic-accountant', { params });
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Retourne les statistiques de bilan pour un comptable
|
|
85
|
+
* @param {QueryGetAccountant} payload
|
|
86
|
+
* @returns {JSON}
|
|
87
|
+
*/
|
|
88
|
+
public getBalanceSheet(payload: QueryGetAccountant): Promise<JSON> {
|
|
89
|
+
const params = {
|
|
90
|
+
...payload,
|
|
91
|
+
type: StatisticType.ACCOUNTANT_BALANCE_SHEET,
|
|
92
|
+
};
|
|
93
|
+
return this.axios.$get('/statistic-accountant', { params });
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Retourne les statistiques de vente additionnel pour un comptable
|
|
98
|
+
* @param {QueryGetAccountant} payload
|
|
99
|
+
* @returns {JSON}
|
|
100
|
+
*/
|
|
101
|
+
public getAdditionnalSell(payload: QueryGetAccountant): Promise<JSON> {
|
|
102
|
+
const params = {
|
|
103
|
+
...payload,
|
|
104
|
+
type: StatisticType.ACCOUNTANT_ADDITIONNAL_SELL,
|
|
105
|
+
};
|
|
106
|
+
return this.axios.$get('/statistic-accountant', { params });
|
|
107
|
+
}
|
|
108
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Resource } from '../../Resource';
|
|
2
|
+
import { QueryGetDirection, StatisticType } from '../../../types';
|
|
3
|
+
|
|
4
|
+
export class StatisticDirection extends Resource {
|
|
5
|
+
/**
|
|
6
|
+
* Retourne les statistiques de direction pour un ou plusieurs utilisateurs
|
|
7
|
+
* @param { QueryGetDirection } payload
|
|
8
|
+
* @returns { JSON }
|
|
9
|
+
*/
|
|
10
|
+
public get(payload: QueryGetDirection): Promise<JSON> {
|
|
11
|
+
const params = {
|
|
12
|
+
...payload,
|
|
13
|
+
type: StatisticType.DIRECTION,
|
|
14
|
+
};
|
|
15
|
+
return this.axios.$get('/statistic-direction', { params });
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Resource } from '../../Resource';
|
|
2
|
+
import { QueryGetExpertAccountant, StatisticType } from '../../../types';
|
|
3
|
+
|
|
4
|
+
export class StatisticExpertAccountant extends Resource {
|
|
5
|
+
/**
|
|
6
|
+
* Retourne les statistiques de production pour un ou plusieurs expert comptable
|
|
7
|
+
* @param {QueryGetExpertAccountant} payload
|
|
8
|
+
* @returns {JSON}
|
|
9
|
+
*/
|
|
10
|
+
public getProduction(payload: QueryGetExpertAccountant): Promise<JSON> {
|
|
11
|
+
const params = {
|
|
12
|
+
...payload,
|
|
13
|
+
type: StatisticType.EXPERT_ACCOUNTANT_PRODUCTION,
|
|
14
|
+
};
|
|
15
|
+
return this.axios.$get('/statistic-expert-accountant/production', { params });
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Retourne les statistiques de relation client pour un expert comptable
|
|
20
|
+
* @param {QueryGetExpertAccountant} payload
|
|
21
|
+
* @returns {JSON}
|
|
22
|
+
*/
|
|
23
|
+
public getCustomerRelation(payload: QueryGetExpertAccountant): Promise<JSON> {
|
|
24
|
+
const params = {
|
|
25
|
+
...payload,
|
|
26
|
+
type: StatisticType.EXPERT_ACCOUNTANT_CUSTOMER_RELATION,
|
|
27
|
+
};
|
|
28
|
+
return this.axios.$get('/statistic-expert-accountant', { params });
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Retourne les statistiques de portefeuille pour un expert comptable
|
|
33
|
+
* @param {QueryGetExpertAccountant} payload
|
|
34
|
+
* @returns {JSON}
|
|
35
|
+
*/
|
|
36
|
+
public getCustomerRelationWallet(payload: QueryGetExpertAccountant): Promise<JSON> {
|
|
37
|
+
const params = {
|
|
38
|
+
...payload,
|
|
39
|
+
type: StatisticType.EXPERT_ACCOUNTANT_CUSTOMER_RELATION_WALLET,
|
|
40
|
+
};
|
|
41
|
+
return this.axios.$get('/statistic-expert-accountant', { params });
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Retourne les statistiques de LAB pour un expert comtable
|
|
46
|
+
* @param {QueryGetExpertAccountant} payload
|
|
47
|
+
* @returns {JSON}
|
|
48
|
+
*/
|
|
49
|
+
public getLAB(payload: QueryGetExpertAccountant): Promise<JSON> {
|
|
50
|
+
const params = {
|
|
51
|
+
...payload,
|
|
52
|
+
type: StatisticType.EXPERT_ACCOUNTANT_LAB,
|
|
53
|
+
};
|
|
54
|
+
return this.axios.$get('/statistic-expert-accountant', { params });
|
|
55
|
+
}
|
|
56
|
+
}
|
package/ts/api/resources.ts
CHANGED
|
@@ -97,6 +97,10 @@ import { Recurrence } from './resources/Recurrence';
|
|
|
97
97
|
import { Stripe } from './resources/Stripe';
|
|
98
98
|
import { File } from './resources/FIle';
|
|
99
99
|
import { SocietyConfig } from './resources/SocietyConfig';
|
|
100
|
+
import { StatisticAccountant } from './resources/statistic/Accountant';
|
|
101
|
+
import { StatisticDirection } from './resources/statistic/Direction';
|
|
102
|
+
import { StatisticExpertAccountant } from './resources/statistic/ExpertAccountant';
|
|
103
|
+
import { Wallet } from './resources/Wallet';
|
|
100
104
|
|
|
101
105
|
export const resources = {
|
|
102
106
|
simulation: Simulation,
|
|
@@ -197,5 +201,9 @@ export const resources = {
|
|
|
197
201
|
recurrence: Recurrence,
|
|
198
202
|
stripe: Stripe,
|
|
199
203
|
file: File,
|
|
204
|
+
wallet: Wallet,
|
|
200
205
|
societyConfig: SocietyConfig,
|
|
206
|
+
statisticAccountant: StatisticAccountant,
|
|
207
|
+
statisticDirection: StatisticDirection,
|
|
208
|
+
statisticExpertAccountant: StatisticExpertAccountant,
|
|
201
209
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export enum StatisticType {
|
|
2
|
+
DIRECTION = 1,
|
|
3
|
+
EXPERT_ACCOUNTANT_PRODUCTION = 2,
|
|
4
|
+
EXPERT_ACCOUNTANT_CUSTOMER_RELATION = 3,
|
|
5
|
+
EXPERT_ACCOUNTANT_CUSTOMER_RELATION_WALLET = 4,
|
|
6
|
+
EXPERT_ACCOUNTANT_LAB = 5,
|
|
7
|
+
ACCOUNTANT_CUSTOMER_RELATION = 6,
|
|
8
|
+
ACCOUNTANT_WALLET = 7,
|
|
9
|
+
ACCOUNTANT_APPLICATION = 8,
|
|
10
|
+
ACCOUNTANT_PRODUCTION = 9,
|
|
11
|
+
ACCOUNTANT_IS_IR = 10,
|
|
12
|
+
ACCOUNTANT_BALANCE_SHEET = 11,
|
|
13
|
+
ACCOUNTANT_ADDITIONNAL_SELL = 12,
|
|
14
|
+
}
|
package/ts/types/Enum/Unit.ts
CHANGED
|
@@ -6,100 +6,222 @@ export interface IUnit {
|
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
+
export enum UnitId {
|
|
10
|
+
ITEM = 1,
|
|
11
|
+
HOUR = 2,
|
|
12
|
+
DAY = 3,
|
|
13
|
+
KILOGRAM = 4,
|
|
14
|
+
LITER = 5,
|
|
15
|
+
KILOMETER = 6,
|
|
16
|
+
HALF_DAY = 7,
|
|
17
|
+
YEAR = 8,
|
|
18
|
+
WEEK = 9,
|
|
19
|
+
MONTH = 10,
|
|
20
|
+
QUARTER = 11,
|
|
21
|
+
PIECE = 12,
|
|
22
|
+
FIXED = 13,
|
|
23
|
+
SQUARE_METER = 14,
|
|
24
|
+
CUBIC_METER = 15,
|
|
25
|
+
METER = 16,
|
|
26
|
+
SUBSCRIPTION = 17,
|
|
27
|
+
NIGHT = 18,
|
|
28
|
+
TON = 19,
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export type IUnitList = Array<{ name: string; id: number; shortName: string; }>;
|
|
32
|
+
|
|
9
33
|
export const Unit: IUnit = {
|
|
10
34
|
ITEM: {
|
|
11
|
-
id:
|
|
35
|
+
id: UnitId.ITEM,
|
|
12
36
|
name: 'Article',
|
|
13
37
|
shortName: 'art',
|
|
14
38
|
},
|
|
15
39
|
HOUR: {
|
|
16
|
-
id:
|
|
40
|
+
id: UnitId.HOUR,
|
|
17
41
|
name: 'Heure',
|
|
18
42
|
shortName: 'h',
|
|
19
43
|
},
|
|
20
44
|
DAY: {
|
|
21
|
-
id:
|
|
45
|
+
id: UnitId.DAY,
|
|
22
46
|
name: 'Jour',
|
|
23
47
|
shortName: 'j',
|
|
24
48
|
},
|
|
25
49
|
KILOGRAM: {
|
|
26
|
-
id:
|
|
50
|
+
id: UnitId.KILOGRAM,
|
|
27
51
|
name: 'Kilogramme',
|
|
28
52
|
shortName: 'kg',
|
|
29
53
|
},
|
|
30
54
|
LITER: {
|
|
31
|
-
id:
|
|
55
|
+
id: UnitId.LITER,
|
|
32
56
|
name: 'Litre',
|
|
33
57
|
shortName: 'l',
|
|
34
58
|
},
|
|
35
59
|
KILOMETER: {
|
|
36
|
-
id:
|
|
60
|
+
id: UnitId.KILOMETER,
|
|
37
61
|
name: 'Kilomètres',
|
|
38
62
|
shortName: 'km',
|
|
39
63
|
},
|
|
40
64
|
HALF_DAY: {
|
|
41
|
-
id:
|
|
65
|
+
id: UnitId.HALF_DAY,
|
|
42
66
|
name: 'Demi journée',
|
|
43
67
|
shortName: 'demi j',
|
|
44
68
|
},
|
|
45
69
|
YEAR: {
|
|
46
|
-
id:
|
|
70
|
+
id: UnitId.YEAR,
|
|
47
71
|
name: 'Année',
|
|
48
72
|
shortName: 'an',
|
|
49
73
|
},
|
|
50
74
|
WEEK: {
|
|
51
|
-
id:
|
|
75
|
+
id: UnitId.WEEK,
|
|
52
76
|
name: 'Semaine',
|
|
53
77
|
shortName: 'sem',
|
|
54
78
|
},
|
|
55
79
|
MONTH: {
|
|
56
|
-
id:
|
|
80
|
+
id: UnitId.MONTH,
|
|
57
81
|
name: 'Mois',
|
|
58
82
|
shortName: 'mois',
|
|
59
83
|
},
|
|
60
84
|
QUARTER: {
|
|
61
|
-
id:
|
|
85
|
+
id: UnitId.QUARTER,
|
|
62
86
|
name: 'Trimestre',
|
|
63
87
|
shortName: 'trim',
|
|
64
88
|
},
|
|
65
89
|
PIECE: {
|
|
66
|
-
id:
|
|
90
|
+
id: UnitId.PIECE,
|
|
67
91
|
name: 'Pièce',
|
|
68
92
|
shortName: 'p',
|
|
69
93
|
},
|
|
70
94
|
FIXED: {
|
|
71
|
-
id:
|
|
95
|
+
id: UnitId.FIXED,
|
|
72
96
|
name: 'Forfaitaire',
|
|
73
97
|
shortName: 'f',
|
|
74
98
|
},
|
|
75
99
|
SQUARE_METER: {
|
|
76
|
-
id:
|
|
100
|
+
id: UnitId.SQUARE_METER,
|
|
77
101
|
name: 'Mètre carré',
|
|
78
102
|
shortName: 'm2',
|
|
79
103
|
},
|
|
80
104
|
CUBIC_METER: {
|
|
81
|
-
id:
|
|
105
|
+
id: UnitId.CUBIC_METER,
|
|
82
106
|
name: 'Mètre cube',
|
|
83
107
|
shortName: 'm3',
|
|
84
108
|
},
|
|
85
109
|
METER: {
|
|
86
|
-
id:
|
|
110
|
+
id: UnitId.METER,
|
|
87
111
|
name: 'Mètre',
|
|
88
112
|
shortName: 'm',
|
|
89
113
|
},
|
|
90
|
-
|
|
91
|
-
id:
|
|
114
|
+
SUBSCRIPTION: {
|
|
115
|
+
id: UnitId.SUBSCRIPTION,
|
|
92
116
|
name: 'Abonnement',
|
|
93
117
|
shortName: 'abo',
|
|
94
118
|
},
|
|
95
119
|
NIGHT: {
|
|
96
|
-
id:
|
|
120
|
+
id: UnitId.NIGHT,
|
|
97
121
|
name: 'Nuitée',
|
|
98
122
|
shortName: 'nuit',
|
|
99
123
|
},
|
|
100
124
|
TON: {
|
|
101
|
-
id:
|
|
125
|
+
id: UnitId.TON,
|
|
126
|
+
name: 'Tonne',
|
|
127
|
+
shortName: 't',
|
|
128
|
+
},
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
export const UnitList = [
|
|
132
|
+
{
|
|
133
|
+
id: UnitId.ITEM,
|
|
134
|
+
name: 'Article',
|
|
135
|
+
shortName: 'art',
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
id: UnitId.HOUR,
|
|
139
|
+
name: 'Heure',
|
|
140
|
+
shortName: 'h',
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
id: UnitId.DAY,
|
|
144
|
+
name: 'Jour',
|
|
145
|
+
shortName: 'j',
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
id: UnitId.KILOGRAM,
|
|
149
|
+
name: 'Kilogramme',
|
|
150
|
+
shortName: 'kg',
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
id: UnitId.LITER,
|
|
154
|
+
name: 'Litre',
|
|
155
|
+
shortName: 'l',
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
id: UnitId.KILOMETER,
|
|
159
|
+
name: 'Kilomètres',
|
|
160
|
+
shortName: 'km',
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
id: UnitId.HALF_DAY,
|
|
164
|
+
name: 'Demi journée',
|
|
165
|
+
shortName: 'demi j',
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
id: UnitId.YEAR,
|
|
169
|
+
name: 'Année',
|
|
170
|
+
shortName: 'an',
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
id: UnitId.WEEK,
|
|
174
|
+
name: 'Semaine',
|
|
175
|
+
shortName: 'sem',
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
id: UnitId.MONTH,
|
|
179
|
+
name: 'Mois',
|
|
180
|
+
shortName: 'mois',
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
id: UnitId.QUARTER,
|
|
184
|
+
name: 'Trimestre',
|
|
185
|
+
shortName: 'trim',
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
id: UnitId.PIECE,
|
|
189
|
+
name: 'Pièce',
|
|
190
|
+
shortName: 'p',
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
id: UnitId.FIXED,
|
|
194
|
+
name: 'Forfaitaire',
|
|
195
|
+
shortName: 'f',
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
id: UnitId.SQUARE_METER,
|
|
199
|
+
name: 'Mètre carré',
|
|
200
|
+
shortName: 'm2',
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
id: UnitId.CUBIC_METER,
|
|
204
|
+
name: 'Mètre cube',
|
|
205
|
+
shortName: 'm3',
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
id: UnitId.METER,
|
|
209
|
+
name: 'Mètre',
|
|
210
|
+
shortName: 'm',
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
id: UnitId.SUBSCRIPTION,
|
|
214
|
+
name: 'Abonnement',
|
|
215
|
+
shortName: 'abo',
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
id: UnitId.NIGHT,
|
|
219
|
+
name: 'Nuitée',
|
|
220
|
+
shortName: 'nuit',
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
id: UnitId.TON,
|
|
102
224
|
name: 'Tonne',
|
|
103
225
|
shortName: 't',
|
|
104
226
|
},
|
|
105
|
-
|
|
227
|
+
];
|
package/ts/types/Enum/Vat.ts
CHANGED
|
@@ -298,4 +298,22 @@ export const Vat:VatTypeEnum = {
|
|
|
298
298
|
isVatIntracom: false,
|
|
299
299
|
saleName: '',
|
|
300
300
|
},
|
|
301
|
-
};
|
|
301
|
+
};
|
|
302
|
+
|
|
303
|
+
export enum VatState {
|
|
304
|
+
WAITING = 0,
|
|
305
|
+
ACCEPTED_SIE = 1,
|
|
306
|
+
SEND_SIE = 2,
|
|
307
|
+
CLIENT_ISSUE = 3,
|
|
308
|
+
DONE_BY_CLIENT = 4,
|
|
309
|
+
NA = 5,
|
|
310
|
+
SEND_TO_CLIENT = 6,
|
|
311
|
+
CLIENT_RELAUNCHED = 7,
|
|
312
|
+
DOING_BACK = 8,
|
|
313
|
+
UNPAYED = 9,
|
|
314
|
+
SIE_ISSUE = 10,
|
|
315
|
+
ACCEPTED_BY_CLIENT = 11,
|
|
316
|
+
REFUSED_BY_CLIENT = 12,
|
|
317
|
+
TO_DO = 13,
|
|
318
|
+
WAITING_CLIENT = 14,
|
|
319
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { ISociety } from '../../models/ISociety';
|
|
2
|
+
|
|
3
|
+
export interface CountLateToDoDone {
|
|
4
|
+
late: string[],
|
|
5
|
+
toDo: string[],
|
|
6
|
+
done: string[]
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface Count {
|
|
10
|
+
count: number,
|
|
11
|
+
societiesList: string[]
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface CountIsIr {
|
|
15
|
+
IS: string[],
|
|
16
|
+
IR: string[],
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface CountComplementaryPrestation {
|
|
20
|
+
waitingClient: string[],
|
|
21
|
+
waitingDirection: string[],
|
|
22
|
+
acceptedDirection: string[],
|
|
23
|
+
refusedDirection: string[],
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
interface TotalAverage {
|
|
27
|
+
total: number,
|
|
28
|
+
average: number,
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface TotalAverageProfit {
|
|
32
|
+
factured: TotalAverage,
|
|
33
|
+
payed: TotalAverage
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface StatsLabBySocieties {
|
|
37
|
+
late: string[],
|
|
38
|
+
toDo: string[],
|
|
39
|
+
done: string[]
|
|
40
|
+
}
|
|
41
|
+
export interface StatsMailsBySocieties {
|
|
42
|
+
late: string[],
|
|
43
|
+
toDo: string[],
|
|
44
|
+
done: string[]
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface StatsCallsBySocieties {
|
|
48
|
+
late: string[],
|
|
49
|
+
toDo: string[],
|
|
50
|
+
done: string[]
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export interface StatsReportsBySocieties {
|
|
54
|
+
late: string[],
|
|
55
|
+
toDo: string[],
|
|
56
|
+
done: string[]
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export interface ExitApplication {
|
|
60
|
+
done: {
|
|
61
|
+
count: number,
|
|
62
|
+
societies: string[],
|
|
63
|
+
},
|
|
64
|
+
undone: {
|
|
65
|
+
count: number,
|
|
66
|
+
societies: string[],
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export interface StatisticBalanceSheetDetail {
|
|
71
|
+
goodToAttested: string[],
|
|
72
|
+
attested: string[],
|
|
73
|
+
attestedRefused: string[],
|
|
74
|
+
attestedObserved: string[],
|
|
75
|
+
toReview: string[],
|
|
76
|
+
toRevised: string[],
|
|
77
|
+
toSupervised: string[],
|
|
78
|
+
acceptedSIE: string[],
|
|
79
|
+
ARCAttested: string[],
|
|
80
|
+
ARCNoAttested: string[],
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export interface ReturnListType {
|
|
84
|
+
societies?: ISociety[],
|
|
85
|
+
active?: ISociety[],
|
|
86
|
+
unpayed?: string[],
|
|
87
|
+
terminated?: string[],
|
|
88
|
+
archived?: string[],
|
|
89
|
+
labDetail?: CountLateToDoDone,
|
|
90
|
+
balanceSheet?: CountLateToDoDone,
|
|
91
|
+
balanceSheetDetailed?: StatisticBalanceSheetDetail,
|
|
92
|
+
additionnalSell?: CountComplementaryPrestation,
|
|
93
|
+
tva?: CountLateToDoDone,
|
|
94
|
+
checklist?: CountLateToDoDone,
|
|
95
|
+
checklistReinforced?: CountLateToDoDone,
|
|
96
|
+
revision?: Count,
|
|
97
|
+
annotate?: string[],
|
|
98
|
+
isIr?: CountIsIr,
|
|
99
|
+
task?: StatsLabBySocieties,
|
|
100
|
+
mail?: StatsMailsBySocieties,
|
|
101
|
+
call?: StatsCallsBySocieties,
|
|
102
|
+
report?: StatsReportsBySocieties,
|
|
103
|
+
profitability?: TotalAverageProfit,
|
|
104
|
+
synchronised?: string[],
|
|
105
|
+
applicationJustified?: ExitApplication,
|
|
106
|
+
applicationAnnoted?: ExitApplication,
|
|
107
|
+
applicationSynchronised?: ExitApplication,
|
|
108
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IsNumber, IsDate, IsIn,
|
|
3
|
+
} from 'class-validator';
|
|
4
|
+
import { ApiProperty } from '../../../../utils';
|
|
5
|
+
import { StatisticType } from '../../../Enum/StatisticType';
|
|
6
|
+
|
|
7
|
+
export class QueryAccountant {
|
|
8
|
+
@ApiProperty()
|
|
9
|
+
@IsNumber()
|
|
10
|
+
idUser: number;
|
|
11
|
+
|
|
12
|
+
@ApiProperty()
|
|
13
|
+
@IsDate()
|
|
14
|
+
endDate: Date;
|
|
15
|
+
|
|
16
|
+
@ApiProperty()
|
|
17
|
+
@IsNumber()
|
|
18
|
+
@IsIn(Object.values(StatisticType))
|
|
19
|
+
type: number;
|
|
20
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IsNumber, IsDate, IsIn, IsOptional,
|
|
3
|
+
} from 'class-validator';
|
|
4
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
5
|
+
import { StatisticType } from '../../../Enum/StatisticType';
|
|
6
|
+
|
|
7
|
+
export class QueryDirection {
|
|
8
|
+
@ApiPropertyOptional()
|
|
9
|
+
@IsOptional()
|
|
10
|
+
idUser: number[];
|
|
11
|
+
|
|
12
|
+
@ApiProperty()
|
|
13
|
+
@IsDate()
|
|
14
|
+
endDate: Date;
|
|
15
|
+
|
|
16
|
+
@ApiProperty()
|
|
17
|
+
@IsNumber()
|
|
18
|
+
@IsIn(Object.values(StatisticType))
|
|
19
|
+
type: number;
|
|
20
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IsNumber, IsDate, IsIn, IsOptional,
|
|
3
|
+
} from 'class-validator';
|
|
4
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
5
|
+
import { StatisticType } from '../../../Enum/StatisticType';
|
|
6
|
+
|
|
7
|
+
export class QueryExpertAccountant {
|
|
8
|
+
@ApiPropertyOptional()
|
|
9
|
+
@IsOptional()
|
|
10
|
+
idUser: number[];
|
|
11
|
+
|
|
12
|
+
@ApiProperty()
|
|
13
|
+
@IsDate()
|
|
14
|
+
endDate: Date;
|
|
15
|
+
|
|
16
|
+
@ApiProperty()
|
|
17
|
+
@IsNumber()
|
|
18
|
+
@IsIn(Object.values(StatisticType))
|
|
19
|
+
type: number;
|
|
20
|
+
}
|