@silexpert/core 0.4.108 → 0.4.110

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 (284) hide show
  1. package/CHANGELOG.md +68 -0
  2. package/es/api/resources/AccountingFiles.d.ts +6 -0
  3. package/es/api/resources/AccountingFiles.d.ts.map +1 -0
  4. package/es/api/resources/AccountingFiles.js +14 -0
  5. package/es/api/resources/AccountingFiles.js.map +1 -0
  6. package/es/api/resources/InternalInvoicing.d.ts +6 -0
  7. package/es/api/resources/InternalInvoicing.d.ts.map +1 -0
  8. package/es/api/resources/InternalInvoicing.js +7 -0
  9. package/es/api/resources/InternalInvoicing.js.map +1 -0
  10. package/es/api/resources/Journal.d.ts +7 -0
  11. package/es/api/resources/Journal.d.ts.map +1 -0
  12. package/es/api/resources/Journal.js +10 -0
  13. package/es/api/resources/Journal.js.map +1 -0
  14. package/es/api/resources/MealExpense.d.ts +33 -0
  15. package/es/api/resources/MealExpense.d.ts.map +1 -0
  16. package/es/api/resources/MealExpense.js +37 -0
  17. package/es/api/resources/MealExpense.js.map +1 -0
  18. package/es/api/resources/Product.d.ts +3 -0
  19. package/es/api/resources/Product.d.ts.map +1 -1
  20. package/es/api/resources/Product.js +10 -0
  21. package/es/api/resources/Product.js.map +1 -1
  22. package/es/api/resources/Registration.d.ts +6 -0
  23. package/es/api/resources/Registration.d.ts.map +1 -0
  24. package/es/api/resources/Registration.js +7 -0
  25. package/es/api/resources/Registration.js.map +1 -0
  26. package/es/api/resources.d.ts +8 -0
  27. package/es/api/resources.d.ts.map +1 -1
  28. package/es/api/resources.js +8 -0
  29. package/es/api/resources.js.map +1 -1
  30. package/es/types/Enum/AccountingFileType.d.ts +2 -1
  31. package/es/types/Enum/AccountingFileType.d.ts.map +1 -1
  32. package/es/types/Enum/AccountingFileType.js +1 -0
  33. package/es/types/Enum/AccountingFileType.js.map +1 -1
  34. package/es/types/Enum/CerfaType.d.ts +14 -14
  35. package/es/types/Enum/CerfaType.d.ts.map +1 -1
  36. package/es/types/Enum/CerfaType.js +15 -14
  37. package/es/types/Enum/CerfaType.js.map +1 -1
  38. package/es/types/Enum/Ged.d.ts +1 -0
  39. package/es/types/Enum/Ged.d.ts.map +1 -1
  40. package/es/types/Enum/Ged.js +1 -1
  41. package/es/types/Enum/Ged.js.map +1 -1
  42. package/es/types/Enum/GlobalRegime.js +61 -61
  43. package/es/types/Enum/GlobalRegime.js.map +1 -1
  44. package/es/types/Enum/MealExpenseTresholds.d.ts +8 -0
  45. package/es/types/Enum/MealExpenseTresholds.d.ts.map +1 -0
  46. package/es/types/Enum/MealExpenseTresholds.js +11 -0
  47. package/es/types/Enum/MealExpenseTresholds.js.map +1 -0
  48. package/es/types/Enum/MimeType.d.ts +24 -0
  49. package/es/types/Enum/MimeType.d.ts.map +1 -0
  50. package/es/types/Enum/MimeType.js +24 -0
  51. package/es/types/Enum/MimeType.js.map +1 -0
  52. package/es/types/Enum/PaymentMethod.d.ts +63 -0
  53. package/es/types/Enum/PaymentMethod.d.ts.map +1 -0
  54. package/es/types/Enum/PaymentMethod.js +63 -0
  55. package/es/types/Enum/PaymentMethod.js.map +1 -0
  56. package/es/types/Enum/ProductType.d.ts +6 -4
  57. package/es/types/Enum/ProductType.d.ts.map +1 -1
  58. package/es/types/Enum/ProductType.js +14 -6
  59. package/es/types/Enum/ProductType.js.map +1 -1
  60. package/es/types/Enum/Vat.d.ts +9 -0
  61. package/es/types/Enum/Vat.d.ts.map +1 -1
  62. package/es/types/Enum/Vat.js +9 -0
  63. package/es/types/Enum/Vat.js.map +1 -1
  64. package/es/types/Interface/api/accountingFiles/Ocr.d.ts +14 -0
  65. package/es/types/Interface/api/accountingFiles/Ocr.d.ts.map +1 -0
  66. package/es/types/Interface/api/accountingFiles/Ocr.js +2 -0
  67. package/es/types/Interface/api/accountingFiles/Ocr.js.map +1 -0
  68. package/es/types/Interface/api/accountingFiles/OcrPayload.d.ts +15 -0
  69. package/es/types/Interface/api/accountingFiles/OcrPayload.d.ts.map +1 -0
  70. package/es/types/Interface/api/accountingFiles/OcrPayload.js +2 -0
  71. package/es/types/Interface/api/accountingFiles/OcrPayload.js.map +1 -0
  72. package/es/types/Interface/api/accountingFiles/OcrValue.d.ts +14 -0
  73. package/es/types/Interface/api/accountingFiles/OcrValue.d.ts.map +1 -0
  74. package/es/types/Interface/api/accountingFiles/OcrValue.js +2 -0
  75. package/es/types/Interface/api/accountingFiles/OcrValue.js.map +1 -0
  76. package/es/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts +7 -0
  77. package/es/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts.map +1 -0
  78. package/es/types/Interface/api/accountingFiles/queryAccountingFiles.js +32 -0
  79. package/es/types/Interface/api/accountingFiles/queryAccountingFiles.js.map +1 -0
  80. package/es/types/Interface/api/balanceSheet/ReadBalanceSheetTransaction.d.ts +7 -0
  81. package/es/types/Interface/api/balanceSheet/ReadBalanceSheetTransaction.d.ts.map +1 -0
  82. package/es/types/Interface/api/balanceSheet/ReadBalanceSheetTransaction.js +3 -0
  83. package/es/types/Interface/api/balanceSheet/ReadBalanceSheetTransaction.js.map +1 -0
  84. package/es/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.d.ts +1 -0
  85. package/es/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.d.ts.map +1 -1
  86. package/es/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.js +7 -0
  87. package/es/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.js.map +1 -1
  88. package/es/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.d.ts +1 -0
  89. package/es/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.d.ts.map +1 -1
  90. package/es/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.js +7 -0
  91. package/es/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.js.map +1 -1
  92. package/es/types/Interface/api/exercice/CreateExercice.d.ts +16 -0
  93. package/es/types/Interface/api/exercice/CreateExercice.d.ts.map +1 -0
  94. package/es/types/Interface/api/exercice/CreateExercice.js +101 -0
  95. package/es/types/Interface/api/exercice/CreateExercice.js.map +1 -0
  96. package/es/types/Interface/api/exercice/QueryExercice.d.ts +7 -0
  97. package/es/types/Interface/api/exercice/QueryExercice.d.ts.map +1 -0
  98. package/es/types/Interface/api/exercice/QueryExercice.js +39 -0
  99. package/es/types/Interface/api/exercice/QueryExercice.js.map +1 -0
  100. package/es/types/Interface/api/internalInvoicing/CreateInternalInvoicing.d.ts +5 -0
  101. package/es/types/Interface/api/internalInvoicing/CreateInternalInvoicing.d.ts.map +1 -0
  102. package/es/types/Interface/api/internalInvoicing/CreateInternalInvoicing.js +21 -0
  103. package/es/types/Interface/api/internalInvoicing/CreateInternalInvoicing.js.map +1 -0
  104. package/es/types/Interface/api/journal/Journals.d.ts +44 -0
  105. package/es/types/Interface/api/journal/Journals.d.ts.map +1 -0
  106. package/es/types/Interface/api/journal/Journals.js +13 -0
  107. package/es/types/Interface/api/journal/Journals.js.map +1 -0
  108. package/es/types/Interface/api/journal/QueryJournal.d.ts +6 -0
  109. package/es/types/Interface/api/journal/QueryJournal.d.ts.map +1 -0
  110. package/es/types/Interface/api/journal/QueryJournal.js +28 -0
  111. package/es/types/Interface/api/journal/QueryJournal.js.map +1 -0
  112. package/es/types/Interface/api/mealExpense/CreateMealExpense.d.ts +4 -0
  113. package/es/types/Interface/api/mealExpense/CreateMealExpense.d.ts.map +1 -0
  114. package/es/types/Interface/api/mealExpense/CreateMealExpense.js +25 -0
  115. package/es/types/Interface/api/mealExpense/CreateMealExpense.js.map +1 -0
  116. package/es/types/Interface/api/mealExpense/ReadMealExpense.d.ts +8 -0
  117. package/es/types/Interface/api/mealExpense/ReadMealExpense.d.ts.map +1 -0
  118. package/es/types/Interface/api/mealExpense/ReadMealExpense.js +3 -0
  119. package/es/types/Interface/api/mealExpense/ReadMealExpense.js.map +1 -0
  120. package/es/types/Interface/api/product/CreateProduct.d.ts.map +1 -1
  121. package/es/types/Interface/api/product/CreateProduct.js +3 -2
  122. package/es/types/Interface/api/product/CreateProduct.js.map +1 -1
  123. package/es/types/Interface/api/product/QueryProduct.d.ts.map +1 -1
  124. package/es/types/Interface/api/product/QueryProduct.js +4 -2
  125. package/es/types/Interface/api/product/QueryProduct.js.map +1 -1
  126. package/es/types/Interface/api/registration/CreateRegistration.d.ts +6 -0
  127. package/es/types/Interface/api/registration/CreateRegistration.d.ts.map +1 -0
  128. package/es/types/Interface/api/registration/CreateRegistration.js +25 -0
  129. package/es/types/Interface/api/registration/CreateRegistration.js.map +1 -0
  130. package/es/types/Interface/api/registration/ReadRegistration.d.ts +3 -0
  131. package/es/types/Interface/api/registration/ReadRegistration.d.ts.map +1 -0
  132. package/es/types/Interface/api/registration/ReadRegistration.js +2 -0
  133. package/es/types/Interface/api/registration/ReadRegistration.js.map +1 -0
  134. package/es/types/Interface/models/IApiError.d.ts +2 -1
  135. package/es/types/Interface/models/IApiError.d.ts.map +1 -1
  136. package/es/types/Interface/models/IApiError.js +2 -0
  137. package/es/types/Interface/models/IApiError.js.map +1 -1
  138. package/es/types/Interface/models/IBalanceSheetModule.d.ts +1 -0
  139. package/es/types/Interface/models/IBalanceSheetModule.d.ts.map +1 -1
  140. package/es/types/Interface/models/IBalanceSheetModule.js.map +1 -1
  141. package/es/types/Interface/models/IExercice.d.ts +8 -8
  142. package/es/types/Interface/models/IExercice.d.ts.map +1 -1
  143. package/es/types/Interface/models/IExercice.js.map +1 -1
  144. package/es/types/Interface/models/IGedFile.d.ts +10 -10
  145. package/es/types/Interface/models/IGedFile.d.ts.map +1 -1
  146. package/es/types/Interface/models/IGedFile.js.map +1 -1
  147. package/es/types/Interface/models/IPayment.d.ts +19 -15
  148. package/es/types/Interface/models/IPayment.d.ts.map +1 -1
  149. package/es/types/Interface/models/IPayment.js.map +1 -1
  150. package/es/types/Interface/models/IRegistration.d.ts +21 -0
  151. package/es/types/Interface/models/IRegistration.d.ts.map +1 -0
  152. package/es/types/Interface/models/IRegistration.js +2 -0
  153. package/es/types/Interface/models/IRegistration.js.map +1 -0
  154. package/es/types/Interface/models/ISociety.d.ts +1 -0
  155. package/es/types/Interface/models/ISociety.d.ts.map +1 -1
  156. package/es/types/Interface/models/ISociety.js.map +1 -1
  157. package/es/types/index.d.ts +17 -0
  158. package/es/types/index.d.ts.map +1 -1
  159. package/es/types/index.js +17 -0
  160. package/es/types/index.js.map +1 -1
  161. package/es/utils/validators/formattedDateString.validator.d.ts +3 -0
  162. package/es/utils/validators/formattedDateString.validator.d.ts.map +1 -0
  163. package/es/utils/validators/formattedDateString.validator.js +19 -0
  164. package/es/utils/validators/formattedDateString.validator.js.map +1 -0
  165. package/js/api/resources/AccountingFiles.js +29 -0
  166. package/js/api/resources/AccountingFiles.js.map +1 -0
  167. package/js/api/resources/InternalInvoicing.js +18 -0
  168. package/js/api/resources/InternalInvoicing.js.map +1 -0
  169. package/js/api/resources/Journal.js +21 -0
  170. package/js/api/resources/Journal.js.map +1 -0
  171. package/js/api/resources/MealExpense.js +52 -0
  172. package/js/api/resources/MealExpense.js.map +1 -0
  173. package/js/api/resources/Product.js +12 -0
  174. package/js/api/resources/Product.js.map +1 -1
  175. package/js/api/resources/Registration.js +18 -0
  176. package/js/api/resources/Registration.js.map +1 -0
  177. package/js/api/resources.js +13 -1
  178. package/js/api/resources.js.map +1 -1
  179. package/js/types/Enum/AccountingFileType.js +1 -0
  180. package/js/types/Enum/AccountingFileType.js.map +1 -1
  181. package/js/types/Enum/CerfaType.js +16 -14
  182. package/js/types/Enum/CerfaType.js.map +1 -1
  183. package/js/types/Enum/Ged.js +2 -2
  184. package/js/types/Enum/Ged.js.map +1 -1
  185. package/js/types/Enum/GlobalRegime.js +61 -61
  186. package/js/types/Enum/GlobalRegime.js.map +1 -1
  187. package/js/types/Enum/MealExpenseTresholds.js +16 -0
  188. package/js/types/Enum/MealExpenseTresholds.js.map +1 -0
  189. package/js/types/Enum/MimeType.js +29 -0
  190. package/js/types/Enum/MimeType.js.map +1 -0
  191. package/js/types/Enum/PaymentMethod.js +68 -0
  192. package/js/types/Enum/PaymentMethod.js.map +1 -0
  193. package/js/types/Enum/ProductType.js +14 -7
  194. package/js/types/Enum/ProductType.js.map +1 -1
  195. package/js/types/Enum/Vat.js +18 -9
  196. package/js/types/Enum/Vat.js.map +1 -1
  197. package/js/types/Interface/api/accountingFiles/Ocr.js +6 -0
  198. package/js/types/Interface/api/accountingFiles/Ocr.js.map +1 -0
  199. package/js/types/Interface/api/accountingFiles/OcrPayload.js +6 -0
  200. package/js/types/Interface/api/accountingFiles/OcrPayload.js.map +1 -0
  201. package/js/types/Interface/api/accountingFiles/OcrValue.js +6 -0
  202. package/js/types/Interface/api/accountingFiles/OcrValue.js.map +1 -0
  203. package/js/types/Interface/api/accountingFiles/queryAccountingFiles.js +35 -0
  204. package/js/types/Interface/api/accountingFiles/queryAccountingFiles.js.map +1 -0
  205. package/js/types/Interface/api/balanceSheet/ReadBalanceSheetTransaction.js +10 -0
  206. package/js/types/Interface/api/balanceSheet/ReadBalanceSheetTransaction.js.map +1 -0
  207. package/js/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.js +2 -0
  208. package/js/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.js.map +1 -1
  209. package/js/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.js +2 -0
  210. package/js/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.js.map +1 -1
  211. package/js/types/Interface/api/exercice/CreateExercice.js +55 -0
  212. package/js/types/Interface/api/exercice/CreateExercice.js.map +1 -0
  213. package/js/types/Interface/api/exercice/QueryExercice.js +37 -0
  214. package/js/types/Interface/api/exercice/QueryExercice.js.map +1 -0
  215. package/js/types/Interface/api/internalInvoicing/CreateInternalInvoicing.js +29 -0
  216. package/js/types/Interface/api/internalInvoicing/CreateInternalInvoicing.js.map +1 -0
  217. package/js/types/Interface/api/journal/Journals.js +30 -0
  218. package/js/types/Interface/api/journal/Journals.js.map +1 -0
  219. package/js/types/Interface/api/journal/QueryJournal.js +33 -0
  220. package/js/types/Interface/api/journal/QueryJournal.js.map +1 -0
  221. package/js/types/Interface/api/mealExpense/CreateMealExpense.js +33 -0
  222. package/js/types/Interface/api/mealExpense/CreateMealExpense.js.map +1 -0
  223. package/js/types/Interface/api/mealExpense/ReadMealExpense.js +10 -0
  224. package/js/types/Interface/api/mealExpense/ReadMealExpense.js.map +1 -0
  225. package/js/types/Interface/api/product/CreateProduct.js +1 -1
  226. package/js/types/Interface/api/product/CreateProduct.js.map +1 -1
  227. package/js/types/Interface/api/product/QueryProduct.js +3 -1
  228. package/js/types/Interface/api/product/QueryProduct.js.map +1 -1
  229. package/js/types/Interface/api/registration/CreateRegistration.js +35 -0
  230. package/js/types/Interface/api/registration/CreateRegistration.js.map +1 -0
  231. package/js/types/Interface/api/registration/ReadRegistration.js +6 -0
  232. package/js/types/Interface/api/registration/ReadRegistration.js.map +1 -0
  233. package/js/types/Interface/models/IApiError.js +3 -1
  234. package/js/types/Interface/models/IApiError.js.map +1 -1
  235. package/js/types/Interface/models/IRegistration.js +6 -0
  236. package/js/types/Interface/models/IRegistration.js.map +1 -0
  237. package/js/types/index.js +204 -0
  238. package/js/types/index.js.map +1 -1
  239. package/js/utils/validators/formattedDateString.validator.js +29 -0
  240. package/js/utils/validators/formattedDateString.validator.js.map +1 -0
  241. package/package.json +1 -1
  242. package/ts/api/resources/AccountingFiles.ts +18 -0
  243. package/ts/api/resources/InternalInvoicing.ts +10 -0
  244. package/ts/api/resources/Journal.ts +11 -0
  245. package/ts/api/resources/MealExpense.ts +41 -0
  246. package/ts/api/resources/Product.ts +12 -0
  247. package/ts/api/resources/Registration.ts +8 -0
  248. package/ts/api/resources.ts +8 -0
  249. package/ts/types/Enum/AccountingFileType.ts +1 -0
  250. package/ts/types/Enum/CerfaType.ts +14 -14
  251. package/ts/types/Enum/Ged.ts +1 -1
  252. package/ts/types/Enum/GlobalRegime.ts +61 -61
  253. package/ts/types/Enum/MealExpenseTresholds.ts +17 -0
  254. package/ts/types/Enum/MimeType.ts +23 -0
  255. package/ts/types/Enum/PaymentMethod.ts +62 -0
  256. package/ts/types/Enum/ProductType.ts +21 -5
  257. package/ts/types/Enum/Vat.ts +9 -0
  258. package/ts/types/Interface/api/accountingFiles/Ocr.ts +13 -0
  259. package/ts/types/Interface/api/accountingFiles/OcrPayload.ts +15 -0
  260. package/ts/types/Interface/api/accountingFiles/OcrValue.ts +13 -0
  261. package/ts/types/Interface/api/accountingFiles/queryAccountingFiles.ts +18 -0
  262. package/ts/types/Interface/api/balanceSheet/ReadBalanceSheetTransaction.ts +6 -0
  263. package/ts/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.ts +6 -0
  264. package/ts/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.ts +6 -0
  265. package/ts/types/Interface/api/exercice/CreateExercice.ts +80 -0
  266. package/ts/types/Interface/api/exercice/QueryExercice.ts +25 -0
  267. package/ts/types/Interface/api/internalInvoicing/CreateInternalInvoicing.ts +9 -0
  268. package/ts/types/Interface/api/journal/Journals.ts +48 -0
  269. package/ts/types/Interface/api/journal/QueryJournal.ts +15 -0
  270. package/ts/types/Interface/api/mealExpense/CreateMealExpense.ts +16 -0
  271. package/ts/types/Interface/api/mealExpense/ReadMealExpense.ts +8 -0
  272. package/ts/types/Interface/api/product/CreateProduct.ts +2 -2
  273. package/ts/types/Interface/api/product/QueryProduct.ts +6 -2
  274. package/ts/types/Interface/api/registration/CreateRegistration.ts +13 -0
  275. package/ts/types/Interface/api/registration/ReadRegistration.ts +3 -0
  276. package/ts/types/Interface/models/IApiError.ts +2 -0
  277. package/ts/types/Interface/models/IBalanceSheetModule.ts +1 -0
  278. package/ts/types/Interface/models/IExercice.ts +8 -8
  279. package/ts/types/Interface/models/IGedFile.ts +10 -10
  280. package/ts/types/Interface/models/IPayment.ts +19 -15
  281. package/ts/types/Interface/models/IRegistration.ts +23 -0
  282. package/ts/types/Interface/models/ISociety.ts +1 -0
  283. package/ts/types/index.ts +18 -1
  284. package/ts/utils/validators/formattedDateString.validator.ts +24 -0
