@silexpert/core 0.4.43 → 0.4.46

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 (267) hide show
  1. package/es/api/resources/dashboard.d.ts +6 -3
  2. package/es/api/resources/dashboard.d.ts.map +1 -1
  3. package/es/api/resources/dashboard.js +12 -2
  4. package/es/api/resources/dashboard.js.map +1 -1
  5. package/es/types/Enum/ShopifyFinancialStatus.d.ts +2 -0
  6. package/es/types/Enum/ShopifyFinancialStatus.d.ts.map +1 -0
  7. package/es/types/Enum/ShopifyFinancialStatus.js +2 -0
  8. package/es/types/Enum/ShopifyFinancialStatus.js.map +1 -0
  9. package/es/types/Enum/StockType.js +1 -1
  10. package/es/types/Enum/StockType.js.map +1 -1
  11. package/es/types/Enum/TransactionKind.d.ts +2 -0
  12. package/es/types/Enum/TransactionKind.d.ts.map +1 -0
  13. package/es/types/Enum/TransactionKind.js +2 -0
  14. package/es/types/Enum/TransactionKind.js.map +1 -0
  15. package/es/types/Enum/TransactionStatus.d.ts +2 -0
  16. package/es/types/Enum/TransactionStatus.d.ts.map +1 -0
  17. package/es/types/Enum/TransactionStatus.js +2 -0
  18. package/es/types/Enum/TransactionStatus.js.map +1 -0
  19. package/es/types/Interface/api/crisp/GetCrisp.d.ts +42 -0
  20. package/es/types/Interface/api/crisp/GetCrisp.d.ts.map +1 -0
  21. package/es/types/Interface/api/crisp/GetCrisp.js +2 -0
  22. package/es/types/Interface/api/crisp/GetCrisp.js.map +1 -0
  23. package/es/types/Interface/api/dashboard/QueryTopBuys.d.ts +5 -0
  24. package/es/types/Interface/api/dashboard/QueryTopBuys.d.ts.map +1 -0
  25. package/es/types/Interface/api/dashboard/QueryTopBuys.js +21 -0
  26. package/es/types/Interface/api/dashboard/QueryTopBuys.js.map +1 -0
  27. package/es/types/Interface/api/dashboard/QueryTopProviders.d.ts +5 -0
  28. package/es/types/Interface/api/dashboard/QueryTopProviders.d.ts.map +1 -0
  29. package/es/types/Interface/api/dashboard/QueryTopProviders.js +21 -0
  30. package/es/types/Interface/api/dashboard/QueryTopProviders.js.map +1 -0
  31. package/es/types/Interface/api/dashboard/QueryVat.d.ts +5 -0
  32. package/es/types/Interface/api/dashboard/QueryVat.d.ts.map +1 -0
  33. package/es/types/Interface/api/dashboard/QueryVat.js +21 -0
  34. package/es/types/Interface/api/dashboard/QueryVat.js.map +1 -0
  35. package/es/types/Interface/api/dashboard/{ResultBalanceBankAccount.d.ts → ReadBalanceBankAccount.d.ts} +2 -2
  36. package/es/types/Interface/api/dashboard/ReadBalanceBankAccount.d.ts.map +1 -0
  37. package/es/types/Interface/api/dashboard/ReadBalanceBankAccount.js +5 -0
  38. package/es/types/Interface/api/dashboard/ReadBalanceBankAccount.js.map +1 -0
  39. package/es/types/Interface/api/dashboard/ReadTopBuys.d.ts +6 -0
  40. package/es/types/Interface/api/dashboard/ReadTopBuys.d.ts.map +1 -0
  41. package/es/types/Interface/api/dashboard/ReadTopBuys.js +3 -0
  42. package/es/types/Interface/api/dashboard/ReadTopBuys.js.map +1 -0
  43. package/es/types/Interface/api/dashboard/ReadTopProviders.d.ts +6 -0
  44. package/es/types/Interface/api/dashboard/ReadTopProviders.d.ts.map +1 -0
  45. package/es/types/Interface/api/dashboard/ReadTopProviders.js +3 -0
  46. package/es/types/Interface/api/dashboard/ReadTopProviders.js.map +1 -0
  47. package/es/types/Interface/api/dashboard/{ResultTurnOverProfitAndLoss.d.ts → ReadTurnOverProfitAndLoss.d.ts} +2 -2
  48. package/es/types/Interface/api/dashboard/ReadTurnOverProfitAndLoss.d.ts.map +1 -0
  49. package/es/types/Interface/api/dashboard/ReadTurnOverProfitAndLoss.js +7 -0
  50. package/es/types/Interface/api/dashboard/ReadTurnOverProfitAndLoss.js.map +1 -0
  51. package/es/types/Interface/api/dashboard/ReadVat.d.ts +11 -0
  52. package/es/types/Interface/api/dashboard/ReadVat.d.ts.map +1 -0
  53. package/es/types/Interface/api/dashboard/ReadVat.js +5 -0
  54. package/es/types/Interface/api/dashboard/ReadVat.js.map +1 -0
  55. package/es/types/Interface/api/pdf/BillingDocumentData.d.ts +22 -20
  56. package/es/types/Interface/api/pdf/BillingDocumentData.d.ts.map +1 -1
  57. package/es/types/Interface/api/pdf/BillingDocumentData.js.map +1 -1
  58. package/es/types/Interface/api/shopify/ImportInvoicesShopify.d.ts +5 -0
  59. package/es/types/Interface/api/shopify/ImportInvoicesShopify.d.ts.map +1 -0
  60. package/es/types/Interface/api/shopify/ImportInvoicesShopify.js +21 -0
  61. package/es/types/Interface/api/shopify/ImportInvoicesShopify.js.map +1 -0
  62. package/es/types/Interface/api/shopify/ShopifyOrder.d.ts +366 -0
  63. package/es/types/Interface/api/shopify/ShopifyOrder.d.ts.map +1 -0
  64. package/es/types/Interface/api/shopify/ShopifyOrder.js +2 -0
  65. package/es/types/Interface/api/shopify/ShopifyOrder.js.map +1 -0
  66. package/es/types/Interface/api/shopify/address.d.ts +72 -0
  67. package/es/types/Interface/api/shopify/address.d.ts.map +1 -0
  68. package/es/types/Interface/api/shopify/address.js +2 -0
  69. package/es/types/Interface/api/shopify/address.js.map +1 -0
  70. package/es/types/Interface/api/shopify/base.d.ts +11 -0
  71. package/es/types/Interface/api/shopify/base.d.ts.map +1 -0
  72. package/es/types/Interface/api/shopify/base.js +2 -0
  73. package/es/types/Interface/api/shopify/base.js.map +1 -0
  74. package/es/types/Interface/api/shopify/client_details.d.ts +28 -0
  75. package/es/types/Interface/api/shopify/client_details.d.ts.map +1 -0
  76. package/es/types/Interface/api/shopify/client_details.js +2 -0
  77. package/es/types/Interface/api/shopify/client_details.js.map +1 -0
  78. package/es/types/Interface/api/shopify/customer.d.ts +99 -0
  79. package/es/types/Interface/api/shopify/customer.d.ts.map +1 -0
  80. package/es/types/Interface/api/shopify/customer.js +2 -0
  81. package/es/types/Interface/api/shopify/customer.js.map +1 -0
  82. package/es/types/Interface/api/shopify/discount_allocation.d.ts +17 -0
  83. package/es/types/Interface/api/shopify/discount_allocation.d.ts.map +1 -0
  84. package/es/types/Interface/api/shopify/discount_allocation.js +2 -0
  85. package/es/types/Interface/api/shopify/discount_allocation.js.map +1 -0
  86. package/es/types/Interface/api/shopify/discount_application.d.ts +74 -0
  87. package/es/types/Interface/api/shopify/discount_application.d.ts.map +1 -0
  88. package/es/types/Interface/api/shopify/discount_application.js +2 -0
  89. package/es/types/Interface/api/shopify/discount_application.js.map +1 -0
  90. package/es/types/Interface/api/shopify/discount_code.d.ts +16 -0
  91. package/es/types/Interface/api/shopify/discount_code.d.ts.map +1 -0
  92. package/es/types/Interface/api/shopify/discount_code.js +2 -0
  93. package/es/types/Interface/api/shopify/discount_code.js.map +1 -0
  94. package/es/types/Interface/api/shopify/fulfillment.d.ts +93 -0
  95. package/es/types/Interface/api/shopify/fulfillment.d.ts.map +1 -0
  96. package/es/types/Interface/api/shopify/fulfillment.js +2 -0
  97. package/es/types/Interface/api/shopify/fulfillment.js.map +1 -0
  98. package/es/types/Interface/api/shopify/line_item.d.ts +126 -0
  99. package/es/types/Interface/api/shopify/line_item.d.ts.map +1 -0
  100. package/es/types/Interface/api/shopify/line_item.js +2 -0
  101. package/es/types/Interface/api/shopify/line_item.js.map +1 -0
  102. package/es/types/Interface/api/shopify/line_item_property.d.ts +12 -0
  103. package/es/types/Interface/api/shopify/line_item_property.d.ts.map +1 -0
  104. package/es/types/Interface/api/shopify/line_item_property.js +2 -0
  105. package/es/types/Interface/api/shopify/line_item_property.js.map +1 -0
  106. package/es/types/Interface/api/shopify/location.d.ts +57 -0
  107. package/es/types/Interface/api/shopify/location.d.ts.map +1 -0
  108. package/es/types/Interface/api/shopify/location.js +2 -0
  109. package/es/types/Interface/api/shopify/location.js.map +1 -0
  110. package/es/types/Interface/api/shopify/note_attribute.d.ts +11 -0
  111. package/es/types/Interface/api/shopify/note_attribute.d.ts.map +1 -0
  112. package/es/types/Interface/api/shopify/note_attribute.js +2 -0
  113. package/es/types/Interface/api/shopify/note_attribute.js.map +1 -0
  114. package/es/types/Interface/api/shopify/payment_details.d.ts +9 -0
  115. package/es/types/Interface/api/shopify/payment_details.d.ts.map +1 -0
  116. package/es/types/Interface/api/shopify/payment_details.js +2 -0
  117. package/es/types/Interface/api/shopify/payment_details.js.map +1 -0
  118. package/es/types/Interface/api/shopify/price_set.d.ts +11 -0
  119. package/es/types/Interface/api/shopify/price_set.d.ts.map +1 -0
  120. package/es/types/Interface/api/shopify/price_set.js +2 -0
  121. package/es/types/Interface/api/shopify/price_set.js.map +1 -0
  122. package/es/types/Interface/api/shopify/refund.d.ts +140 -0
  123. package/es/types/Interface/api/shopify/refund.d.ts.map +1 -0
  124. package/es/types/Interface/api/shopify/refund.js +2 -0
  125. package/es/types/Interface/api/shopify/refund.js.map +1 -0
  126. package/es/types/Interface/api/shopify/shipping_line.d.ts +59 -0
  127. package/es/types/Interface/api/shopify/shipping_line.d.ts.map +1 -0
  128. package/es/types/Interface/api/shopify/shipping_line.js +2 -0
  129. package/es/types/Interface/api/shopify/shipping_line.js.map +1 -0
  130. package/es/types/Interface/api/shopify/tax_line.d.ts +22 -0
  131. package/es/types/Interface/api/shopify/tax_line.d.ts.map +1 -0
  132. package/es/types/Interface/api/shopify/tax_line.js +2 -0
  133. package/es/types/Interface/api/shopify/tax_line.js.map +1 -0
  134. package/es/types/Interface/api/shopify/transaction.d.ts +103 -0
  135. package/es/types/Interface/api/shopify/transaction.d.ts.map +1 -0
  136. package/es/types/Interface/api/shopify/transaction.js +2 -0
  137. package/es/types/Interface/api/shopify/transaction.js.map +1 -0
  138. package/es/types/Interface/models/IAccountingFile.d.ts +1 -1
  139. package/es/types/Interface/models/IAccountingFile.js.map +1 -1
  140. package/es/types/Interface/models/IEngagementAccountingFile.d.ts +1 -1
  141. package/es/types/Interface/models/IEngagementAccountingFile.js.map +1 -1
  142. package/es/types/Interface/models/ISocietyGescom.d.ts +29 -29
  143. package/es/types/Interface/models/ISocietyGescom.d.ts.map +1 -1
  144. package/es/types/Interface/models/ISocietyGescom.js.map +1 -1
  145. package/es/types/index.d.ts +12 -2
  146. package/es/types/index.d.ts.map +1 -1
  147. package/es/types/index.js +12 -2
  148. package/es/types/index.js.map +1 -1
  149. package/js/api/resources/dashboard.js +22 -2
  150. package/js/api/resources/dashboard.js.map +1 -1
  151. package/js/types/Enum/ShopifyFinancialStatus.js +6 -0
  152. package/js/types/Enum/ShopifyFinancialStatus.js.map +1 -0
  153. package/js/types/Enum/StockType.js +1 -1
  154. package/js/types/Enum/StockType.js.map +1 -1
  155. package/js/types/Enum/TransactionKind.js +6 -0
  156. package/js/types/Enum/TransactionKind.js.map +1 -0
  157. package/js/types/Enum/TransactionStatus.js +6 -0
  158. package/js/types/Enum/TransactionStatus.js.map +1 -0
  159. package/js/types/Interface/api/crisp/GetCrisp.js +6 -0
  160. package/js/types/Interface/api/crisp/GetCrisp.js.map +1 -0
  161. package/js/types/Interface/api/dashboard/QueryTopBuys.js +29 -0
  162. package/js/types/Interface/api/dashboard/QueryTopBuys.js.map +1 -0
  163. package/js/types/Interface/api/dashboard/QueryTopProviders.js +29 -0
  164. package/js/types/Interface/api/dashboard/QueryTopProviders.js.map +1 -0
  165. package/js/types/Interface/api/dashboard/QueryVat.js +29 -0
  166. package/js/types/Interface/api/dashboard/QueryVat.js.map +1 -0
  167. package/js/types/Interface/api/dashboard/ReadBalanceBankAccount.js +14 -0
  168. package/js/types/Interface/api/dashboard/ReadBalanceBankAccount.js.map +1 -0
  169. package/js/types/Interface/api/dashboard/ReadTopBuys.js +10 -0
  170. package/js/types/Interface/api/dashboard/ReadTopBuys.js.map +1 -0
  171. package/js/types/Interface/api/dashboard/ReadTopProviders.js +10 -0
  172. package/js/types/Interface/api/dashboard/ReadTopProviders.js.map +1 -0
  173. package/js/types/Interface/api/dashboard/{ResultTurnOverProfitAndLoss.js → ReadTurnOverProfitAndLoss.js} +3 -3
  174. package/js/types/Interface/api/dashboard/ReadTurnOverProfitAndLoss.js.map +1 -0
  175. package/js/types/Interface/api/dashboard/ReadVat.js +14 -0
  176. package/js/types/Interface/api/dashboard/ReadVat.js.map +1 -0
  177. package/js/types/Interface/api/shopify/ImportInvoicesShopify.js +29 -0
  178. package/js/types/Interface/api/shopify/ImportInvoicesShopify.js.map +1 -0
  179. package/js/types/Interface/api/shopify/ShopifyOrder.js +6 -0
  180. package/js/types/Interface/api/shopify/ShopifyOrder.js.map +1 -0
  181. package/js/types/Interface/api/shopify/address.js +6 -0
  182. package/js/types/Interface/api/shopify/address.js.map +1 -0
  183. package/js/types/Interface/api/shopify/base.js +6 -0
  184. package/js/types/Interface/api/shopify/base.js.map +1 -0
  185. package/js/types/Interface/api/shopify/client_details.js +6 -0
  186. package/js/types/Interface/api/shopify/client_details.js.map +1 -0
  187. package/js/types/Interface/api/shopify/customer.js +6 -0
  188. package/js/types/Interface/api/shopify/customer.js.map +1 -0
  189. package/js/types/Interface/api/shopify/discount_allocation.js +6 -0
  190. package/js/types/Interface/api/shopify/discount_allocation.js.map +1 -0
  191. package/js/types/Interface/api/shopify/discount_application.js +6 -0
  192. package/js/types/Interface/api/shopify/discount_application.js.map +1 -0
  193. package/js/types/Interface/api/shopify/discount_code.js +6 -0
  194. package/js/types/Interface/api/shopify/discount_code.js.map +1 -0
  195. package/js/types/Interface/api/shopify/fulfillment.js +6 -0
  196. package/js/types/Interface/api/shopify/fulfillment.js.map +1 -0
  197. package/js/types/Interface/api/shopify/line_item.js +6 -0
  198. package/js/types/Interface/api/shopify/line_item.js.map +1 -0
  199. package/js/types/Interface/api/shopify/line_item_property.js +6 -0
  200. package/js/types/Interface/api/shopify/line_item_property.js.map +1 -0
  201. package/js/types/Interface/api/shopify/location.js +6 -0
  202. package/js/types/Interface/api/shopify/location.js.map +1 -0
  203. package/js/types/Interface/api/shopify/note_attribute.js +6 -0
  204. package/js/types/Interface/api/shopify/note_attribute.js.map +1 -0
  205. package/js/types/Interface/api/shopify/payment_details.js +6 -0
  206. package/js/types/Interface/api/shopify/payment_details.js.map +1 -0
  207. package/js/types/Interface/api/shopify/price_set.js +6 -0
  208. package/js/types/Interface/api/shopify/price_set.js.map +1 -0
  209. package/js/types/Interface/api/shopify/refund.js +6 -0
  210. package/js/types/Interface/api/shopify/refund.js.map +1 -0
  211. package/js/types/Interface/api/shopify/shipping_line.js +6 -0
  212. package/js/types/Interface/api/shopify/shipping_line.js.map +1 -0
  213. package/js/types/Interface/api/shopify/tax_line.js +6 -0
  214. package/js/types/Interface/api/shopify/tax_line.js.map +1 -0
  215. package/js/types/Interface/api/shopify/transaction.js +6 -0
  216. package/js/types/Interface/api/shopify/transaction.js.map +1 -0
  217. package/js/types/index.js +126 -6
  218. package/js/types/index.js.map +1 -1
  219. package/package.json +1 -1
  220. package/ts/api/resources/dashboard.ts +32 -6
  221. package/ts/types/Enum/ShopifyFinancialStatus.ts +11 -0
  222. package/ts/types/Enum/StockType.ts +1 -1
  223. package/ts/types/Enum/TransactionKind.ts +7 -0
  224. package/ts/types/Enum/TransactionStatus.ts +6 -0
  225. package/ts/types/Interface/api/crisp/GetCrisp.ts +46 -0
  226. package/ts/types/Interface/api/dashboard/QueryTopBuys.ts +9 -0
  227. package/ts/types/Interface/api/dashboard/QueryTopProviders.ts +9 -0
  228. package/ts/types/Interface/api/dashboard/QueryVat.ts +9 -0
  229. package/ts/types/Interface/api/dashboard/{ResultBalanceBankAccount.ts → ReadBalanceBankAccount.ts} +1 -1
  230. package/ts/types/Interface/api/dashboard/ReadTopBuys.ts +5 -0
  231. package/ts/types/Interface/api/dashboard/ReadTopProviders.ts +5 -0
  232. package/ts/types/Interface/api/dashboard/{ResultTurnOverProfitAndLoss.ts → ReadTurnOverProfitAndLoss.ts} +1 -1
  233. package/ts/types/Interface/api/dashboard/ReadVat.ts +11 -0
  234. package/ts/types/Interface/api/pdf/BillingDocumentData.ts +22 -20
  235. package/ts/types/Interface/api/shopify/ImportInvoicesShopify.ts +8 -0
  236. package/ts/types/Interface/api/shopify/ShopifyOrder.ts +436 -0
  237. package/ts/types/Interface/api/shopify/address.ts +88 -0
  238. package/ts/types/Interface/api/shopify/base.ts +10 -0
  239. package/ts/types/Interface/api/shopify/client_details.ts +33 -0
  240. package/ts/types/Interface/api/shopify/customer.ts +125 -0
  241. package/ts/types/Interface/api/shopify/discount_allocation.ts +19 -0
  242. package/ts/types/Interface/api/shopify/discount_application.ts +83 -0
  243. package/ts/types/Interface/api/shopify/discount_code.ts +18 -0
  244. package/ts/types/Interface/api/shopify/fulfillment.ts +110 -0
  245. package/ts/types/Interface/api/shopify/line_item.ts +153 -0
  246. package/ts/types/Interface/api/shopify/line_item_property.ts +13 -0
  247. package/ts/types/Interface/api/shopify/location.ts +69 -0
  248. package/ts/types/Interface/api/shopify/note_attribute.ts +11 -0
  249. package/ts/types/Interface/api/shopify/payment_details.ts +13 -0
  250. package/ts/types/Interface/api/shopify/price_set.ts +10 -0
  251. package/ts/types/Interface/api/shopify/refund.ts +142 -0
  252. package/ts/types/Interface/api/shopify/shipping_line.ts +71 -0
  253. package/ts/types/Interface/api/shopify/tax_line.ts +25 -0
  254. package/ts/types/Interface/api/shopify/transaction.ts +123 -0
  255. package/ts/types/Interface/models/IAccountingFile.ts +1 -1
  256. package/ts/types/Interface/models/IEngagementAccountingFile.ts +1 -1
  257. package/ts/types/Interface/models/ISocietyGescom.ts +29 -29
  258. package/ts/types/index.ts +12 -2
  259. package/es/types/Interface/api/dashboard/ResultBalanceBankAccount.d.ts.map +0 -1
  260. package/es/types/Interface/api/dashboard/ResultBalanceBankAccount.js +0 -5
  261. package/es/types/Interface/api/dashboard/ResultBalanceBankAccount.js.map +0 -1
  262. package/es/types/Interface/api/dashboard/ResultTurnOverProfitAndLoss.d.ts.map +0 -1
  263. package/es/types/Interface/api/dashboard/ResultTurnOverProfitAndLoss.js +0 -7
  264. package/es/types/Interface/api/dashboard/ResultTurnOverProfitAndLoss.js.map +0 -1
  265. package/js/types/Interface/api/dashboard/ResultBalanceBankAccount.js +0 -14
  266. package/js/types/Interface/api/dashboard/ResultBalanceBankAccount.js.map +0 -1
  267. package/js/types/Interface/api/dashboard/ResultTurnOverProfitAndLoss.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "0.4.43",
