@silexpert/core 0.4.128 → 0.4.129

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 (189) hide show
  1. package/es/api/resources/Revision.d.ts +6 -0
  2. package/es/api/resources/Revision.d.ts.map +1 -0
  3. package/es/api/resources/Revision.js +7 -0
  4. package/es/api/resources/Revision.js.map +1 -0
  5. package/es/api/resources/Transaction.d.ts +2 -1
  6. package/es/api/resources/Transaction.d.ts.map +1 -1
  7. package/es/api/resources/Transaction.js +3 -0
  8. package/es/api/resources/Transaction.js.map +1 -1
  9. package/es/api/resources/WorkingSchedule.d.ts +6 -0
  10. package/es/api/resources/WorkingSchedule.d.ts.map +1 -0
  11. package/es/api/resources/WorkingSchedule.js +12 -0
  12. package/es/api/resources/WorkingSchedule.js.map +1 -0
  13. package/es/api/resources.d.ts +4 -0
  14. package/es/api/resources.d.ts.map +1 -1
  15. package/es/api/resources.js +4 -0
  16. package/es/api/resources.js.map +1 -1
  17. package/es/types/Enum/Aspone.d.ts +2 -1
  18. package/es/types/Enum/Aspone.d.ts.map +1 -1
  19. package/es/types/Enum/Aspone.js +1 -0
  20. package/es/types/Enum/Aspone.js.map +1 -1
  21. package/es/types/Enum/BalanceSheetQuestion.d.ts +7 -1
  22. package/es/types/Enum/BalanceSheetQuestion.d.ts.map +1 -1
  23. package/es/types/Enum/BalanceSheetQuestion.js +6 -0
  24. package/es/types/Enum/BalanceSheetQuestion.js.map +1 -1
  25. package/es/types/Enum/CerfaType.d.ts +2 -1
  26. package/es/types/Enum/CerfaType.d.ts.map +1 -1
  27. package/es/types/Enum/CerfaType.js +1 -0
  28. package/es/types/Enum/CerfaType.js.map +1 -1
  29. package/es/types/Enum/Currency.d.ts +4 -0
  30. package/es/types/Enum/Currency.d.ts.map +1 -0
  31. package/es/types/Enum/Currency.js +5 -0
  32. package/es/types/Enum/Currency.js.map +1 -0
  33. package/es/types/Enum/JeDeclare.d.ts +24 -0
  34. package/es/types/Enum/JeDeclare.d.ts.map +1 -0
  35. package/es/types/Enum/JeDeclare.js +28 -0
  36. package/es/types/Enum/JeDeclare.js.map +1 -0
  37. package/es/types/Enum/PartnerTransactionType.d.ts +3 -1
  38. package/es/types/Enum/PartnerTransactionType.d.ts.map +1 -1
  39. package/es/types/Enum/PartnerTransactionType.js +2 -0
  40. package/es/types/Enum/PartnerTransactionType.js.map +1 -1
  41. package/es/types/Interface/api/accountingTransaction/DeleteInvoices.d.ts +11 -0
  42. package/es/types/Interface/api/accountingTransaction/DeleteInvoices.d.ts.map +1 -0
  43. package/es/types/Interface/api/accountingTransaction/DeleteInvoices.js +46 -0
  44. package/es/types/Interface/api/accountingTransaction/DeleteInvoices.js.map +1 -0
  45. package/es/types/Interface/api/aspone/ReadInterchange.d.ts +1 -1
  46. package/es/types/Interface/api/aspone/ReadInterchange.d.ts.map +1 -1
  47. package/es/types/Interface/api/aspone/ReadInterchange.js.map +1 -1
  48. package/es/types/Interface/api/aspone/Util.d.ts +2 -0
  49. package/es/types/Interface/api/aspone/Util.d.ts.map +1 -1
  50. package/es/types/Interface/api/aspone/Util.js.map +1 -1
  51. package/es/types/Interface/api/cerfa/2572.d.ts +149 -0
  52. package/es/types/Interface/api/cerfa/2572.d.ts.map +1 -0
  53. package/es/types/Interface/api/cerfa/2572.js +5 -0
  54. package/es/types/Interface/api/cerfa/2572.js.map +1 -0
  55. package/es/types/Interface/api/cerfa/CreateCerfa.d.ts +1 -0
  56. package/es/types/Interface/api/cerfa/CreateCerfa.d.ts.map +1 -1
  57. package/es/types/Interface/api/cerfa/CreateCerfa.js +1 -0
  58. package/es/types/Interface/api/cerfa/CreateCerfa.js.map +1 -1
  59. package/es/types/Interface/api/jeDeclare/CreateDocumentsParams.d.ts +7 -0
  60. package/es/types/Interface/api/jeDeclare/CreateDocumentsParams.d.ts.map +1 -0
  61. package/es/types/Interface/api/jeDeclare/CreateDocumentsParams.js +37 -0
  62. package/es/types/Interface/api/jeDeclare/CreateDocumentsParams.js.map +1 -0
  63. package/es/types/Interface/api/jeDeclare/Util.d.ts +68 -0
  64. package/es/types/Interface/api/jeDeclare/Util.d.ts.map +1 -0
  65. package/es/types/Interface/api/jeDeclare/Util.js +2 -0
  66. package/es/types/Interface/api/jeDeclare/Util.js.map +1 -0
  67. package/es/types/Interface/api/jeDeclare/UtilCFONB.d.ts +23 -0
  68. package/es/types/Interface/api/jeDeclare/UtilCFONB.d.ts.map +1 -0
  69. package/es/types/Interface/api/jeDeclare/UtilCFONB.js +378 -0
  70. package/es/types/Interface/api/jeDeclare/UtilCFONB.js.map +1 -0
  71. package/es/types/Interface/api/log/CreateLog.d.ts +1 -0
  72. package/es/types/Interface/api/log/CreateLog.d.ts.map +1 -1
  73. package/es/types/Interface/api/log/CreateLog.js.map +1 -1
  74. package/es/types/Interface/api/registration/CreateRegistration.d.ts +2 -1
  75. package/es/types/Interface/api/registration/CreateRegistration.d.ts.map +1 -1
  76. package/es/types/Interface/api/registration/CreateRegistration.js.map +1 -1
  77. package/es/types/Interface/api/revision/QueryRevision.d.ts +6 -0
  78. package/es/types/Interface/api/revision/QueryRevision.d.ts.map +1 -0
  79. package/es/types/Interface/api/revision/QueryRevision.js +29 -0
  80. package/es/types/Interface/api/revision/QueryRevision.js.map +1 -0
  81. package/es/types/Interface/api/revision/ReadRevision.d.ts +14 -0
  82. package/es/types/Interface/api/revision/ReadRevision.d.ts.map +1 -0
  83. package/es/types/Interface/api/revision/ReadRevision.js +2 -0
  84. package/es/types/Interface/api/revision/ReadRevision.js.map +1 -0
  85. package/es/types/Interface/api/revision/Revision.d.ts +5 -0
  86. package/es/types/Interface/api/revision/Revision.d.ts.map +1 -0
  87. package/es/types/Interface/api/revision/Revision.js +2 -0
  88. package/es/types/Interface/api/revision/Revision.js.map +1 -0
  89. package/es/types/Interface/api/revision/RevisionObject.d.ts +10 -0
  90. package/es/types/Interface/api/revision/RevisionObject.d.ts.map +1 -0
  91. package/es/types/Interface/api/revision/RevisionObject.js +2 -0
  92. package/es/types/Interface/api/revision/RevisionObject.js.map +1 -0
  93. package/es/types/Interface/api/woocommerce/InvoicesWoocommerce.d.ts +1 -0
  94. package/es/types/Interface/api/woocommerce/InvoicesWoocommerce.d.ts.map +1 -1
  95. package/es/types/Interface/api/woocommerce/InvoicesWoocommerce.js +4 -0
  96. package/es/types/Interface/api/woocommerce/InvoicesWoocommerce.js.map +1 -1
  97. package/es/types/Interface/models/IApiError.d.ts +2 -1
  98. package/es/types/Interface/models/IApiError.d.ts.map +1 -1
  99. package/es/types/Interface/models/IApiError.js +2 -0
  100. package/es/types/Interface/models/IApiError.js.map +1 -1
  101. package/es/types/Interface/models/IUser.d.ts +1 -0
  102. package/es/types/Interface/models/IUser.d.ts.map +1 -1
  103. package/es/types/Interface/models/IUser.js.map +1 -1
  104. package/es/types/Interface/models/IWorkingSchedule.d.ts +3 -1
  105. package/es/types/Interface/models/IWorkingSchedule.d.ts.map +1 -1
  106. package/es/types/Interface/models/IWorkingSchedule.js.map +1 -1
  107. package/es/types/index.d.ts +10 -0
  108. package/es/types/index.d.ts.map +1 -1
  109. package/es/types/index.js +10 -0
  110. package/es/types/index.js.map +1 -1
  111. package/js/api/resources/Revision.js +20 -0
  112. package/js/api/resources/Revision.js.map +1 -0
  113. package/js/api/resources/Transaction.js +6 -0
  114. package/js/api/resources/Transaction.js.map +1 -1
  115. package/js/api/resources/WorkingSchedule.js +23 -0
  116. package/js/api/resources/WorkingSchedule.js.map +1 -0
  117. package/js/api/resources.js +7 -1
  118. package/js/api/resources.js.map +1 -1
  119. package/js/types/Enum/Aspone.js +1 -0
  120. package/js/types/Enum/Aspone.js.map +1 -1
  121. package/js/types/Enum/BalanceSheetQuestion.js +7 -0
  122. package/js/types/Enum/BalanceSheetQuestion.js.map +1 -1
  123. package/js/types/Enum/CerfaType.js +1 -0
  124. package/js/types/Enum/CerfaType.js.map +1 -1
  125. package/js/types/Enum/Currency.js +11 -0
  126. package/js/types/Enum/Currency.js.map +1 -0
  127. package/js/types/Enum/JeDeclare.js +40 -0
  128. package/js/types/Enum/JeDeclare.js.map +1 -0
  129. package/js/types/Enum/PartnerTransactionType.js +2 -0
  130. package/js/types/Enum/PartnerTransactionType.js.map +1 -1
  131. package/js/types/Interface/api/accountingTransaction/DeleteInvoices.js +41 -0
  132. package/js/types/Interface/api/accountingTransaction/DeleteInvoices.js.map +1 -0
  133. package/js/types/Interface/api/aspone/ReadInterchange.js.map +1 -1
  134. package/js/types/Interface/api/aspone/Util.js.map +1 -1
  135. package/js/types/Interface/api/cerfa/2572.js +14 -0
  136. package/js/types/Interface/api/cerfa/2572.js.map +1 -0
  137. package/js/types/Interface/api/cerfa/CreateCerfa.js +12 -0
  138. package/js/types/Interface/api/cerfa/CreateCerfa.js.map +1 -1
  139. package/js/types/Interface/api/jeDeclare/CreateDocumentsParams.js +37 -0
  140. package/js/types/Interface/api/jeDeclare/CreateDocumentsParams.js.map +1 -0
  141. package/js/types/Interface/api/jeDeclare/Util.js +6 -0
  142. package/js/types/Interface/api/jeDeclare/Util.js.map +1 -0
  143. package/js/types/Interface/api/jeDeclare/UtilCFONB.js +394 -0
  144. package/js/types/Interface/api/jeDeclare/UtilCFONB.js.map +1 -0
  145. package/js/types/Interface/api/registration/CreateRegistration.js.map +1 -1
  146. package/js/types/Interface/api/revision/QueryRevision.js +33 -0
  147. package/js/types/Interface/api/revision/QueryRevision.js.map +1 -0
  148. package/js/types/Interface/api/revision/ReadRevision.js +6 -0
  149. package/js/types/Interface/api/revision/ReadRevision.js.map +1 -0
  150. package/js/types/Interface/api/revision/Revision.js +6 -0
  151. package/js/types/Interface/api/revision/Revision.js.map +1 -0
  152. package/js/types/Interface/api/revision/RevisionObject.js +6 -0
  153. package/js/types/Interface/api/revision/RevisionObject.js.map +1 -0
  154. package/js/types/Interface/api/woocommerce/InvoicesWoocommerce.js +2 -0
  155. package/js/types/Interface/api/woocommerce/InvoicesWoocommerce.js.map +1 -1
  156. package/js/types/Interface/models/IApiError.js +3 -1
  157. package/js/types/Interface/models/IApiError.js.map +1 -1
  158. package/js/types/index.js +120 -0
  159. package/js/types/index.js.map +1 -1
  160. package/package.json +1 -1
  161. package/ts/api/resources/Revision.ts +8 -0
  162. package/ts/api/resources/Transaction.ts +5 -1
  163. package/ts/api/resources/WorkingSchedule.ts +12 -0
  164. package/ts/api/resources.ts +4 -0
  165. package/ts/types/Enum/Aspone.ts +1 -0
  166. package/ts/types/Enum/BalanceSheetQuestion.ts +7 -0
  167. package/ts/types/Enum/CerfaType.ts +1 -0
  168. package/ts/types/Enum/Currency.ts +3 -0
  169. package/ts/types/Enum/JeDeclare.ts +26 -0
  170. package/ts/types/Enum/PartnerTransactionType.ts +2 -0
  171. package/ts/types/Interface/api/accountingTransaction/DeleteInvoices.ts +37 -0
  172. package/ts/types/Interface/api/aspone/ReadInterchange.ts +1 -1
  173. package/ts/types/Interface/api/aspone/Util.ts +3 -0
  174. package/ts/types/Interface/api/cerfa/2572.ts +150 -0
  175. package/ts/types/Interface/api/cerfa/CreateCerfa.ts +1 -0
  176. package/ts/types/Interface/api/jeDeclare/CreateDocumentsParams.ts +23 -0
  177. package/ts/types/Interface/api/jeDeclare/Util.ts +69 -0
  178. package/ts/types/Interface/api/jeDeclare/UtilCFONB.ts +387 -0
  179. package/ts/types/Interface/api/log/CreateLog.ts +1 -0
  180. package/ts/types/Interface/api/registration/CreateRegistration.ts +2 -1
  181. package/ts/types/Interface/api/revision/QueryRevision.ts +16 -0
  182. package/ts/types/Interface/api/revision/ReadRevision.ts +14 -0
  183. package/ts/types/Interface/api/revision/Revision.ts +5 -0
  184. package/ts/types/Interface/api/revision/RevisionObject.ts +10 -0
  185. package/ts/types/Interface/api/woocommerce/InvoicesWoocommerce.ts +2 -0
  186. package/ts/types/Interface/models/IApiError.ts +2 -0
  187. package/ts/types/Interface/models/IUser.ts +1 -0
  188. package/ts/types/Interface/models/IWorkingSchedule.ts +3 -1
  189. package/ts/types/index.ts +10 -1