@@ -0,0 +1,101 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var __metadata = (this && this.__metadata) || function (k, v) {
8
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
+ };
10
+ import { IsBoolean, IsDate, IsNumber, IsOptional, } from 'class-validator';
11
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils/decorators';
12
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
13
+ export class CreateExercice {
14
+ }
15
+ __decorate([
16
+ ApiProperty(),
17
+ IsDate(),
18
+ __metadata("design:type", Date)
19
+ ], CreateExercice.prototype, "startDate", void 0);
20
+ __decorate([
21
+ ApiProperty(),
22
+ IsDate(),
23
+ __metadata("design:type", Date)
24
+ ], CreateExercice.prototype, "endDate", void 0);
25
+ __decorate([
26
+ ApiPropertyOptional(),
27
+ IsBoolean(),
28
+ ToBoolean(),
29
+ IsOptional(),
30
+ __metadata("design:type", Boolean)
31
+ ], CreateExercice.prototype, "isBack", void 0);
32
+ __decorate([
33
+ ApiPropertyOptional(),
34
+ IsBoolean(),
35
+ ToBoolean(),
36
+ IsOptional(),
37
+ __metadata("design:type", Boolean)
38
+ ], CreateExercice.prototype, "close", void 0);
39
+ __decorate([
40
+ ApiPropertyOptional(),
41
+ IsBoolean(),
42
+ ToBoolean(),
43
+ IsOptional(),
44
+ __metadata("design:type", Boolean)
45
+ ], CreateExercice.prototype, "allAnnote", void 0);
46
+ __decorate([
47
+ ApiPropertyOptional(),
48
+ IsBoolean(),
49
+ ToBoolean(),
50
+ IsOptional(),
51
+ __metadata("design:type", Boolean)
52
+ ], CreateExercice.prototype, "current", void 0);
53
+ __decorate([
54
+ ApiPropertyOptional(),
55
+ IsBoolean(),
56
+ ToBoolean(),
57
+ IsOptional(),
58
+ __metadata("design:type", Boolean)
59
+ ], CreateExercice.prototype, "withApproval", void 0);
60
+ __decorate([
61
+ ApiPropertyOptional(),
62
+ IsBoolean(),
63
+ ToBoolean(),
64
+ IsOptional(),
65
+ __metadata("design:type", Boolean)
66
+ ], CreateExercice.prototype, "reviewGuide", void 0);
67
+ __decorate([
68
+ ApiPropertyOptional(),
69
+ IsBoolean(),
70
+ ToBoolean(),
71
+ IsOptional(),
72
+ __metadata("design:type", Boolean)
73
+ ], CreateExercice.prototype, "summaryNote", void 0);
74
+ __decorate([
75
+ ApiPropertyOptional(),
76
+ IsBoolean(),
77
+ ToBoolean(),
78
+ IsOptional(),
79
+ __metadata("design:type", Boolean)
80
+ ], CreateExercice.prototype, "receiptJeDeclare", void 0);
81
+ __decorate([
82
+ ApiPropertyOptional(),
83
+ IsBoolean(),
84
+ ToBoolean(),
85
+ IsOptional(),
86
+ __metadata("design:type", Boolean)
87
+ ], CreateExercice.prototype, "annualFolderEdition", void 0);
88
+ __decorate([
89
+ ApiPropertyOptional(),
90
+ IsBoolean(),
91
+ ToBoolean(),
92
+ IsOptional(),
93
+ __metadata("design:type", Boolean)
94
+ ], CreateExercice.prototype, "processClossingExercice", void 0);
95
+ __decorate([
96
+ ApiPropertyOptional(),
97
+ IsNumber(),
98
+ IsOptional(),
99
+ __metadata("design:type", Number)
100
+ ], CreateExercice.prototype, "idSociety", void 0);
101
+ //# sourceMappingURL=CreateExercice.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateExercice.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/exercice/CreateExercice.ts"],"names":[],"mappings":";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qB;AAKlC;IAHC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;iDACK","sourcesContent":["import {\n IsBoolean, IsDate, IsNumber, IsOptional,\n} from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../../utils/decorators';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class CreateExercice {\n @ApiProperty()\n @IsDate()\n startDate: Date;\n\n @ApiProperty()\n @IsDate()\n endDate: Date;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isBack?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n close?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n allAnnote?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n current?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n withApproval?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n reviewGuide?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n summaryNote?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n receiptJeDeclare?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n annualFolderEdition?: boolean;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n processClossingExercice?: boolean;\n\n @ApiPropertyOptional()\n @IsNumber()\n @IsOptional()\n idSociety: number;\n}"]}
@@ -0,0 +1,7 @@
1
+ export declare class QueryExercice {
2
+ id?: number | number[];
3
+ startDate?: Date;
4
+ endDate?: Date;
5
+ isBack?: boolean;
6
+ }
7
+ //# sourceMappingURL=QueryExercice.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QueryExercice.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/exercice/QueryExercice.ts"],"names":[],"mappings":"AAIA,qBAAa,aAAa;IAGxB,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAKvB,SAAS,CAAC,EAAE,IAAI,CAAC;IAKjB,OAAO,CAAC,EAAE,IAAI,CAAC;IAMf,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB"}
@@ -0,0 +1,39 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var __metadata = (this && this.__metadata) || function (k, v) {
8
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
+ };
10
+ import { IsBoolean, IsDate, IsOptional } from 'class-validator';
11
+ import { ApiPropertyOptional } from '../../../../utils/decorators';
12
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
13
+ export class QueryExercice {
14
+ }
15
+ __decorate([
16
+ ApiPropertyOptional(),
17
+ IsOptional(),
18
+ __metadata("design:type", Object)
19
+ ], QueryExercice.prototype, "id", void 0);
20
+ __decorate([
21
+ ApiPropertyOptional(),
22
+ IsDate(),
23
+ IsOptional(),
24
+ __metadata("design:type", Date)
25
+ ], QueryExercice.prototype, "startDate", void 0);
26
+ __decorate([
27
+ ApiPropertyOptional(),
28
+ IsDate(),
29
+ IsOptional(),
30
+ __metadata("design:type", Date)
31
+ ], QueryExercice.prototype, "endDate", void 0);
32
+ __decorate([
33
+ ApiPropertyOptional(),
34
+ IsBoolean(),
35
+ ToBoolean(),
36
+ IsOptional(),
37
+ __metadata("design:type", Boolean)
38
+ ], QueryExercice.prototype, "isBack", void 0);
39
+ //# sourceMappingURL=QueryExercice.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QueryExercice.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/exercice/QueryExercice.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAE3E,MAAM,OAAO,aAAa;CAoBzB;AAjBC;IAFC,mBAAmB,EAAE;IACrB,UAAU,EAAE;;yCACU;AAKvB;IAHC,mBAAmB,EAAE;IACrB,MAAM,EAAE;IACR,UAAU,EAAE;8BACD,IAAI;gDAAC;AAKjB;IAHC,mBAAmB,EAAE;IACrB,MAAM,EAAE;IACR,UAAU,EAAE;8BACH,IAAI;8CAAC;AAMf;IAJC,mBAAmB,EAAE;IACrB,SAAS,EAAE;IACX,SAAS,EAAE;IACX,UAAU,EAAE;;6CACI","sourcesContent":["import { IsBoolean, IsDate, IsOptional } from 'class-validator';\nimport { ApiPropertyOptional } from '../../../../utils/decorators';\nimport { ToBoolean } from '../../../../utils/transforms/boolean.transform';\n\nexport class QueryExercice {\n @ApiPropertyOptional()\n @IsOptional()\n id?: number | number[];\n\n @ApiPropertyOptional()\n @IsDate()\n @IsOptional()\n startDate?: Date;\n\n @ApiPropertyOptional()\n @IsDate()\n @IsOptional()\n endDate?: Date;\n\n @ApiPropertyOptional()\n @IsBoolean()\n @ToBoolean()\n @IsOptional()\n isBack?: boolean;\n}"]}
@@ -0,0 +1,5 @@
1
+ export declare class CreateInternalInvoicing {
2
+ month: number;
3
+ year: number;
4
+ }
5
+ //# sourceMappingURL=CreateInternalInvoicing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateInternalInvoicing.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/internalInvoicing/CreateInternalInvoicing.ts"],"names":[],"mappings":"AAEA,qBAAa,uBAAuB;IAElC,KAAK,EAAE,MAAM,CAAC;IAGd,IAAI,EAAE,MAAM,CAAC;CACd"}
@@ -0,0 +1,21 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var __metadata = (this && this.__metadata) || function (k, v) {
8
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
+ };
10
+ import { ApiProperty } from '../../../../utils';
11
+ export class CreateInternalInvoicing {
12
+ }
13
+ __decorate([
14
+ ApiProperty(),
15
+ __metadata("design:type", Number)
16
+ ], CreateInternalInvoicing.prototype, "month", void 0);
17
+ __decorate([
18
+ ApiProperty(),
19
+ __metadata("design:type", Number)
20
+ ], CreateInternalInvoicing.prototype, "year", void 0);
21
+ //# sourceMappingURL=CreateInternalInvoicing.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateInternalInvoicing.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/internalInvoicing/CreateInternalInvoicing.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,MAAM,OAAO,uBAAuB;CAMnC;AAJC;IADC,WAAW,EAAE;;sDACA;AAGd;IADC,WAAW,EAAE;;qDACD","sourcesContent":["import { ApiProperty } from '../../../../utils';\n\nexport class CreateInternalInvoicing {\n @ApiProperty()\n month: number;\n\n @ApiProperty()\n year: number;\n}\n"]}
@@ -0,0 +1,44 @@
1
+ export declare class JournalDebitCredit {
2
+ debit?: number;
3
+ credit?: number;
4
+ }
5
+ export declare class PeriodDatum extends JournalDebitCredit {
6
+ dateValue: string | Date;
7
+ invoiceNumber: string;
8
+ designation: string;
9
+ account: number;
10
+ accountName: string;
11
+ master: boolean;
12
+ }
13
+ export declare class IPeriodsCentralisation {
14
+ [index: string]: {
15
+ account: number;
16
+ accountName: string;
17
+ } & JournalDebitCredit;
18
+ }
19
+ export declare class IPeriods {
20
+ [index: string]: {
21
+ monthYearPeriods: string;
22
+ data?: PeriodDatum[];
23
+ dataCentralisation?: IPeriodsCentralisation;
24
+ total: {
25
+ accumulated: JournalDebitCredit;
26
+ month: JournalDebitCredit;
27
+ };
28
+ };
29
+ }
30
+ export declare class Journals {
31
+ [index: string]: {
32
+ idJournal: number;
33
+ name: string;
34
+ fullName: string;
35
+ periods?: IPeriods;
36
+ };
37
+ }
38
+ export declare class JsonExportJournal {
39
+ idSociety: number;
40
+ startDate: string;
41
+ endDate: string;
42
+ data: Journals;
43
+ }
44
+ //# sourceMappingURL=Journals.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Journals.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/journal/Journals.ts"],"names":[],"mappings":"AAAA,qBAAa,kBAAkB;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,WAAY,SAAQ,kBAAkB;IACjD,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,qBAAa,sBAAsB;IACjC,CAAC,KAAK,EAAE,MAAM,GAAG;QACf,OAAO,EAAE,MAAM,CAAC;QAChB,WAAW,EAAE,MAAM,CAAC;KACrB,GAAG,kBAAkB,CAAC;CACxB;AAED,qBAAa,QAAQ;IACnB,CAAC,KAAK,EAAE,MAAM,GAAG;QACf,gBAAgB,EAAE,MAAM,CAAC;QACzB,IAAI,CAAC,EAAE,WAAW,EAAE,CAAC;QACrB,kBAAkB,CAAC,EAAE,sBAAsB,CAAC;QAC5C,KAAK,EAAE;YACL,WAAW,EAAE,kBAAkB,CAAC;YAChC,KAAK,EAAE,kBAAkB,CAAC;SAC3B,CAAC;KACH,CAAC;CACH;AACD,qBAAa,QAAQ;IACnB,CAAC,KAAK,EAAE,MAAM,GAAG;QACf,SAAS,EAAE,MAAM,CAAC;QAElB,IAAI,EAAE,MAAM,CAAC;QACb,QAAQ,EAAE,MAAM,CAAC;QACjB,OAAO,CAAC,EAAE,QAAQ,CAAC;KACpB,CAAC;CACH;AAED,qBAAa,iBAAiB;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,QAAQ,CAAC;CAChB"}
@@ -0,0 +1,13 @@
1
+ export class JournalDebitCredit {
2
+ }
3
+ export class PeriodDatum extends JournalDebitCredit {
4
+ }
5
+ export class IPeriodsCentralisation {
6
+ }
7
+ export class IPeriods {
8
+ }
9
+ export class Journals {
10
+ }
11
+ export class JsonExportJournal {
12
+ }
13
+ //# sourceMappingURL=Journals.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Journals.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/journal/Journals.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,kBAAkB;CAG9B;AAED,MAAM,OAAO,WAAY,SAAQ,kBAAkB;CAOlD;AAED,MAAM,OAAO,sBAAsB;CAKlC;AAED,MAAM,OAAO,QAAQ;CAUpB;AACD,MAAM,OAAO,QAAQ;CAQpB;AAED,MAAM,OAAO,iBAAiB;CAK7B","sourcesContent":["export class JournalDebitCredit {\n debit?: number;\n credit?: number;\n}\n\nexport class PeriodDatum extends JournalDebitCredit {\n dateValue: string | Date;\n invoiceNumber: string;\n designation: string;\n account: number;\n accountName: string;\n master: boolean;\n}\n\nexport class IPeriodsCentralisation {\n [index: string]: {\n account: number;\n accountName: string;\n } & JournalDebitCredit;\n}\n\nexport class IPeriods {\n [index: string]: {\n monthYearPeriods: string;\n data?: PeriodDatum[];\n dataCentralisation?: IPeriodsCentralisation;\n total: {\n accumulated: JournalDebitCredit;\n month: JournalDebitCredit;\n };\n };\n}\nexport class Journals {\n [index: string]: {\n idJournal: number;\n // eslint-disable-next-line no-restricted-globals\n name: string;\n fullName: string;\n periods?: IPeriods;\n };\n}\n\nexport class JsonExportJournal {\n idSociety: number;\n startDate: string;\n endDate: string;\n data: Journals;\n}\n"]}
@@ -0,0 +1,6 @@
1
+ export declare class QueryJournal {
2
+ startDate: string;
3
+ endDate: string;
4
+ accountingJournalIds?: number[];
5
+ }
6
+ //# sourceMappingURL=QueryJournal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QueryJournal.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/journal/QueryJournal.ts"],"names":[],"mappings":"AAGA,qBAAa,YAAY;IAGvB,SAAS,EAAE,MAAM,CAAC;IAIlB,OAAO,EAAE,MAAM,CAAC;IAGhB,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAC;CACjC"}
@@ -0,0 +1,28 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var __metadata = (this && this.__metadata) || function (k, v) {
8
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
+ };
10
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
11
+ import { IsFormattedDateString } from '../../../../utils/validators/formattedDateString.validator';
12
+ export class QueryJournal {
13
+ }
14
+ __decorate([
15
+ ApiProperty(),
16
+ IsFormattedDateString(),
17
+ __metadata("design:type", String)
18
+ ], QueryJournal.prototype, "startDate", void 0);
19
+ __decorate([
20
+ ApiProperty(),
21
+ IsFormattedDateString(),
22
+ __metadata("design:type", String)
23
+ ], QueryJournal.prototype, "endDate", void 0);
24
+ __decorate([
25
+ ApiPropertyOptional(),
26
+ __metadata("design:type", Array)
27
+ ], QueryJournal.prototype, "accountingJournalIds", void 0);
28
+ //# sourceMappingURL=QueryJournal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QueryJournal.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/journal/QueryJournal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;AAEnG,MAAM,OAAO,YAAY;CAWxB;AARC;IAFC,WAAW,EAAE;IACb,qBAAqB,EAAE;;+CACN;AAIlB;IAFC,WAAW,EAAE;IACb,qBAAqB,EAAE;;6CACR;AAGhB;IADC,mBAAmB,EAAE;;0DACU","sourcesContent":["import { ApiProperty, ApiPropertyOptional } from '../../../../utils';\nimport { IsFormattedDateString } from '../../../../utils/validators/formattedDateString.validator';\n\nexport class QueryJournal {\n @ApiProperty()\n @IsFormattedDateString()\n startDate: string;\n\n @ApiProperty()\n @IsFormattedDateString()\n endDate: string;\n\n @ApiPropertyOptional()\n accountingJournalIds?: number[];\n}\n"]}
@@ -0,0 +1,4 @@
1
+ export declare class CreateMealExpense {
2
+ transactionIds: Array<number>;
3
+ }
4
+ //# sourceMappingURL=CreateMealExpense.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateMealExpense.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/mealExpense/CreateMealExpense.ts"],"names":[],"mappings":"AAKA,qBAAa,iBAAiB;IAS5B,cAAc,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC/B"}
@@ -0,0 +1,25 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var __metadata = (this && this.__metadata) || function (k, v) {
8
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
+ };
10
+ import { ArrayUnique, IsInt, IsPositive, } from 'class-validator';
11
+ import { ApiProperty } from '../../../..';
12
+ export class CreateMealExpense {
13
+ }
14
+ __decorate([
15
+ ApiProperty(),
16
+ ArrayUnique(),
17
+ IsInt({
18
+ each: true,
19
+ }),
20
+ IsPositive({
21
+ each: true,
22
+ }),
23
+ __metadata("design:type", Array)
24
+ ], CreateMealExpense.prototype, "transactionIds", void 0);
25
+ //# sourceMappingURL=CreateMealExpense.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateMealExpense.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/mealExpense/CreateMealExpense.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,WAAW,EAAE,KAAK,EAAE,UAAU,GAC/B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,MAAM,OAAO,iBAAiB;CAU7B;AADC;IARC,WAAW,EAAE;IACb,WAAW,EAAE;IACb,KAAK,CAAC;QACL,IAAI,EAAE,IAAI;KACX,CAAC;IACD,UAAU,CAAC;QACV,IAAI,EAAE,IAAI;KACX,CAAC;8BACc,KAAK;yDAAS","sourcesContent":["import {\n ArrayUnique, IsInt, IsPositive,\n} from 'class-validator';\nimport { ApiProperty } from '../../../..';\n\nexport class CreateMealExpense {\n @ApiProperty()\n @ArrayUnique()\n @IsInt({\n each: true,\n })\n @IsPositive({\n each: true,\n })\n transactionIds: Array<number>;\n}"]}
@@ -0,0 +1,8 @@
1
+ import { IAccountingTransaction } from '../../..';
2
+ export declare class ReadMealExpense {
3
+ transactionNumber: number;
4
+ totalPrice: number;
5
+ deductiblePrice: number;
6
+ transactions: Array<IAccountingTransaction>;
7
+ }
8
+ //# sourceMappingURL=ReadMealExpense.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReadMealExpense.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/mealExpense/ReadMealExpense.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAElD,qBAAa,eAAe;IAC1B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,KAAK,CAAC,sBAAsB,CAAC,CAAC;CAC7C"}
@@ -0,0 +1,3 @@
1
+ export class ReadMealExpense {
2
+ }
3
+ //# sourceMappingURL=ReadMealExpense.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReadMealExpense.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/mealExpense/ReadMealExpense.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,eAAe;CAK3B","sourcesContent":["import { IAccountingTransaction } from '../../..';\n\nexport class ReadMealExpense {\n transactionNumber: number;\n totalPrice: number;\n deductiblePrice: number;\n transactions: Array<IAccountingTransaction>;\n}"]}
@@ -1 +1 @@
1
- {"version":3,"file":"CreateProduct.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/product/CreateProduct.ts"],"names":[],"mappings":"AAQA,qBAAa,aAAa;IAGxB,IAAI,EAAE,MAAM,CAAC;IAWb,gBAAgB,EAAE,MAAM,CAAC;IAKzB,KAAK,EAAE,MAAM,CAAC;IAKd,IAAI,EAAE,MAAM,CAAC;IAIb,IAAI,EAAE,MAAM,CAAC;IAKb,OAAO,CAAC,EAAE,MAAM,CAAC;IAKjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
1
+ {"version":3,"file":"CreateProduct.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/product/CreateProduct.ts"],"names":[],"mappings":"AAOA,qBAAa,aAAa;IAGxB,IAAI,EAAE,MAAM,CAAC;IAWb,gBAAgB,EAAE,MAAM,CAAC;IAKzB,KAAK,EAAE,MAAM,CAAC;IAKd,IAAI,EAAE,MAAM,CAAC;IAKb,IAAI,EAAE,MAAM,CAAC;IAKb,OAAO,CAAC,EAAE,MAAM,CAAC;IAKjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
@@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
7
  var __metadata = (this && this.__metadata) || function (k, v) {
8
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
9
  };