3
+ "version": "0.4.46",
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,14 +1,40 @@
1
1
  import { Resource } from '../Resource';
2
2
  import {
3
- QueryBalanceBankAccount, QueryTurnoverProfitAndLoss, ResultBalanceBankAccount, ResultTurnoverProfitAndLoss,
3
+ QueryBalanceBankAccount,
4
+ QueryTurnoverProfitAndLoss,
5
+ QueryVat,
6
+ QueryTopBuys,
7
+ QueryTopProviders,
8
+ ReadTopProviders,
9
+ ReadTurnoverProfitAndLoss,
10
+ ReadBalanceBankAccount,
11
+ ReadVat,
12
+ ReadTopBuys,
4
13
  } from '../../types';
5
14
 
15
+ const ROUTE = 'dashboard';
6
16
  export class Dashboard extends Resource {
7
- getTurnoverProfitAndLoss(params: QueryTurnoverProfitAndLoss): Promise<ResultTurnoverProfitAndLoss> {
8
- return this.axios.$get('dashboard/turnoverProfitAndLoss', { params });
17
+ getTurnoverProfitAndLoss(
18
+ params: QueryTurnoverProfitAndLoss,
19
+ ): Promise<ReadTurnoverProfitAndLoss> {
20
+ return this.axios.$get(`${ROUTE}/turnoverProfitAndLoss`, { params });
9
21
  }
10
22
 
11
- getBalanceBankAccount(params: QueryBalanceBankAccount): Promise<ResultBalanceBankAccount[]> {
12
- return this.axios.$get('dashboard/balanceBankAccount', { params });
23
+ getBalanceBankAccount(
24
+ params: QueryBalanceBankAccount,
25
+ ): Promise<ReadBalanceBankAccount[]> {
26
+ return this.axios.$get(`${ROUTE}/balanceBankAccount`, { params });
13
27
  }
14
- }
28
+
29
+ getTva(dates: QueryVat): Promise<ReadVat> {
30
+ return this.axios.get(`${ROUTE}/vat`, { params: dates });
31
+ }
32
+
33
+ getTopBuys(dates: QueryTopBuys): Promise<ReadTopBuys[]> {
34
+ return this.axios.$get(`${ROUTE}/topBuys`, { params: dates });
35
+ }
36
+
37
+ getTopProviders(params: QueryTopProviders): Promise<ReadTopProviders[]> {
38
+ return this.axios.$get(`${ROUTE}/topProviders`, { params });
39
+ }
40
+ }
@@ -0,0 +1,11 @@
1
+ export type FinancialStatus =
2
+ | 'authorized'
3
+ | 'pending'
4
+ | 'paid'
5
+ | 'partially_paid'
6
+ | 'refunded'
7
+ | 'voided'
8
+ | 'partially_refunded'
9
+ | 'unpaid'
10
+ | 'any'
11
+ | string;
@@ -42,7 +42,7 @@ export const StockType: stockInterface = {
42
42
  designation: 'Stock de travaux de production en cours',
43
43
  idAccount: 352,
44
44
  idAccountVariation: 422,
45
- idAccountDepreciation: 396,
45
+ idAccountDepreciation: 386,
46
46
  },
47
47
  STOCK_PRODUITS_SERVICE_EN_COURS: {
48
48
  designation: 'Stock de produit et service en cours',
@@ -0,0 +1,7 @@
1
+ export type TransactionKind =
2
+ | 'authorization'
3
+ | 'capture'
4
+ | 'sale'
5
+ | 'void'
6
+ | 'refund'
7
+ | string;
@@ -0,0 +1,6 @@
1
+ export type TransactionStatus =
2
+ | 'pending'
3
+ | 'failure'
4
+ | 'success'
5
+ | 'error'
6
+ | string;
@@ -0,0 +1,46 @@
1
+ export type CrispHookPayload = {
2
+ website_id: string;
3
+ event: CrispEvent;
4
+ data: CrispData | any; // TODO: Implement other data when used
5
+ timestamp: number;
6
+ };
7
+
8
+ export type CrispEvent = 'session:sync:rating' | 'session:update_availability' |'session:update_verify' |'session:request' |'session:set_email' |'session:set_phone' |'session:set_address' |'session:set_avatar' |'session:set_nickname' |'session:set_data' |'session:sync' |'session:sync' |'session:sync' |'session:sync' |'session:sync' |'session:sync' |'session:sync' |'session:sync' |'session:sync' |'session:set_state' |'session:set_block' |'session:set_segments' |'session:set_opened' |'session:set_closed' |'session:set_participants' |'session:set_mentions' |'session:set_routing' |'session:removed' | 'message:updated' |'message:send' |'message:received' |'message:compose:send' |'message:compose:receive' |'message:acknowledge:read:send' |'message:acknowledge:read:received' |'message:acknowledge:delivered' |'message:notify:unread:send' |'message:notify:unread:received' |'people:profile:created' |'people:profile:updated' |'people:profile:removed' |'people:bind:session' |'people:sync:profile' |'people:import:progress' |'people:import:done' |'campaign:progress' |'campaign:dispatched' |'campaign:running' |'browsing:request:initiated' |'browsing:request:rejected' |'call:request:initiated' |'call:request:rejected' |'widget:action:processed' |'status:health:changed' |'website:update_visitors_count' |'website:update_operators_availability' |'website:users:available' |'bucket:url:upload:generated' |'bucket:url:avatar:generated' |'bucket:url:website:generated' |'bucket:url:campaign:generated' |'bucket:url:helpdesk:generated' |'bucket:url:status:generated' |'bucket:url:processing:generated' |'media:animation:listed' |'email:subscribe' |'email:track:view' |'plugin:channel' |'plugin:event' |'plugin:settings:saved';
9
+
10
+ export type CrispData = SessionSyncRating;
11
+
12
+ export type SessionSyncRating = {
13
+ website_id: string;
14
+ session_id: string;
15
+ rating: {
16
+ stars: number;
17
+ comment: string;
18
+ }
19
+ };
20
+
21
+ export type GetConversationSuccessValue = {
22
+ session_id: string;
23
+ availability: string;
24
+ created_at: number;
25
+ is_blocked: boolean;
26
+ meta: {
27
+ nickname: string;
28
+ email: string;
29
+ phone: string;
30
+ avatar: string;
31
+ ip: string;
32
+ data: any,
33
+ segments: string;
34
+ },
35
+ state: string;
36
+ };
37
+
38
+ export type CrispError = {
39
+ reason: string;
40
+ message: string;
41
+ code: number,
42
+ data: {
43
+ namespace: string;
44
+ message: string;
45
+ }
46
+ };
@@ -0,0 +1,9 @@
1
+ import { ApiProperty } from '../../../../utils';
2
+
3
+ export class QueryTopBuys {
4
+ @ApiProperty()
5
+ startDate: string | Date;
6
+
7
+ @ApiProperty()
8
+ endDate: string | Date;
9
+ }
@@ -0,0 +1,9 @@
1
+ import { ApiProperty } from '../../../../utils';
2
+
3
+ export class QueryTopProviders {
4
+ @ApiProperty()
5
+ startDate: string | Date;
6
+
7
+ @ApiProperty()
8
+ endDate: string | Date;
9
+ }
@@ -0,0 +1,9 @@
1
+ import { ApiProperty } from '../../../../utils';
2
+
3
+ export class QueryVat {
4
+ @ApiProperty()
5
+ startDate: string | Date;
6
+
7
+ @ApiProperty()
8
+ endDate: string | Date;
9
+ }
@@ -1,6 +1,6 @@
1
1
  import { IBalanceBankAccount } from '../../models/IBalanceBankAccount';
2
2
 
3
- export class ResultBalanceBankAccount {
3
+ export class ReadBalanceBankAccount {
4
4
  date: string | Date;
5
5
  datas: Array<MissingData | IBalanceBankAccount>;
6
6
  }
@@ -0,0 +1,5 @@
1
+ export class ReadTopBuys {
2
+ id: number;
3
+ name: string;
4
+ amount: number;
5
+ }
@@ -0,0 +1,5 @@
1
+ export class ReadTopProviders {
2
+ company: string;
3
+ idAccount: number;
4
+ amount: number;
5
+ }
@@ -1,4 +1,4 @@
1
- export class ResultTurnoverProfitAndLoss {
1
+ export class ReadTurnoverProfitAndLoss {
2
2
  data: any;
3
3
  chart: {
4
4
  labels: Array<string>;
@@ -0,0 +1,11 @@
1
+ export class ReadVat {
2
+ tvas: Array<VatData>;
3
+ totalAmount: number;
4
+ isDebitor: boolean;
5
+ }
6
+
7
+ export class VatData {
8
+ label: string;
9
+ dataCollectible: number;
10
+ dataDeductible: number;
11
+ }
@@ -4,7 +4,7 @@ interface BillingDocumentItemVat {
4
4
  computeMethod: 'percentage',
5
5
  vatPercentageValue: number,
6
6
  }
7
- interface BillingDocumentItem {
7
+ export interface BillingDocumentItem {
8
8
  name: string,
9
9
  comment: string,
10
10
  quantity: number,
@@ -14,6 +14,25 @@ interface BillingDocumentItem {
14
14
  unit: string,
15
15
  vat: BillingDocumentItemVat,
16
16
  }
17
+ export interface BillingDocumentRecipient {
18
+ id?: number;
19
+ fullname: string | null;
20
+ company: string;
21
+ address?: string | null;
22
+ zipCode?: string | null;
23
+ city?: string | null;
24
+ phone?: string | null;
25
+ nTva?: string | null;
26
+ thirdPartyCountry: {
27
+ name: string;
28
+ }
29
+ }
30
+ export interface BillingDocumentReferences {
31
+ createdDate: Date | null;
32
+ ref: string | null;
33
+ paymentPlan: string | null;
34
+ dueDate: Date | null;
35
+ }
17
36
 
18
37
  export type BillingDocumentData = {
19
38
  society: Partial<ISociety>,
@@ -21,24 +40,7 @@ export type BillingDocumentData = {
21
40
  template: number | null;
22
41
  generalComment: string | null;
23
42
  generalDiscount: number | null;
24
- recipient: {
25
- id?: number;
26
- fullname: string | null;
27
- company: string;
28
- address?: string | null;
29
- zipCode?: string | null;
30
- city?: string | null;
31
- phone?: string | null;
32
- nTva?: string | null;
33
- thirdPartyCountry: {
34
- name: string;
35
- }
36
- };
37
- references: {
38
- createdDate: Date | null;
39
- ref: string | null;
40
- paymentPlan: string | null;
41
- dueDate: Date | null;
42
- },
43
+ recipient: BillingDocumentRecipient;
44
+ references: BillingDocumentReferences,
43
45
  items: BillingDocumentItem[]
44
46
  };
@@ -0,0 +1,8 @@
1
+ import { ApiPropertyOptional } from '../../../../utils';
2
+
3
+ export class ImportInvoicesShopify {
4
+ @ApiPropertyOptional()
5
+ limit: number;
6
+ @ApiPropertyOptional()
7
+ idSociety: number;
8
+ }