@@ -0,0 +1,387 @@
1
+ import { AmountType } from './Util';
2
+
3
+ export const CFONB_START_LINE = 0;
4
+ export const CFONB_START_LINE_LENGTH = 2;
5
+ export const CFFONB_LINE_LENGHT = 120;
6
+ export const CFONB_PREVIOUS_BALANCE_CODE = '01';
7
+ export const CFONB_DETAIL_ENTRY_CODE = '04';
8
+ export const CFONB_COMPLEMENTARY_LABEL_CODE = '05';
9
+ export const CFONB_NEW_BALANCE_CODE = '07';
10
+
11
+ export type CFONBStructureObejct = { [key: string]: { start: number, length: number }[] };
12
+
13
+ export const CFONB_PREVIOUS_BALANCE: CFONBStructureObejct = {
14
+ recordCode: [{
15
+ start: 1,
16
+ length: 2,
17
+ }],
18
+ bankCode: [{
19
+ start: 3,
20
+ length: 5,
21
+ }],
22
+ designatedArea1: [{
23
+ start: 8,
24
+ length: 4,
25
+ }],
26
+ counterCode: [{
27
+ start: 12,
28
+ length: 5,
29
+ }],
30
+ currencyCode: [{
31
+ start: 17,
32
+ length: 3,
33
+ }],
34
+ decimalNumber: [{
35
+ start: 20,
36
+ length: 1,
37
+ }],
38
+ designatedArea2: [{
39
+ start: 21,
40
+ length: 1,
41
+ }],
42
+ accountNumber: [{
43
+ start: 22,
44
+ length: 11,
45
+ }],
46
+ designatedArea3: [{
47
+ start: 33,
48
+ length: 2,
49
+ }],
50
+ previousSoldeDate: [{
51
+ start: 35,
52
+ length: 6,
53
+ }],
54
+ designatedArea4: [{
55
+ start: 41,
56
+ length: 50,
57
+ }],
58
+ amount: [{
59
+ start: 91,
60
+ length: 14,
61
+ }],
62
+ designatedArea5: [{
63
+ start: 105,
64
+ length: 16,
65
+ }],
66
+ };
67
+
68
+ export const CFONB_ENTRY_DETAIL: CFONBStructureObejct = {
69
+ recordCode: [{
70
+ start: 1,
71
+ length: 2,
72
+ }],
73
+ bankCode: [{
74
+ start: 3,
75
+ length: 5,
76
+ }],
77
+ operationSGCode: [{
78
+ start: 8,
79
+ length: 4,
80
+ }],
81
+ counterCode: [{
82
+ start: 12,
83
+ length: 5,
84
+ }],
85
+ currencyCode: [{
86
+ start: 17,
87
+ length: 3,
88
+ }],
89
+ decimalNumber: [{
90
+ start: 20,
91
+ length: 1,
92
+ }],
93
+ SITIndex: [{
94
+ start: 21,
95
+ length: 1,
96
+ }],
97
+ accountNumber: [{
98
+ start: 22,
99
+ length: 11,
100
+ }],
101
+ operationInterbank_code: [{
102
+ start: 33,
103
+ length: 2,
104
+ }],
105
+ entryDate: [{
106
+ start: 35,
107
+ length: 6,
108
+ }],
109
+ rejectMotifCode: [{
110
+ start: 41,
111
+ length: 2,
112
+ }],
113
+ valueDate: [{
114
+ start: 43,
115
+ length: 6,
116
+ }],
117
+ operationLabel: [{
118
+ start: 49,
119
+ length: 31,
120
+ }],
121
+ designatedArea1: [{
122
+ start: 80,
123
+ length: 2,
124
+ }],
125
+ entryNumber: [{
126
+ start: 82,
127
+ length: 7,
128
+ }],
129
+ exonerationCode: [{
130
+ start: 89,
131
+ length: 1,
132
+ }],
133
+ designatedArea2: [{
134
+ start: 90,
135
+ length: 1,
136
+ }],
137
+ amount: [{
138
+ start: 91,
139
+ length: 14,
140
+ }],
141
+ operationRef: [{
142
+ start: 105,
143
+ length: 16,
144
+ }],
145
+ };
146
+
147
+ export const CFONB_COMPLEMENTARY_LABEL: CFONBStructureObejct = {
148
+ recordCode: [{
149
+ start: 1,
150
+ length: 2,
151
+ }],
152
+ bankCode: [{
153
+ start: 3,
154
+ length: 5,
155
+ }],
156
+ operationSGCode: [{
157
+ start: 8,
158
+ length: 4,
159
+ }],
160
+ counterCode: [{
161
+ start: 12,
162
+ length: 5,
163
+ }],
164
+ designatedArea1: [{
165
+ start: 17,
166
+ length: 5,
167
+ }],
168
+ account_Number: [{
169
+ start: 22,
170
+ length: 11,
171
+ }],
172
+ operationInterbankCode: [{
173
+ start: 33,
174
+ length: 2,
175
+ }],
176
+ entryDate: [{
177
+ start: 35,
178
+ length: 6,
179
+ }],
180
+ complementaryLabel: [{
181
+ start: 41,
182
+ length: 41,
183
+ }],
184
+ entryNumber: [{
185
+ start: 82,
186
+ length: 8,
187
+ }],
188
+ designatedArea2: [{
189
+ start: 89,
190
+ length: 2,
191
+ }],
192
+ '04Ammount': [{
193
+ start: 91,
194
+ length: 14,
195
+ }],
196
+ designatedArea3: [{
197
+ start: 105,
198
+ length: 16,
199
+ }],
200
+ };
201
+
202
+ export const CFONB_NEW_BALANCE: CFONBStructureObejct = {
203
+ recordCode: [{
204
+ start: 1,
205
+ length: 2,
206
+ }],
207
+ bankCode: [{
208
+ start: 3,
209
+ length: 5,
210
+ }],
211
+ designatedArea1: [{
212
+ start: 8,
213
+ length: 4,
214
+ }],
215
+ counterCode: [{
216
+ start: 12,
217
+ length: 5,
218
+ }],
219
+ currencyCode: [{
220
+ start: 17,
221
+ length: 3,
222
+ }],
223
+ decimalNumber: [{
224
+ start: 20,
225
+ length: 1,
226
+ }],
227
+ designatedArea2: [{
228
+ start: 21,
229
+ length: 1,
230
+ }],
231
+ accountNumber: [{
232
+ start: 22,
233
+ length: 11,
234
+ }],
235
+ designatedArea3: [{
236
+ start: 33,
237
+ length: 2,
238
+ }],
239
+ dataNewBalance: [{
240
+ start: 35,
241
+ length: 6,
242
+ }],
243
+ designatedArea4: [{
244
+ start: 41,
245
+ length: 50,
246
+ }],
247
+ amount: [{
248
+ start: 91,
249
+ length: 14,
250
+ }],
251
+ designatedArea5: [{
252
+ start: 105,
253
+ length: 16,
254
+ }],
255
+ };
256
+
257
+ export function initializeCFONBStructreObject(structure:CFONBStructureObejct): { [key: string]: string | null } | null {
258
+ let object: { [key: string]: string | null } | null = null;
259
+ Object.keys(structure).forEach((key) => {
260
+ object = { ...(object ? { ...object, [key]: null } : { [key]: null }) };
261
+ });
262
+ return object;
263
+ }
264
+
265
+ export function codeInterbankToTypeAmount(code: string | null): AmountType {
266
+ switch (code) {
267
+ case '02':
268
+ case '04':
269
+ case '05':
270
+ case '12':
271
+ case '13':
272
+ case '15':
273
+ case '16':
274
+ case '17':
275
+ case '18':
276
+ case '24':
277
+ case '25':
278
+ case '30':
279
+ case '31':
280
+ case '32':
281
+ case '35':
282
+ case '37':
283
+ case '39':
284
+ case '40':
285
+ case '45':
286
+ case '47':
287
+ case '49':
288
+ case '54':
289
+ case '57':
290
+ case '59':
291
+ case '63':
292
+ case '69':
293
+ case '71':
294
+ case '73':
295
+ case '74':
296
+ case '77':
297
+ case '78':
298
+ case '81':
299
+ case '85':
300
+ case '87':
301
+ case '89':
302
+ case '94':
303
+ case '97':
304
+ case 'A1':
305
+ case 'A2':
306
+ case 'A3':
307
+ case 'A4':
308
+ case 'B5':
309
+ case 'B6':
310
+ case 'C2':
311
+ case 'C3':
312
+ case 'C5':
313
+ return 'credit';
314
+ case '01':
315
+ case '03':
316
+ case '06':
317
+ case '07':
318
+ case '08':
319
+ case '10':
320
+ case '14':
321
+ case '19':
322
+ case '20':
323
+ case '21':
324
+ case '22':
325
+ case '23':
326
+ case '26':
327
+ case '27':
328
+ case '28':
329
+ case '29':
330
+ case '33':
331
+ case '36':
332
+ case '38':
333
+ case '44':
334
+ case '46':
335
+ case '48':
336
+ case '50':
337
+ case '53':
338
+ case '56':
339
+ case '58':
340
+ case '62':
341
+ case '64':
342
+ case '65':
343
+ case '66':
344
+ case '67':
345
+ case '68':
346
+ case '70':
347
+ case '72':
348
+ case '75':
349
+ case '76':
350
+ case '79':
351
+ case '80':
352
+ case '84':
353
+ case '88':
354
+ case '90':
355
+ case '95':
356
+ case '96':
357
+ case '98':
358
+ case 'A5':
359
+ case 'A6':
360
+ case 'B1':
361
+ case 'B2':
362
+ case 'B3':
363
+ case 'B4':
364
+ case 'C1':
365
+ case 'C4':
366
+ return 'debit';
367
+ // here we have a problème to infer the symbol for amount, because all this code have credit and debit. for now it will match credit when infering the amount in
368
+ // transformData function
369
+ case '11':
370
+ case '34':
371
+ case '41':
372
+ case '42':
373
+ case '43':
374
+ case '52':
375
+ case '55':
376
+ case '61':
377
+ case '82':
378
+ case '83':
379
+ case '91':
380
+ case '92':
381
+ case '93':
382
+ case '99':
383
+ return 'neutral';
384
+ default:
385
+ return 'unknown';
386
+ }
387
+ }
@@ -6,6 +6,7 @@ export type CreateLog = {
6
6
  client?: { idExercice?: number, idSociety?: number },
7
7
  idAction: ActionType,
8
8
  idTypeLog: number,
9
+ idBankAccount?: number,
9
10
  referer?: string,
10
11
  ip?: string
11
12
  };