10
- import { IsEnum, IsNumber, IsOptional, IsString, Min, } from 'class-validator';
10
+ import { IsNumber, IsOptional, IsString, Min, } from 'class-validator';
11
11
  import { ProductType, Unit, Vat } from '../../..';
12
12
  import { ApiProperty, ApiPropertyOptional } from '../../../..';
13
13
  import { IsObjectId } from '../../../../utils/validators/objectId.validator';
@@ -44,7 +44,8 @@ __decorate([
44
44
  ], CreateProduct.prototype, "unit", void 0);
45
45
  __decorate([
46
46
  ApiProperty(),
47
- IsEnum(ProductType),
47
+ IsNumber(),
48
+ IsObjectId(ProductType),
48
49
  __metadata("design:type", Number)
49
50
  ], CreateProduct.prototype, "type", void 0);
50
51
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"CreateProduct.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/product/CreateProduct.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,MAAM,EACN,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,GACpC,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAC;AAE7E,MAAM,OAAO,aAAa;CAuCzB;AApCC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;2CACE;AAWb;IATC,WAAW,EAAE;IACb,QAAQ,CAAC;QACR,gBAAgB,EAAE,CAAC;KACpB,EAAE;QACD,OAAO,EAAE,iDAAiD;KAC3D,CAAC;IACD,GAAG,CAAC,CAAC,EAAE;QACN,OAAO,EAAE,0BAA0B;KACpC,CAAC;;uDACuB;AAKzB;IAHC,WAAW,EAAE;IACb,QAAQ,EAAE;IACV,UAAU,CAAC,GAAG,CAAC;;4CACF;AAKd;IAHC,WAAW,EAAE;IACb,QAAQ,EAAE;IACV,UAAU,CAAC,IAAI,CAAC;;2CACJ;AAIb;IAFC,WAAW,EAAE;IACb,MAAM,CAAC,WAAW,CAAC;;2CACP;AAKb;IAHC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;8CACI;AAKjB;IAHC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;kDACQ","sourcesContent":["import {\n IsEnum,\n IsNumber, IsOptional, IsString, Min,\n} from 'class-validator';\nimport { ProductType, Unit, Vat } from '../../..';\nimport { ApiProperty, ApiPropertyOptional } from '../../../..';\nimport { IsObjectId } from '../../../../utils/validators/objectId.validator';\n\nexport class CreateProduct {\n @ApiProperty()\n @IsString()\n name: string;\n\n @ApiProperty()\n @IsNumber({\n maxDecimalPlaces: 6,\n }, {\n message: 'Price should be a number with maximum 6 decimal',\n })\n @Min(0, {\n message: 'Price should be positive',\n })\n priceTaxExcluded: number;\n\n @ApiProperty()\n @IsNumber()\n @IsObjectId(Vat)\n idVAT: number;\n\n @ApiProperty()\n @IsNumber()\n @IsObjectId(Unit)\n unit: number;\n\n @ApiProperty()\n @IsEnum(ProductType)\n type: number;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n comment?: string;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n codeProduct?: string;\n}\n"]}
1
+ {"version":3,"file":"CreateProduct.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/product/CreateProduct.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,GACpC,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAC;AAE7E,MAAM,OAAO,aAAa;CAwCzB;AArCC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;2CACE;AAWb;IATC,WAAW,EAAE;IACb,QAAQ,CAAC;QACR,gBAAgB,EAAE,CAAC;KACpB,EAAE;QACD,OAAO,EAAE,iDAAiD;KAC3D,CAAC;IACD,GAAG,CAAC,CAAC,EAAE;QACN,OAAO,EAAE,0BAA0B;KACpC,CAAC;;uDACuB;AAKzB;IAHC,WAAW,EAAE;IACb,QAAQ,EAAE;IACV,UAAU,CAAC,GAAG,CAAC;;4CACF;AAKd;IAHC,WAAW,EAAE;IACb,QAAQ,EAAE;IACV,UAAU,CAAC,IAAI,CAAC;;2CACJ;AAKb;IAHC,WAAW,EAAE;IACb,QAAQ,EAAE;IACV,UAAU,CAAC,WAAW,CAAC;;2CACX;AAKb;IAHC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;8CACI;AAKjB;IAHC,mBAAmB,EAAE;IACrB,QAAQ,EAAE;IACV,UAAU,EAAE;;kDACQ","sourcesContent":["import {\n IsNumber, IsOptional, IsString, Min,\n} from 'class-validator';\nimport { ProductType, Unit, Vat } from '../../..';\nimport { ApiProperty, ApiPropertyOptional } from '../../../..';\nimport { IsObjectId } from '../../../../utils/validators/objectId.validator';\n\nexport class CreateProduct {\n @ApiProperty()\n @IsString()\n name: string;\n\n @ApiProperty()\n @IsNumber({\n maxDecimalPlaces: 6,\n }, {\n message: 'Price should be a number with maximum 6 decimal',\n })\n @Min(0, {\n message: 'Price should be positive',\n })\n priceTaxExcluded: number;\n\n @ApiProperty()\n @IsNumber()\n @IsObjectId(Vat)\n idVAT: number;\n\n @ApiProperty()\n @IsNumber()\n @IsObjectId(Unit)\n unit: number;\n\n @ApiProperty()\n @IsNumber()\n @IsObjectId(ProductType)\n type: number;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n comment?: string;\n\n @ApiPropertyOptional()\n @IsString()\n @IsOptional()\n codeProduct?: string;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"QueryProduct.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/product/QueryProduct.ts"],"names":[],"mappings":"AAIA,qBAAa,YAAY;IAIvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAKhB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf"}
1
+ {"version":3,"file":"QueryProduct.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/product/QueryProduct.ts"],"names":[],"mappings":"AAOA,qBAAa,YAAY;IAIvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAMhB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf"}
@@ -7,9 +7,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
7
  var __metadata = (this && this.__metadata) || function (k, v) {
8
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
9
  };
10
- import { IsEnum, IsOptional, IsString } from 'class-validator';
10
+ import { IsNumber, IsOptional, IsString, } from 'class-validator';
11
11
  import { ProductType } from '../../..';
12
12
  import { ApiPropertyOptional } from '../../../..';
13
+ import { IsObjectId } from '../../../../utils/validators/objectId.validator';
13
14
  export class QueryProduct {
14
15
  }
15
16
  __decorate([
@@ -21,7 +22,8 @@ __decorate([
21
22
  __decorate([
22
23
  ApiPropertyOptional(),
23
24
  IsOptional(),
24
- IsEnum(ProductType),
25
+ IsNumber(),
26
+ IsObjectId(ProductType),
25
27
  __metadata("design:type", Number)
26
28
  ], QueryProduct.prototype, "type", void 0);
27
29
  //# sourceMappingURL=QueryProduct.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryProduct.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/product/QueryProduct.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAElD,MAAM,OAAO,YAAY;CAUxB;AANC;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;4CACK;AAKhB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,MAAM,CAAC,WAAW,CAAC;;0CACN","sourcesContent":["import { IsEnum, IsOptional, IsString } from 'class-validator';\nimport { ProductType } from '../../..';\nimport { ApiPropertyOptional } from '../../../..';\n\nexport class QueryProduct {\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n search?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsEnum(ProductType)\n type?: number;\n}"]}
1
+ {"version":3,"file":"QueryProduct.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/product/QueryProduct.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,QAAQ,EAAE,UAAU,EAAE,QAAQ,GAC/B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAC;AAE7E,MAAM,OAAO,YAAY;CAWxB;AAPC;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;4CACK;AAMhB;IAJC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;IACV,UAAU,CAAC,WAAW,CAAC;;0CACV","sourcesContent":["import {\n IsNumber, IsOptional, IsString,\n} from 'class-validator';\nimport { ProductType } from '../../..';\nimport { ApiPropertyOptional } from '../../../..';\nimport { IsObjectId } from '../../../../utils/validators/objectId.validator';\n\nexport class QueryProduct {\n @ApiPropertyOptional()\n @IsOptional()\n @IsString()\n search?: string;\n\n @ApiPropertyOptional()\n @IsOptional()\n @IsNumber()\n @IsObjectId(ProductType)\n type?: number;\n}"]}
@@ -0,0 +1,6 @@
1
+ import { ParamsGenerate2035 } from '../cerfa/CreateCerfa';
2
+ export declare class CreateRegistration {
3
+ payload: ParamsGenerate2035;
4
+ idCerfaType: number;
5
+ }
6
+ //# sourceMappingURL=CreateRegistration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateRegistration.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/registration/CreateRegistration.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,qBAAa,kBAAkB;IAE7B,OAAO,EAAE,kBAAkB,CAAC;IAI5B,WAAW,EAAE,MAAM,CAAC;CACrB"}
@@ -0,0 +1,25 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var __metadata = (this && this.__metadata) || function (k, v) {
8
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
+ };
10
+ import { IsEnum } from 'class-validator';
11
+ import { ApiProperty } from '../../../../utils';
12
+ import { CerfaType } from '../../../Enum/CerfaType';
13
+ import { ParamsGenerate2035 } from '../cerfa/CreateCerfa';
14
+ export class CreateRegistration {
15
+ }
16
+ __decorate([
17
+ ApiProperty(),
18
+ __metadata("design:type", ParamsGenerate2035)
19
+ ], CreateRegistration.prototype, "payload", void 0);
20
+ __decorate([
21
+ ApiProperty(),
22
+ IsEnum(CerfaType),
23
+ __metadata("design:type", Number)
24
+ ], CreateRegistration.prototype, "idCerfaType", void 0);
25
+ //# sourceMappingURL=CreateRegistration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateRegistration.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/registration/CreateRegistration.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,MAAM,OAAO,kBAAkB;CAO9B;AALC;IADC,WAAW,EAAE;8BACL,kBAAkB;mDAAC;AAI5B;IAFC,WAAW,EAAE;IACb,MAAM,CAAC,SAAS,CAAC;;uDACE","sourcesContent":["import { IsEnum } from 'class-validator';\nimport { ApiProperty } from '../../../../utils';\nimport { CerfaType } from '../../../Enum/CerfaType';\nimport { ParamsGenerate2035 } from '../cerfa/CreateCerfa';\n\nexport class CreateRegistration {\n @ApiProperty()\n payload: ParamsGenerate2035;\n\n @ApiProperty()\n @IsEnum(CerfaType)\n idCerfaType: number;\n}"]}
@@ -0,0 +1,3 @@
1
+ import { IRegistration } from '../../models/IRegistration';
2
+ export declare type ReadRegistration = IRegistration;
3
+ //# sourceMappingURL=ReadRegistration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReadRegistration.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/registration/ReadRegistration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAE3D,oBAAY,gBAAgB,GAAG,aAAa,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ReadRegistration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReadRegistration.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/registration/ReadRegistration.ts"],"names":[],"mappings":"","sourcesContent":["import { IRegistration } from '../../models/IRegistration';\n\nexport type ReadRegistration = IRegistration;"]}
@@ -105,7 +105,8 @@ export declare enum Code {
105
105
  fetchBankAccountFailed = "fetch_bank_account_failed",
106
106
  fetchTransactionsFailed = "fetch_transactions_failed",
107
107
  fetchNewTokenFailed = "fetch_new_token_failed",
108
- udpateTokenFailed = "update_token_failed"
108
+ udpateTokenFailed = "update_token_failed",
109
+ GENERIC_ACCOUNT_NOT_FOUND = "GENERIC_ACCOUNT_NOT_FOUND"
109
110
  }
110
111
  export interface IApiError {
111
112
  type: ErrorType;
@@ -1 +1 @@
1
- {"version":3,"file":"IApiError.d.ts","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IApiError.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS;IACnB,QAAQ,cAAc;IACtB,SAAS,yBAAyB;IAClC,aAAa,cAAc;CAC5B;AAED,oBAAY,IAAI;IAEd,YAAY,iCAAiC;IAC7C,qBAAqB,uCAAuC;IAC5D,QAAQ,uBAAuB;IAC/B,eAAe,8BAA8B;IAC7C,eAAe,8BAA8B;IAC7C,UAAU,iBAAiB;IAC3B,mBAAmB,0BAA0B;IAC7C,kBAAkB,sBAAsB;IACxC,kBAAkB,wBAAwB;IAC1C,cAAc,oBAAoB;IAGlC,kBAAkB,yBAAyB;IAC3C,+BAA+B,2CAA2C;IAC1E,6BAA6B,yCAAyC;IACtE,uDAAuD,yEAAyE;IAChI,iBAAiB,wBAAwB;IACzC,mCAAmC,6CAA6C;IAChF,+BAA+B,0CAA0C;IACzE,+BAA+B,2CAA2C;IAC1E,6BAA6B,wCAAwC;IACrE,8BAA8B,wCAAwC;IACtE,4BAA4B,oCAAoC;IAChE,oBAAoB,6BAA6B;IACjD,iBAAiB,yBAAyB;IAC1C,uCAAuC,kDAAkD;IACzF,kCAAkC,6CAA6C;IAC/E,uCAAuC,kDAAkD;IACzF,sBAAsB,6BAA6B;IACnD,uBAAuB,+BAA+B;IACtD,mBAAmB,2BAA2B;IAC9C,gCAAgC,yCAAyC;IACzE,6CAA6C,uDAAuD;IACpG,gDAAgD,4DAA4D;IAC5G,wDAAwD,oEAAoE;IAC5H,sBAAsB,6BAA6B;IAGnD,WAAW,iBAAiB;IAC5B,eAAe,qBAAqB;IACpC,UAAU,gBAAgB;IAG1B,iBAAiB,wBAAwB;IACzC,iBAAiB,wBAAwB;IACzC,8BAA8B,uCAAuC;IACrE,0BAA0B,mCAAmC;IAC7D,aAAa,oBAAoB;IAGjC,yBAAyB,iCAAiC;IAC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0C;IACvE,qBAAqB,iCAAiC;IACtD,qBAAqB,8BAA8B;IACnD,gBAAgB,wBAAwB;IAGxC,gBAAgB,uBAAuB;IACvC,WAAW,gBAAgB;IAG3B,8BAA8B,uCAAuC;IACrE,kCAAkC,2CAA2C;IAC7E,0BAA0B,kCAAkC;IAC5D,0BAA0B,kCAAkC;IAC5D,eAAe,sBAAsB;IAErC,cAAc,qBAAqB;IAGnC,cAAc,qBAAqB;IAGnC,4BAA4B,uCAAuC;IACnE,qBAAqB,4BAA4B;IACjD,sBAAsB,8BAA8B;IACpD,uBAAuB,8BAA8B;IACrD,mBAAmB,2BAA2B;IAC9C,iBAAiB,wBAAwB;IAGzC,yBAAyB,8BAA8B;CACxD;AAED,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,SAAS,CAAC;IAChB,IAAI,EAAE,IAAI,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
@@ -122,5 +122,7 @@ export var Code;
122
122
  Code["fetchTransactionsFailed"] = "fetch_transactions_failed";
123
123
  Code["fetchNewTokenFailed"] = "fetch_new_token_failed";
124
124
  Code["udpateTokenFailed"] = "update_token_failed";
125
+ // Accounts
126
+ Code["GENERIC_ACCOUNT_NOT_FOUND"] = "GENERIC_ACCOUNT_NOT_FOUND";
125
127
  })(Code || (Code = {}));
126
128
  //# sourceMappingURL=IApiError.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"IApiError.js","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IApiError.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,mCAAsB,CAAA;IACtB,+CAAkC,CAAA;IAClC,wCAA2B,CAAA;AAC7B,CAAC,EAJW,SAAS,KAAT,SAAS,QAIpB;AAED,MAAM,CAAN,IAAY,IAoIX;AApID,WAAY,IAAI;IACd,aAAa;IACb,qDAA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AyD,CAAA;IACzD,yGAAiG,CAAA;IACjG,iFAAyE,CAAA;IACzE,iFAAyE,CAAA;IACzE,iFAAyE,CAAA;IACzE,+FAAuF,CAAA;IACvF,6FAAqF,CAAA;IACrF,qFAA6E,CAAA;IAC7E,2FAAmF,CAAA;IACnF,qFAA6E,CAAA;IAC7E,mFAA2E,CAAA;IAC3E,mFAA2E,CAAA;IAC3E,mFAA2E,CAAA;IAC3E,2HAAmH,CAAA;IACnH,mFAA2E,CAAA;IAC3E,+EAAuE,CAAA;IACvE,mDAA2C,CAAA;IAC3C,iDAAyC,CAAA;IACzC,iDAAyC,CAAA;IAEzC,gBAAgB;IAChB,8DAAsD,CAAA;IAEtD,UAAU;IACV,kFAA0E,CAAA;IAC1E,wDAAgD,CAAA;IAEhD,gBAAgB;IAChB,2DAAmD,CAAA;IACnD,iDAAyC,CAAA;IACzC,sEAA8D,CAAA;IAC9D,2CAAmC,CAAA;IACnC,uDAA+C,CAAA;IAC/C,uCAA+B,CAAA;IAC/B,+EAAuE,CAAA;IACvE,8DAAsD,CAAA;IACtD,2DAAmD,CAAA;IACnD,gDAAwC,CAAA;IAExC,QAAQ;IACR,+CAAuC,CAAA;IACvC,mCAA2B,CAAA;IAE3B,cAAc;IACd,6EAAqE,CAAA;IACrE,qFAA6E,CAAA;IAC7E,oEAA4D,CAAA;IAC5D,oEAA4D,CAAA;IAC5D,6CAAqC,CAAA;IAErC,2CAAmC,CAAA;IAEnC,YAAY;IACZ,2CAAmC,CAAA;IAEnC,eAAe;IACf,2EAAmE,CAAA;IACnE,yDAAiD,CAAA;IACjD,4DAAoD,CAAA;IACpD,6DAAqD,CAAA;IACrD,sDAA8C,CAAA;IAC9C,iDAAyC,CAAA;AAE3C,CAAC,EApIW,IAAI,KAAJ,IAAI,QAoIf","sourcesContent":["export enum ErrorType {\n apiError = 'api_error',\n authError = 'authentication_error',\n resourceError = 'rsc_error',\n}\n\nexport enum Code {\n // HTTP Error\n tokenFailure = 'token_authentication_failure',\n authenticationFailure = 'authentication_credentials_failure',\n notFound = 'resource_not_found',\n validationError = 'resource_validation_error',\n constraintError = 'resource_constraint_error',\n outOfRange = 'resource_ofr',\n internalServerError = 'internal_server_error',\n constraintKeyError = 'resource_fk_error',\n serviceUnavailable = 'service_unavailable',\n notImplemented = 'not_implemented',\n\n // Annotation Error\n failedCheckBalance = 'failed_check_balance',\n vatIntracomCanOnlyBeSetForDebit = 'vat_intracom_can_only_be_set_for_debit',\n vatMargeCanOnlyBeSetForCredit = 'vat_marge_can_only_be_set_for_credit',\n vatMargeCanOnlyBeSetIfAmountAllTaxIncludedPurchaseIsSet = 'vat_marge_can_only_be_set_if_amount_all_tax_included_purchase_is_set',\n missingParamSplit = 'missing_param_split',\n totalAmountSplitNotEqualTransaction = 'total_amount_split_not_equal_transaction',\n vatManuelIsSetWithNegativeValue = 'vat_manuel_is_set_with_negative_value',\n vatManuelIsNotSetWithSpecialVat = 'vat_manuel_is_not_set_with_special_vat',\n vatManuelCannotBeSetWithSplit = 'vat_manuel_cannot_be_set_with_split',\n vatNotAuthorizeWithThisAccount = 'vat_not_authorize_with_this_account',\n transactionIsAlreadyExported = 'transaction_is_already_exported',\n thirdPartyIsNotFound = 'third_party_is_not_found',\n accountIsNotFound = 'account_is_not_found',\n immobilizationNotSetWithAccountStartTwo = 'immobilization_not_set_with_account_start_two',\n immobilizationCanOnlyBeSetForDebit = 'immobilization_can_only_be_set_for_debit',\n immobilizationCanNotBeSetWithoutAccount = 'immobilization_can_not_be_set_without_account',\n immobilizationNotExist = 'immobilization_not_exist',\n accountIsNotDepreciable = 'account_is_not_depreciable',\n invalidNetBookValue = 'invalid_net_book_value',\n noExerciceFoundForImmobilization = 'no_exercice_found_for_immobilization',\n amountImmobilizationLessThanAmountTransaction = 'amount_immobilization_less_than_amount_transaction',\n amountImmobilizationLessThanAmountAllTaxIncluded = 'amount_immobilization_less_than_amount_all_tax_included',\n amountImmobilizationIsGreaterThanTotalAmountTransactions = 'amount_immobilization_is_greater_than_total_amount_transactions',\n immobilizationNotFound = 'immobilization_not_found',\n\n // PDF error\n mergeFailed = 'merge_failed',\n generationError = 'generation_error',\n parseError = 'parse_error',\n\n // Email error\n emailAlreadyExist = 'email_already_exist',\n phoneAlreadyExist = 'phone_already_exist',\n societyCustomEmailAlreadyExist = 'society_custom_email_already_exist',\n societyCustomEmailNotFound = 'society_custom_email_not_found',\n emailNotFound = 'email_not_found',\n\n // BankAccount\n missingParamAccountNumber = 'missing_param_account_number',\n accountNumberParamNotFound = 'account_number_param_not_found',\n\n // Income statement\n invalidIncomeStatementList = 'invalid_income_statement_list',\n\n // Shine errors\n AUTHORIZATION_CLIENT_NOT_FOUND = 'AUTHORIZATION_CLIENT_NOT_FOUND',\n AUTHORIZATION_CLIENT_SECRET_DOES_NOT_MATCH = 'AUTHORIZATION_CLIENT_SECRET_DOES_NOT_MATCH',\n AUTHORIZATION_REDIRECT_URI_DOES_NOT_MATCH = 'AUTHORIZATION_REDIRECT_URI_DOES_NOT_MATCH',\n AUTHORIZATION_REQUESTED_SCOPE_NOT_AVAILABLE = 'AUTHORIZATION_REQUESTED_SCOPE_NOT_AVAILABLE',\n AUTHORIZATION_REQUESTED_SCOPE_NOT_AUTHORIZED = 'AUTHORIZATION_REQUESTED_SCOPE_NOT_AUTHORIZED',\n AUTHORIZATION_REQUESTED_SCOPE_MISSING_OPENID = 'AUTHORIZATION_REQUESTED_SCOPE_MISSING_OPENID',\n AUTHORIZATION_CLIENT_STATUS_NOT_VALID = 'AUTHORIZATION_CLIENT_STATUS_NOT_VALID',\n AUTHORIZATION_CODE_MISSING = 'AUTHORIZATION_CODE_MISSING',\n AUTHORIZATION_CODE_NOT_FOUND = 'AUTHORIZATION_CODE_NOT_FOUND',\n AUTHORIZATION_CODE_ALREADY_USED = 'AUTHORIZATION_CODE_ALREADY_USED',\n AUTHORIZATION_CODE_EXPIRED = 'AUTHORIZATION_CODE_EXPIRED',\n AUTHORIZATION_CODE_REDIRECT_URI_DOES_NOT_MATCH = 'AUTHORIZATION_CODE_REDIRECT_URI_DOES_NOT_MATCH',\n AUTHORIZATION_ACCESS_TOKEN_EXPIRED = 'AUTHORIZATION_ACCESS_TOKEN_EXPIRED',\n AUTHORIZATION_INVALID_ACCESS_TOKEN = 'AUTHORIZATION_INVALID_ACCESS_TOKEN',\n AUTHORIZATION_MISSING_ACCESS_TOKEN = 'AUTHORIZATION_MISSING_ACCESS_TOKEN',\n AUTHORIZATION_ACCESS_TOKEN_WRONG_AUDIENCE = 'AUTHORIZATION_ACCESS_TOKEN_WRONG_AUDIENCE',\n AUTHORIZATION_ACCESS_TOKEN_MISSING_SCOPE = 'AUTHORIZATION_ACCESS_TOKEN_MISSING_SCOPE',\n AUTHORIZATION_ACCESS_TOKEN_FORBIDDEN = 'AUTHORIZATION_ACCESS_TOKEN_FORBIDDEN',\n AUTHORIZATION_UNSUPPORTED_RESPONSE_TYPE = 'AUTHORIZATION_UNSUPPORTED_RESPONSE_TYPE',\n AUTHORIZATION_UNSUPPORTED_GRANT_TYPE = 'AUTHORIZATION_UNSUPPORTED_GRANT_TYPE',\n AUTHORIZATION_REFRESH_TOKEN_MISSING = 'AUTHORIZATION_REFRESH_TOKEN_MISSING',\n AUTHORIZATION_REFRESH_TOKEN_EXPIRED = 'AUTHORIZATION_REFRESH_TOKEN_EXPIRED',\n AUTHORIZATION_REFRESH_TOKEN_INVALID = 'AUTHORIZATION_REFRESH_TOKEN_INVALID',\n AUTHORIZATION_REFRESH_TOKEN_REDIRECT_URI_DOES_NOT_MATCH = 'AUTHORIZATION_REFRESH_TOKEN_REDIRECT_URI_DOES_NOT_MATCH',\n AUTHORIZATION_REFRESH_TOKEN_REVOKED = 'AUTHORIZATION_REFRESH_TOKEN_REVOKED',\n AUTHORIZATION_USER_NOT_AUTHORIZED = 'AUTHORIZATION_USER_NOT_AUTHORIZED',\n responseNotManaged = 'response_not_managed',\n bankAccountsError = 'bank_accounts_error',\n refreshTokenError = 'refresh_token_error',\n\n // Balance Sheet\n invalidBalanceSheetList = 'invalid_balance_sheet_list',\n\n // FecFile\n insertAccountingTransactionFailed = 'insert_accounting_transaction_failed',\n fecFileAlreadyExists = 'fec_file_already_exists',\n\n // User creation\n userAlreadyExistWithSociety = 'user-already-exists',\n userDoesNotExists = 'user-does-not-exist',\n userPermissionDoesNotExists = 'user-permission-does-not-exist',\n expiredSmsCode = 'expired-sms-code',\n userNotInFmaProcess = 'user-not-in-maf-process',\n wrongSmsCode = 'wrong-sms-code',\n userEmailAndPhoneAlreadyExist = 'user-username-and-phone-already-exist',\n userEmailAlreadyExist = 'user-username-already-exists',\n userPhoneAlreadyExist = 'user-phone-already-exists',\n couldNotFindUser = 'could-not-find-user',\n\n // Cerfa\n civilityNotFound = 'civility_not_found',\n invalidData = 'invalidData',\n\n // Sponsorship\n emailAlreadyUsedForsponsorship = 'email_already_used_for_sponsorship',\n idSocietyAlreadyUsedForsponsorship = 'idSociety_already_used_for_sponsorship',\n sponsorshipCodeDoesntExist = 'sponsorship_code_doesnt_exist',\n sponsorshipLinkDoesntExist = 'sponsorship_link_doesnt_exist',\n societyNotFound = 'society_not_found',\n\n payloadIsEmpty = 'payload_is_empty',\n\n // PromoCode\n wrongPromoCode = 'wrong_promo_code',\n\n // Budget Fetch\n fetchNewBudgetInvalidSociety = 'fetch_new_budget_invalid_idSociety',\n fetchConnectionFailed = 'fetch_connection_failed',\n fetchBankAccountFailed = 'fetch_bank_account_failed',\n fetchTransactionsFailed = 'fetch_transactions_failed',\n fetchNewTokenFailed = 'fetch_new_token_failed',\n udpateTokenFailed = 'update_token_failed',\n\n}\n\nexport interface IApiError {\n type: ErrorType;\n code: Code;\n message: string;\n param?: string;\n field?: string;\n}\n"]}
1
+ {"version":3,"file":"IApiError.js","sourceRoot":"","sources":["../../../../ts/types/Interface/models/IApiError.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,mCAAsB,CAAA;IACtB,+CAAkC,CAAA;IAClC,wCAA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tIW,IAAI,KAAJ,IAAI,QAsIf","sourcesContent":["export enum ErrorType {\n apiError = 'api_error',\n authError = 'authentication_error',\n resourceError = 'rsc_error',\n}\n\nexport enum Code {\n // HTTP Error\n tokenFailure = 'token_authentication_failure',\n authenticationFailure = 'authentication_credentials_failure',\n notFound = 'resource_not_found',\n validationError = 'resource_validation_error',\n constraintError = 'resource_constraint_error',\n outOfRange = 'resource_ofr',\n internalServerError = 'internal_server_error',\n constraintKeyError = 'resource_fk_error',\n serviceUnavailable = 'service_unavailable',\n notImplemented = 'not_implemented',\n\n // Annotation Error\n failedCheckBalance = 'failed_check_balance',\n vatIntracomCanOnlyBeSetForDebit = 'vat_intracom_can_only_be_set_for_debit',\n vatMargeCanOnlyBeSetForCredit = 'vat_marge_can_only_be_set_for_credit',\n vatMargeCanOnlyBeSetIfAmountAllTaxIncludedPurchaseIsSet = 'vat_marge_can_only_be_set_if_amount_all_tax_included_purchase_is_set',\n missingParamSplit = 'missing_param_split',\n totalAmountSplitNotEqualTransaction = 'total_amount_split_not_equal_transaction',\n vatManuelIsSetWithNegativeValue = 'vat_manuel_is_set_with_negative_value',\n vatManuelIsNotSetWithSpecialVat = 'vat_manuel_is_not_set_with_special_vat',\n vatManuelCannotBeSetWithSplit = 'vat_manuel_cannot_be_set_with_split',\n vatNotAuthorizeWithThisAccount = 'vat_not_authorize_with_this_account',\n transactionIsAlreadyExported = 'transaction_is_already_exported',\n thirdPartyIsNotFound = 'third_party_is_not_found',\n accountIsNotFound = 'account_is_not_found',\n immobilizationNotSetWithAccountStartTwo = 'immobilization_not_set_with_account_start_two',\n immobilizationCanOnlyBeSetForDebit = 'immobilization_can_only_be_set_for_debit',\n immobilizationCanNotBeSetWithoutAccount = 'immobilization_can_not_be_set_without_account',\n immobilizationNotExist = 'immobilization_not_exist',\n accountIsNotDepreciable = 'account_is_not_depreciable',\n invalidNetBookValue = 'invalid_net_book_value',\n noExerciceFoundForImmobilization = 'no_exercice_found_for_immobilization',\n amountImmobilizationLessThanAmountTransaction = 'amount_immobilization_less_than_amount_transaction',\n amountImmobilizationLessThanAmountAllTaxIncluded = 'amount_immobilization_less_than_amount_all_tax_included',\n amountImmobilizationIsGreaterThanTotalAmountTransactions = 'amount_immobilization_is_greater_than_total_amount_transactions',\n immobilizationNotFound = 'immobilization_not_found',\n\n // PDF error\n mergeFailed = 'merge_failed',\n generationError = 'generation_error',\n parseError = 'parse_error',\n\n // Email error\n emailAlreadyExist = 'email_already_exist',\n phoneAlreadyExist = 'phone_already_exist',\n societyCustomEmailAlreadyExist = 'society_custom_email_already_exist',\n societyCustomEmailNotFound = 'society_custom_email_not_found',\n emailNotFound = 'email_not_found',\n\n // BankAccount\n missingParamAccountNumber = 'missing_param_account_number',\n accountNumberParamNotFound = 'account_number_param_not_found',\n\n // Income statement\n invalidIncomeStatementList = 'invalid_income_statement_list',\n\n // Shine errors\n AUTHORIZATION_CLIENT_NOT_FOUND = 'AUTHORIZATION_CLIENT_NOT_FOUND',\n AUTHORIZATION_CLIENT_SECRET_DOES_NOT_MATCH = 'AUTHORIZATION_CLIENT_SECRET_DOES_NOT_MATCH',\n AUTHORIZATION_REDIRECT_URI_DOES_NOT_MATCH = 'AUTHORIZATION_REDIRECT_URI_DOES_NOT_MATCH',\n AUTHORIZATION_REQUESTED_SCOPE_NOT_AVAILABLE = 'AUTHORIZATION_REQUESTED_SCOPE_NOT_AVAILABLE',\n AUTHORIZATION_REQUESTED_SCOPE_NOT_AUTHORIZED = 'AUTHORIZATION_REQUESTED_SCOPE_NOT_AUTHORIZED',\n AUTHORIZATION_REQUESTED_SCOPE_MISSING_OPENID = 'AUTHORIZATION_REQUESTED_SCOPE_MISSING_OPENID',\n AUTHORIZATION_CLIENT_STATUS_NOT_VALID = 'AUTHORIZATION_CLIENT_STATUS_NOT_VALID',\n AUTHORIZATION_CODE_MISSING = 'AUTHORIZATION_CODE_MISSING',\n AUTHORIZATION_CODE_NOT_FOUND = 'AUTHORIZATION_CODE_NOT_FOUND',\n AUTHORIZATION_CODE_ALREADY_USED = 'AUTHORIZATION_CODE_ALREADY_USED',\n AUTHORIZATION_CODE_EXPIRED = 'AUTHORIZATION_CODE_EXPIRED',\n AUTHORIZATION_CODE_REDIRECT_URI_DOES_NOT_MATCH = 'AUTHORIZATION_CODE_REDIRECT_URI_DOES_NOT_MATCH',\n AUTHORIZATION_ACCESS_TOKEN_EXPIRED = 'AUTHORIZATION_ACCESS_TOKEN_EXPIRED',\n AUTHORIZATION_INVALID_ACCESS_TOKEN = 'AUTHORIZATION_INVALID_ACCESS_TOKEN',\n AUTHORIZATION_MISSING_ACCESS_TOKEN = 'AUTHORIZATION_MISSING_ACCESS_TOKEN',\n AUTHORIZATION_ACCESS_TOKEN_WRONG_AUDIENCE = 'AUTHORIZATION_ACCESS_TOKEN_WRONG_AUDIENCE',\n AUTHORIZATION_ACCESS_TOKEN_MISSING_SCOPE = 'AUTHORIZATION_ACCESS_TOKEN_MISSING_SCOPE',\n AUTHORIZATION_ACCESS_TOKEN_FORBIDDEN = 'AUTHORIZATION_ACCESS_TOKEN_FORBIDDEN',\n AUTHORIZATION_UNSUPPORTED_RESPONSE_TYPE = 'AUTHORIZATION_UNSUPPORTED_RESPONSE_TYPE',\n AUTHORIZATION_UNSUPPORTED_GRANT_TYPE = 'AUTHORIZATION_UNSUPPORTED_GRANT_TYPE',\n AUTHORIZATION_REFRESH_TOKEN_MISSING = 'AUTHORIZATION_REFRESH_TOKEN_MISSING',\n AUTHORIZATION_REFRESH_TOKEN_EXPIRED = 'AUTHORIZATION_REFRESH_TOKEN_EXPIRED',\n AUTHORIZATION_REFRESH_TOKEN_INVALID = 'AUTHORIZATION_REFRESH_TOKEN_INVALID',\n AUTHORIZATION_REFRESH_TOKEN_REDIRECT_URI_DOES_NOT_MATCH = 'AUTHORIZATION_REFRESH_TOKEN_REDIRECT_URI_DOES_NOT_MATCH',\n AUTHORIZATION_REFRESH_TOKEN_REVOKED = 'AUTHORIZATION_REFRESH_TOKEN_REVOKED',\n AUTHORIZATION_USER_NOT_AUTHORIZED = 'AUTHORIZATION_USER_NOT_AUTHORIZED',\n responseNotManaged = 'response_not_managed',\n bankAccountsError = 'bank_accounts_error',\n refreshTokenError = 'refresh_token_error',\n\n // Balance Sheet\n invalidBalanceSheetList = 'invalid_balance_sheet_list',\n\n // FecFile\n insertAccountingTransactionFailed = 'insert_accounting_transaction_failed',\n fecFileAlreadyExists = 'fec_file_already_exists',\n\n // User creation\n userAlreadyExistWithSociety = 'user-already-exists',\n userDoesNotExists = 'user-does-not-exist',\n userPermissionDoesNotExists = 'user-permission-does-not-exist',\n expiredSmsCode = 'expired-sms-code',\n userNotInFmaProcess = 'user-not-in-maf-process',\n wrongSmsCode = 'wrong-sms-code',\n userEmailAndPhoneAlreadyExist = 'user-username-and-phone-already-exist',\n userEmailAlreadyExist = 'user-username-already-exists',\n userPhoneAlreadyExist = 'user-phone-already-exists',\n couldNotFindUser = 'could-not-find-user',\n\n // Cerfa\n civilityNotFound = 'civility_not_found',\n invalidData = 'invalidData',\n\n // Sponsorship\n emailAlreadyUsedForsponsorship = 'email_already_used_for_sponsorship',\n idSocietyAlreadyUsedForsponsorship = 'idSociety_already_used_for_sponsorship',\n sponsorshipCodeDoesntExist = 'sponsorship_code_doesnt_exist',\n sponsorshipLinkDoesntExist = 'sponsorship_link_doesnt_exist',\n societyNotFound = 'society_not_found',\n\n payloadIsEmpty = 'payload_is_empty',\n\n // PromoCode\n wrongPromoCode = 'wrong_promo_code',\n\n // Budget Fetch\n fetchNewBudgetInvalidSociety = 'fetch_new_budget_invalid_idSociety',\n fetchConnectionFailed = 'fetch_connection_failed',\n fetchBankAccountFailed = 'fetch_bank_account_failed',\n fetchTransactionsFailed = 'fetch_transactions_failed',\n fetchNewTokenFailed = 'fetch_new_token_failed',\n udpateTokenFailed = 'update_token_failed',\n\n // Accounts\n GENERIC_ACCOUNT_NOT_FOUND = 'GENERIC_ACCOUNT_NOT_FOUND',\n}\n\nexport interface IApiError {\n type: ErrorType;\n code: Code;\n message: string;\n param?: string;\n field?: string;\n}\n"]}