@silexpert/core 1.1.104 → 1.1.107
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/Authenticate.d.ts +2 -0
- package/es/api/resources/Authenticate.d.ts.map +1 -1
- package/es/api/resources/Authenticate.js +14 -0
- package/es/api/resources/Authenticate.js.map +1 -1
- package/es/api/resources/BalanceSheet.d.ts +2 -1
- package/es/api/resources/BalanceSheet.d.ts.map +1 -1
- package/es/api/resources/BalanceSheet.js +3 -0
- package/es/api/resources/BalanceSheet.js.map +1 -1
- package/es/api/resources/BalanceSheetModule.d.ts +2 -2
- package/es/api/resources/BalanceSheetModule.d.ts.map +1 -1
- package/es/api/resources/BalanceSheetModule.js +4 -4
- package/es/api/resources/BalanceSheetModule.js.map +1 -1
- package/es/api/resources/Transaction.d.ts +2 -2
- package/es/api/resources/Transaction.d.ts.map +1 -1
- package/es/api/resources/Transaction.js +4 -4
- package/es/api/resources/Transaction.js.map +1 -1
- package/es/types/Enum/BalanceSheet.d.ts +2 -8
- package/es/types/Enum/BalanceSheet.d.ts.map +1 -1
- package/es/types/Enum/BalanceSheet.js +2 -9
- package/es/types/Enum/BalanceSheet.js.map +1 -1
- package/es/types/Enum/Country.js +242 -242
- package/es/types/Enum/Country.js.map +1 -1
- package/es/types/Enum/Supervision.d.ts +2 -1
- package/es/types/Enum/Supervision.d.ts.map +1 -1
- package/es/types/Enum/Supervision.js +7 -0
- package/es/types/Enum/Supervision.js.map +1 -1
- package/es/types/Form/FormAuthenticate.d.ts +2 -0
- package/es/types/Form/FormAuthenticate.d.ts.map +1 -1
- package/es/types/Form/FormAuthenticate.js +16 -1
- package/es/types/Form/FormAuthenticate.js.map +1 -1
- package/es/types/Interface/api/authentification/ReadAuthenticateCollaborater.d.ts +4 -0
- package/es/types/Interface/api/authentification/ReadAuthenticateCollaborater.d.ts.map +1 -0
- package/es/types/Interface/api/authentification/ReadAuthenticateCollaborater.js +3 -0
- package/es/types/Interface/api/authentification/ReadAuthenticateCollaborater.js.map +1 -0
- package/es/types/Interface/api/balanceSheet/Query.d.ts +5 -0
- package/es/types/Interface/api/balanceSheet/Query.d.ts.map +1 -0
- package/es/types/Interface/api/balanceSheet/Query.js +25 -0
- package/es/types/Interface/api/balanceSheet/Query.js.map +1 -0
- package/es/types/Interface/api/balanceSheet/Read.d.ts +18 -0
- package/es/types/Interface/api/balanceSheet/Read.d.ts.map +1 -0
- package/es/types/Interface/api/balanceSheet/Read.js +2 -0
- package/es/types/Interface/api/balanceSheet/Read.js.map +1 -0
- package/es/types/Interface/api/log/CreateLog.d.ts +2 -0
- package/es/types/Interface/api/log/CreateLog.d.ts.map +1 -1
- package/es/types/Interface/api/log/CreateLog.js.map +1 -1
- package/es/types/Interface/api/statistic/ExitRequest.d.ts +1 -1
- package/es/types/Interface/api/statistic/ExitRequest.d.ts.map +1 -1
- package/es/types/Interface/api/statistic/ExitRequest.js.map +1 -1
- package/es/types/index.d.ts +3 -0
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +3 -0
- package/es/types/index.js.map +1 -1
- package/js/api/resources/Authenticate.js +34 -1
- package/js/api/resources/Authenticate.js.map +1 -1
- package/js/api/resources/BalanceSheet.js +5 -0
- package/js/api/resources/BalanceSheet.js.map +1 -1
- package/js/api/resources/BalanceSheetModule.js +4 -4
- package/js/api/resources/BalanceSheetModule.js.map +1 -1
- package/js/api/resources/Transaction.js +4 -4
- package/js/api/resources/Transaction.js.map +1 -1
- package/js/types/Enum/BalanceSheet.js +2 -8
- package/js/types/Enum/BalanceSheet.js.map +1 -1
- package/js/types/Enum/Country.js +244 -3
- package/js/types/Enum/Country.js.map +1 -1
- package/js/types/Enum/Supervision.js +6 -0
- package/js/types/Enum/Supervision.js.map +1 -1
- package/js/types/Form/FormAuthenticate.js +3 -0
- package/js/types/Form/FormAuthenticate.js.map +1 -1
- package/js/types/Interface/api/authentification/ReadAuthenticateCollaborater.js +8 -0
- package/js/types/Interface/api/authentification/ReadAuthenticateCollaborater.js.map +1 -0
- package/js/types/Interface/api/balanceSheet/Query.js +23 -0
- package/js/types/Interface/api/balanceSheet/Query.js.map +1 -0
- package/js/types/Interface/api/balanceSheet/Read.js +6 -0
- package/js/types/Interface/api/balanceSheet/Read.js.map +1 -0
- package/js/types/Interface/api/log/CreateLog.js.map +1 -1
- package/js/types/Interface/api/statistic/ExitRequest.js.map +1 -1
- package/js/types/index.js +81 -51
- package/js/types/index.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Authenticate.ts +4 -0
- package/ts/api/resources/BalanceSheet.ts +5 -1
- package/ts/api/resources/BalanceSheetModule.ts +4 -4
- package/ts/api/resources/Transaction.ts +4 -4
- package/ts/types/Enum/BalanceSheet.ts +2 -9
- package/ts/types/Enum/Country.ts +242 -242
- package/ts/types/Enum/Supervision.ts +7 -0
- package/ts/types/Form/FormAuthenticate.ts +14 -1
- package/ts/types/Interface/api/authentification/ReadAuthenticateCollaborater.ts +3 -0
- package/ts/types/Interface/api/balanceSheet/Query.ts +16 -0
- package/ts/types/Interface/api/balanceSheet/Read.ts +18 -0
- package/ts/types/Interface/api/log/CreateLog.ts +3 -1
- package/ts/types/Interface/api/statistic/ExitRequest.ts +1 -1
- package/ts/types/index.ts +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.107",
|
|
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,8 @@
|
|
|
1
|
+
import { FormAuthenticate } from '../../types';
|
|
1
2
|
import { Resource } from '../Resource';
|
|
2
3
|
|
|
3
4
|
export class Authenticate extends Resource {
|
|
5
|
+
async authentificateCollaborater(payload: FormAuthenticate) {
|
|
6
|
+
return this.axios.$post('/authenticate/collaborater', payload);
|
|
7
|
+
}
|
|
4
8
|
}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import { IBalanceSheet, ReadFreelanceTurnover, UpdateBalanceSheet } from '../..';
|
|
1
|
+
import { IBalanceSheet, QueryBalanceSheetStatistic, ReadBalanceSheetStatistic, ReadFreelanceTurnover, UpdateBalanceSheet } from '../..';
|
|
2
2
|
import { Resource } from '../Resource';
|
|
3
3
|
|
|
4
4
|
export class BalanceSheet extends Resource {
|
|
5
|
+
getStatistics(params: QueryBalanceSheetStatistic): Promise<ReadBalanceSheetStatistic> {
|
|
6
|
+
return this.axios.$get('/exercice/balanceSheet/statistics', { params });
|
|
7
|
+
}
|
|
8
|
+
|
|
5
9
|
getPdf(params: { idExercice: number }): Promise<Buffer> {
|
|
6
10
|
return this.axios.$get(`/exercice/${params.idExercice}/balanceSheet/pdf`, {
|
|
7
11
|
responseType: 'arraybuffer',
|
|
@@ -7,12 +7,12 @@ export class BalanceSheetModule extends Resource {
|
|
|
7
7
|
return this.axios.$get(`/balancesheetmodule/${id}`);
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
getBalanceSheetModules(): Promise<IBalanceSheetModule[]> {
|
|
11
|
-
return this.axios.$get(
|
|
10
|
+
getBalanceSheetModules(idSociety: number): Promise<IBalanceSheetModule[]> {
|
|
11
|
+
return this.axios.$get(`societies/${idSociety}/balancesheetmodules`);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
createBalanceSheetModule(payload: CreateBalanceSheetModuleForm): Promise<IBalanceSheetModule> {
|
|
15
|
-
return this.axios.$post(
|
|
14
|
+
createBalanceSheetModule(idSociety: number, payload: CreateBalanceSheetModuleForm): Promise<IBalanceSheetModule> {
|
|
15
|
+
return this.axios.$post(`societies/${idSociety}/balancesheetmodules`, payload);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
updateBalanceSheetModule(payload: UpdateBalanceSheetModuleForm): Promise<IBalanceSheetModule> {
|
|
@@ -45,12 +45,12 @@ export class Transaction extends Resource {
|
|
|
45
45
|
return this.axios.$get(`/society/balance/${idExercice}`);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
createManual(data: Array<CreateManualEntry>): Promise<IAccountingTransaction> {
|
|
49
|
-
return this.axios.$post(
|
|
48
|
+
createManual(idSociety: number, data: Array<CreateManualEntry>): Promise<IAccountingTransaction> {
|
|
49
|
+
return this.axios.$post(`/society/${idSociety}/manual-transactions`, data);
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
getAllManual(idExercice: number): Promise<Array<Array<IAccountingEntry>>> {
|
|
53
|
-
return this.axios.$get(`/society/
|
|
52
|
+
getAllManual(idSociety: number, idExercice: number): Promise<Array<Array<IAccountingEntry>>> {
|
|
53
|
+
return this.axios.$get(`/society/${idSociety}/exercices/${idExercice}/manual-transactions`);
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
deleteMultipleInvoices(idSociety: number, query: QueryDeleteInvoices): Promise<ReadDeletedInvoices> {
|
|
@@ -75,7 +75,7 @@ export const BalanceSheetDetails = [
|
|
|
75
75
|
forRoles: [['front_office'], ['front_office_express'], ['expert']],
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
|
-
text: 'À envoyer',
|
|
78
|
+
text: 'À envoyer au client',
|
|
79
79
|
value: BalanceSheetState.TO_SEND,
|
|
80
80
|
color: 'blue lighten-3',
|
|
81
81
|
textColor: 'blue--text text--lighten-3',
|
|
@@ -146,13 +146,6 @@ export const BalanceSheetDetails = [
|
|
|
146
146
|
key: 'unpaid',
|
|
147
147
|
forRoles: [['front_office', 'manager'], ['front_office_express', 'manager'], ['customer_success'], ['facturation']],
|
|
148
148
|
},
|
|
149
|
-
{
|
|
150
|
-
text: 'Facturation validée',
|
|
151
|
-
value: BalanceSheetState.INVOICING_ACCEPTED,
|
|
152
|
-
color: 'green darken-4',
|
|
153
|
-
textColor: 'green--text ',
|
|
154
|
-
forRoles: [['facturation']],
|
|
155
|
-
},
|
|
156
149
|
{
|
|
157
150
|
text: 'Facturation en cours',
|
|
158
151
|
value: BalanceSheetState.INVOICING_IN_PROGRESS,
|
|
@@ -161,7 +154,7 @@ export const BalanceSheetDetails = [
|
|
|
161
154
|
forRoles: [['facturation']],
|
|
162
155
|
},
|
|
163
156
|
{
|
|
164
|
-
text: '
|
|
157
|
+
text: 'Revalorisation Refusée',
|
|
165
158
|
value: BalanceSheetState.INVOICING_REFUSED,
|
|
166
159
|
color: 'error darken-2',
|
|
167
160
|
textColor: 'error--text text--darken-2',
|