@silexpert/core 0.4.277 → 0.4.281

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 (237) hide show
  1. package/es/api/resources/BudgetInsight.d.ts +0 -7
  2. package/es/api/resources/BudgetInsight.d.ts.map +1 -1
  3. package/es/api/resources/BudgetInsight.js +0 -8
  4. package/es/api/resources/BudgetInsight.js.map +1 -1
  5. package/es/api/resources/LegalNotice.d.ts +6 -0
  6. package/es/api/resources/LegalNotice.d.ts.map +1 -0
  7. package/es/api/resources/LegalNotice.js +7 -0
  8. package/es/api/resources/LegalNotice.js.map +1 -0
  9. package/es/api/resources/Loan.js +1 -1
  10. package/es/api/resources/Loan.js.map +1 -1
  11. package/es/api/resources/PaymentExpectation.d.ts +6 -0
  12. package/es/api/resources/PaymentExpectation.d.ts.map +1 -0
  13. package/es/api/resources/PaymentExpectation.js +7 -0
  14. package/es/api/resources/PaymentExpectation.js.map +1 -0
  15. package/es/api/resources/SocietyConfig.d.ts +7 -0
  16. package/es/api/resources/SocietyConfig.d.ts.map +1 -0
  17. package/es/api/resources/SocietyConfig.js +10 -0
  18. package/es/api/resources/SocietyConfig.js.map +1 -0
  19. package/es/api/resources/Wallet.d.ts +8 -0
  20. package/es/api/resources/Wallet.d.ts.map +1 -0
  21. package/es/api/resources/Wallet.js +7 -0
  22. package/es/api/resources/Wallet.js.map +1 -0
  23. package/es/api/resources/statistic/Accountant.d.ts +59 -0
  24. package/es/api/resources/statistic/Accountant.d.ts.map +1 -0
  25. package/es/api/resources/statistic/Accountant.js +86 -0
  26. package/es/api/resources/statistic/Accountant.js.map +1 -0
  27. package/es/api/resources/statistic/Direction.d.ts +11 -0
  28. package/es/api/resources/statistic/Direction.d.ts.map +1 -0
  29. package/es/api/resources/statistic/Direction.js +14 -0
  30. package/es/api/resources/statistic/Direction.js.map +1 -0
  31. package/es/api/resources/statistic/ExpertAccountant.d.ts +29 -0
  32. package/es/api/resources/statistic/ExpertAccountant.d.ts.map +1 -0
  33. package/es/api/resources/statistic/ExpertAccountant.js +41 -0
  34. package/es/api/resources/statistic/ExpertAccountant.js.map +1 -0
  35. package/es/api/resources.d.ts +14 -0
  36. package/es/api/resources.d.ts.map +1 -1
  37. package/es/api/resources.js +14 -0
  38. package/es/api/resources.js.map +1 -1
  39. package/es/types/Enum/AdditionnalSells.d.ts +7 -0
  40. package/es/types/Enum/AdditionnalSells.d.ts.map +1 -0
  41. package/es/types/Enum/AdditionnalSells.js +8 -0
  42. package/es/types/Enum/AdditionnalSells.js.map +1 -0
  43. package/es/types/Enum/OperationLegalNotice.d.ts +4 -0
  44. package/es/types/Enum/OperationLegalNotice.d.ts.map +1 -0
  45. package/es/types/Enum/OperationLegalNotice.js +5 -0
  46. package/es/types/Enum/OperationLegalNotice.js.map +1 -0
  47. package/es/types/Enum/OrderStatus.d.ts +6 -0
  48. package/es/types/Enum/OrderStatus.d.ts.map +1 -0
  49. package/es/types/Enum/OrderStatus.js +7 -0
  50. package/es/types/Enum/OrderStatus.js.map +1 -0
  51. package/es/types/Enum/{Prestation.d.ts → PrestationType.d.ts} +4 -3
  52. package/es/types/Enum/PrestationType.d.ts.map +1 -0
  53. package/es/types/Enum/PrestationType.js +17 -0
  54. package/es/types/Enum/PrestationType.js.map +1 -0
  55. package/es/types/Enum/Reason.d.ts +4 -0
  56. package/es/types/Enum/Reason.d.ts.map +1 -0
  57. package/es/types/Enum/Reason.js +5 -0
  58. package/es/types/Enum/Reason.js.map +1 -0
  59. package/es/types/Enum/StatisticType.d.ts +16 -0
  60. package/es/types/Enum/StatisticType.d.ts.map +1 -0
  61. package/es/types/Enum/StatisticType.js +17 -0
  62. package/es/types/Enum/StatisticType.js.map +1 -0
  63. package/es/types/Enum/Vat.d.ts +17 -0
  64. package/es/types/Enum/Vat.d.ts.map +1 -1
  65. package/es/types/Enum/Vat.js +18 -0
  66. package/es/types/Enum/Vat.js.map +1 -1
  67. package/es/types/Interface/api/legalNotice/UpdateLegalNotice.d.ts +5 -0
  68. package/es/types/Interface/api/legalNotice/UpdateLegalNotice.d.ts.map +1 -0
  69. package/es/types/Interface/api/legalNotice/UpdateLegalNotice.js +25 -0
  70. package/es/types/Interface/api/legalNotice/UpdateLegalNotice.js.map +1 -0
  71. package/es/types/Interface/api/paymentExpectation/QueryPaymentExpectation.d.ts +7 -0
  72. package/es/types/Interface/api/paymentExpectation/QueryPaymentExpectation.d.ts.map +1 -0
  73. package/es/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js +3 -0
  74. package/es/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js.map +1 -0
  75. package/es/types/Interface/api/prestation/CreatePrestation.d.ts +6 -0
  76. package/es/types/Interface/api/prestation/CreatePrestation.d.ts.map +1 -0
  77. package/es/types/Interface/api/prestation/CreatePrestation.js +29 -0
  78. package/es/types/Interface/api/prestation/CreatePrestation.js.map +1 -0
  79. package/es/types/Interface/api/societyConfig/update.d.ts +21 -0
  80. package/es/types/Interface/api/societyConfig/update.d.ts.map +1 -0
  81. package/es/types/Interface/api/societyConfig/update.js +131 -0
  82. package/es/types/Interface/api/societyConfig/update.js.map +1 -0
  83. package/es/types/Interface/api/statistic/ExitRequest.d.ts +107 -0
  84. package/es/types/Interface/api/statistic/ExitRequest.d.ts.map +1 -0
  85. package/es/types/Interface/api/statistic/ExitRequest.js +2 -0
  86. package/es/types/Interface/api/statistic/ExitRequest.js.map +1 -0
  87. package/es/types/Interface/api/statistic/QueryAccountant.d.ts +6 -0
  88. package/es/types/Interface/api/statistic/QueryAccountant.d.ts.map +1 -0
  89. package/es/types/Interface/api/statistic/QueryAccountant.js +31 -0
  90. package/es/types/Interface/api/statistic/QueryAccountant.js.map +1 -0
  91. package/es/types/Interface/api/statistic/QueryDirection.d.ts +6 -0
  92. package/es/types/Interface/api/statistic/QueryDirection.d.ts.map +1 -0
  93. package/es/types/Interface/api/statistic/QueryDirection.js +31 -0
  94. package/es/types/Interface/api/statistic/QueryDirection.js.map +1 -0
  95. package/es/types/Interface/api/statistic/QueryExpertAccountant.d.ts +6 -0
  96. package/es/types/Interface/api/statistic/QueryExpertAccountant.d.ts.map +1 -0
  97. package/es/types/Interface/api/statistic/QueryExpertAccountant.js +31 -0
  98. package/es/types/Interface/api/statistic/QueryExpertAccountant.js.map +1 -0
  99. package/es/types/Interface/api/statistic/QueryGetAccountant.d.ts +5 -0
  100. package/es/types/Interface/api/statistic/QueryGetAccountant.d.ts.map +1 -0
  101. package/es/types/Interface/api/statistic/QueryGetAccountant.js +24 -0
  102. package/es/types/Interface/api/statistic/QueryGetAccountant.js.map +1 -0
  103. package/es/types/Interface/api/statistic/QueryGetDirection.d.ts +5 -0
  104. package/es/types/Interface/api/statistic/QueryGetDirection.d.ts.map +1 -0
  105. package/es/types/Interface/api/statistic/QueryGetDirection.js +24 -0
  106. package/es/types/Interface/api/statistic/QueryGetDirection.js.map +1 -0
  107. package/es/types/Interface/api/statistic/QueryGetExpertAccountant.d.ts +5 -0
  108. package/es/types/Interface/api/statistic/QueryGetExpertAccountant.d.ts.map +1 -0
  109. package/es/types/Interface/api/statistic/QueryGetExpertAccountant.js +24 -0
  110. package/es/types/Interface/api/statistic/QueryGetExpertAccountant.js.map +1 -0
  111. package/es/types/Interface/api/wallet/UpdateAttribution.d.ts +6 -0
  112. package/es/types/Interface/api/wallet/UpdateAttribution.d.ts.map +1 -0
  113. package/es/types/Interface/api/wallet/UpdateAttribution.js +34 -0
  114. package/es/types/Interface/api/wallet/UpdateAttribution.js.map +1 -0
  115. package/es/types/Interface/models/IAttributionHistory.d.ts +4 -4
  116. package/es/types/Interface/models/IAttributionHistory.d.ts.map +1 -1
  117. package/es/types/Interface/models/IAttributionHistory.js.map +1 -1
  118. package/es/types/Interface/models/ILegalNotice.d.ts +1 -0
  119. package/es/types/Interface/models/ILegalNotice.d.ts.map +1 -1
  120. package/es/types/Interface/models/ILegalNotice.js.map +1 -1
  121. package/es/types/Interface/models/IPaymentExpectation.d.ts +1 -0
  122. package/es/types/Interface/models/IPaymentExpectation.d.ts.map +1 -1
  123. package/es/types/Interface/models/IPaymentExpectation.js.map +1 -1
  124. package/es/types/Interface/models/IPrestationComplementary.d.ts +1 -1
  125. package/es/types/Interface/models/IPrestationComplementary.d.ts.map +1 -1
  126. package/es/types/Interface/models/IPrestationComplementary.js.map +1 -1
  127. package/es/types/Interface/models/IStatistic.d.ts +11 -0
  128. package/es/types/Interface/models/IStatistic.d.ts.map +1 -0
  129. package/es/types/Interface/models/IStatistic.js +2 -0
  130. package/es/types/Interface/models/IStatistic.js.map +1 -0
  131. package/es/types/index.d.ts +19 -1
  132. package/es/types/index.d.ts.map +1 -1
  133. package/es/types/index.js +19 -1
  134. package/es/types/index.js.map +1 -1
  135. package/js/api/resources/BudgetInsight.js +0 -10
  136. package/js/api/resources/BudgetInsight.js.map +1 -1
  137. package/js/api/resources/LegalNotice.js +18 -0
  138. package/js/api/resources/LegalNotice.js.map +1 -0
  139. package/js/api/resources/Loan.js +1 -1
  140. package/js/api/resources/Loan.js.map +1 -1
  141. package/js/api/resources/PaymentExpectation.js +20 -0
  142. package/js/api/resources/PaymentExpectation.js.map +1 -0
  143. package/js/api/resources/SocietyConfig.js +22 -0
  144. package/js/api/resources/SocietyConfig.js.map +1 -0
  145. package/js/api/resources/Wallet.js +18 -0
  146. package/js/api/resources/Wallet.js.map +1 -0
  147. package/js/api/resources/statistic/Accountant.js +150 -0
  148. package/js/api/resources/statistic/Accountant.js.map +1 -0
  149. package/js/api/resources/statistic/Direction.js +30 -0
  150. package/js/api/resources/statistic/Direction.js.map +1 -0
  151. package/js/api/resources/statistic/ExpertAccountant.js +75 -0
  152. package/js/api/resources/statistic/ExpertAccountant.js.map +1 -0
  153. package/js/api/resources.js +22 -1
  154. package/js/api/resources.js.map +1 -1
  155. package/js/types/Enum/AdditionnalSells.js +14 -0
  156. package/js/types/Enum/AdditionnalSells.js.map +1 -0
  157. package/js/types/Enum/OperationLegalNotice.js +11 -0
  158. package/js/types/Enum/OperationLegalNotice.js.map +1 -0
  159. package/js/types/Enum/OrderStatus.js +13 -0
  160. package/js/types/Enum/OrderStatus.js.map +1 -0
  161. package/js/types/Enum/PrestationType.js +23 -0
  162. package/js/types/Enum/PrestationType.js.map +1 -0
  163. package/js/types/Enum/Reason.js +11 -0
  164. package/js/types/Enum/Reason.js.map +1 -0
  165. package/js/types/Enum/StatisticType.js +23 -0
  166. package/js/types/Enum/StatisticType.js.map +1 -0
  167. package/js/types/Enum/Vat.js +19 -0
  168. package/js/types/Enum/Vat.js.map +1 -1
  169. package/js/types/Interface/api/legalNotice/UpdateLegalNotice.js +31 -0
  170. package/js/types/Interface/api/legalNotice/UpdateLegalNotice.js.map +1 -0
  171. package/js/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js +10 -0
  172. package/js/types/Interface/api/paymentExpectation/QueryPaymentExpectation.js.map +1 -0
  173. package/js/types/Interface/api/prestation/CreatePrestation.js +33 -0
  174. package/js/types/Interface/api/prestation/CreatePrestation.js.map +1 -0
  175. package/js/types/Interface/api/societyConfig/update.js +65 -0
  176. package/js/types/Interface/api/societyConfig/update.js.map +1 -0
  177. package/js/types/Interface/api/statistic/ExitRequest.js +6 -0
  178. package/js/types/Interface/api/statistic/ExitRequest.js.map +1 -0
  179. package/js/types/Interface/api/statistic/QueryAccountant.js +35 -0
  180. package/js/types/Interface/api/statistic/QueryAccountant.js.map +1 -0
  181. package/js/types/Interface/api/statistic/QueryDirection.js +35 -0
  182. package/js/types/Interface/api/statistic/QueryDirection.js.map +1 -0
  183. package/js/types/Interface/api/statistic/QueryExpertAccountant.js +35 -0
  184. package/js/types/Interface/api/statistic/QueryExpertAccountant.js.map +1 -0
  185. package/js/types/Interface/api/statistic/QueryGetAccountant.js +31 -0
  186. package/js/types/Interface/api/statistic/QueryGetAccountant.js.map +1 -0
  187. package/js/types/Interface/api/statistic/QueryGetDirection.js +31 -0
  188. package/js/types/Interface/api/statistic/QueryGetDirection.js.map +1 -0
  189. package/js/types/Interface/api/statistic/QueryGetExpertAccountant.js +31 -0
  190. package/js/types/Interface/api/statistic/QueryGetExpertAccountant.js.map +1 -0
  191. package/js/types/Interface/api/wallet/UpdateAttribution.js +35 -0
  192. package/js/types/Interface/api/wallet/UpdateAttribution.js.map +1 -0
  193. package/js/types/Interface/models/IStatistic.js +6 -0
  194. package/js/types/Interface/models/IStatistic.js.map +1 -0
  195. package/js/types/index.js +219 -3
  196. package/js/types/index.js.map +1 -1
  197. package/package.json +1 -1
  198. package/ts/api/resources/BudgetInsight.ts +0 -13
  199. package/ts/api/resources/LegalNotice.ts +8 -0
  200. package/ts/api/resources/Loan.ts +1 -1
  201. package/ts/api/resources/PaymentExpectation.ts +8 -0
  202. package/ts/api/resources/SocietyConfig.ts +12 -0
  203. package/ts/api/resources/Wallet.ts +8 -0
  204. package/ts/api/resources/statistic/Accountant.ts +121 -0
  205. package/ts/api/resources/statistic/Direction.ts +17 -0
  206. package/ts/api/resources/statistic/ExpertAccountant.ts +56 -0
  207. package/ts/api/resources.ts +14 -0
  208. package/ts/types/Enum/AdditionnalSells.ts +6 -0
  209. package/ts/types/Enum/OperationLegalNotice.ts +3 -0
  210. package/ts/types/Enum/OrderStatus.ts +5 -0
  211. package/ts/types/Enum/{Prestation.ts → PrestationType.ts} +2 -1
  212. package/ts/types/Enum/Reason.ts +3 -0
  213. package/ts/types/Enum/StatisticType.ts +15 -0
  214. package/ts/types/Enum/Vat.ts +19 -1
  215. package/ts/types/Interface/api/legalNotice/UpdateLegalNotice.ts +13 -0
  216. package/ts/types/Interface/api/paymentExpectation/QueryPaymentExpectation.ts +6 -0
  217. package/ts/types/Interface/api/prestation/CreatePrestation.ts +16 -0
  218. package/ts/types/Interface/api/societyConfig/update.ts +103 -0
  219. package/ts/types/Interface/api/statistic/ExitRequest.ts +119 -0
  220. package/ts/types/Interface/api/statistic/QueryAccountant.ts +20 -0
  221. package/ts/types/Interface/api/statistic/QueryDirection.ts +20 -0
  222. package/ts/types/Interface/api/statistic/QueryExpertAccountant.ts +20 -0
  223. package/ts/types/Interface/api/statistic/QueryGetAccountant.ts +14 -0
  224. package/ts/types/Interface/api/statistic/QueryGetDirection.ts +14 -0
  225. package/ts/types/Interface/api/statistic/QueryGetExpertAccountant.ts +14 -0
  226. package/ts/types/Interface/api/wallet/UpdateAttribution.ts +23 -0
  227. package/ts/types/Interface/models/IAttributionHistory.ts +4 -4
  228. package/ts/types/Interface/models/ILegalNotice.ts +1 -0
  229. package/ts/types/Interface/models/IPaymentExpectation.ts +1 -0
  230. package/ts/types/Interface/models/IPrestationComplementary.ts +1 -1
  231. package/ts/types/Interface/models/IStatistic.ts +13 -0
  232. package/ts/types/index.ts +19 -1
  233. package/es/types/Enum/Prestation.d.ts.map +0 -1
  234. package/es/types/Enum/Prestation.js +0 -16
  235. package/es/types/Enum/Prestation.js.map +0 -1
  236. package/js/types/Enum/Prestation.js +0 -22
  237. package/js/types/Enum/Prestation.js.map +0 -1
