@silexpert/core 0.4.12 → 0.4.14

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 (238) hide show
  1. package/es/api/resources/BalanceSheet.d.ts +8 -0
  2. package/es/api/resources/BalanceSheet.d.ts.map +1 -0
  3. package/es/api/resources/BalanceSheet.js +12 -0
  4. package/es/api/resources/BalanceSheet.js.map +1 -0
  5. package/es/api/resources/FecFile.d.ts +8 -0
  6. package/es/api/resources/FecFile.d.ts.map +1 -0
  7. package/es/api/resources/FecFile.js +13 -0
  8. package/es/api/resources/FecFile.js.map +1 -0
  9. package/es/api/resources/Letter.d.ts +6 -0
  10. package/es/api/resources/Letter.d.ts.map +1 -0
  11. package/es/api/resources/Letter.js +7 -0
  12. package/es/api/resources/Letter.js.map +1 -0
  13. package/es/api/resources/Report.d.ts +14 -0
  14. package/es/api/resources/Report.d.ts.map +1 -0
  15. package/es/api/resources/Report.js +13 -0
  16. package/es/api/resources/Report.js.map +1 -0
  17. package/es/api/resources/User.d.ts +4 -1
  18. package/es/api/resources/User.d.ts.map +1 -1
  19. package/es/api/resources/User.js +9 -0
  20. package/es/api/resources/User.js.map +1 -1
  21. package/es/api/resources.d.ts +8 -0
  22. package/es/api/resources.d.ts.map +1 -1
  23. package/es/api/resources.js +8 -0
  24. package/es/api/resources.js.map +1 -1
  25. package/es/types/Enum/AccountingJournal.d.ts +2 -1
  26. package/es/types/Enum/AccountingJournal.d.ts.map +1 -1
  27. package/es/types/Enum/AccountingJournal.js +1 -0
  28. package/es/types/Enum/AccountingJournal.js.map +1 -1
  29. package/es/types/Enum/BalanceSheet.d.ts +21 -0
  30. package/es/types/Enum/BalanceSheet.d.ts.map +1 -0
  31. package/es/types/Enum/BalanceSheet.js +529 -0
  32. package/es/types/Enum/BalanceSheet.js.map +1 -0
  33. package/es/types/Enum/FecFileDelimiter.d.ts +6 -0
  34. package/es/types/Enum/FecFileDelimiter.d.ts.map +1 -0
  35. package/es/types/Enum/FecFileDelimiter.js +7 -0
  36. package/es/types/Enum/FecFileDelimiter.js.map +1 -0
  37. package/es/types/Enum/IncomeStatement.d.ts +1 -0
  38. package/es/types/Enum/IncomeStatement.d.ts.map +1 -1
  39. package/es/types/Enum/IncomeStatement.js +5 -2
  40. package/es/types/Enum/IncomeStatement.js.map +1 -1
  41. package/es/types/Enum/LetterType.d.ts +47 -0
  42. package/es/types/Enum/LetterType.d.ts.map +1 -0
  43. package/es/types/Enum/LetterType.js +47 -0
  44. package/es/types/Enum/LetterType.js.map +1 -0
  45. package/es/types/Enum/ReportState.d.ts +31 -0
  46. package/es/types/Enum/ReportState.d.ts.map +1 -0
  47. package/es/types/Enum/ReportState.js +31 -0
  48. package/es/types/Enum/ReportState.js.map +1 -0
  49. package/es/types/Enum/ReportType.d.ts +27 -0
  50. package/es/types/Enum/ReportType.d.ts.map +1 -0
  51. package/es/types/Enum/ReportType.js +27 -0
  52. package/es/types/Enum/ReportType.js.map +1 -0
  53. package/es/types/Enum/Role.d.ts +7 -2
  54. package/es/types/Enum/Role.d.ts.map +1 -1
  55. package/es/types/Enum/Role.js +6 -1
  56. package/es/types/Enum/Role.js.map +1 -1
  57. package/es/types/Enum/ThirdPartyType.js.map +1 -1
  58. package/es/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.d.ts +1 -0
  59. package/es/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.d.ts.map +1 -1
  60. package/es/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.js +4 -0
  61. package/es/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.js.map +1 -1
  62. package/es/types/Interface/api/balanceSheet/ReadBalanceSheet.d.ts +11 -0
  63. package/es/types/Interface/api/balanceSheet/ReadBalanceSheet.d.ts.map +1 -0
  64. package/es/types/Interface/api/balanceSheet/ReadBalanceSheet.js +2 -0
  65. package/es/types/Interface/api/balanceSheet/ReadBalanceSheet.js.map +1 -0
  66. package/es/types/Interface/api/fecFile/CreateFecFile.d.ts +11 -0
  67. package/es/types/Interface/api/fecFile/CreateFecFile.d.ts.map +1 -0
  68. package/es/types/Interface/api/fecFile/CreateFecFile.js +28 -0
  69. package/es/types/Interface/api/fecFile/CreateFecFile.js.map +1 -0
  70. package/es/types/Interface/api/fecFile/ReadFecFile.d.ts +23 -0
  71. package/es/types/Interface/api/fecFile/ReadFecFile.d.ts.map +1 -0
  72. package/es/types/Interface/api/fecFile/ReadFecFile.js +2 -0
  73. package/es/types/Interface/api/fecFile/ReadFecFile.js.map +1 -0
  74. package/es/types/Interface/api/file/TFile.d.ts +10 -0
  75. package/es/types/Interface/api/file/TFile.d.ts.map +1 -0
  76. package/es/types/Interface/api/file/TFile.js +2 -0
  77. package/es/types/Interface/api/file/TFile.js.map +1 -0
  78. package/es/types/Interface/api/letter/CreateLetter.d.ts +15 -0
  79. package/es/types/Interface/api/letter/CreateLetter.d.ts.map +1 -0
  80. package/es/types/Interface/api/letter/CreateLetter.js +57 -0
  81. package/es/types/Interface/api/letter/CreateLetter.js.map +1 -0
  82. package/es/types/Interface/api/report/CreateReport.d.ts +13 -0
  83. package/es/types/Interface/api/report/CreateReport.d.ts.map +1 -0
  84. package/es/types/Interface/api/report/CreateReport.js +45 -0
  85. package/es/types/Interface/api/report/CreateReport.js.map +1 -0
  86. package/es/types/Interface/api/report/QueryReports.d.ts +9 -0
  87. package/es/types/Interface/api/report/QueryReports.d.ts.map +1 -0
  88. package/es/types/Interface/api/report/QueryReports.js +37 -0
  89. package/es/types/Interface/api/report/QueryReports.js.map +1 -0
  90. package/es/types/Interface/api/report/ReadReport.d.ts +8 -0
  91. package/es/types/Interface/api/report/ReadReport.d.ts.map +1 -0
  92. package/es/types/Interface/api/report/ReadReport.js +2 -0
  93. package/es/types/Interface/api/report/ReadReport.js.map +1 -0
  94. package/es/types/Interface/api/user/CreateUser.d.ts +10 -0
  95. package/es/types/Interface/api/user/CreateUser.d.ts.map +1 -0
  96. package/es/types/Interface/api/user/CreateUser.js +41 -0
  97. package/es/types/Interface/api/user/CreateUser.js.map +1 -0
  98. package/es/types/Interface/api/user/QueryUserSmsConfirmation.d.ts +4 -0
  99. package/es/types/Interface/api/user/QueryUserSmsConfirmation.d.ts.map +1 -0
  100. package/es/types/Interface/api/user/QueryUserSmsConfirmation.js +17 -0
  101. package/es/types/Interface/api/user/QueryUserSmsConfirmation.js.map +1 -0
  102. package/es/types/Interface/models/IAccount.d.ts +20 -20
  103. package/es/types/Interface/models/IAccount.d.ts.map +1 -1
  104. package/es/types/Interface/models/IAccount.js.map +1 -1
  105. package/es/types/Interface/models/IAccountingEntry.d.ts +3 -3
  106. package/es/types/Interface/models/IAccountingEntry.d.ts.map +1 -1
  107. package/es/types/Interface/models/IAccountingEntry.js.map +1 -1
  108. package/es/types/Interface/models/IAccountingJournal.d.ts +2 -0
  109. package/es/types/Interface/models/IAccountingJournal.d.ts.map +1 -1
  110. package/es/types/Interface/models/IAccountingJournal.js.map +1 -1
  111. package/es/types/Interface/models/IAccountingTransaction.d.ts +25 -24
  112. package/es/types/Interface/models/IAccountingTransaction.d.ts.map +1 -1
  113. package/es/types/Interface/models/IAccountingTransaction.js.map +1 -1
  114. package/es/types/Interface/models/IApiError.d.ts +8 -1
  115. package/es/types/Interface/models/IApiError.d.ts.map +1 -1
  116. package/es/types/Interface/models/IApiError.js +10 -0
  117. package/es/types/Interface/models/IApiError.js.map +1 -1
  118. package/es/types/Interface/models/IFecFile.d.ts +14 -0
  119. package/es/types/Interface/models/IFecFile.d.ts.map +1 -0
  120. package/es/types/Interface/models/IFecFile.js +2 -0
  121. package/es/types/Interface/models/IFecFile.js.map +1 -0
  122. package/es/types/Interface/models/ILetter.d.ts +18 -14
  123. package/es/types/Interface/models/ILetter.d.ts.map +1 -1
  124. package/es/types/Interface/models/ILetter.js.map +1 -1
  125. package/es/types/Interface/models/IReport.d.ts +12 -11
  126. package/es/types/Interface/models/IReport.d.ts.map +1 -1
  127. package/es/types/Interface/models/IReport.js.map +1 -1
  128. package/es/types/Interface/models/IReportMessage.d.ts +1 -1
  129. package/es/types/Interface/models/IReportMessage.d.ts.map +1 -1
  130. package/es/types/Interface/models/IReportMessage.js.map +1 -1
  131. package/es/types/Interface/models/IReportType.js.map +1 -1
  132. package/es/types/Interface/models/ISociety.d.ts +0 -1
  133. package/es/types/Interface/models/ISociety.d.ts.map +1 -1
  134. package/es/types/Interface/models/ISociety.js.map +1 -1
  135. package/es/types/Interface/models/IThirdParty.d.ts +5 -6
  136. package/es/types/Interface/models/IThirdParty.d.ts.map +1 -1
  137. package/es/types/Interface/models/IThirdParty.js.map +1 -1
  138. package/es/types/index.d.ts +16 -0
  139. package/es/types/index.d.ts.map +1 -1
  140. package/es/types/index.js +16 -0
  141. package/es/types/index.js.map +1 -1
  142. package/js/api/resources/BalanceSheet.js +23 -0
  143. package/js/api/resources/BalanceSheet.js.map +1 -0
  144. package/js/api/resources/FecFile.js +26 -0
  145. package/js/api/resources/FecFile.js.map +1 -0
  146. package/js/api/resources/Letter.js +18 -0
  147. package/js/api/resources/Letter.js.map +1 -0
  148. package/js/api/resources/Report.js +28 -0
  149. package/js/api/resources/Report.js.map +1 -0
  150. package/js/api/resources/User.js +14 -0
  151. package/js/api/resources/User.js.map +1 -1
  152. package/js/api/resources.js +13 -1
  153. package/js/api/resources.js.map +1 -1
  154. package/js/types/Enum/AccountingJournal.js +1 -0
  155. package/js/types/Enum/AccountingJournal.js.map +1 -1
  156. package/js/types/Enum/BalanceSheet.js +438 -0
  157. package/js/types/Enum/BalanceSheet.js.map +1 -0
  158. package/js/types/Enum/FecFileDelimiter.js +13 -0
  159. package/js/types/Enum/FecFileDelimiter.js.map +1 -0
  160. package/js/types/Enum/IncomeStatement.js +5 -2
  161. package/js/types/Enum/IncomeStatement.js.map +1 -1
  162. package/js/types/Enum/LetterType.js +52 -0
  163. package/js/types/Enum/LetterType.js.map +1 -0
  164. package/js/types/Enum/ReportState.js +36 -0
  165. package/js/types/Enum/ReportState.js.map +1 -0
  166. package/js/types/Enum/ReportType.js +32 -0
  167. package/js/types/Enum/ReportType.js.map +1 -0
  168. package/js/types/Enum/Role.js +6 -1
  169. package/js/types/Enum/Role.js.map +1 -1
  170. package/js/types/Enum/ThirdPartyType.js.map +1 -1
  171. package/js/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.js +2 -0
  172. package/js/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.js.map +1 -1
  173. package/js/types/Interface/api/balanceSheet/ReadBalanceSheet.js +6 -0
  174. package/js/types/Interface/api/balanceSheet/ReadBalanceSheet.js.map +1 -0
  175. package/js/types/Interface/api/fecFile/CreateFecFile.js +37 -0
  176. package/js/types/Interface/api/fecFile/CreateFecFile.js.map +1 -0
  177. package/js/types/Interface/api/fecFile/ReadFecFile.js +6 -0
  178. package/js/types/Interface/api/fecFile/ReadFecFile.js.map +1 -0
  179. package/js/types/Interface/api/file/TFile.js +6 -0
  180. package/js/types/Interface/api/file/TFile.js.map +1 -0
  181. package/js/types/Interface/api/letter/CreateLetter.js +47 -0
  182. package/js/types/Interface/api/letter/CreateLetter.js.map +1 -0
  183. package/js/types/Interface/api/report/CreateReport.js +41 -0
  184. package/js/types/Interface/api/report/CreateReport.js.map +1 -0
  185. package/js/types/Interface/api/report/QueryReports.js +37 -0
  186. package/js/types/Interface/api/report/QueryReports.js.map +1 -0
  187. package/js/types/Interface/api/report/ReadReport.js +6 -0
  188. package/js/types/Interface/api/report/ReadReport.js.map +1 -0
  189. package/js/types/Interface/api/user/CreateUser.js +39 -0
  190. package/js/types/Interface/api/user/CreateUser.js.map +1 -0
  191. package/js/types/Interface/api/user/QueryUserSmsConfirmation.js +27 -0
  192. package/js/types/Interface/api/user/QueryUserSmsConfirmation.js.map +1 -0
  193. package/js/types/Interface/models/IApiError.js +11 -1
  194. package/js/types/Interface/models/IApiError.js.map +1 -1
  195. package/js/types/Interface/models/IFecFile.js +6 -0
  196. package/js/types/Interface/models/IFecFile.js.map +1 -0
  197. package/js/types/index.js +192 -0
  198. package/js/types/index.js.map +1 -1
  199. package/package.json +1 -1
  200. package/ts/api/resources/BalanceSheet.ts +12 -0
  201. package/ts/api/resources/FecFile.ts +21 -0
  202. package/ts/api/resources/Letter.ts +10 -0
  203. package/ts/api/resources/Report.ts +22 -0
  204. package/ts/api/resources/User.ts +12 -1
  205. package/ts/api/resources.ts +8 -0
  206. package/ts/types/Enum/AccountingJournal.ts +1 -0
  207. package/ts/types/Enum/BalanceSheet.ts +555 -0
  208. package/ts/types/Enum/FecFileDelimiter.ts +5 -0
  209. package/ts/types/Enum/IncomeStatement.ts +6 -2
  210. package/ts/types/Enum/LetterType.ts +46 -0
  211. package/ts/types/Enum/ReportState.ts +30 -0
  212. package/ts/types/Enum/ReportType.ts +26 -0
  213. package/ts/types/Enum/Role.ts +6 -1
  214. package/ts/types/Enum/ThirdPartyType.ts +1 -1
  215. package/ts/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.ts +2 -0
  216. package/ts/types/Interface/api/balanceSheet/ReadBalanceSheet.ts +10 -0
  217. package/ts/types/Interface/api/fecFile/CreateFecFile.ts +15 -0
  218. package/ts/types/Interface/api/fecFile/ReadFecFile.ts +25 -0
  219. package/ts/types/Interface/api/file/TFile.ts +8 -0
  220. package/ts/types/Interface/api/letter/CreateLetter.ts +37 -0
  221. package/ts/types/Interface/api/report/CreateReport.ts +29 -0
  222. package/ts/types/Interface/api/report/QueryReports.ts +21 -0
  223. package/ts/types/Interface/api/report/ReadReport.ts +9 -0
  224. package/ts/types/Interface/api/user/CreateUser.ts +18 -0
  225. package/ts/types/Interface/api/user/QueryUserSmsConfirmation.ts +6 -0
  226. package/ts/types/Interface/models/IAccount.ts +20 -20
  227. package/ts/types/Interface/models/IAccountingEntry.ts +3 -3
  228. package/ts/types/Interface/models/IAccountingJournal.ts +2 -0
  229. package/ts/types/Interface/models/IAccountingTransaction.ts +25 -24
  230. package/ts/types/Interface/models/IApiError.ts +14 -0
  231. package/ts/types/Interface/models/IFecFile.ts +17 -0
  232. package/ts/types/Interface/models/ILetter.ts +18 -14
  233. package/ts/types/Interface/models/IReport.ts +12 -11
  234. package/ts/types/Interface/models/IReportMessage.ts +1 -1
  235. package/ts/types/Interface/models/IReportType.ts +1 -1
  236. package/ts/types/Interface/models/ISociety.ts +0 -1
  237. package/ts/types/Interface/models/IThirdParty.ts +5 -6
  238. package/ts/types/index.ts +17 -0
