@silexpert/core 1.0.82 → 1.0.86
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/Inpi.d.ts +61 -0
- package/es/api/resources/Inpi.d.ts.map +1 -0
- package/es/api/resources/Inpi.js +78 -0
- package/es/api/resources/Inpi.js.map +1 -0
- package/es/api/resources/prestation.d.ts +11 -0
- package/es/api/resources/prestation.d.ts.map +1 -0
- package/es/api/resources/prestation.js +12 -0
- package/es/api/resources/prestation.js.map +1 -0
- package/es/api/resources.d.ts +4 -0
- package/es/api/resources.d.ts.map +1 -1
- package/es/api/resources.js +4 -0
- package/es/api/resources.js.map +1 -1
- package/es/types/Enum/AccountType.d.ts +10 -0
- package/es/types/Enum/AccountType.d.ts.map +1 -1
- package/es/types/Enum/AccountType.js +10 -0
- package/es/types/Enum/AccountType.js.map +1 -1
- package/es/types/Enum/CerfaType.d.ts +2 -1
- package/es/types/Enum/CerfaType.d.ts.map +1 -1
- package/es/types/Enum/CerfaType.js +2 -1
- package/es/types/Enum/CerfaType.js.map +1 -1
- package/es/types/Enum/InpiType.d.ts +39 -0
- package/es/types/Enum/InpiType.d.ts.map +1 -0
- package/es/types/Enum/InpiType.js +39 -0
- package/es/types/Enum/InpiType.js.map +1 -0
- package/es/types/Enum/PrestationType.d.ts +18 -1
- package/es/types/Enum/PrestationType.d.ts.map +1 -1
- package/es/types/Enum/PrestationType.js +17 -0
- package/es/types/Enum/PrestationType.js.map +1 -1
- package/es/types/Enum/ProcessingState.d.ts +7 -0
- package/es/types/Enum/ProcessingState.d.ts.map +1 -0
- package/es/types/Enum/ProcessingState.js +8 -0
- package/es/types/Enum/ProcessingState.js.map +1 -0
- package/es/types/Enum/TimeCounterType.d.ts +42 -0
- package/es/types/Enum/TimeCounterType.d.ts.map +1 -1
- package/es/types/Enum/TimeCounterType.js +42 -0
- package/es/types/Enum/TimeCounterType.js.map +1 -1
- package/es/types/Enum/Vat.js +1 -1
- package/es/types/Enum/Vat.js.map +1 -1
- package/es/types/Interface/api/aspone/ReadInterchange.d.ts +1 -1
- package/es/types/Interface/api/aspone/ReadInterchange.d.ts.map +1 -1
- package/es/types/Interface/api/aspone/ReadInterchange.js.map +1 -1
- package/es/types/Interface/api/cerfa/2572.d.ts +91 -2
- package/es/types/Interface/api/cerfa/2572.d.ts.map +1 -1
- package/es/types/Interface/api/cerfa/2572.js +3 -1
- package/es/types/Interface/api/cerfa/2572.js.map +1 -1
- package/es/types/Interface/api/iDocus/CreateExport.d.ts +4 -0
- package/es/types/Interface/api/iDocus/CreateExport.d.ts.map +1 -0
- package/es/types/Interface/api/iDocus/CreateExport.js +21 -0
- package/es/types/Interface/api/iDocus/CreateExport.js.map +1 -0
- package/es/types/Interface/api/iDocus/iDocus.d.ts +35 -0
- package/es/types/Interface/api/iDocus/iDocus.d.ts.map +1 -0
- package/es/types/Interface/api/iDocus/iDocus.js +2 -0
- package/es/types/Interface/api/iDocus/iDocus.js.map +1 -0
- package/es/types/Interface/api/inpiBalance/QueryInpiBalancePaginated.d.ts +6 -0
- package/es/types/Interface/api/inpiBalance/QueryInpiBalancePaginated.d.ts.map +1 -0
- package/es/types/Interface/api/inpiBalance/QueryInpiBalancePaginated.js +41 -0
- package/es/types/Interface/api/inpiBalance/QueryInpiBalancePaginated.js.map +1 -0
- package/es/types/Interface/api/inpiBalance/QueryInpiBalanceStatistic.d.ts +4 -0
- package/es/types/Interface/api/inpiBalance/QueryInpiBalanceStatistic.d.ts.map +1 -0
- package/es/types/Interface/api/inpiBalance/QueryInpiBalanceStatistic.js +21 -0
- package/es/types/Interface/api/inpiBalance/QueryInpiBalanceStatistic.js.map +1 -0
- package/es/types/Interface/api/inpiBalance/inpiBalanceStatistic.d.ts +6 -0
- package/es/types/Interface/api/inpiBalance/inpiBalanceStatistic.d.ts.map +1 -0
- package/es/types/Interface/api/inpiBalance/inpiBalanceStatistic.js +2 -0
- package/es/types/Interface/api/inpiBalance/inpiBalanceStatistic.js.map +1 -0
- package/es/types/Interface/api/inpiPayment/QueryInpiPaymentPaginated.d.ts +10 -0
- package/es/types/Interface/api/inpiPayment/QueryInpiPaymentPaginated.d.ts.map +1 -0
- package/es/types/Interface/api/inpiPayment/QueryInpiPaymentPaginated.js +75 -0
- package/es/types/Interface/api/inpiPayment/QueryInpiPaymentPaginated.js.map +1 -0
- package/es/types/Interface/api/inpiPayment/QueryInpiPaymentStatistic.d.ts +4 -0
- package/es/types/Interface/api/inpiPayment/QueryInpiPaymentStatistic.d.ts.map +1 -0
- package/es/types/Interface/api/inpiPayment/QueryInpiPaymentStatistic.js +21 -0
- package/es/types/Interface/api/inpiPayment/QueryInpiPaymentStatistic.js.map +1 -0
- package/es/types/Interface/api/pdf/ReadPdftkizer.d.ts +2 -0
- package/es/types/Interface/api/pdf/ReadPdftkizer.d.ts.map +1 -0
- package/es/types/Interface/api/pdf/ReadPdftkizer.js +2 -0
- package/es/types/Interface/api/pdf/ReadPdftkizer.js.map +1 -0
- package/es/types/Interface/models/IAccountingTransaction.d.ts +1 -0
- package/es/types/Interface/models/IAccountingTransaction.d.ts.map +1 -1
- package/es/types/Interface/models/IAccountingTransaction.js.map +1 -1
- package/es/types/Interface/models/IInpiBalance.d.ts +10 -0
- package/es/types/Interface/models/IInpiBalance.d.ts.map +1 -0
- package/es/types/Interface/models/IInpiBalance.js +2 -0
- package/es/types/Interface/models/IInpiBalance.js.map +1 -0
- package/es/types/Interface/models/IInpiPayment.d.ts +29 -0
- package/es/types/Interface/models/IInpiPayment.d.ts.map +1 -0
- package/es/types/Interface/models/IInpiPayment.js +2 -0
- package/es/types/Interface/models/IInpiPayment.js.map +1 -0
- package/es/types/index.d.ts +13 -0
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +13 -0
- package/es/types/index.js.map +1 -1
- package/es/utils/commercialManagement/templates/body.js +2 -2
- package/es/utils/commercialManagement/templates/body.js.map +1 -1
- package/js/api/resources/Inpi.js +113 -0
- package/js/api/resources/Inpi.js.map +1 -0
- package/js/api/resources/prestation.js +23 -0
- package/js/api/resources/prestation.js.map +1 -0
- package/js/api/resources.js +6 -0
- package/js/api/resources.js.map +1 -1
- package/js/types/Enum/AccountType.js +10 -0
- package/js/types/Enum/AccountType.js.map +1 -1
- package/js/types/Enum/CerfaType.js +2 -1
- package/js/types/Enum/CerfaType.js.map +1 -1
- package/js/types/Enum/InpiType.js +44 -0
- package/js/types/Enum/InpiType.js.map +1 -0
- package/js/types/Enum/PrestationType.js +17 -0
- package/js/types/Enum/PrestationType.js.map +1 -1
- package/js/types/Enum/ProcessingState.js +14 -0
- package/js/types/Enum/ProcessingState.js.map +1 -0
- package/js/types/Enum/TimeCounterType.js +42 -0
- package/js/types/Enum/TimeCounterType.js.map +1 -1
- package/js/types/Enum/Vat.js +1 -1
- package/js/types/Enum/Vat.js.map +1 -1
- package/js/types/Interface/api/aspone/ReadInterchange.js.map +1 -1
- package/js/types/Interface/api/cerfa/2572.js +6 -2
- package/js/types/Interface/api/cerfa/2572.js.map +1 -1
- package/js/types/Interface/api/iDocus/CreateExport.js +29 -0
- package/js/types/Interface/api/iDocus/CreateExport.js.map +1 -0
- package/js/types/Interface/api/iDocus/iDocus.js +6 -0
- package/js/types/Interface/api/iDocus/iDocus.js.map +1 -0
- package/js/types/Interface/api/inpiBalance/QueryInpiBalancePaginated.js +47 -0
- package/js/types/Interface/api/inpiBalance/QueryInpiBalancePaginated.js.map +1 -0
- package/js/types/Interface/api/inpiBalance/QueryInpiBalanceStatistic.js +31 -0
- package/js/types/Interface/api/inpiBalance/QueryInpiBalanceStatistic.js.map +1 -0
- package/js/types/Interface/api/inpiBalance/inpiBalanceStatistic.js +6 -0
- package/js/types/Interface/api/inpiBalance/inpiBalanceStatistic.js.map +1 -0
- package/js/types/Interface/api/inpiPayment/QueryInpiPaymentPaginated.js +73 -0
- package/js/types/Interface/api/inpiPayment/QueryInpiPaymentPaginated.js.map +1 -0
- package/js/types/Interface/api/inpiPayment/QueryInpiPaymentStatistic.js +31 -0
- package/js/types/Interface/api/inpiPayment/QueryInpiPaymentStatistic.js.map +1 -0
- package/js/types/Interface/api/pdf/ReadPdftkizer.js +6 -0
- package/js/types/Interface/api/pdf/ReadPdftkizer.js.map +1 -0
- package/js/types/Interface/models/IInpiBalance.js +6 -0
- package/js/types/Interface/models/IInpiBalance.js.map +1 -0
- package/js/types/Interface/models/IInpiPayment.js +6 -0
- package/js/types/Interface/models/IInpiPayment.js.map +1 -0
- package/js/types/index.js +156 -0
- package/js/types/index.js.map +1 -1
- package/js/utils/commercialManagement/templates/body.js +2 -2
- package/js/utils/commercialManagement/templates/body.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Inpi.ts +89 -0
- package/ts/api/resources/prestation.ts +15 -0
- package/ts/api/resources.ts +4 -0
- package/ts/types/Enum/AccountType.ts +10 -0
- package/ts/types/Enum/CerfaType.ts +2 -1
- package/ts/types/Enum/InpiType.ts +40 -0
- package/ts/types/Enum/PrestationType.ts +17 -0
- package/ts/types/Enum/ProcessingState.ts +6 -0
- package/ts/types/Enum/TimeCounterType.ts +42 -0
- package/ts/types/Enum/Vat.ts +1 -1
- package/ts/types/Interface/api/aspone/ReadInterchange.ts +1 -1
- package/ts/types/Interface/api/cerfa/2572.ts +88 -2
- package/ts/types/Interface/api/iDocus/CreateExport.ts +10 -0
- package/ts/types/Interface/api/iDocus/iDocus.ts +35 -0
- package/ts/types/Interface/api/inpiBalance/QueryInpiBalancePaginated.ts +28 -0
- package/ts/types/Interface/api/inpiBalance/QueryInpiBalanceStatistic.ts +10 -0
- package/ts/types/Interface/api/inpiBalance/inpiBalanceStatistic.ts +5 -0
- package/ts/types/Interface/api/inpiPayment/QueryInpiPaymentPaginated.ts +58 -0
- package/ts/types/Interface/api/inpiPayment/QueryInpiPaymentStatistic.ts +10 -0
- package/ts/types/Interface/api/pdf/ReadPdftkizer.ts +1 -0
- package/ts/types/Interface/models/IAccountingTransaction.ts +1 -0
- package/ts/types/Interface/models/IInpiBalance.ts +12 -0
- package/ts/types/Interface/models/IInpiPayment.ts +31 -0
- package/ts/types/index.ts +13 -0
- package/ts/utils/commercialManagement/templates/body.ts +2 -2
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { Resource } from '../Resource';
|
|
2
|
+
import {
|
|
3
|
+
BasePaginate, IInpiBalance, ReadInpiBalanceStatistic, QueryInpiBalancePaginated, QueryInpiBalanceStatistic, IInpiPayment, QueryInpiPaymentPaginated, QueryInpiPaymentStatistic,
|
|
4
|
+
} from '../../types';
|
|
5
|
+
|
|
6
|
+
export class Inpi extends Resource {
|
|
7
|
+
/**
|
|
8
|
+
* Créer un enregistrement dans la table InpiBalance
|
|
9
|
+
* @param { IInpiBalance } payload
|
|
10
|
+
* @returns { IInpiBalance }
|
|
11
|
+
*/
|
|
12
|
+
public createBalance(payload: IInpiBalance): Promise<IInpiBalance> {
|
|
13
|
+
return this.axios.$post('/inpi/balances', payload);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Update un enregistrement dans la table InpiBalance
|
|
18
|
+
* @param { number } id
|
|
19
|
+
* @param { Partial<IInpiBalance> } payload
|
|
20
|
+
* @returns { boolean }
|
|
21
|
+
*/
|
|
22
|
+
public updateBalance(id: number, payload: Partial<IInpiBalance>): Promise<boolean> {
|
|
23
|
+
return this.axios.$put(`/inpi/balances/${id}`, payload);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Retourne les enregistrement de la table InpiBalance sous format paginé
|
|
28
|
+
* @param { QueryInpiBalancePaginated } params
|
|
29
|
+
* @returns { BasePaginate<IInpiBalance> }
|
|
30
|
+
*/
|
|
31
|
+
public getBalancePaginate(params: QueryInpiBalancePaginated): Promise<BasePaginate<IInpiBalance>> {
|
|
32
|
+
return this.axios.$get('/inpi/balances/paginate', { params });
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Retourne les statistic pour le solde des Inpi
|
|
37
|
+
* @param { QueryInpiBalanceStatistic } params
|
|
38
|
+
* @returns { ReadInpiBalanceStatistic }
|
|
39
|
+
*/
|
|
40
|
+
public getBalanceStatistic(params: QueryInpiBalanceStatistic): Promise<ReadInpiBalanceStatistic> {
|
|
41
|
+
return this.axios.$get('/inpi/balances/statistic', { params });
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Créer un enregistrement dans la table InpiPayment
|
|
46
|
+
* @param { IInpiPayment } payload
|
|
47
|
+
* @returns { IInpiPayment }
|
|
48
|
+
*/
|
|
49
|
+
public createPayment(payload: IInpiPayment): Promise<IInpiPayment> {
|
|
50
|
+
return this.axios.$post('/inpi/payments', payload);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Update un enregistrement dans la table InpiPayment
|
|
55
|
+
* @param { number } id
|
|
56
|
+
* @param { Partial<IInpiPayment> } payload
|
|
57
|
+
* @returns { boolean }
|
|
58
|
+
*/
|
|
59
|
+
public updatePayment(id: number, payload: Partial<IInpiPayment>): Promise<boolean> {
|
|
60
|
+
return this.axios.$put(`/inpi/payments/${id}`, payload);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Delete un enregistrement de la table InpiPayment
|
|
65
|
+
* @param { number } id
|
|
66
|
+
* @returns { boolean }
|
|
67
|
+
*/
|
|
68
|
+
public deletePayment(id: number): Promise<boolean> {
|
|
69
|
+
return this.axios.$delete(`/inpi/payments/${id}`);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Retourne les enregistrement de la table InpiPayment sous format paginé
|
|
74
|
+
* @param { QueryInpiPaymentPaginated } params
|
|
75
|
+
* @returns { BasePaginate<IInpiPayment> }
|
|
76
|
+
*/
|
|
77
|
+
public getPaymentPaginate(params: QueryInpiPaymentPaginated): Promise<BasePaginate<IInpiPayment>> {
|
|
78
|
+
return this.axios.$get('/inpi/payments/paginate', { params });
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Retourne les statistic mensuel pour les commissions hors taxes
|
|
83
|
+
* @param { QueryInpiPaymentStatistic } params
|
|
84
|
+
* @returns { string[] }
|
|
85
|
+
*/
|
|
86
|
+
public getPaymentStatistic(params: QueryInpiPaymentStatistic): Promise<string[]> {
|
|
87
|
+
return this.axios.$get('/inpi/payments/commission/statistic', { params });
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Resource } from '../Resource';
|
|
2
|
+
import {
|
|
3
|
+
IPrestation,
|
|
4
|
+
} from '../../types';
|
|
5
|
+
|
|
6
|
+
export class Prestation extends Resource {
|
|
7
|
+
/**
|
|
8
|
+
* retourne toutes les prestations juridique d'une société
|
|
9
|
+
* @param { number } id
|
|
10
|
+
* @returns { IPrestation }
|
|
11
|
+
*/
|
|
12
|
+
public getAllJuridicFromSociety(id: number): Promise<IPrestation> {
|
|
13
|
+
return this.axios.$get(`/prestation/society/${id}/juridicals`);
|
|
14
|
+
}
|
|
15
|
+
}
|
package/ts/api/resources.ts
CHANGED
|
@@ -109,6 +109,8 @@ import { SlowDetection } from './resources/SlowDetection';
|
|
|
109
109
|
import { Sources } from './resources/Sources';
|
|
110
110
|
import { Commercial } from './resources/Commercial';
|
|
111
111
|
import { Facturation } from './resources/Facturation';
|
|
112
|
+
import { Inpi } from './resources/Inpi';
|
|
113
|
+
import { Prestation } from './resources/prestation';
|
|
112
114
|
|
|
113
115
|
export const resources = {
|
|
114
116
|
simulation: Simulation,
|
|
@@ -221,5 +223,7 @@ export const resources = {
|
|
|
221
223
|
paymentExpectation: PaymentExpectation,
|
|
222
224
|
terminationList: TerminationList,
|
|
223
225
|
slowDetection: SlowDetection,
|
|
226
|
+
inpi: Inpi,
|
|
227
|
+
prestation: Prestation,
|
|
224
228
|
sources: Sources,
|
|
225
229
|
};
|
|
@@ -119,4 +119,14 @@ export const AccountType = {
|
|
|
119
119
|
color: '#CCCCCC',
|
|
120
120
|
icon: 'CapitalAssets',
|
|
121
121
|
},
|
|
122
|
+
ACHATS_MATIERE_PREMIERE: {
|
|
123
|
+
id: 29,
|
|
124
|
+
color: '#FBD65C',
|
|
125
|
+
icon: 'Buyings',
|
|
126
|
+
},
|
|
127
|
+
ACHATS_EXTERNES: {
|
|
128
|
+
id: 30,
|
|
129
|
+
color: '#FBD65C',
|
|
130
|
+
icon: 'Buyings',
|
|
131
|
+
},
|
|
122
132
|
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export const InpiCostType = {
|
|
2
|
+
GREFFE: {
|
|
3
|
+
id: 1,
|
|
4
|
+
label: 'Greffe',
|
|
5
|
+
},
|
|
6
|
+
CMA: {
|
|
7
|
+
id: 2,
|
|
8
|
+
label: 'CMA',
|
|
9
|
+
},
|
|
10
|
+
OTHER: {
|
|
11
|
+
id: 3,
|
|
12
|
+
label: 'Autres Greffe',
|
|
13
|
+
},
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export const InpiState = {
|
|
17
|
+
IN_PROGRESS: {
|
|
18
|
+
id: 1,
|
|
19
|
+
label: 'En cours de paiement client',
|
|
20
|
+
},
|
|
21
|
+
CUSTOMER_CANCELLED: {
|
|
22
|
+
id: 2,
|
|
23
|
+
label: 'Annulé problème client',
|
|
24
|
+
},
|
|
25
|
+
VALIDATED: {
|
|
26
|
+
id: 3,
|
|
27
|
+
label: 'Validé',
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export const InpiPaymentType = {
|
|
32
|
+
PACKAGE: {
|
|
33
|
+
id: 1,
|
|
34
|
+
label: 'Forfait',
|
|
35
|
+
},
|
|
36
|
+
PAYMENT_LINK: {
|
|
37
|
+
id: 2,
|
|
38
|
+
label: 'Lien de paiement',
|
|
39
|
+
},
|
|
40
|
+
};
|
|
@@ -162,6 +162,7 @@ export enum PrestationType {
|
|
|
162
162
|
COMPTA_POURCENTAGE_EXPRESS = 207,
|
|
163
163
|
COMPTA_POURCENTAGE_PREMIUM_EXPRESS = 208,
|
|
164
164
|
ANNONCE_LEGALE = 209,
|
|
165
|
+
FRAIS_DE_GREFFE = 210,
|
|
165
166
|
}
|
|
166
167
|
|
|
167
168
|
export const PrestationDetail = {
|
|
@@ -2774,4 +2775,20 @@ export const PrestationDetail = {
|
|
|
2774
2775
|
signaturePosition: '308,68,563,131',
|
|
2775
2776
|
signaturePage: 7,
|
|
2776
2777
|
},
|
|
2778
|
+
FRAIS_DE_GREFFE: {
|
|
2779
|
+
id: 210,
|
|
2780
|
+
name: 'Annonces légales',
|
|
2781
|
+
isComptable: 0,
|
|
2782
|
+
isJuridique: 1,
|
|
2783
|
+
isSocial: 0,
|
|
2784
|
+
isAttestation: 0,
|
|
2785
|
+
inAverageCart: 0,
|
|
2786
|
+
isBack: 0,
|
|
2787
|
+
price: null,
|
|
2788
|
+
isCatalog: 0,
|
|
2789
|
+
hidden: 0,
|
|
2790
|
+
isComplementary: 0,
|
|
2791
|
+
signaturePosition: '',
|
|
2792
|
+
signaturePage: 0,
|
|
2793
|
+
},
|
|
2777
2794
|
};
|
|
@@ -197,4 +197,46 @@ export const TimeCounterType = {
|
|
|
197
197
|
limitedRoles: null,
|
|
198
198
|
color: 'orange-light',
|
|
199
199
|
},
|
|
200
|
+
PHYSIC_UPKEEP: {
|
|
201
|
+
id: 29,
|
|
202
|
+
label: 'Entretien physique',
|
|
203
|
+
aberrantTime: 30,
|
|
204
|
+
limitedRoles: [Role.HUMAN_RESSOURCES],
|
|
205
|
+
color: 'success',
|
|
206
|
+
},
|
|
207
|
+
VISIO_UPKEEP: {
|
|
208
|
+
id: 30,
|
|
209
|
+
label: 'Entretien viso-conférence',
|
|
210
|
+
aberrantTime: 30,
|
|
211
|
+
limitedRoles: [Role.HUMAN_RESSOURCES],
|
|
212
|
+
color: 'success',
|
|
213
|
+
},
|
|
214
|
+
PREQUALIF_TEL: {
|
|
215
|
+
id: 31,
|
|
216
|
+
label: 'Pré-qualification téléphonique',
|
|
217
|
+
aberrantTime: 30,
|
|
218
|
+
limitedRoles: [Role.HUMAN_RESSOURCES],
|
|
219
|
+
color: 'success',
|
|
220
|
+
},
|
|
221
|
+
HUMAN_RESSOURCES_POINT: {
|
|
222
|
+
id: 32,
|
|
223
|
+
label: 'Point RH',
|
|
224
|
+
aberrantTime: 30,
|
|
225
|
+
limitedRoles: [Role.HUMAN_RESSOURCES],
|
|
226
|
+
color: 'cerulean',
|
|
227
|
+
},
|
|
228
|
+
ADMINISTRATIV: {
|
|
229
|
+
id: 33,
|
|
230
|
+
label: 'Administratif',
|
|
231
|
+
aberrantTime: 30,
|
|
232
|
+
limitedRoles: [Role.HUMAN_RESSOURCES],
|
|
233
|
+
color: 'iris',
|
|
234
|
+
},
|
|
235
|
+
INTEGRATION_DAY: {
|
|
236
|
+
id: 34,
|
|
237
|
+
label: 'Journée d’intégration',
|
|
238
|
+
aberrantTime: 30,
|
|
239
|
+
limitedRoles: [Role.HUMAN_RESSOURCES],
|
|
240
|
+
color: 'orange',
|
|
241
|
+
},
|
|
200
242
|
};
|
package/ts/types/Enum/Vat.ts
CHANGED
|
@@ -57,7 +57,7 @@ export class Redactor {
|
|
|
57
57
|
type Tag = 'Valeur' | 'AdresseVille' | 'AdresseVoie' | 'AdresseCodePays' | 'AdresseComplement' | 'AdresseCodePostal' | 'AdresseHameau' | 'Telephone' | 'Designation' | 'DesignationSuite1' | 'DesignationSuite2' | 'Identifiant' | 'TexteLibre1' | 'TexteLibre2' | 'DesignationSuite3' | 'AdresseNumero';
|
|
58
58
|
type Tags = Array<{ description: string; tag: Tag; value: any }>;
|
|
59
59
|
|
|
60
|
-
interface FieldForGeneration {
|
|
60
|
+
export interface FieldForGeneration {
|
|
61
61
|
tag?: Tag;
|
|
62
62
|
tags?: Tags,
|
|
63
63
|
description?: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CerfaType } from '../../../Enum/CerfaType';
|
|
1
2
|
import { Termination, CerfaAddress } from './ReadCerfa';
|
|
2
3
|
|
|
3
4
|
type BaseAndAmount = {
|
|
@@ -14,6 +15,14 @@ type Tax = {
|
|
|
14
15
|
total: number;
|
|
15
16
|
};
|
|
16
17
|
|
|
18
|
+
type Tax_2023 = {
|
|
19
|
+
normalRate: BaseAndAmount;
|
|
20
|
+
reduceRate: BaseAndAmount;
|
|
21
|
+
addedValue: { amount: number; }
|
|
22
|
+
other: { amount: number; }
|
|
23
|
+
total: number;
|
|
24
|
+
};
|
|
25
|
+
|
|
17
26
|
type Exercice = {
|
|
18
27
|
startDate: string;
|
|
19
28
|
endDate: string;
|
|
@@ -85,6 +94,63 @@ type Debts = {
|
|
|
85
94
|
CSB: { base: number };
|
|
86
95
|
};
|
|
87
96
|
|
|
97
|
+
type Debts_2023 = {
|
|
98
|
+
onCompanyTax: number;
|
|
99
|
+
notOnCompanyTax: number;
|
|
100
|
+
VEL: number;
|
|
101
|
+
PRE: number;
|
|
102
|
+
new: number;
|
|
103
|
+
companyTaxAfterImputation: number;
|
|
104
|
+
reducedTax: {
|
|
105
|
+
inEurope: number;
|
|
106
|
+
amount: number;
|
|
107
|
+
}
|
|
108
|
+
balanceInPreviousExercises: number;
|
|
109
|
+
jobCredit: PreFinancingWithAmount;
|
|
110
|
+
jobCreditForLongExercises: PreFinancingWithAmount;
|
|
111
|
+
jobCreditForPreviousExercises: number;
|
|
112
|
+
corse: number;
|
|
113
|
+
CORInPreviousExercise: number;
|
|
114
|
+
deficit: number;
|
|
115
|
+
RADInPreviousExercise: number;
|
|
116
|
+
CIRcredit: number;
|
|
117
|
+
CIRsolde: number;
|
|
118
|
+
CRCcredit: number;
|
|
119
|
+
CRCsolde: number;
|
|
120
|
+
reportedInLine2B11: number;
|
|
121
|
+
subTotal: number;
|
|
122
|
+
inDepositLimit: number;
|
|
123
|
+
balanceDebtInPreviousExercises: number;
|
|
124
|
+
reducedTaxOuterSea: number;
|
|
125
|
+
balanceInPreviousExercisesOuterSea: number;
|
|
126
|
+
FOR: number;
|
|
127
|
+
RAC: number;
|
|
128
|
+
FAM: number;
|
|
129
|
+
CIN: number;
|
|
130
|
+
BIO: number;
|
|
131
|
+
PHO: number;
|
|
132
|
+
AUD: number;
|
|
133
|
+
ART: number;
|
|
134
|
+
CJV: number;
|
|
135
|
+
CPE: number;
|
|
136
|
+
CCI: number;
|
|
137
|
+
PTR: number;
|
|
138
|
+
CIO: PreFinancingWithAmount;
|
|
139
|
+
COL: PreFinancingWithAmount;
|
|
140
|
+
CSV: number;
|
|
141
|
+
REB: number;
|
|
142
|
+
RTD: number;
|
|
143
|
+
CPG: number;
|
|
144
|
+
HVE: number;
|
|
145
|
+
EOM: number;
|
|
146
|
+
newUnlistedReceivables: number;
|
|
147
|
+
inLine2C22: number;
|
|
148
|
+
subTotal2: number;
|
|
149
|
+
afterImputation: number;
|
|
150
|
+
payment: number;
|
|
151
|
+
taxAmount: number;
|
|
152
|
+
};
|
|
153
|
+
|
|
88
154
|
type SocialContribution = {
|
|
89
155
|
CSB: BaseAndAmount;
|
|
90
156
|
strangers: number;
|
|
@@ -117,6 +183,8 @@ type Summary = {
|
|
|
117
183
|
overageRefundAsked: number;
|
|
118
184
|
};
|
|
119
185
|
|
|
186
|
+
type Summary_2023 = Summary & { temporaryContribution: number; };
|
|
187
|
+
|
|
120
188
|
type Payment = {
|
|
121
189
|
date: number;
|
|
122
190
|
phone: number;
|
|
@@ -135,7 +203,7 @@ type Administration = {
|
|
|
135
203
|
receptionDate: string;
|
|
136
204
|
};
|
|
137
205
|
|
|
138
|
-
export class
|
|
206
|
+
export class Cerfa2572_2022 {
|
|
139
207
|
siren: string;
|
|
140
208
|
exercice: Exercice;
|
|
141
209
|
society: Society;
|
|
@@ -149,6 +217,24 @@ export class Cerfa2572 {
|
|
|
149
217
|
termination: Termination;
|
|
150
218
|
}
|
|
151
219
|
|
|
152
|
-
export
|
|
220
|
+
export class Cerfa2572_2023 {
|
|
221
|
+
siren: string;
|
|
222
|
+
exercice: Exercice;
|
|
223
|
+
society: Society;
|
|
224
|
+
tax: Tax_2023;
|
|
225
|
+
debts: Debts_2023;
|
|
226
|
+
socialContribution: SocialContribution;
|
|
227
|
+
yearlyContribution: YearlyContribution;
|
|
228
|
+
summary: Summary_2023;
|
|
229
|
+
payment: Payment;
|
|
230
|
+
administration?: Administration;
|
|
231
|
+
termination: Termination;
|
|
232
|
+
temporaryContribution: {
|
|
233
|
+
solidarityRange: number;
|
|
234
|
+
solidarityAmount: number;
|
|
235
|
+
};
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
export type Prepare2572Params = { idSociety: number; idExercice: number; values: Cerfa2572_2022 | Cerfa2572_2023, idCerfaType: CerfaType.CERFA_2572_2022 | CerfaType.CERFA_2572_2023 };
|
|
153
239
|
|
|
154
240
|
export class ParamsGenerate2572 {}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export type HookPayload = {
|
|
2
|
+
external_id: number; // Votre id
|
|
3
|
+
parent_external_id: number;// Votre id
|
|
4
|
+
currency: string; // Devise
|
|
5
|
+
date: string; // Date de facture
|
|
6
|
+
supplier: string; // Nom fournisseur
|
|
7
|
+
iban: string; // Iban
|
|
8
|
+
vat_identifier: string; // Identifiant de TVA du fournisseur
|
|
9
|
+
due_date: string; // Date d'échéance
|
|
10
|
+
invoice_number: string; // Numéro de facture
|
|
11
|
+
category: string; // Catégorie selon votre nomenclature
|
|
12
|
+
amount_without_taxes: number; // Montant HT
|
|
13
|
+
original_amount_without_taxes: number; // Montant original HT en devise si devise
|
|
14
|
+
original_total_amount: number; // Montant original TTC en devise si devise
|
|
15
|
+
tax_amount: number; // Total TVA
|
|
16
|
+
total_amount: number; // Total TTC
|
|
17
|
+
error_code: string; // Code erreur sous forme de string
|
|
18
|
+
controlled: boolean; // Passé en contrôle qualité
|
|
19
|
+
page_count: number; // Nombre de pages
|
|
20
|
+
observation: string; // Observation du con
|
|
21
|
+
file_base64: string;// Le document découpé
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
type Document = {
|
|
25
|
+
external_id: number, // L'Id du document chez vous
|
|
26
|
+
file_base64: string, // Le base 64 du document, on peut aussi fonctionner par URL
|
|
27
|
+
document_type: 'purchases' | 'sales' | 'bank', // Le type de doc
|
|
28
|
+
sender: string, // Votre client
|
|
29
|
+
callbackurl: string, // L'URL sur laquelle vous envoyer le callback une fois le traitement fini
|
|
30
|
+
account_numbers?: string[] // Les comptes bancaires à traiter sur le relevé (si bank)
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export type PayloadIDocus = {
|
|
34
|
+
document: Document
|
|
35
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
2
|
+
|
|
3
|
+
export class QueryInpiBalancePaginated {
|
|
4
|
+
@ApiProperty({
|
|
5
|
+
description: 'limit of element',
|
|
6
|
+
required: true,
|
|
7
|
+
type: Number,
|
|
8
|
+
default: 50,
|
|
9
|
+
example: 50,
|
|
10
|
+
})
|
|
11
|
+
limit: number;
|
|
12
|
+
|
|
13
|
+
@ApiProperty({
|
|
14
|
+
description: 'limit of element',
|
|
15
|
+
required: true,
|
|
16
|
+
type: Number,
|
|
17
|
+
default: 1,
|
|
18
|
+
example: 5,
|
|
19
|
+
})
|
|
20
|
+
page: number;
|
|
21
|
+
|
|
22
|
+
@ApiPropertyOptional({
|
|
23
|
+
description: 'end date of the paginated',
|
|
24
|
+
required: false,
|
|
25
|
+
type: String,
|
|
26
|
+
})
|
|
27
|
+
endDate: string;
|
|
28
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
2
|
+
|
|
3
|
+
export class QueryInpiPaymentPaginated {
|
|
4
|
+
@ApiProperty({
|
|
5
|
+
description: 'limit of element',
|
|
6
|
+
required: true,
|
|
7
|
+
type: Number,
|
|
8
|
+
default: 50,
|
|
9
|
+
example: 50,
|
|
10
|
+
})
|
|
11
|
+
limit: number;
|
|
12
|
+
|
|
13
|
+
@ApiProperty({
|
|
14
|
+
description: 'limit of element',
|
|
15
|
+
required: true,
|
|
16
|
+
type: Number,
|
|
17
|
+
default: 1,
|
|
18
|
+
example: 5,
|
|
19
|
+
})
|
|
20
|
+
page: number;
|
|
21
|
+
|
|
22
|
+
@ApiPropertyOptional({
|
|
23
|
+
description: 'list of selected cost type',
|
|
24
|
+
required: false,
|
|
25
|
+
type: String,
|
|
26
|
+
example: 'test',
|
|
27
|
+
})
|
|
28
|
+
search: string;
|
|
29
|
+
|
|
30
|
+
@ApiPropertyOptional({
|
|
31
|
+
description: 'list of selected cost type',
|
|
32
|
+
required: false,
|
|
33
|
+
example: [1, 2, 3],
|
|
34
|
+
})
|
|
35
|
+
costType: number[];
|
|
36
|
+
|
|
37
|
+
@ApiPropertyOptional({
|
|
38
|
+
description: 'end date of the paginated',
|
|
39
|
+
required: false,
|
|
40
|
+
type: String,
|
|
41
|
+
})
|
|
42
|
+
endDate: string;
|
|
43
|
+
|
|
44
|
+
@ApiPropertyOptional({
|
|
45
|
+
description: 'list of selected state',
|
|
46
|
+
required: false,
|
|
47
|
+
example: [1, 2, 3],
|
|
48
|
+
})
|
|
49
|
+
state: number[];
|
|
50
|
+
|
|
51
|
+
@ApiPropertyOptional({
|
|
52
|
+
description: 'id of a selected user',
|
|
53
|
+
required: false,
|
|
54
|
+
type: Number,
|
|
55
|
+
example: 1,
|
|
56
|
+
})
|
|
57
|
+
idUser: number;
|
|
58
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ReadPdftkizerFill = string;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ISociety } from './ISociety';
|
|
2
|
+
import { IUser } from './IUser';
|
|
3
|
+
import { IExercice } from './IExercice';
|
|
4
|
+
import { IPrestation } from './IPrestation';
|
|
5
|
+
import { IPaymentExpectation } from './IPaymentExpectation';
|
|
6
|
+
|
|
7
|
+
export interface IInpiPayment {
|
|
8
|
+
id?: number,
|
|
9
|
+
costType: string,
|
|
10
|
+
fileNumber: number,
|
|
11
|
+
amount: number,
|
|
12
|
+
commission: number,
|
|
13
|
+
type: number,
|
|
14
|
+
state: number,
|
|
15
|
+
idSociety: number
|
|
16
|
+
idUserWhoCreated: number,
|
|
17
|
+
idExercice: number,
|
|
18
|
+
idPrestationRelated: number,
|
|
19
|
+
idPrestation?: number,
|
|
20
|
+
idPaymentExpectation?: number,
|
|
21
|
+
createdAt?: Date;
|
|
22
|
+
updatedAt?: Date;
|
|
23
|
+
|
|
24
|
+
// Associations
|
|
25
|
+
society?: ISociety;
|
|
26
|
+
userWhoCreated?: IUser;
|
|
27
|
+
exercice?: IExercice;
|
|
28
|
+
prestationRelated?: IPrestation;
|
|
29
|
+
prestation?: IPrestation;
|
|
30
|
+
paymentExpectation?: IPaymentExpectation;
|
|
31
|
+
}
|