@@ -2,7 +2,7 @@ import { IsEnum, IsOptional, IsBoolean } from 'class-validator';
2
2
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
3
  import { CerfaType } from '../../../Enum/CerfaType';
4
4
  import {
5
- ParamsGenerate2035, ParamsGenerate2035WithSuites, ParamsGenerate2033, ParamsGenerate2065, ParamsGenerate2031, ParamsGenerate2050,
5
+ ParamsGenerate2035, ParamsGenerate2035WithSuites, ParamsGenerate2033, ParamsGenerate2065, ParamsGenerate2031, ParamsGenerate2050, ParamsGenerate2572,
6
6
  } from '../cerfa/CreateCerfa';
7
7
  import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
8
8
 
@@ -15,6 +15,7 @@ export class CreateRegistration {
15
15
  cerfa2065?: ParamsGenerate2065;
16
16
  cerfa2031?: ParamsGenerate2031;
17
17
  cerfa2050?: ParamsGenerate2050;
18
+ cerfa2572?: ParamsGenerate2572;
18
19
  };
19
20
 
20
21
  @ApiProperty()
@@ -0,0 +1,16 @@
1
+ import { IsDate, IsInt } from 'class-validator';
2
+ import { ApiProperty } from '../../../..';
3
+
4
+ export class QueryRevision {
5
+ @ApiProperty()
6
+ @IsDate()
7
+ startDate: Date;
8
+
9
+ @ApiProperty()
10
+ @IsDate()
11
+ endDate: Date;
12
+
13
+ @ApiProperty()
14
+ @IsInt()
15
+ idSociety: number;
16
+ }
@@ -0,0 +1,14 @@
1
+ import { IAccountDetail } from '../../models/IAccountDetail';
2
+
3
+ export interface ReadRevision {
4
+ balance: number;
5
+ account: {
6
+ id: number,
7
+ name: string | null,
8
+ number: number | null,
9
+ accountDetails: Array<IAccountDetail>
10
+ },
11
+ unlocked: number;
12
+ previousBalance: number;
13
+ nextBalance: number;
14
+ }
@@ -0,0 +1,5 @@
1
+ import { IAccountingEntry } from '../../models/IAccountingEntry';
2
+
3
+ export interface Revision extends IAccountingEntry {
4
+ balance?: number | null;
5
+ }
@@ -0,0 +1,10 @@
1
+ export type RevisionPeriod = {
2
+ startDate: Date,
3
+ endDate: Date,
4
+ };
5
+
6
+ export interface RevisionPeriods {
7
+ next: RevisionPeriod,
8
+ previous: RevisionPeriod,
9
+ current: RevisionPeriod,
10
+ }
@@ -9,4 +9,6 @@ export class InvoicesWoocommerce {
9
9
  ids: number[];
10
10
  @ApiPropertyOptional()
11
11
  idSociety: number;
12
+ @ApiPropertyOptional()
13
+ date: Date;
12
14
  }