@@ -0,0 +1,121 @@
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 d'IS / IR pour un comptable
85
+ * @param {QueryGetAccountant} payload
86
+ * @returns {JSON}
87
+ */
88
+ public getTaxes(payload: QueryGetAccountant): Promise<JSON> {
89
+ const params = {
90
+ ...payload,
91
+ type: StatisticType.ACCOUNTANT_VAT,
92
+ };
93
+ return this.axios.$get('/statistic-accountant', { params });
94
+ }
95
+
96
+ /**
97
+ * Retourne les statistiques de bilan pour un comptable
98
+ * @param {QueryGetAccountant} payload
99
+ * @returns {JSON}
100
+ */
101
+ public getBalanceSheet(payload: QueryGetAccountant): Promise<JSON> {
102
+ const params = {
103
+ ...payload,
104
+ type: StatisticType.ACCOUNTANT_BALANCE_SHEET,
105
+ };
106
+ return this.axios.$get('/statistic-accountant', { params });
107
+ }
108
+
109
+ /**
110
+ * Retourne les statistiques de vente additionnel pour un comptable
111
+ * @param {QueryGetAccountant} payload
112
+ * @returns {JSON}
113
+ */
114
+ public getAdditionnalSell(payload: QueryGetAccountant): Promise<JSON> {
115
+ const params = {
116
+ ...payload,
117
+ type: StatisticType.ACCOUNTANT_ADDITIONNAL_SELL,
118
+ };
119
+ return this.axios.$get('/statistic-accountant', { params });
120
+ }
121
+ }
@@ -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
+ }
@@ -88,6 +88,13 @@ import { CalendarEvent } from './resources/CalendarEvent';
88
88
  import { TimeRecorder } from './resources/TimeRecorder';
