@silexpert/core 0.4.200 → 0.4.203

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 (263) hide show
  1. package/es/api/resources/Checklist.d.ts +20 -0
  2. package/es/api/resources/Checklist.d.ts.map +1 -0
  3. package/es/api/resources/Checklist.js +38 -0
  4. package/es/api/resources/Checklist.js.map +1 -0
  5. package/es/api/resources/GeneralLedger.d.ts +2 -1
  6. package/es/api/resources/GeneralLedger.d.ts.map +1 -1
  7. package/es/api/resources/GeneralLedger.js +3 -0
  8. package/es/api/resources/GeneralLedger.js.map +1 -1
  9. package/es/api/resources/Lettering.d.ts +7 -0
  10. package/es/api/resources/Lettering.d.ts.map +1 -0
  11. package/es/api/resources/Lettering.js +13 -0
  12. package/es/api/resources/Lettering.js.map +1 -0
  13. package/es/api/resources/Mobile.d.ts +6 -0
  14. package/es/api/resources/Mobile.d.ts.map +1 -0
  15. package/es/api/resources/Mobile.js +7 -0
  16. package/es/api/resources/Mobile.js.map +1 -0
  17. package/es/api/resources/Notification.d.ts +5 -0
  18. package/es/api/resources/Notification.d.ts.map +1 -0
  19. package/es/api/resources/Notification.js +7 -0
  20. package/es/api/resources/Notification.js.map +1 -0
  21. package/es/api/resources/Revision.d.ts +2 -1
  22. package/es/api/resources/Revision.d.ts.map +1 -1
  23. package/es/api/resources/Revision.js +3 -0
  24. package/es/api/resources/Revision.js.map +1 -1
  25. package/es/api/resources/Transaction.d.ts +5 -13
  26. package/es/api/resources/Transaction.d.ts.map +1 -1
  27. package/es/api/resources/Transaction.js +5 -0
  28. package/es/api/resources/Transaction.js.map +1 -1
  29. package/es/api/resources.d.ts +8 -0
  30. package/es/api/resources.d.ts.map +1 -1
  31. package/es/api/resources.js +8 -0
  32. package/es/api/resources.js.map +1 -1
  33. package/es/types/Enum/Account.d.ts +4 -0
  34. package/es/types/Enum/Account.d.ts.map +1 -1
  35. package/es/types/Enum/Account.js +4 -0
  36. package/es/types/Enum/Account.js.map +1 -1
  37. package/es/types/Enum/BrandClementine.d.ts +10 -0
  38. package/es/types/Enum/BrandClementine.d.ts.map +1 -1
  39. package/es/types/Enum/BrandClementine.js +5 -0
  40. package/es/types/Enum/BrandClementine.js.map +1 -1
  41. package/es/types/Enum/BrandComptalib.d.ts +6 -0
  42. package/es/types/Enum/BrandComptalib.d.ts.map +1 -1
  43. package/es/types/Enum/BrandComptalib.js +8 -0
  44. package/es/types/Enum/BrandComptalib.js.map +1 -1
  45. package/es/types/Enum/BrandLegalstart.d.ts +2 -0
  46. package/es/types/Enum/BrandLegalstart.d.ts.map +1 -1
  47. package/es/types/Enum/BrandLegalstart.js +2 -0
  48. package/es/types/Enum/BrandLegalstart.js.map +1 -1
  49. package/es/types/Enum/ChecklistType.d.ts +60 -0
  50. package/es/types/Enum/ChecklistType.d.ts.map +1 -0
  51. package/es/types/Enum/ChecklistType.js +64 -0
  52. package/es/types/Enum/ChecklistType.js.map +1 -0
  53. package/es/types/Enum/EstimateInvoice.d.ts +1 -1
  54. package/es/types/Enum/EstimateInvoice.d.ts.map +1 -1
  55. package/es/types/Enum/EstimateInvoice.js +9 -9
  56. package/es/types/Enum/EstimateInvoice.js.map +1 -1
  57. package/es/types/Enum/MailAuto.d.ts +3 -1
  58. package/es/types/Enum/MailAuto.d.ts.map +1 -1
  59. package/es/types/Enum/MailAuto.js +2 -0
  60. package/es/types/Enum/MailAuto.js.map +1 -1
  61. package/es/types/Enum/NotificationType.d.ts +5 -0
  62. package/es/types/Enum/NotificationType.d.ts.map +1 -0
  63. package/es/types/Enum/NotificationType.js +6 -0
  64. package/es/types/Enum/NotificationType.js.map +1 -0
  65. package/es/types/Interface/api/checklist/Query.d.ts +20 -0
  66. package/es/types/Interface/api/checklist/Query.d.ts.map +1 -0
  67. package/es/types/Interface/api/checklist/Query.js +59 -0
  68. package/es/types/Interface/api/checklist/Query.js.map +1 -0
  69. package/es/types/Interface/api/checklist/Read.d.ts +12 -0
  70. package/es/types/Interface/api/checklist/Read.d.ts.map +1 -0
  71. package/es/types/Interface/api/checklist/Read.js +2 -0
  72. package/es/types/Interface/api/checklist/Read.js.map +1 -0
  73. package/es/types/Interface/api/checklist/Update.d.ts +6 -0
  74. package/es/types/Interface/api/checklist/Update.d.ts.map +1 -0
  75. package/es/types/Interface/api/checklist/Update.js +25 -0
  76. package/es/types/Interface/api/checklist/Update.js.map +1 -0
  77. package/es/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.d.ts +3 -1
  78. package/es/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.d.ts.map +1 -1
  79. package/es/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.js.map +1 -1
  80. package/es/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts +10 -0
  81. package/es/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts.map +1 -0
  82. package/es/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js +2 -0
  83. package/es/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js.map +1 -0
  84. package/es/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.d.ts +12 -0
  85. package/es/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.d.ts.map +1 -0
  86. package/es/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js +63 -0
  87. package/es/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js.map +1 -0
  88. package/es/types/Interface/api/lettering/QueryRegroupLettering.d.ts +4 -0
  89. package/es/types/Interface/api/lettering/QueryRegroupLettering.d.ts.map +1 -0
  90. package/es/types/Interface/api/lettering/QueryRegroupLettering.js +19 -0
  91. package/es/types/Interface/api/lettering/QueryRegroupLettering.js.map +1 -0
  92. package/es/types/Interface/api/mobile/UpdateMobile.d.ts +4 -0
  93. package/es/types/Interface/api/mobile/UpdateMobile.d.ts.map +1 -0
  94. package/es/types/Interface/api/mobile/UpdateMobile.js +17 -0
  95. package/es/types/Interface/api/mobile/UpdateMobile.js.map +1 -0
  96. package/es/types/Interface/api/notification/CreateNotification.d.ts +6 -0
  97. package/es/types/Interface/api/notification/CreateNotification.d.ts.map +1 -0
  98. package/es/types/Interface/api/notification/CreateNotification.js +22 -0
  99. package/es/types/Interface/api/notification/CreateNotification.js.map +1 -0
  100. package/es/types/Interface/api/revision/QueryRevisionApprobation.d.ts +7 -0
  101. package/es/types/Interface/api/revision/QueryRevisionApprobation.d.ts.map +1 -0
  102. package/es/types/Interface/api/revision/QueryRevisionApprobation.js +34 -0
  103. package/es/types/Interface/api/revision/QueryRevisionApprobation.js.map +1 -0
  104. package/es/types/Interface/api/revision/QueryRevisionSearchEntries.d.ts +8 -0
  105. package/es/types/Interface/api/revision/QueryRevisionSearchEntries.d.ts.map +1 -1
  106. package/es/types/Interface/api/revision/QueryRevisionSearchEntries.js +46 -1
  107. package/es/types/Interface/api/revision/QueryRevisionSearchEntries.js.map +1 -1
  108. package/es/types/Interface/api/revision/ReadRevisionAccount.d.ts +2 -2
  109. package/es/types/Interface/api/revision/ReadRevisionAccount.d.ts.map +1 -1
  110. package/es/types/Interface/api/revision/ReadRevisionAccount.js.map +1 -1
  111. package/es/types/Interface/api/society/ReadSociety.d.ts +4 -0
  112. package/es/types/Interface/api/society/ReadSociety.d.ts.map +1 -1
  113. package/es/types/Interface/api/society/ReadSociety.js.map +1 -1
  114. package/es/types/Interface/api/tax/ReadTax.d.ts +9 -0
  115. package/es/types/Interface/api/tax/ReadTax.d.ts.map +1 -1
  116. package/es/types/Interface/api/tax/ReadTax.js.map +1 -1
  117. package/es/types/Interface/models/IAccountDetail.d.ts +6 -6
  118. package/es/types/Interface/models/IAccountDetail.d.ts.map +1 -1
  119. package/es/types/Interface/models/IAccountDetail.js.map +1 -1
  120. package/es/types/Interface/models/IAccountingEntry.d.ts +1 -0
  121. package/es/types/Interface/models/IAccountingEntry.d.ts.map +1 -1
  122. package/es/types/Interface/models/IAccountingEntry.js.map +1 -1
  123. package/es/types/Interface/models/IAccountingTransaction.d.ts +0 -3
  124. package/es/types/Interface/models/IAccountingTransaction.d.ts.map +1 -1
  125. package/es/types/Interface/models/IAccountingTransaction.js.map +1 -1
  126. package/es/types/Interface/models/IApiError.d.ts +5 -1
  127. package/es/types/Interface/models/IApiError.d.ts.map +1 -1
  128. package/es/types/Interface/models/IApiError.js +4 -0
  129. package/es/types/Interface/models/IApiError.js.map +1 -1
  130. package/es/types/Interface/models/IChecklist.d.ts +13 -9
  131. package/es/types/Interface/models/IChecklist.d.ts.map +1 -1
  132. package/es/types/Interface/models/IChecklist.js.map +1 -1
  133. package/es/types/Interface/models/IChecklistDetail.d.ts +1 -0
  134. package/es/types/Interface/models/IChecklistDetail.d.ts.map +1 -1
  135. package/es/types/Interface/models/IChecklistDetail.js.map +1 -1
  136. package/es/types/Interface/models/IChecklistType.d.ts +7 -0
  137. package/es/types/Interface/models/IChecklistType.d.ts.map +1 -1
  138. package/es/types/Interface/models/IChecklistType.js.map +1 -1
  139. package/es/types/Interface/models/ILettering.d.ts +0 -2
  140. package/es/types/Interface/models/ILettering.d.ts.map +1 -1
  141. package/es/types/Interface/models/ILettering.js.map +1 -1
  142. package/es/types/Interface/models/IMobile.d.ts +11 -0
  143. package/es/types/Interface/models/IMobile.d.ts.map +1 -0
  144. package/es/types/Interface/models/IMobile.js +2 -0
  145. package/es/types/Interface/models/IMobile.js.map +1 -0
  146. package/es/types/Interface/models/ISociety.d.ts +4 -2
  147. package/es/types/Interface/models/ISociety.d.ts.map +1 -1
  148. package/es/types/Interface/models/ISociety.js.map +1 -1
  149. package/es/types/Interface/models/IUser.d.ts +2 -0
  150. package/es/types/Interface/models/IUser.d.ts.map +1 -1
  151. package/es/types/Interface/models/IUser.js.map +1 -1
  152. package/es/types/index.d.ts +13 -0
  153. package/es/types/index.d.ts.map +1 -1
  154. package/es/types/index.js +13 -0
  155. package/es/types/index.js.map +1 -1
  156. package/es/utils/checklist.d.ts +3 -0
  157. package/es/utils/checklist.d.ts.map +1 -0
  158. package/es/utils/checklist.js +37 -0
  159. package/es/utils/checklist.js.map +1 -0
  160. package/js/api/resources/Checklist.js +68 -0
  161. package/js/api/resources/Checklist.js.map +1 -0
  162. package/js/api/resources/GeneralLedger.js +6 -0
  163. package/js/api/resources/GeneralLedger.js.map +1 -1
  164. package/js/api/resources/Lettering.js +25 -0
  165. package/js/api/resources/Lettering.js.map +1 -0
  166. package/js/api/resources/Mobile.js +18 -0
  167. package/js/api/resources/Mobile.js.map +1 -0
  168. package/js/api/resources/Notification.js +18 -0
  169. package/js/api/resources/Notification.js.map +1 -0
  170. package/js/api/resources/Revision.js +4 -0
  171. package/js/api/resources/Revision.js.map +1 -1
  172. package/js/api/resources/Transaction.js +6 -0
  173. package/js/api/resources/Transaction.js.map +1 -1
  174. package/js/api/resources.js +13 -1
  175. package/js/api/resources.js.map +1 -1
  176. package/js/types/Enum/Account.js +4 -0
  177. package/js/types/Enum/Account.js.map +1 -1
  178. package/js/types/Enum/BrandClementine.js +5 -0
  179. package/js/types/Enum/BrandClementine.js.map +1 -1
  180. package/js/types/Enum/BrandComptalib.js +8 -0
  181. package/js/types/Enum/BrandComptalib.js.map +1 -1
  182. package/js/types/Enum/BrandLegalstart.js +2 -0
  183. package/js/types/Enum/BrandLegalstart.js.map +1 -1
  184. package/js/types/Enum/ChecklistType.js +76 -0
  185. package/js/types/Enum/ChecklistType.js.map +1 -0
  186. package/js/types/Enum/EstimateInvoice.js +9 -9
  187. package/js/types/Enum/EstimateInvoice.js.map +1 -1
  188. package/js/types/Enum/MailAuto.js +2 -0
  189. package/js/types/Enum/MailAuto.js.map +1 -1
  190. package/js/types/Enum/NotificationType.js +12 -0
  191. package/js/types/Enum/NotificationType.js.map +1 -0
  192. package/js/types/Interface/api/checklist/Query.js +57 -0
  193. package/js/types/Interface/api/checklist/Query.js.map +1 -0
  194. package/js/types/Interface/api/checklist/Read.js +6 -0
  195. package/js/types/Interface/api/checklist/Read.js.map +1 -0
  196. package/js/types/Interface/api/checklist/Update.js +33 -0
  197. package/js/types/Interface/api/checklist/Update.js.map +1 -0
  198. package/js/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js +6 -0
  199. package/js/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js.map +1 -0
  200. package/js/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js +54 -0
  201. package/js/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js.map +1 -0
  202. package/js/types/Interface/api/lettering/QueryRegroupLettering.js +29 -0
  203. package/js/types/Interface/api/lettering/QueryRegroupLettering.js.map +1 -0
  204. package/js/types/Interface/api/mobile/UpdateMobile.js +27 -0
  205. package/js/types/Interface/api/mobile/UpdateMobile.js.map +1 -0
  206. package/js/types/Interface/api/notification/CreateNotification.js +31 -0
  207. package/js/types/Interface/api/notification/CreateNotification.js.map +1 -0
  208. package/js/types/Interface/api/revision/QueryRevisionApprobation.js +35 -0
  209. package/js/types/Interface/api/revision/QueryRevisionApprobation.js.map +1 -0
  210. package/js/types/Interface/api/revision/QueryRevisionSearchEntries.js +20 -0
  211. package/js/types/Interface/api/revision/QueryRevisionSearchEntries.js.map +1 -1
  212. package/js/types/Interface/models/IApiError.js +4 -0
  213. package/js/types/Interface/models/IApiError.js.map +1 -1
  214. package/js/types/Interface/models/IMobile.js +6 -0
  215. package/js/types/Interface/models/IMobile.js.map +1 -0
  216. package/js/types/index.js +156 -0
  217. package/js/types/index.js.map +1 -1
  218. package/js/utils/checklist.js +48 -0
  219. package/js/utils/checklist.js.map +1 -0
  220. package/package.json +1 -1
  221. package/ts/api/resources/Checklist.ts +51 -0
  222. package/ts/api/resources/GeneralLedger.ts +5 -1
  223. package/ts/api/resources/Lettering.ts +15 -0
  224. package/ts/api/resources/Mobile.ts +8 -0
  225. package/ts/api/resources/Notification.ts +7 -0
  226. package/ts/api/resources/Revision.ts +6 -0
  227. package/ts/api/resources/Transaction.ts +10 -14
  228. package/ts/api/resources.ts +8 -0
  229. package/ts/types/Enum/Account.ts +4 -0
  230. package/ts/types/Enum/BrandClementine.ts +5 -0
  231. package/ts/types/Enum/BrandComptalib.ts +8 -0
  232. package/ts/types/Enum/BrandLegalstart.ts +2 -0
  233. package/ts/types/Enum/ChecklistType.ts +62 -0
  234. package/ts/types/Enum/EstimateInvoice.ts +1 -1
  235. package/ts/types/Enum/MailAuto.ts +2 -0
  236. package/ts/types/Enum/NotificationType.ts +4 -0
  237. package/ts/types/Interface/api/checklist/Query.ts +51 -0
  238. package/ts/types/Interface/api/checklist/Read.ts +10 -0
  239. package/ts/types/Interface/api/checklist/Update.ts +13 -0
  240. package/ts/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.ts +3 -1
  241. package/ts/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.ts +10 -0
  242. package/ts/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.ts +47 -0
  243. package/ts/types/Interface/api/lettering/QueryRegroupLettering.ts +8 -0
  244. package/ts/types/Interface/api/mobile/UpdateMobile.ts +6 -0
  245. package/ts/types/Interface/api/notification/CreateNotification.ts +10 -0
  246. package/ts/types/Interface/api/revision/QueryRevisionApprobation.ts +22 -0
  247. package/ts/types/Interface/api/revision/QueryRevisionSearchEntries.ts +41 -0
  248. package/ts/types/Interface/api/revision/ReadRevisionAccount.ts +2 -2
  249. package/ts/types/Interface/api/society/ReadSociety.ts +5 -0
  250. package/ts/types/Interface/api/tax/ReadTax.ts +8 -1
  251. package/ts/types/Interface/models/IAccountDetail.ts +6 -6
  252. package/ts/types/Interface/models/IAccountingEntry.ts +1 -0
  253. package/ts/types/Interface/models/IAccountingTransaction.ts +0 -3
  254. package/ts/types/Interface/models/IApiError.ts +5 -0
  255. package/ts/types/Interface/models/IChecklist.ts +13 -9
  256. package/ts/types/Interface/models/IChecklistDetail.ts +1 -0
  257. package/ts/types/Interface/models/IChecklistType.ts +7 -0
  258. package/ts/types/Interface/models/ILettering.ts +0 -2
  259. package/ts/types/Interface/models/IMobile.ts +13 -0
  260. package/ts/types/Interface/models/ISociety.ts +4 -2
  261. package/ts/types/Interface/models/IUser.ts +2 -0
  262. package/ts/types/index.ts +13 -0
  263. package/ts/utils/checklist.ts +43 -0