@@ -151,6 +151,8 @@ export enum Code {
151
151
  EXERCICE_ALREADY_CLOSED = 'EXERCICE_ALREADY_CLOSED',
152
152
  MISSING_ANNOTATIONS = 'MISSING_ANNOTATIONS',
153
153
 
154
+ // jeDeclare errors
155
+ ERR_INVALID_ARG_TYPE = 'ERR_INVALID_ARG_TYPE',
154
156
  }
155
157
 
156
158
  export interface IApiError {
@@ -50,6 +50,7 @@ export interface IUser {
50
50
  toContact: boolean;
51
51
  stateProspect: boolean | null;
52
52
  birthdate: Date | null;
53
+ arrivalDate: Date | null;
53
54
  isNewProspect: boolean;
54
55
  hasAccountNumberDisplay: boolean;
55
56
  isAssociate: boolean | null;
@@ -1,3 +1,4 @@
1
+ import { IUser } from './IUser';
1
2
  import { IEmployee } from './IEmployee';
2
3
 
3
4
  // workingSchedule
@@ -14,5 +15,6 @@ export interface IWorkingSchedule {
14
15
  updatedAt?: Date | null;
15
16
 
16
17
  // Associations
17
- employee: IEmployee;
18
+ employee?: IEmployee;
19
+ user?: IUser;
18
20
  }
package/ts/types/index.ts CHANGED
@@ -383,6 +383,8 @@ export * from './Enum/LegalInformation';
383
383
  export * from './Enum/ProvisionType';
384
384
  export * from './Enum/Ocr';
385
385
  export * from './Enum/MachineLearning';
386
+ export * from './Enum/JeDeclare';
387
+ export * from './Enum/Currency';
386
388
 
387
389
  // Interfaces API
388
390
  export * from './Interface/api/aspone/ReadInterchange';
@@ -405,6 +407,7 @@ export * from './Interface/api/account/UpdateAccountSociety';
405
407
  export * from './Interface/api/account/QueryAccountSociety';
406
408
  export * from './Interface/api/account/QueryGenericAccount';
407
409
  export * from './Interface/api/accountingTransaction/QueryTransaction';
410
+ export * from './Interface/api/accountingTransaction/DeleteInvoices';
408
411
  export * from './Interface/api/user/QueryConfirm';
409
412
  export * from './Interface/api/user/QuerySocieties';
410
413
  export * from './Interface/api/user/QueryResendConfirmationLink';
@@ -468,6 +471,10 @@ export * from './Interface/api/bankStatement/QueryTransactionBankStatement';
468
471
  export * from './Interface/api/ocr/OcrTypeTransactions';
469
472
  export * from './Interface/api/bankStatement/ReadBankStatement';
470
473
  export * from './Interface/api/tax/ReadCompanyTax';
474
+ export * from './Interface/api/revision/QueryRevision';
475
+ export * from './Interface/api/revision/ReadRevision';
476
+ export * from './Interface/api/revision/RevisionObject';
477
+ export * from './Interface/api/revision/Revision';
471
478
 
472
479
  // export * from './Interface/api/survey/QuerySurvey';
473
480
  export * from './Interface/api/survey/ReadSurvey';
@@ -600,5 +607,7 @@ export * from './Interface/api/financialCharge/CreateNonDeductibleInterests';
600
607
  export * from './Interface/api/financialCharge/CreatedNonDeductibleInterests';
601
608
  export * from './Interface/api/machineLearning/CreateMachineLearningAnnotation';
602
609
  export * from './Interface/api/machineLearning/ResultCreateMachineLearningAnnotation';
603
-
610
+ export * from './Interface/api/jeDeclare/Util';
611
+ export * from './Interface/api/jeDeclare/CreateDocumentsParams';
612
+ export * from './Interface/api/jeDeclare/UtilCFONB';
604
613
  export * from '../utils/cerfa';