@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.
Files changed (93) hide show
  1. package/es/api/resources/Authenticate.d.ts +2 -0
  2. package/es/api/resources/Authenticate.d.ts.map +1 -1
  3. package/es/api/resources/Authenticate.js +14 -0
  4. package/es/api/resources/Authenticate.js.map +1 -1
  5. package/es/api/resources/BalanceSheet.d.ts +2 -1
  6. package/es/api/resources/BalanceSheet.d.ts.map +1 -1
  7. package/es/api/resources/BalanceSheet.js +3 -0
  8. package/es/api/resources/BalanceSheet.js.map +1 -1
  9. package/es/api/resources/BalanceSheetModule.d.ts +2 -2
  10. package/es/api/resources/BalanceSheetModule.d.ts.map +1 -1
  11. package/es/api/resources/BalanceSheetModule.js +4 -4
  12. package/es/api/resources/BalanceSheetModule.js.map +1 -1
  13. package/es/api/resources/Transaction.d.ts +2 -2
  14. package/es/api/resources/Transaction.d.ts.map +1 -1
  15. package/es/api/resources/Transaction.js +4 -4
  16. package/es/api/resources/Transaction.js.map +1 -1
  17. package/es/types/Enum/BalanceSheet.d.ts +2 -8
  18. package/es/types/Enum/BalanceSheet.d.ts.map +1 -1
  19. package/es/types/Enum/BalanceSheet.js +2 -9
  20. package/es/types/Enum/BalanceSheet.js.map +1 -1
  21. package/es/types/Enum/Country.js +242 -242
  22. package/es/types/Enum/Country.js.map +1 -1
  23. package/es/types/Enum/Supervision.d.ts +2 -1
  24. package/es/types/Enum/Supervision.d.ts.map +1 -1
  25. package/es/types/Enum/Supervision.js +7 -0
  26. package/es/types/Enum/Supervision.js.map +1 -1
  27. package/es/types/Form/FormAuthenticate.d.ts +2 -0
  28. package/es/types/Form/FormAuthenticate.d.ts.map +1 -1
  29. package/es/types/Form/FormAuthenticate.js +16 -1
  30. package/es/types/Form/FormAuthenticate.js.map +1 -1
  31. package/es/types/Interface/api/authentification/ReadAuthenticateCollaborater.d.ts +4 -0
  32. package/es/types/Interface/api/authentification/ReadAuthenticateCollaborater.d.ts.map +1 -0
  33. package/es/types/Interface/api/authentification/ReadAuthenticateCollaborater.js +3 -0
  34. package/es/types/Interface/api/authentification/ReadAuthenticateCollaborater.js.map +1 -0
  35. package/es/types/Interface/api/balanceSheet/Query.d.ts +5 -0
  36. package/es/types/Interface/api/balanceSheet/Query.d.ts.map +1 -0
  37. package/es/types/Interface/api/balanceSheet/Query.js +25 -0
  38. package/es/types/Interface/api/balanceSheet/Query.js.map +1 -0
  39. package/es/types/Interface/api/balanceSheet/Read.d.ts +18 -0
  40. package/es/types/Interface/api/balanceSheet/Read.d.ts.map +1 -0
  41. package/es/types/Interface/api/balanceSheet/Read.js +2 -0
  42. package/es/types/Interface/api/balanceSheet/Read.js.map +1 -0
  43. package/es/types/Interface/api/log/CreateLog.d.ts +2 -0
  44. package/es/types/Interface/api/log/CreateLog.d.ts.map +1 -1
  45. package/es/types/Interface/api/log/CreateLog.js.map +1 -1
  46. package/es/types/Interface/api/statistic/ExitRequest.d.ts +1 -1
  47. package/es/types/Interface/api/statistic/ExitRequest.d.ts.map +1 -1
  48. package/es/types/Interface/api/statistic/ExitRequest.js.map +1 -1
  49. package/es/types/index.d.ts +3 -0
  50. package/es/types/index.d.ts.map +1 -1
  51. package/es/types/index.js +3 -0
  52. package/es/types/index.js.map +1 -1
  53. package/js/api/resources/Authenticate.js +34 -1
  54. package/js/api/resources/Authenticate.js.map +1 -1
  55. package/js/api/resources/BalanceSheet.js +5 -0
  56. package/js/api/resources/BalanceSheet.js.map +1 -1
  57. package/js/api/resources/BalanceSheetModule.js +4 -4
  58. package/js/api/resources/BalanceSheetModule.js.map +1 -1
  59. package/js/api/resources/Transaction.js +4 -4
  60. package/js/api/resources/Transaction.js.map +1 -1
  61. package/js/types/Enum/BalanceSheet.js +2 -8
  62. package/js/types/Enum/BalanceSheet.js.map +1 -1
  63. package/js/types/Enum/Country.js +244 -3
  64. package/js/types/Enum/Country.js.map +1 -1
  65. package/js/types/Enum/Supervision.js +6 -0
  66. package/js/types/Enum/Supervision.js.map +1 -1
  67. package/js/types/Form/FormAuthenticate.js +3 -0
  68. package/js/types/Form/FormAuthenticate.js.map +1 -1
  69. package/js/types/Interface/api/authentification/ReadAuthenticateCollaborater.js +8 -0
  70. package/js/types/Interface/api/authentification/ReadAuthenticateCollaborater.js.map +1 -0
  71. package/js/types/Interface/api/balanceSheet/Query.js +23 -0
  72. package/js/types/Interface/api/balanceSheet/Query.js.map +1 -0
  73. package/js/types/Interface/api/balanceSheet/Read.js +6 -0
  74. package/js/types/Interface/api/balanceSheet/Read.js.map +1 -0
  75. package/js/types/Interface/api/log/CreateLog.js.map +1 -1
  76. package/js/types/Interface/api/statistic/ExitRequest.js.map +1 -1
  77. package/js/types/index.js +81 -51
  78. package/js/types/index.js.map +1 -1
  79. package/package.json +1 -1
  80. package/ts/api/resources/Authenticate.ts +4 -0
  81. package/ts/api/resources/BalanceSheet.ts +5 -1
  82. package/ts/api/resources/BalanceSheetModule.ts +4 -4
  83. package/ts/api/resources/Transaction.ts +4 -4
  84. package/ts/types/Enum/BalanceSheet.ts +2 -9
  85. package/ts/types/Enum/Country.ts +242 -242
  86. package/ts/types/Enum/Supervision.ts +7 -0
  87. package/ts/types/Form/FormAuthenticate.ts +14 -1
  88. package/ts/types/Interface/api/authentification/ReadAuthenticateCollaborater.ts +3 -0
  89. package/ts/types/Interface/api/balanceSheet/Query.ts +16 -0
  90. package/ts/types/Interface/api/balanceSheet/Read.ts +18 -0
  91. package/ts/types/Interface/api/log/CreateLog.ts +3 -1
  92. package/ts/types/Interface/api/statistic/ExitRequest.ts +1 -1
  93. 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.104",
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('/balancesheetmodules');
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('/balancesheetmodule', payload);
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('/society/manual-transactions', data);
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/manual-transactions/exercices/${idExercice}`);
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: 'Facturation refusée',
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',