@@ -5,6 +5,8 @@ import {
5
5
  ReadRevisionMergeIntoAccount,
6
6
  QueryRevisionSearchEntries,
7
7
  QueryRevisionPaginate,
8
+ IAccountingTransaction,
9
+ QueryRevisionApprobation,
8
10
  } from '../..';
9
11
 
10
12
  export class Revision extends Resource {
@@ -31,4 +33,8 @@ export class Revision extends Resource {
31
33
  mergeIntoAccount(idAccount: number, bodyParams: QueryRevisionMergeIntoAccount): Promise<ReadRevisionMergeIntoAccount> {
32
34
  return this.axios.$post(`/revisions/merge-into-account/${idAccount}`, bodyParams);
33
35
  }
36
+
37
+ approve(id: number, params: QueryRevisionApprobation): Promise<IAccountingTransaction[]> {
38
+ return this.axios.$post(`/revisions/accounts/${id}/approve`, params);
39
+ }
34
40
  }
@@ -1,38 +1,34 @@
1
1
  import { Resource } from '../Resource';
2
2
  import {
3
- AccountingJournal,
4
3
  BasePaginate,
5
- QueryPaginate, ReadFormattedAccountingTransaction, UpdateAccountingTransaction, DeleteTransactions, QueryUnexport, QueryGetAllTransactions, IAccountingTransaction, ReadAccountantBalance, CreateManualEntry, IAccountingEntry, QueryDeleteInvoices, ReadDeletedInvoices, QuerySocietyTransactionCount, ReadSocietyTransactionCount, ReadBankAccountSum, QueryBankAccountSum,
4
+ ReadFormattedAccountingTransaction, UpdateAccountingTransaction, DeleteTransactions, QueryUnexport, QueryGetAllTransactions, IAccountingTransaction, ReadAccountantBalance, CreateManualEntry, IAccountingEntry, QueryDeleteInvoices, ReadDeletedInvoices, QuerySocietyTransactionCount, ReadSocietyTransactionCount, ReadBankAccountSum, QueryBankAccountSum, QueryTransaction,
6
5
  } from '../../types';
7
6
 
8
7
  export class Transaction extends Resource {
9
- getFormattedPaginate(idSociety: number, params: {
10
- idAccountingJournal: AccountingJournal,
11
- idBankAccount?: Array<number>,
12
- orderBy?: string,
13
- descending?: boolean,
14
- startDate?: string,
15
- endDate?: string,
16
- onlyDebit?: boolean
17
- onlyCredit?: boolean
18
- } & QueryPaginate): Promise<BasePaginate<ReadFormattedAccountingTransaction> | Error> {
8
+ getFormattedPaginate(idSociety: number, params: QueryTransaction): Promise<BasePaginate<ReadFormattedAccountingTransaction>> {
19
9
  return this.axios.$get(`/society/${idSociety}/transactions`, {
20
10
  params,
21
11
  });
22
12
  }
13
+
14
+ export(idSociety: number, params: QueryTransaction): Promise<BasePaginate<ReadFormattedAccountingTransaction>> {
15
+ return this.axios.$get(`/society/${idSociety}/transactions/export`, {
16
+ params,
17
+ });
18
+ }
23
19
  getAll(idSociety: number, query: QueryGetAllTransactions): Promise<IAccountingTransaction[]> {
24
20
  return this.axios.$get(`/society/${idSociety}/transactions/list`, { params: query });
25
21
  }
26
22
  unexport(idSociety: number, params: QueryUnexport): Promise<void> {
27
23
  return this.axios.$put(`/society/${idSociety}/transactions/unexport`, params);
28
24
  }
29
- annotate(id: number, data: UpdateAccountingTransaction): Promise<ReadFormattedAccountingTransaction | Error> {
25
+ annotate(id: number, data: UpdateAccountingTransaction): Promise<ReadFormattedAccountingTransaction> {
30
26
  return this.axios.$put(`/transactions/${id}`, data);
31
27
  }
32
28
  delete(idSociety: number, id: number): Promise<number> {
33
29
  return this.axios.$delete(`/society/${idSociety}/transaction/${id}`);
34
30
  }
35
- deleteTransactions(id: number, data: DeleteTransactions): Promise<number | Error> {
31
+ deleteTransactions(id: number, data: DeleteTransactions): Promise<number> {
36
32
  return this.axios.$delete(`/bankAccount/${id}/transactions`, { params: data });
37
33
  }
38
34
 
@@ -72,6 +72,10 @@ import { Mail } from './resources/Mail';
72
72
  import { Employee } from './resources/Employee';
73
73
  import { SheetMonthSchedule } from './resources/SheetMonthSchedule';
74
74
  import { NafCode } from './resources/NafCode';
75
+ import { Checklist } from './resources/Checklist';
76
+ import { Lettering } from './resources/Lettering';
77
+ import { Notification } from './resources/Notification';
78
+ import { Mobile } from './resources/Mobile';
75
79
 
76
80
  export const resources = {
77
81
  simulation: Simulation,
@@ -148,4 +152,8 @@ export const resources = {
148
152
  employee: Employee,
149
153
  sheetMonthSchedule: SheetMonthSchedule,
150
154
  nafCode: NafCode,
155
+ checklist: Checklist,
156
+ lettering: Lettering,
157
+ mobile: Mobile,
158
+ notification: Notification,
151
159
  };
@@ -79,4 +79,8 @@ export const Account = {
79
79
  id: 221,
80
80
  number: 445660,
81
81
  },
82
+ GIFT: {
83
+ id: 110,
84
+ number: 623400,
85
+ },
82
86
  };
@@ -2,6 +2,8 @@ export const BrandClementine = [
2
2
  {
3
3
  idTypeBrand: 1,
4
4
  name: 'Clementine',
5
+ urlS3: 'https://s3.eu-west-3.amazonaws.com/resources-clementine/',
6
+ logoS3: 'config/72030539-45a0-57fb-a7bb-e151e7d2721b.svg',
5
7
  colors: {
6
8
  primary: '#ff7e3c',
7
9
  },
@@ -76,6 +78,7 @@ export const BrandClementine = [
76
78
  {
77
79
  idTypeBrand: 2,
78
80
  name: 'Legalstart',
81
+ urlS3: 'https://s3.eu-west-3.amazonaws.com/resources-clementine/',
79
82
  colors: {
80
83
  primary: '#16a974',
81
84
  },
@@ -165,6 +168,8 @@ export const BrandClementine = [
165
168
  {
166
169
  idTypeBrand: 4,
167
170
  name: 'Pourcentage',
171
+ urlS3: 'https://s3.eu-west-3.amazonaws.com/resources-clementine/',
172
+ logoS3: 'config/pourcentage-logo.png',
168
173
  colors: {
169
174
  primary: '#1e6f5c',
170
175
  },
@@ -2,6 +2,8 @@ export const BrandComptalib = [
2
2
  {
3
3
  idTypeBrand: 1,
4
4
  name: 'Comptalib',
5
+ urlS3: 'https://s3.eu-west-3.amazonaws.com/resources-comptalib/',
6
+ logoS3: 'config/72030539-45a0-57fb-a7bb-e151e7d2721b.svg',
5
7
  colors: {
6
8
  primary: '#1656ff',
7
9
  },
@@ -52,6 +54,8 @@ export const BrandComptalib = [
52
54
  },
53
55
  {
54
56
  idTypeBrand: 2,
57
+ urlS3: 'https://s3.eu-west-3.amazonaws.com/resources-comptalib/',
58
+ logoS3: 'config/pourcentage-logo.png',
55
59
  name: 'Pourcentage',
56
60
  colors: {
57
61
  primary: '#1e6f5c',
@@ -128,6 +132,8 @@ export const BrandComptalib = [
128
132
  {
129
133
  idTypeBrand: 3,
130
134
  name: 'Le Comptable Français',
135
+ urlS3: 'https://s3.eu-west-3.amazonaws.com/resources-comptalib/',
136
+ logoS3: 'config/le-comptable-francais-logo.png',
131
137
  colors: {
132
138
  primary: '#191237',
133
139
  },
@@ -200,6 +206,8 @@ export const BrandComptalib = [
200
206
  {
201
207
  idTypeBrand: 4,
202
208
  name: 'AEC54',
209
+ urlS3: 'https://s3.eu-west-3.amazonaws.com/resources-comptalib/',
210
+ logoS3: 'config/logo-aec.png',
203
211
  colors: {
204
212
  primary: '#6900AE',
205
213
  },
@@ -2,6 +2,8 @@ export const BrandLegalstart = [
2
2
  {
3
3
  idTypeBrand: 1,
4
4
  name: 'LegalStart',
5
+ urlS3: 'https://resources-legalstart.s3.eu-west-3.amazonaws.com/',
6
+ logoS3: 'config/55624137-0c29-5f16-a079-b2904a6f9e7b.svg',
5
7
  colors: {
6
8
  primary: '#16a974',
7
9
  },
@@ -0,0 +1,62 @@
1
+ export enum ChecklistTypeEnum {
2
+ OBSOLETE = 0,
3
+ DEFAULT = 1,
4
+ REINFORCED = 2,
5
+ }
6
+
7
+ export enum ChecklistDetailName {
8
+ IS_INVOICING_UP_TO_DATE = 'isInvoicingUpToDate',
9
+ ARE_ALL_BANK_ACCOUNTS_SYNCHRONIZED = 'areAllBankAccountsSynchronized',
10
+ ALMOST_ANNOTED = 'almostAnnoted',
11
+ FULLY_ANNOTED = 'fullyAnnoted',
12
+ ACTION_TAKEN = 'actionTaken',
13
+ HAS_RENT_DOCUMENT = 'hasRentDocument',
14
+ HAS_DEBTS_DOCUMENT = 'hasDebtsDocument',
15
+ HAS_LOAN_DOCUMENT = 'hasLoanDocument',
16
+ HAS_INSURANCE_DOCUMENT = 'hasInsuranceDocument',
17
+ HAS_SUBSIDIES_DOCUMENT = 'hasSubsidiesDocument',
18
+ HAS_CASH_APPROVED = 'hasCashApproved',
19
+ HAS_CA3 = 'hasCA3',
20
+ HAS_GESCOM = 'hasGESCOM',
21
+ HAS_POLICE = 'hasPolice',
22
+ HAS_TNS = 'hasTNS',
23
+ HAS_ACCOUNT_STATEMENT = 'hasAccountStatement',
24
+ HAS_CURRENT_ACCOUNT_TO_VALID = 'hasCurrentAccountToValid',
25
+ HAS_JUSTIFIED_CONTRIBUTIONS = 'hasJustifiedContributions',
26
+ HAS_CUSTOMER_CARD_UP_TO_DATE = 'hasCustomerCardUpToDate',
27
+ HAS_LAST_YEAR_INTEGRATED = 'hasLastYearIntegrated',
28
+ HAS_VAT_BALANCE_JUSTIFIED = 'hasVatBalanceJustified',
29
+ HAS_TREATED_AMOUNT = 'hasTreatedAmount',
30
+ HAS_CLEARED_INTERNAL_TRANSFER = 'hasClearedInternalTransfer',
31
+ HAS_INSERT_ORI = 'hasInsertORI',
32
+ HAS_VAT_CHECKED = 'hasVatChecked',
33
+ HAS_CONSISTENCY_CHECK = 'hasConsistencyCheck',
34
+ IS_VAT_REGULATION_DONE = 'isVatRegulationDone',
35
+ IS_WAITING_ACCOUNT_RESET = 'isWaitingAccountReset',
36
+ HAS_BALANCE_TREATED = 'hasBalanceTreated',
37
+ DATA_ARE_REVISED = 'dataAreRevised',
38
+ HAS_BANK_ACCOUNT_CLOSED = 'hasBankAccountClosed',
39
+ HAS_SHEET_MONTH_SCHEDULE_ON_CADOR = 'hasSheetMonthScheduleOnCador',
40
+ HAS_REVIEWED_IMMOBILISATIONS = 'hasReviewedImmobilisations',
41
+ HAS_SEND_TECHNICAL_DOCUMENT = 'hasSendTechnicalDocument',
42
+ COMMENTS = 'comments',
43
+ }
44
+
45
+ export enum ChecklistDetailValue {
46
+ YES = 1,
47
+ NO = 0,
48
+ NA = 2,
49
+ MAIL = 3,
50
+ WAITING_SUPPORT_TICKET = 4,
51
+ LRAR = 5,
52
+ CALL = 6,
53
+ PERSONAL_TAX_NOTICE = 7,
54
+ SAVINGS_STATEMENT = 8,
55
+ SHEET_MONTH_SCHEDULE = 9,
56
+ OTHER = 10,
57
+ }
58
+
59
+ export enum ChecklistDetailType {
60
+ SELECT = 'select',
61
+ SWITCH = 'switch',
62
+ }
@@ -1,4 +1,4 @@
1
- export enum EstimateInvoiceId {
1
+ export enum EstimateInvoiceType {
2
2
  FACTURE = 1,
3
3
  DEVIS = 2,
4
4
  BON = 3,
@@ -108,4 +108,6 @@ export enum MailAuto {
108
108
  REPORTING_PHONE_RDV_UNAVAILABLE_4_TIMES = 114,
109
109
  REPORTING_PHONE_RDV_UNAVAILABLE_5_TIMES = 115,
110
110
  REPORTING_PHONE_RDV_UNAVAILABLE_6_TIMES = 116,
111
+ MISSING_ELEMENT_FOR_CHECKLIST = 122,
112
+ CHECKLIST_CONFIRMED = 123,
111
113
  }
@@ -0,0 +1,4 @@
1
+ export enum NotificationType {
2
+ ANNOTATE_COUNT = 'ANNOTATE_COUNT',
3
+ BANK_ACCOUNT_SYNCHRONISATION = 'BANK_ACCOUNT_SYNCHRONISATION',
4
+ }
@@ -0,0 +1,51 @@
1
+ import {
2
+ IsBoolean,
3
+ IsDateString, IsEnum, IsNumber, IsOptional, IsPositive,
4
+ } from 'class-validator';
5
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
6
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
7
+ import { ChecklistTypeEnum } from '../../../Enum/ChecklistType';
8
+ import { IChecklistDetail } from '../../models/IChecklistDetail';
9
+ import { IChecklistType } from '../../models/IChecklistType';
10
+
11
+ export class QueryGetAllDeadlines {
12
+ @ApiProperty()
13
+ @IsNumber()
14
+ @IsPositive()
15
+ idSociety: number;
16
+
17
+ @ApiPropertyOptional()
18
+ @IsDateString()
19
+ @IsOptional()
20
+ minDate?: string;
21
+
22
+ @ApiPropertyOptional()
23
+ @IsDateString()
24
+ @IsOptional()
25
+ maxDate?: string;
26
+
27
+ @ApiPropertyOptional({ description: 'Retrieve deadlines by exercices date' })
28
+ @IsBoolean()
29
+ @ToBoolean()
30
+ @IsOptional()
31
+ byExercices?: boolean;
32
+ }
33
+
34
+ export class QueryGetAllQuestions {
35
+ @ApiPropertyOptional()
36
+ @IsOptional()
37
+ @IsEnum(ChecklistTypeEnum)
38
+ type?: ChecklistTypeEnum;
39
+ }
40
+
41
+ export class QueryGetAllBlockingIssues {
42
+ questionsList: IChecklistType[];
43
+ answers: IChecklistDetail[];
44
+ }
45
+
46
+ export class QueryGetToComplete {
47
+ @ApiProperty()
48
+ @IsNumber()
49
+ @IsPositive()
50
+ idSociety: number;
51
+ }
@@ -0,0 +1,10 @@
1
+ import { ChecklistDetailValue } from '../../../Enum/ChecklistType';
2
+ import { IChecklist } from '../../models/IChecklist';
3
+
4
+ export type ReadChecklistDeadline = {
5
+ date: string;
6
+ isReinforced: boolean;
7
+ checklist: IChecklist | null;
8
+ };
9
+
10
+ export type ReadValue = { name: string; value: ChecklistDetailValue | null };
@@ -0,0 +1,13 @@
1
+ import { IsEnum, IsString } from 'class-validator';
2
+ import { ApiProperty } from '../../../../utils';
3
+ import { ChecklistDetailValue } from '../../../Enum/ChecklistType';
4
+
5
+ export class UpdateAnswer {
6
+ @ApiProperty()
7
+ @IsString()
8
+ name: string;
9
+
10
+ @ApiProperty()
11
+ @IsEnum(ChecklistDetailValue)
12
+ value: ChecklistDetailValue;
13
+ }
@@ -1,4 +1,4 @@
1
- import { AccountingJournal } from '../../..';
1
+ import { AccountingJournal, ILettering, IThirdParty } from '../../..';
2
2
 
3
3
  export interface IGeneralLedgerAccountingEntry {
4
4
  designation: string
@@ -8,5 +8,7 @@ export interface IGeneralLedgerAccountingEntry {
8
8
  credit: number
9
9
  debit: number
10
10
  intermediateSolde: number
11
+ thirdParty?: IThirdParty;
12
+ lettering?: ILettering;
11
13
  exported?: Date
12
14
  }
@@ -0,0 +1,10 @@
1
+ import { IGeneralLedgerAccountingEntry } from './IGeneralLedgerAccountingEntry';
2
+
3
+ export interface IGeneralLedgerThirdParty {
4
+ idThirdParty: number
5
+ name: string,
6
+ totalCredit: number
7
+ totalDebit: number
8
+ totalSolde: number
9
+ entries: IGeneralLedgerAccountingEntry[]
10
+ }
@@ -0,0 +1,47 @@
1
+ import {
2
+ IsBoolean, IsEnum, IsInt, IsOptional, IsString, Min,
3
+ } from 'class-validator';
4
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
5
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
6
+ import { IsFormattedDateString } from '../../../../utils/validators/formattedDateString.validator';
7
+ import { ThirdPartyType } from '../../../Enum/ThirdPartyType';
8
+
9
+ export class QueryGeneralLedgerAuxiliary {
10
+ @ApiProperty()
11
+ @IsFormattedDateString()
12
+ dateStart: string;
13
+
14
+ @ApiProperty()
15
+ @IsFormattedDateString()
16
+ dateEnd: string;
17
+
18
+ @ApiProperty()
19
+ @IsEnum(ThirdPartyType)
20
+ idThirdPartyType: ThirdPartyType;
21
+
22
+ @ApiProperty()
23
+ @IsInt()
24
+ @Min(1)
25
+ limit: number;
26
+
27
+ @ApiProperty()
28
+ @IsInt()
29
+ @Min(1)
30
+ page: number;
31
+
32
+ @ApiPropertyOptional({ default: false, describe: 'If set to true, it will search only entries with no lettering' })
33
+ @IsBoolean()
34
+ @ToBoolean()
35
+ @IsOptional()
36
+ omitLettering?: boolean;
37
+
38
+ @ApiPropertyOptional({ default: true })
39
+ @IsBoolean()
40
+ @ToBoolean()
41
+ @IsOptional()
42
+ descending?: boolean;
43
+
44
+ @ApiPropertyOptional()
45
+ @IsString()
46
+ search?: string;
47
+ }
@@ -0,0 +1,8 @@
1
+ import { IsArray } from 'class-validator';
2
+ import { ApiProperty } from '../../../../utils';
3
+
4
+ export class QueryRegroupLettering {
5
+ @ApiProperty()
6
+ @IsArray()
7
+ idEntries: number[];
8
+ }
@@ -0,0 +1,6 @@
1
+ import { ApiPropertyOptional } from '../../../../utils';
2
+
3
+ export class UpdateMobileForm {
4
+ @ApiPropertyOptional()
5
+ token?: string;
6
+ }
@@ -0,0 +1,10 @@
1
+ import { ApiProperty } from '../../../../utils';
2
+ import { NotificationType } from '../../../Enum/NotificationType';
3
+
4
+ export class CreateNotification {
5
+ @ApiProperty()
6
+ notificationType: NotificationType;
7
+
8
+ @ApiProperty()
9
+ token: string;
10
+ }
@@ -0,0 +1,22 @@
1
+ import {
2
+ IsDate, IsNumber, IsString,
3
+ } from 'class-validator';
4
+ import { ApiProperty, ApiPropertyOptional } from '../../../..';
5
+
6
+ export class QueryRevisionApprobation {
7
+ @ApiProperty()
8
+ @IsDate()
9
+ startDate: Date;
10
+
11
+ @ApiProperty()
12
+ @IsDate()
13
+ endDate: Date;
14
+
15
+ @ApiProperty()
16
+ @IsNumber()
17
+ idSociety: number;
18
+
19
+ @ApiPropertyOptional()
20
+ @IsString()
21
+ comment?: string;
22
+ }
@@ -1,8 +1,11 @@
1
1
  import {
2
+ IsArray,
3
+ IsBoolean,
2
4
  IsDate, IsEnum, IsNumber, IsOptional, IsString,
3
5
  } from 'class-validator';
4
6
  import { AccountingJournal, ApiProperty } from '../../../..';
5
7
  import { ApiPropertyOptional } from '../../../../utils';
8
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
6
9
 
7
10
  export class QueryRevisionSearchEntries {
8
11
  // Mandatory
@@ -54,6 +57,44 @@ export class QueryRevisionSearchEntries {
54
57
  @IsOptional()
55
58
  idAccountingJournal?: number;
56
59
 
60
+ // advanced search
61
+ @ApiPropertyOptional()
62
+ @IsNumber()
63
+ @IsOptional()
64
+ minimumAmount?: number;
65
+
66
+ @ApiPropertyOptional()
67
+ @IsNumber()
68
+ @IsOptional()
69
+ maximumAmount?: number;
70
+
71
+ @ApiPropertyOptional()
72
+ @IsArray({ each: true })
73
+ @IsOptional()
74
+ idsAccountingJournal?: Array<AccountingJournal>;
75
+
76
+ @ApiPropertyOptional()
77
+ @IsNumber()
78
+ @IsOptional()
79
+ type?: number;
80
+
81
+ @ApiPropertyOptional()
82
+ @IsBoolean()
83
+ @ToBoolean()
84
+ @IsOptional()
85
+ isRevised?: boolean;
86
+
87
+ @ApiPropertyOptional({ default: 'date' })
88
+ @IsString()
89
+ @IsOptional()
90
+ orderBy?: 'date' | 'accountNumber';
91
+
92
+ @ApiPropertyOptional()
93
+ @IsBoolean()
94
+ @ToBoolean()
95
+ @IsOptional()
96
+ descending?: boolean;
97
+
57
98
  // Interface paginate
58
99
  @ApiProperty({ default: 25 })
59
100
  @IsNumber()
@@ -18,6 +18,8 @@ export interface ReadRevisionAccount {
18
18
  idAccountingTransaction: number;
19
19
  idVat: number | null;
20
20
  idImmobilization: number | null;
21
+ idLettering?: number | null;
22
+ lettering?: ILettering;
21
23
  createdAt: Date;
22
24
  updatedAt: Date;
23
25
  accountingTransaction: {
@@ -28,10 +30,8 @@ export interface ReadRevisionAccount {
28
30
  idUser: number | null;
29
31
  exported: Date | null;
30
32
  idAccountingJournal: number;
31
- idLettering: number | null;
32
33
  accountingFiles: Array<IAccountingFile>;
33
34
  accountingJournal: IAccountingJournal;
34
- lettering: ILettering;
35
35
  user: IUser;
36
36
  },
37
37
  thirdParty: { id: number, fullname: string } | null,
@@ -4,4 +4,9 @@ export type UnpaidDetail = {
4
4
  idExercice: number,
5
5
  dateStart: Date,
6
6
  dateEnd: Date,
7
+ };
8
+
9
+ export type ReadInvalidFieldState = {
10
+ label: string;
11
+ field: string;
7
12
  };
@@ -24,4 +24,11 @@ export interface TaxDate {
24
24
  date: string;
25
25
  required: boolean;
26
26
  isBalance: boolean;
27
- }
27
+ }
28
+
29
+ export type ReadVatAmountDetail = { idVat: number; real: number; collected: number; };
30
+
31
+ export type ReadVatAmount = {
32
+ isBalanced: boolean;
33
+ details: ReadVatAmountDetail[];
34
+ };
@@ -5,19 +5,19 @@ import { IUser } from './IUser';
5
5
  // accountDetail
6
6
  export interface IAccountDetail {
7
7
  id?: number;
8
- comment: string | null;
8
+ comment?: string | null;
9
9
  isPending: boolean;
10
10
  checkByIdAccountant: number | null;
11
11
  checkByIdSupervisor: number | null;
12
12
  idAccount: number;
13
- idExercice: number;
13
+ idExercice?: number;
14
14
  idSociety: number;
15
15
  createdAt?: Date | null;
16
16
  updatedAt?: Date | null;
17
17
 
18
18
  // Associations
19
- society: ISociety;
20
- account: IAccount;
21
- accountDetailByAccountant: IUser;
22
- accountDetailBySupervisor: IUser;
19
+ society?: ISociety;
20
+ account?: IAccount;
21
+ accountDetailByAccountant?: IUser;
22
+ accountDetailBySupervisor?: IUser;
23
23
  }
@@ -19,6 +19,7 @@ export interface IAccountingEntry {
19
19
  idInherit: number | null;
20
20
  idAccount: number | null;
21
21
  idThirdParty: number | null;
22
+ idLettering?: number | null;
22
23
  idAccountingTransaction: number;
23
24
  idVat?: number | null;
24
25
  idImmobilization?: number | null;
@@ -8,7 +8,6 @@ import { IRule } from './IRule';
8
8
  import { IEstimateInvoice } from './IEstimateInvoice';
9
9
  import { IFile } from './IFile';
10
10
  import { IComptaType } from './IComptaType';
11
- import { ILettering } from './ILettering';
12
11
  import { IPartnerTransaction } from './IPartnerTransaction';
13
12
  import { ICurrency } from './ICurrency';
14
13
  import { IMachineLearningResult } from '../..';
@@ -46,7 +45,6 @@ export interface IAccountingTransaction {
46
45
  idSocietyVehicle?: number | null;
47
46
  idSocietyPartner?: number | null;
48
47
  idRule?: number | null;
49
- idLettering?: number | null;
50
48
  idAccountingJournal: number;
51
49
  idTypeCompta?: number | null;
52
50
  idEstimateInvoice?: number | null;
@@ -69,7 +67,6 @@ export interface IAccountingTransaction {
69
67
  estimatesInvoice?: IEstimateInvoice;
70
68
  file?: IFile;
71
69
  typeComptum?: IComptaType;
72
- lettering?: ILettering;
73
70
  partnersTransaction: IPartnerTransaction | null;
74
71
  parents?: IAccountingTransaction[];
75
72
  childs?: IAccountingTransaction[];
@@ -160,6 +160,11 @@ export enum Code {
160
160
 
161
161
  // Society Vehicles
162
162
  MISSING_REGISTRATION_CARD = 'MISSING_REGISTRATION_CARD',
163
+
164
+ PREVIOUS_CHECKLIST_NOT_COMPLETED = 'previous_checklist_not_completed',
165
+ CAN_NOT_EDIT_COMPLETED_ISSUE = 'can_not_edit_completed_issue',
166
+ CAN_NOT_CONFIRM_CHECKLIST = 'can_not_confirm_checklist',
167
+ CHECKLIST_ALREADY_EXIST = 'checklist_already_exist',
163
168
  }
164
169
 
165
170
  export interface IApiError {
@@ -2,23 +2,27 @@ import { IChecklistDetail } from './IChecklistDetail';
2
2
  import { IUser } from './IUser';
3
3
  import { IExercice } from './IExercice';
4
4
  import { ICustomerTva } from './ICustomerTva';
5
+ import { ChecklistTypeEnum } from '../../Enum/ChecklistType';
5
6
 
6
7
  // checklist
7
8
  export interface IChecklist {
8
9
  id?: number;
9
10
  idUserFront: number | null;
10
- revisionDate: Date | null;
11
- dateStart: Date | null;
12
- dateEnd: Date | null;
13
- notifyFront: boolean;
11
+ revisionDate?: Date | null;
12
+ isConfirmed: boolean;
13
+ date: Date | null;
14
+ type: ChecklistTypeEnum;
15
+ startDate?: Date | null;
16
+ endDate?: Date | null;
17
+ notifyFront?: boolean;
14
18
  idExercice: number | null;
15
- idCustomerTva: number | null;
19
+ idCustomerVat: number | null;
16
20
  createdAt?: Date | null;
17
21
  updatedAt?: Date | null;
18
22
 
19
23
  // Associations
20
- checklistHasSomeDetails: IChecklistDetail[];
21
- checklistHasOneSupervisor: IUser;
22
- exoChecklist: IExercice;
23
- checklistHasOneCustomerTva: ICustomerTva;
24
+ checklistHasSomeDetails?: IChecklistDetail[];
25
+ checklistHasOneSupervisor?: IUser;
26
+ exoChecklist?: IExercice;
27
+ checklistHasOneCustomerVat?: ICustomerTva;
24
28
  }