@@ -16,6 +16,7 @@ export type IncomeStatement = {
16
16
  calculation?: boolean; // Doit être calculé avec calculationAdd & calculationSubtract
17
17
  calculationAdd?: string[]; // Tableau des keys à additionner pour obtenir le total
18
18
  calculationSubtract?: string[]; // Tableau des keys à soustraire pour obtenir le total
19
+ isProduct?: boolean; // Si c'est un produit, on fait x -1
19
20
  };
20
21
 
21
22
  export const INCOME_STATEMENT_LIST: IncomeStatement[] = [
@@ -23,6 +24,7 @@ export const INCOME_STATEMENT_LIST: IncomeStatement[] = [
23
24
  name: 'Total des produits d\'exploitation',
24
25
  key: 'totalOperatingIncome',
25
26
  total: 0,
27
+ isProduct: true,
26
28
  fields: [
27
29
  {
28
30
  name: 'Chiffre d\'Affaires',
@@ -148,6 +150,7 @@ export const INCOME_STATEMENT_LIST: IncomeStatement[] = [
148
150
  name: 'Total des produits financiers',
149
151
  key: 'totalFinancialProducts',
150
152
  total: 0,
153
+ isProduct: true,
151
154
  fields: [
152
155
  {
153
156
  name: 'De participations',
@@ -227,6 +230,7 @@ export const INCOME_STATEMENT_LIST: IncomeStatement[] = [
227
230
  name: 'Total des produits exceptionnels',
228
231
  total: 0,
229
232
  key: 'totalExceptionalProducts',
233
+ isProduct: true,
230
234
  fields: [
231
235
  {
232
236
  name: 'Sur opérations de gestion',
@@ -307,8 +311,8 @@ export const INCOME_STATEMENT_LIST: IncomeStatement[] = [
307
311
  name: 'Résultat exceptionnel',
308
312
  total: 0,
309
313
  calculation: true,
310
- calculationAdd: [],
311
- calculationSubtract: ['totalExceptionalProducts', 'totalExceptionalExpenses'],
314
+ calculationAdd: ['totalExceptionalProducts'],
315
+ calculationSubtract: ['totalExceptionalExpenses'],
312
316
  key: 'exceptionalResult',
313
317
  },
314
318
  {
@@ -0,0 +1,46 @@
1
+ export const LetterType = {
2
+ TERMINATION: {
3
+ id: 1,
4
+ name: 'Résiliation',
5
+ },
6
+ SATISFIED_OR_REFUNDED: {
7
+ id: 2,
8
+ name: 'Satisfait ou remboursé',
9
+ },
10
+ DOCUMENT: {
11
+ id: 3,
12
+ name: 'Documents',
13
+ },
14
+ CHEQUE: {
15
+ id: 4,
16
+ name: 'Chèque',
17
+ },
18
+ CANCELLATION: {
19
+ id: 5,
20
+ name: 'Radiation',
21
+ },
22
+ RECOVERY: {
23
+ id: 6,
24
+ name: 'Demande de reprise',
25
+ },
26
+ ORDER_LETTER: {
27
+ id: 7,
28
+ name: 'Lettre à l\'Ordre',
29
+ },
30
+ CLAIM: {
31
+ id: 8,
32
+ name: 'Réclamation',
33
+ },
34
+ OTHER: {
35
+ id: 9,
36
+ name: 'Autre',
37
+ },
38
+ RECOVERY_RESPONSE: {
39
+ id: 10,
40
+ name: 'Rép. lettre de reprise',
41
+ },
42
+ NO_RESPONSE: {
43
+ id: 11,
44
+ name: 'Pas de réponse',
45
+ },
46
+ };
@@ -0,0 +1,30 @@
1
+ export const ReportState = {
2
+ TODO: {
3
+ id: 0,
4
+ name: 'Non traité',
5
+ },
6
+ SOLVED: {
7
+ id: 1,
8
+ name: 'Résolu',
9
+ },
10
+ ACCOUNTANT_WAITING: {
11
+ id: 2,
12
+ name: 'En attente du comptable',
13
+ },
14
+ CUSTOMER_WAITING: {
15
+ id: 3,
16
+ name: 'En attente du client',
17
+ },
18
+ REPLIED: {
19
+ id: 4,
20
+ name: 'Répondu',
21
+ },
22
+ SENT_LETTER: {
23
+ id: 5,
24
+ name: 'Courrier envoyé',
25
+ },
26
+ TO_BE_TERMINATED: {
27
+ id: 6,
28
+ name: 'À résilier',
29
+ },
30
+ };
@@ -0,0 +1,26 @@
1
+ export const ReportType = {
2
+ LETTER: {
3
+ id: 1,
4
+ name: 'Lettre à l\'ordre',
5
+ },
6
+ FRAUD: {
7
+ id: 2,
8
+ name: 'Suspicion de fraude',
9
+ },
10
+ ATTITUDE: {
11
+ id: 3,
12
+ name: 'Attitude déplacée',
13
+ },
14
+ BLOCKED: {
15
+ id: 4,
16
+ name: 'Dossier bloqué',
17
+ },
18
+ NO_RESPONSE: {
19
+ id: 5,
20
+ name: 'Pas de réponse',
21
+ },
22
+ NEGATIVE_OPINION: {
23
+ id: 6,
24
+ name: 'Avis négatif',
25
+ },
26
+ };
@@ -3,7 +3,7 @@ export enum Role {
3
3
  ADMIN = 2,
4
4
  FRONT_OFFICE = 3,
5
5
  COMMERCIAL = 9,
6
- GPC = 10,
6
+ CUSTOMER_SUCCESS = 10,
7
7
  SOCIAL = 11,
8
8
  JURIDIC = 12,
9
9
  CHIEF_ACCOUNTANT = 13,
@@ -21,4 +21,9 @@ export enum Role {
21
21
  API = 26,
22
22
  BACK_OFFICE = 27,
23
23
  BACK_OFFICE_EXPRESS = 28,
24
+ BACK_MANAGER = 30,
25
+ FRONT_MANAGER = 31,
26
+ CUSTOMER_SUCCESS_MANAGER = 32,
27
+ COMMERCIAL_MANAGER = 33,
28
+ FACTURATION = 34,
24
29
  }
@@ -1,4 +1,4 @@
1
- export enum ThirdPartyType{
1
+ export enum ThirdPartyType {
2
2
  CUSTOMER = 1,
3
3
  PROVIDER = 2,
4
4
  }
@@ -27,6 +27,8 @@ export class UpdateAccountingTransaction {
27
27
  @ApiPropertyOptional()
28
28
  comment?: string;
29
29
  @ApiPropertyOptional()
30
+ idSocietyPartner?: number;
31
+ @ApiPropertyOptional()
30
32
  exported?: Date | null;
31
33
  }
32
34
 
@@ -0,0 +1,10 @@
1
+ export type ReadBalanceSheetList = Array<{
2
+ name: string;
3
+ total: number;
4
+ totalDeducted: number;
5
+ totalNet: number;
6
+ isCategory?: boolean;
7
+ isSubcategory?: boolean;
8
+ description?: ReadBalanceSheetList;
9
+ key: string;
10
+ }>;
@@ -0,0 +1,15 @@
1
+ import { ApiProperty } from '../../../../utils';
2
+ import { FecFileDelimiter } from '../../../Enum/FecFileDelimiter';
3
+ import { TFile } from '../file/TFile';
4
+ import { MappingFecFile } from './ReadFecFile';
5
+
6
+ export class CreateFecFile {
7
+ @ApiProperty()
8
+ file?: TFile;
9
+ @ApiProperty()
10
+ delimiter: FecFileDelimiter;
11
+ }
12
+ export class CreateMappingFecFile {
13
+ @ApiProperty()
14
+ mapping?: MappingFecFile;
15
+ }
@@ -0,0 +1,25 @@
1
+ import { IFecFile } from '../../models/IFecFile';
2
+
3
+ export interface AccountToMap {
4
+ number: number,
5
+ name: string,
6
+ suggestedIdAccount?: number | null,
7
+ targetIdAccount?: number | null,
8
+ }
9
+
10
+ export interface JournalToMap {
11
+ alias: string,
12
+ name: string,
13
+ suggestedIdAccountingJournal?: number | null,
14
+ targetIdAccountingJournal?: number | null,
15
+ }
16
+
17
+ export interface ReadFecFile {
18
+ fecFile: IFecFile,
19
+ accountsToMap: AccountToMap[],
20
+ journalsToMap: JournalToMap[],
21
+ }
22
+ export interface MappingFecFile {
23
+ accountsToMap: AccountToMap[],
24
+ journalsToMap: JournalToMap[],
25
+ }
@@ -0,0 +1,8 @@
1
+ export type TFile = {
2
+ buffer: Buffer,
3
+ encoding?: string,
4
+ fieldname: string,
5
+ mimetype?: string,
6
+ originalname: string,
7
+ size?: number
8
+ };
@@ -0,0 +1,37 @@
1
+ import { ILetter } from '../../..';
2
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
+
4
+ export class CreateLetter implements ILetter {
5
+ @ApiProperty()
6
+ idLetterType: number;
7
+
8
+ @ApiPropertyOptional()
9
+ idReport?: number;
10
+
11
+ @ApiProperty()
12
+ idSociety: number;
13
+
14
+ @ApiProperty()
15
+ letterDate: Date;
16
+
17
+ @ApiPropertyOptional()
18
+ complement?: string;
19
+
20
+ @ApiPropertyOptional()
21
+ fileType?: 'receivedFileObject' | 'responseFileObject' | null;
22
+
23
+ @ApiPropertyOptional()
24
+ isLRAR?: boolean;
25
+
26
+ @ApiPropertyOptional()
27
+ isDone?: boolean;
28
+
29
+ @ApiPropertyOptional()
30
+ needResponse?: boolean;
31
+
32
+ @ApiPropertyOptional()
33
+ ARNumber?: string;
34
+
35
+ @ApiPropertyOptional()
36
+ idAccountant?: number;
37
+ }
@@ -0,0 +1,29 @@
1
+ import { IReport } from '../../..';
2
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
+ import { TFile } from '../file/TFile';
4
+
5
+ export class CreateReport implements IReport {
6
+ @ApiPropertyOptional()
7
+ idReportType?: number;
8
+
9
+ @ApiPropertyOptional()
10
+ idSociety?: number;
11
+
12
+ @ApiProperty()
13
+ idUser: number;
14
+
15
+ @ApiProperty()
16
+ message: string;
17
+
18
+ @ApiPropertyOptional()
19
+ search?: string;
20
+
21
+ @ApiProperty()
22
+ letterDate: Date;
23
+
24
+ @ApiPropertyOptional()
25
+ receivedFile?: TFile;
26
+
27
+ @ApiPropertyOptional()
28
+ responseFile?: TFile;
29
+ }
@@ -0,0 +1,21 @@
1
+ import { ApiPropertyOptional } from '../../../../utils';
2
+
3
+ export class QueryReports {
4
+ @ApiPropertyOptional()
5
+ idReportType?: number;
6
+
7
+ @ApiPropertyOptional()
8
+ idSociety?: number;
9
+
10
+ @ApiPropertyOptional()
11
+ search?: string;
12
+
13
+ @ApiPropertyOptional()
14
+ year?: number;
15
+
16
+ @ApiPropertyOptional()
17
+ state?: number;
18
+
19
+ @ApiPropertyOptional()
20
+ idUser?: number;
21
+ }
@@ -0,0 +1,9 @@
1
+ // import { TFile } from 'Utils/type.utils';
2
+ import { IReport, IUser } from '../../..';
3
+
4
+ export interface ReadReport extends IReport {
5
+ idUser: number,
6
+ idReportMessage?: number,
7
+ message?: string,
8
+ societyUsers?: IUser[]
9
+ }
@@ -0,0 +1,18 @@
1
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
2
+
3
+ export class CreateUser {
4
+ @ApiProperty()
5
+ email: string;
6
+ @ApiProperty()
7
+ phone: string;
8
+ @ApiProperty()
9
+ password: string;
10
+ @ApiProperty()
11
+ firstname: string;
12
+ @ApiProperty()
13
+ lastname: string;
14
+ @ApiProperty()
15
+ acceptCgv?: boolean; // not sure if needed (maybe more a front notion)
16
+ @ApiPropertyOptional()
17
+ acceptNewsletter?: boolean;
18
+ }
@@ -0,0 +1,6 @@
1
+ import { ApiProperty } from '../../../../utils';
2
+
3
+ export class QueryUserSmsConfirmation {
4
+ @ApiProperty()
5
+ code: string;
6
+ }
@@ -12,28 +12,28 @@ export interface IAccount {
12
12
  id?: number;
13
13
  number: number;
14
14
  name: string;
15
- originalName: string | null;
16
- forceVat: boolean;
17
- blockVat: boolean;
18
- forceFile: boolean;
19
- isHidden: boolean;
20
- isImmo: boolean;
21
- isCorporal: boolean;
22
- icone: string | null;
23
- iconePNG: string | null;
24
- color: string | null;
25
- isOnlyTreso: boolean;
26
- isOnlyEnga: boolean;
27
- isGeneric: boolean;
28
- forClient: boolean;
29
- forFournisseur: boolean;
30
- juridicalSociety: number | null;
15
+ originalName?: string | null;
16
+ forceVat?: boolean;
17
+ blockVat?: boolean;
18
+ forceFile?: boolean;
19
+ isHidden?: boolean;
20
+ isImmo?: boolean;
21
+ isCorporal?: boolean;
22
+ icone?: string | null;
23
+ iconePNG?: string | null;
24
+ color?: string | null;
25
+ isOnlyTreso?: boolean;
26
+ isOnlyEnga?: boolean;
27
+ isGeneric?: boolean;
28
+ forClient?: boolean;
29
+ forFournisseur?: boolean;
30
+ juridicalSociety?: number | null;
31
31
  idNature: number;
32
32
  idAccountType: number;
33
- idVat: number | null;
34
- idRegisterCategorie: number | null;
35
- idSector: number | null;
36
- idParentAccount: number | null;
33
+ idVat?: number | null;
34
+ idRegisterCategorie?: number | null;
35
+ idSector?: number | null;
36
+ idParentAccount?: number | null;
37
37
  createdAt?: Date | null;
38
38
  updatedAt?: Date | null;
39
39
  deletedAt?: Date | null;
@@ -11,11 +11,11 @@ export interface IAccountingEntry {
11
11
  master: boolean;
12
12
  dateValue: Date;
13
13
  designation: string;
14
- comment: string | null;
14
+ comment?: string | null;
15
15
  debit: number;
16
16
  credit: number;
17
- isPerso: boolean;
18
- autoAnnotate: boolean;
17
+ isPerso?: boolean;
18
+ autoAnnotate?: boolean;
19
19
  idInherit: number | null;
20
20
  idAccount: number | null;
21
21
  idThirdParty: number | null;
@@ -2,6 +2,8 @@
2
2
  export interface IAccountingJournal {
3
3
  id?: number;
4
4
  name: string;
5
+ fullname: string;
6
+ idAccountingJournalParent?: number;
5
7
  createdAt?: Date | null;
6
8
  updatedAt?: Date | null;
7
9
  }
@@ -19,36 +19,37 @@ export interface IAccountingTransaction {
19
19
  invoiceNumber: string | null;
20
20
  budgeaTransactionId: string | null;
21
21
  dateValue: Date;
22
- dateLocked: Date | null;
23
- dateVerified: Date | null;
22
+ dateLocked?: Date | null;
23
+ dateVerified?: Date | null;
24
24
  originalValue?: number | null;
25
- idUser: number | null;
26
- isBlocked: boolean;
27
- isMerged: boolean;
28
- isAsset: boolean;
29
- isPayPerso: boolean;
25
+ idUser?: number | null;
26
+ isBlocked?: boolean;
27
+ isMerged?: boolean;
28
+ isAsset?: boolean;
29
+ isPayPerso?: boolean;
30
+ isFecImport?: boolean;
30
31
  exported: Date | null;
31
- kilometers: number | null;
32
- purchaseTtc: number | null;
33
- internComment: string | null;
34
- isReadMobile: boolean;
35
- invoiceRequested: boolean;
36
- isLockedMobile: boolean;
37
- isAlreadyProcessByOcr: boolean | null;
32
+ kilometers?: number | null;
33
+ purchaseTtc?: number | null;
34
+ internComment?: string | null;
35
+ isReadMobile?: boolean;
36
+ invoiceRequested?: boolean;
37
+ isLockedMobile?: boolean;
38
+ isAlreadyProcessByOcr?: boolean | null;
38
39
  idBankAccount: number | null;
39
40
  idSociety: number;
40
41
  idCurrency?: number | null;
41
- idPaymentMethod: number | null;
42
- idSocietyVehicle: number | null;
43
- idSocietyPartner: number | null;
44
- idRule: number | null;
45
- idLettering: number | null;
42
+ idPaymentMethod?: number | null;
43
+ idSocietyVehicle?: number | null;
44
+ idSocietyPartner?: number | null;
45
+ idRule?: number | null;
46
+ idLettering?: number | null;
46
47
  idAccountingJournal: number;
47
- idTypeCompta: number | null;
48
- idEstimateInvoice: number | null;
49
- idFile: number | null;
50
- idEBT: number | null;
51
- idEAF: number | null;
48
+ idTypeCompta?: number | null;
49
+ idEstimateInvoice?: number | null;
50
+ idFile?: number | null;
51
+ idEBT?: number | null;
52
+ idEAF?: number | null;
52
53
  createdAt?: Date | null;
53
54
  updatedAt?: Date | null;
54
55
  deletedAt?: Date | null;
@@ -52,6 +52,20 @@ export enum Code {
52
52
 
53
53
  // Income statement
54
54
  invalidIncomeStatementList = 'invalid_income_statement_list',
55
+
56
+ // Balance Sheet
57
+ invalidBalanceSheetList = 'invalid_balance_sheet_list',
58
+
59
+ // FecFile
60
+ insertAccountingTransactionFailed = 'insert_accounting_transaction_failed',
61
+
62
+ // User creation
63
+ userAlreadyExistWithSociety = 'user-already-exists',
64
+ userDoesNotExists = 'user-does-not-exist',
65
+ expiredSmsCode = 'expired-sms-code',
66
+ userNotInFmaProcess = 'user-not-in-maf-process',
67
+ wrongSmsCode = 'wrong-sms-code',
68
+
55
69
  }
56
70
 
57
71
  export interface IApiError {
@@ -0,0 +1,17 @@
1
+ import { ISociety } from './ISociety';
2
+ import { IFile } from './IFile';
3
+
4
+ // files
5
+ export interface IFecFile {
6
+ id?: number;
7
+ importComplete: boolean;
8
+ delimiter: string;
9
+ idFile: number;
10
+ idSociety: number;
11
+ createdAt?: Date | null;
12
+ updatedAt?: Date | null;
13
+
14
+ // Associations
15
+ file?: IFile;
16
+ society?: ISociety;
17
+ }
@@ -2,27 +2,31 @@ import { IUser } from './IUser';
2
2
  import { ISociety } from './ISociety';
3
3
  import { ILetterType } from './ILetterType';
4
4
  import { IFile } from './IFile';
5
+ import { IReport } from './IReport';
5
6
 
6
7
  // letters
7
8
  export interface ILetter {
8
9
  id?: number;
9
- idTypeLetter: number;
10
+ complement?: string | null;
11
+ isLRAR?: boolean;
12
+ isDone?: boolean;
13
+ needResponse?: boolean;
14
+ letterDate: Date;
15
+ ARNumber?: string | null;
16
+ idLetterType: number;
17
+ idReceivedFile?: number | null;
18
+ idResponseFile?: number | null;
10
19
  idSociety: number;
11
- idAccountant: number;
12
- complement: string | null;
13
- isLRAR: boolean;
14
- idReceivedFile: number | null;
15
- idResponseFile: number | null;
16
- isDone: boolean;
17
- needResponse: boolean;
18
- receivedAt: Date;
20
+ idReport?: number;
21
+ idAccountant?: number;
19
22
  createdAt?: Date | null;
20
23
  updatedAt?: Date | null;
21
24
 
22
25
  // Associations
23
- user: IUser;
24
- society: ISociety;
25
- typeLetter: ILetterType;
26
- receivedFile: IFile;
27
- responseFile: IFile;
26
+ user?: IUser;
27
+ society?: ISociety;
28
+ report?: IReport;
29
+ typeLetter?: ILetterType;
30
+ receivedFile?: IFile;
31
+ responseFile?: IFile;
28
32
  }
@@ -5,19 +5,20 @@ import { ISociety } from './ISociety';
5
5
  // report
6
6
  export interface IReport {
7
7
  id?: number;
8
- idSociety: number | null;
9
- idTypeReport: number | null;
10
- declareSoupcons: boolean | null;
11
- etat: number | null;
12
- informerjlb: boolean | null;
13
- ressenti: number | null;
14
- action: number | null;
15
- processed: boolean | null;
8
+ idSociety?: number | null;
9
+ idReportType?: number | null;
10
+ idLetterType?: number | null;
11
+ declareSoupcons?: boolean | null;
12
+ etat?: number | null;
13
+ informerjlb?: boolean | null;
14
+ ressenti?: number | null;
15
+ action?: number | null;
16
+ processed?: boolean | null;
16
17
  createdAt?: Date | null;
17
18
  updatedAt?: Date | null;
18
19
 
19
20
  // Associations
20
- reportComment: IReportMessage[];
21
- typeReport: IReportType;
22
- society: ISociety;
21
+ reportComment?: IReportMessage[];
22
+ reportType?: IReportType;
23
+ society?: ISociety;
23
24
  }
@@ -10,5 +10,5 @@ export interface IReportMessage {
10
10
  updatedAt?: Date | null;
11
11
 
12
12
  // Associations
13
- reportUser: IUser;
13
+ reportUser?: IUser;
14
14
  }
@@ -1,4 +1,4 @@
1
- // typeReport
1
+ // reportType
2
2
  export interface IReportType {
3
3
  id?: number;
4
4
  name: string;
@@ -94,7 +94,6 @@ export interface ISociety {
94
94
  numberSie: string | null;
95
95
  aga: string | null;
96
96
  statutoryAuditor: string | null;
97
- vatIntracom: string | null;
98
97
  typeSales: string | null;
99
98
  dateRelanceCommercial: Date | null;
100
99
  firstPayslipDate: Date | null;