89
89
  import { CustomerActivity } from './resources/CustomerActivity';
90
90
  import { Connection } from './resources/Connection';
91
+ import { SocietyConfig } from './resources/SocietyConfig';
92
+ import { LegalNotice } from './resources/LegalNotice';
93
+ import { StatisticAccountant } from './resources/statistic/Accountant';
94
+ import { StatisticDirection } from './resources/statistic/Direction';
95
+ import { StatisticExpertAccountant } from './resources/statistic/ExpertAccountant';
96
+ import { Wallet } from './resources/Wallet';
97
+ import { PaymentExpectation } from './resources/PaymentExpectation';
91
98
 
92
99
  export const resources = {
93
100
  simulation: Simulation,
@@ -180,4 +187,11 @@ export const resources = {
180
187
  alert: Alert,
181
188
  customerActivity: CustomerActivity,
182
189
  connection: Connection,
190
+ wallet: Wallet,
191
+ societyConfig: SocietyConfig,
192
+ legalNotice: LegalNotice,
193
+ statisticAccountant: StatisticAccountant,
194
+ statisticDirection: StatisticDirection,
195
+ statisticExpertAccountant: StatisticExpertAccountant,
196
+ paymentExpectation: PaymentExpectation,
183
197
  };
@@ -0,0 +1,6 @@
1
+ export enum AcceptationAdmin {
2
+ IN_ACCEPTATION_PROCESS = 0,
3
+ ACCEPTED = 1,
4
+ TO_TREAT = 2,
5
+ REFUSED = 3,
6
+ }
@@ -0,0 +1,3 @@
1
+ export enum OperationLegalNotice {
2
+ LIQUIDATION = 1,
3
+ }
@@ -0,0 +1,5 @@
1
+ export enum OrderStatus {
2
+ A_FAIRE = 0,
3
+ FAIT = 1,
4
+ JAMAIS = 2,
5
+ }
@@ -1,4 +1,4 @@
1
- export enum Prestation {
1
+ export enum PrestationType {
2
2
  PREVISIONNEL = 6, // à remplacer par 189
3
3
  BILAN_INTERMEDIAIRE = 9,
4
4
  TELEDECLARATION = 13,
@@ -11,4 +11,5 @@ export enum Prestation {
11
11
  BILAN_PREVISIONNEL = 189,
12
12
  DISSOLUTION_LIQUIDATION = 192,
13
13
  ABO_STRIPE = 196,
14
+ ANNONCE_LEGALE = 209,
14
15
  }
@@ -0,0 +1,3 @@
1
+ export enum Reason {
2
+ ANNONCE_LEGALE = 3,
3
+ }
@@ -0,0 +1,15 @@
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
+ ACCOUNTANT_VAT = 13,
15
+ }
@@ -277,4 +277,22 @@ export const Vat:VatTypeEnum = {
277
277
  isVatImportation: false,
278
278
  isVatIntracom: false,
279
279
  },
280
- };
280
+ };
281
+
282
+ export enum VatState {
283
+ WAITING = 0,
284
+ ACCEPTED_SIE = 1,
285
+ SEND_SIE = 2,
286
+ CLIENT_ISSUE = 3,
287
+ DONE_BY_CLIENT = 4,
288
+ NA = 5,
289
+ SEND_TO_CLIENT = 6,
290
+ CLIENT_RELAUNCHED = 7,
291
+ DOING_BACK = 8,
292
+ UNPAYED = 9,
293
+ SIE_ISSUE = 10,
294
+ ACCEPTED_BY_CLIENT = 11,
295
+ REFUSED_BY_CLIENT = 12,
296
+ TO_DO = 13,
297
+ WAITING_CLIENT = 14,
298
+ }
@@ -0,0 +1,13 @@
1
+ import { IsNumber, IsOptional, IsString } from 'class-validator';
2
+ import { ApiProperty, ApiPropertyOptional } from '../../../..';
3
+
4
+ export class UpdateLegalNotice {
5
+ @ApiProperty()
6
+ @IsString()
7
+ message: string;
8
+
9
+ @ApiPropertyOptional()
10
+ @IsOptional()
11
+ @IsNumber()
12
+ idPrestation?: number;
13
+ }
@@ -0,0 +1,6 @@
1
+ export class QueryGetPaymentExpectation {
2
+ idPrestation: number;
3
+ label: string;
4
+ amount: number;
5
+ idReason: number;
6
+ }
@@ -0,0 +1,16 @@
1
+ import { IsNumber } from 'class-validator';
2
+ import { ApiProperty } from '../../../..';
3
+
4
+ export class CreatePrestation {
5
+ @ApiProperty()
6
+ @IsNumber()
7
+ orderStatus: number;
8
+
9
+ @ApiProperty()
10
+ @IsNumber()
11
+ amountTtc: number;
12
+
13
+ @ApiProperty()
14
+ @IsNumber()
15
+ idOperationLegalNotice: number;
16
+ }
@@ -0,0 +1,103 @@
1
+ import { IsBoolean, IsOptional } from 'class-validator';
2
+ import { ApiPropertyOptional } from '../../../../utils';
3
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
4
+
5
+ export class UpdateSocietyConfig {
6
+ @ApiPropertyOptional()
7
+ @IsBoolean()
8
+ @ToBoolean()
9
+ @IsOptional()
10
+ disableExport?: boolean;
11
+
12
+ @ApiPropertyOptional()
13
+ @IsBoolean()
14
+ @ToBoolean()
15
+ @IsOptional()
16
+ noVat?: boolean;
17
+
18
+ @ApiPropertyOptional()
19
+ @IsOptional()
20
+ dateActiveVat?: Date | null;
21
+
22
+ @ApiPropertyOptional()
23
+ @IsOptional()
24
+ logo?: string | null;
25
+
26
+ @ApiPropertyOptional()
27
+ @IsBoolean()
28
+ @ToBoolean()
29
+ @IsOptional()
30
+ adjournment?: boolean;
31
+
32
+ @ApiPropertyOptional()
33
+ @IsBoolean()
34
+ @ToBoolean()
35
+ @IsOptional()
36
+ acceptCgv?: boolean;
37
+
38
+ @ApiPropertyOptional()
39
+ @IsBoolean()
40
+ @ToBoolean()
41
+ @IsOptional()
42
+ showWelcomeModal?: boolean;
43
+
44
+ @ApiPropertyOptional()
45
+ @IsBoolean()
46
+ @ToBoolean()
47
+ @IsOptional()
48
+ modalNews?: boolean;
49
+
50
+ @ApiPropertyOptional()
51
+ @IsOptional()
52
+ typeMicroentreprise?: number | null;
53
+
54
+ @ApiPropertyOptional()
55
+ @IsBoolean()
56
+ @ToBoolean()
57
+ @IsOptional()
58
+ showTipSchedule?: boolean;
59
+
60
+ @ApiPropertyOptional()
61
+ @IsOptional()
62
+ defaultBa?: number | null;
63
+
64
+ @ApiPropertyOptional()
65
+ @IsOptional()
66
+ salesType?: number | null;
67
+
68
+ @ApiPropertyOptional()
69
+ @IsBoolean()
70
+ @ToBoolean()
71
+ @IsOptional()
72
+ noShowModalAnnotation?: boolean;
73
+
74
+ @ApiPropertyOptional()
75
+ @IsBoolean()
76
+ @ToBoolean()
77
+ @IsOptional()
78
+ emailAgreement?: boolean;
79
+
80
+ @ApiPropertyOptional()
81
+ @IsBoolean()
82
+ @ToBoolean()
83
+ @IsOptional()
84
+ clicPaiement?: boolean;
85
+
86
+ @ApiPropertyOptional()
87
+ @IsBoolean()
88
+ @ToBoolean()
89
+ @IsOptional()
90
+ mailIdepotStatus?: boolean;
91
+
92
+ @ApiPropertyOptional()
93
+ @IsBoolean()
94
+ @ToBoolean()
95
+ @IsOptional()
96
+ mobileRegister?: boolean;
97
+
98
+ @ApiPropertyOptional()
99
+ @IsBoolean()
100
+ @ToBoolean()
101
+ @IsOptional()
102
+ registeredFromWebsite?: boolean;
103
+ }
@@ -0,0 +1,119 @@
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 CountVat {
20
+ monthly: string[],
21
+ quarterly: string[],
22
+ simplified: string[],
23
+ }
24
+
25
+ export interface AnnotatedSocieties {
26
+ annotated: string[],
27
+ noAnnotated: string[],
28
+ }
29
+
30
+ export interface CountComplementaryPrestation {
31
+ waitingClient: string[],
32
+ waitingDirection: string[],
33
+ acceptedDirection: string[],
34
+ refusedDirection: string[],
35
+ }
36
+
37
+ interface TotalAverage {
38
+ total: number,
39
+ average: number,
40
+ }
41
+
42
+ export interface TotalAverageProfit {
43
+ factured: TotalAverage,
44
+ payed: TotalAverage
45
+ }
46
+
47
+ export interface StatsLabBySocieties {
48
+ late: string[],
49
+ toDo: string[],
50
+ done: string[]
51
+ }
52
+ export interface StatsMailsBySocieties {
53
+ late: string[],
54
+ toDo: string[],
55
+ done: string[]
56
+ }
57
+
58
+ export interface StatsCallsBySocieties {
59
+ late: string[],
60
+ toDo: string[],
61
+ done: string[]
62
+ }
63
+
64
+ export interface StatsReportsBySocieties {
65
+ late: string[],
66
+ toDo: string[],
67
+ done: string[]
68
+ }
69
+
70
+ export interface ExitApplication {
71
+ done: {
72
+ count: number,
73
+ societies: string[],
74
+ },
75
+ undone: {
76
+ count: number,
77
+ societies: string[],
78
+ }
79
+ }
80
+
81
+ export interface StatisticBalanceSheetDetail {
82
+ goodToAttested: string[],
83
+ attested: string[],
84
+ attestedRefused: string[],
85
+ attestedObserved: string[],
86
+ toReview: string[],
87
+ toRevised: string[],
88
+ toSupervised: string[],
89
+ acceptedSIE: string[],
90
+ ARCAttested: string[],
91
+ ARCNoAttested: string[],
92
+ }
93
+
94
+ export interface ReturnListType {
95
+ societies?: ISociety[],
96
+ active?: ISociety[],
97
+ unpayed?: string[],
98
+ terminated?: string[],
99
+ archived?: string[],
100
+ labDetail?: CountLateToDoDone,
101
+ balanceSheet?: CountLateToDoDone,
102
+ balanceSheetDetailed?: StatisticBalanceSheetDetail,
103
+ additionnalSell?: CountComplementaryPrestation,
104
+ tva?: CountLateToDoDone,
105
+ checklist?: CountLateToDoDone,
106
+ checklistReinforced?: CountLateToDoDone,
107
+ revision?: Count,
108
+ annotate?: AnnotatedSocieties,
109
+ isIr?: CountIsIr,
110
+ vatType?: CountVat,
111
+ task?: StatsLabBySocieties,
112
+ mail?: StatsMailsBySocieties,
113
+ call?: StatsCallsBySocieties,
114
+ report?: StatsReportsBySocieties,
115
+ profitability?: TotalAverageProfit,
116
+ synchronised?: string[],
117
+ applicationJustified?: ExitApplication,
118
+ applicationSynchronised?: ExitApplication,
119
+ }
@@ -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
+ }
@@ -0,0 +1,14 @@
1
+ import {
2
+ IsNumber, IsDate,
3
+ } from 'class-validator';
4
+ import { ApiProperty } from '../../../../utils';
5
+
6
+ export class QueryGetAccountant {
7
+ @ApiProperty()
8
+ @IsNumber()
9
+ idUser: number;
10
+
11
+ @ApiProperty()
12
+ @IsDate()
13
+ endDate: Date;
14
+ }
@@ -0,0 +1,14 @@
1
+ import {
2
+ IsDate, IsOptional,
3
+ } from 'class-validator';
4
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
5
+
6
+ export class QueryGetDirection {
7
+ @ApiPropertyOptional()
8
+ @IsOptional()
9
+ idUser: number[];
10
+
11
+ @ApiProperty()
12
+ @IsDate()
13
+ endDate: Date;
14
+ }
@@ -0,0 +1,14 @@
1
+ import {
2
+ IsDate, IsOptional,
3
+ } from 'class-validator';
4
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
5
+
6
+ export class QueryGetExpertAccountant {
7
+ @ApiPropertyOptional()
8
+ @IsOptional()
9
+ idUser: number[];
10
+
11
+ @ApiProperty()
12
+ @IsDate()
13
+ endDate: Date;
14
+ }
@@ -0,0 +1,23 @@
1
+ import {
2
+ IsBoolean, IsNumber, IsOptional, IsPositive,
3
+ } from 'class-validator';
4
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils/decorators';
5
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
6
+
7
+ export class UpdateAttribution {
8
+ @ApiProperty()
9
+ @IsNumber()
10
+ @IsPositive()
11
+ idRoles: number;
12
+
13
+ @ApiPropertyOptional()
14
+ @IsOptional()
15
+ @IsNumber()
16
+ swapUserId?: number;
17
+
18
+ @ApiPropertyOptional()
19
+ @IsOptional()
20
+ @IsBoolean()
21
+ @ToBoolean()
22
+ randomSwap?: boolean;
23
+ }