@silexpert/core 0.4.13 → 0.4.15

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 (262) hide show
  1. package/es/api/resources/Authenticate.d.ts +9 -0
  2. package/es/api/resources/Authenticate.d.ts.map +1 -0
  3. package/es/api/resources/Authenticate.js +7 -0
  4. package/es/api/resources/Authenticate.js.map +1 -0
  5. package/es/api/resources/BalanceSheet.d.ts +8 -0
  6. package/es/api/resources/BalanceSheet.d.ts.map +1 -0
  7. package/es/api/resources/BalanceSheet.js +12 -0
  8. package/es/api/resources/BalanceSheet.js.map +1 -0
  9. package/es/api/resources/Cerfa.d.ts +10 -0
  10. package/es/api/resources/Cerfa.d.ts.map +1 -0
  11. package/es/api/resources/Cerfa.js +12 -0
  12. package/es/api/resources/Cerfa.js.map +1 -0
  13. package/es/api/resources/LegalForm.d.ts +6 -0
  14. package/es/api/resources/LegalForm.d.ts.map +1 -0
  15. package/es/api/resources/LegalForm.js +7 -0
  16. package/es/api/resources/LegalForm.js.map +1 -0
  17. package/es/api/resources/Letter.d.ts +6 -0
  18. package/es/api/resources/Letter.d.ts.map +1 -0
  19. package/es/api/resources/Letter.js +7 -0
  20. package/es/api/resources/Letter.js.map +1 -0
  21. package/es/api/resources/Report.d.ts +14 -0
  22. package/es/api/resources/Report.d.ts.map +1 -0
  23. package/es/api/resources/Report.js +13 -0
  24. package/es/api/resources/Report.js.map +1 -0
  25. package/es/api/resources/Society.d.ts +3 -1
  26. package/es/api/resources/Society.d.ts.map +1 -1
  27. package/es/api/resources/Society.js +7 -0
  28. package/es/api/resources/Society.js.map +1 -1
  29. package/es/api/resources/User.d.ts +4 -1
  30. package/es/api/resources/User.d.ts.map +1 -1
  31. package/es/api/resources/User.js +9 -0
  32. package/es/api/resources/User.js.map +1 -1
  33. package/es/api/resources.d.ts +14 -2
  34. package/es/api/resources.d.ts.map +1 -1
  35. package/es/api/resources.js +14 -2
  36. package/es/api/resources.js.map +1 -1
  37. package/es/types/Enum/AccountingJournal.d.ts +2 -1
  38. package/es/types/Enum/AccountingJournal.d.ts.map +1 -1
  39. package/es/types/Enum/AccountingJournal.js +1 -0
  40. package/es/types/Enum/AccountingJournal.js.map +1 -1
  41. package/es/types/Enum/BalanceSheet.d.ts +21 -0
  42. package/es/types/Enum/BalanceSheet.d.ts.map +1 -0
  43. package/es/types/Enum/BalanceSheet.js +529 -0
  44. package/es/types/Enum/BalanceSheet.js.map +1 -0
  45. package/es/types/Enum/DefaultPermissions.d.ts +13 -0
  46. package/es/types/Enum/DefaultPermissions.d.ts.map +1 -0
  47. package/es/types/Enum/DefaultPermissions.js +13 -0
  48. package/es/types/Enum/DefaultPermissions.js.map +1 -0
  49. package/es/types/Enum/IncomeStatement.d.ts +1 -0
  50. package/es/types/Enum/IncomeStatement.d.ts.map +1 -1
  51. package/es/types/Enum/IncomeStatement.js +5 -2
  52. package/es/types/Enum/IncomeStatement.js.map +1 -1
  53. package/es/types/Enum/LegalForm.d.ts +1 -0
  54. package/es/types/Enum/LegalForm.d.ts.map +1 -1
  55. package/es/types/Enum/LegalForm.js +1 -0
  56. package/es/types/Enum/LegalForm.js.map +1 -1
  57. package/es/types/Enum/LetterType.d.ts +47 -0
  58. package/es/types/Enum/LetterType.d.ts.map +1 -0
  59. package/es/types/Enum/LetterType.js +47 -0
  60. package/es/types/Enum/LetterType.js.map +1 -0
  61. package/es/types/Enum/ReportState.d.ts +31 -0
  62. package/es/types/Enum/ReportState.d.ts.map +1 -0
  63. package/es/types/Enum/ReportState.js +31 -0
  64. package/es/types/Enum/ReportState.js.map +1 -0
  65. package/es/types/Enum/ReportType.d.ts +27 -0
  66. package/es/types/Enum/ReportType.d.ts.map +1 -0
  67. package/es/types/Enum/ReportType.js +27 -0
  68. package/es/types/Enum/ReportType.js.map +1 -0
  69. package/es/types/Enum/Role.d.ts +7 -2
  70. package/es/types/Enum/Role.d.ts.map +1 -1
  71. package/es/types/Enum/Role.js +6 -1
  72. package/es/types/Enum/Role.js.map +1 -1
  73. package/es/types/Enum/Vehicle.d.ts +8 -0
  74. package/es/types/Enum/Vehicle.d.ts.map +1 -0
  75. package/es/types/Enum/Vehicle.js +9 -0
  76. package/es/types/Enum/Vehicle.js.map +1 -0
  77. package/es/types/Enum/VehicleType.d.ts +15 -0
  78. package/es/types/Enum/VehicleType.d.ts.map +1 -0
  79. package/es/types/Enum/VehicleType.js +15 -0
  80. package/es/types/Enum/VehicleType.js.map +1 -0
  81. package/es/types/Interface/api/balanceSheet/ReadBalanceSheet.d.ts +11 -0
  82. package/es/types/Interface/api/balanceSheet/ReadBalanceSheet.d.ts.map +1 -0
  83. package/es/types/Interface/api/balanceSheet/ReadBalanceSheet.js +2 -0
  84. package/es/types/Interface/api/balanceSheet/ReadBalanceSheet.js.map +1 -0
  85. package/es/types/Interface/api/cerfa/CreateCerfa.d.ts +292 -0
  86. package/es/types/Interface/api/cerfa/CreateCerfa.d.ts.map +1 -0
  87. package/es/types/Interface/api/cerfa/CreateCerfa.js +113 -0
  88. package/es/types/Interface/api/cerfa/CreateCerfa.js.map +1 -0
  89. package/es/types/Interface/api/letter/CreateLetter.d.ts +15 -0
  90. package/es/types/Interface/api/letter/CreateLetter.d.ts.map +1 -0
  91. package/es/types/Interface/api/letter/CreateLetter.js +57 -0
  92. package/es/types/Interface/api/letter/CreateLetter.js.map +1 -0
  93. package/es/types/Interface/api/report/CreateReport.d.ts +13 -0
  94. package/es/types/Interface/api/report/CreateReport.d.ts.map +1 -0
  95. package/es/types/Interface/api/report/CreateReport.js +45 -0
  96. package/es/types/Interface/api/report/CreateReport.js.map +1 -0
  97. package/es/types/Interface/api/report/QueryReports.d.ts +9 -0
  98. package/es/types/Interface/api/report/QueryReports.d.ts.map +1 -0
  99. package/es/types/Interface/api/report/QueryReports.js +37 -0
  100. package/es/types/Interface/api/report/QueryReports.js.map +1 -0
  101. package/es/types/Interface/api/report/ReadReport.d.ts +8 -0
  102. package/es/types/Interface/api/report/ReadReport.d.ts.map +1 -0
  103. package/es/types/Interface/api/report/ReadReport.js +2 -0
  104. package/es/types/Interface/api/report/ReadReport.js.map +1 -0
  105. package/es/types/Interface/api/society/CreateSociety.d.ts +13 -0
  106. package/es/types/Interface/api/society/CreateSociety.d.ts.map +1 -0
  107. package/es/types/Interface/api/society/CreateSociety.js +41 -0
  108. package/es/types/Interface/api/society/CreateSociety.js.map +1 -0
  109. package/es/types/Interface/api/society/GetDataSociety.d.ts +5 -0
  110. package/es/types/Interface/api/society/GetDataSociety.d.ts.map +1 -0
  111. package/es/types/Interface/api/society/GetDataSociety.js +2 -0
  112. package/es/types/Interface/api/society/GetDataSociety.js.map +1 -0
  113. package/es/types/Interface/api/society/LegalFormSiren.d.ts +6 -0
  114. package/es/types/Interface/api/society/LegalFormSiren.d.ts.map +1 -0
  115. package/es/types/Interface/api/society/LegalFormSiren.js +2 -0
  116. package/es/types/Interface/api/society/LegalFormSiren.js.map +1 -0
  117. package/es/types/Interface/api/user/CreateUser.d.ts +10 -0
  118. package/es/types/Interface/api/user/CreateUser.d.ts.map +1 -0
  119. package/es/types/Interface/api/user/CreateUser.js +41 -0
  120. package/es/types/Interface/api/user/CreateUser.js.map +1 -0
  121. package/es/types/Interface/api/user/QueryUserSmsConfirmation.d.ts +4 -0
  122. package/es/types/Interface/api/user/QueryUserSmsConfirmation.d.ts.map +1 -0
  123. package/es/types/Interface/api/user/QueryUserSmsConfirmation.js +17 -0
  124. package/es/types/Interface/api/user/QueryUserSmsConfirmation.js.map +1 -0
  125. package/es/types/Interface/models/IAccountingJournal.d.ts +2 -0
  126. package/es/types/Interface/models/IAccountingJournal.d.ts.map +1 -1
  127. package/es/types/Interface/models/IAccountingJournal.js.map +1 -1
  128. package/es/types/Interface/models/IApiError.d.ts +9 -1
  129. package/es/types/Interface/models/IApiError.d.ts.map +1 -1
  130. package/es/types/Interface/models/IApiError.js +11 -0
  131. package/es/types/Interface/models/IApiError.js.map +1 -1
  132. package/es/types/Interface/models/ILetter.d.ts +18 -14
  133. package/es/types/Interface/models/ILetter.d.ts.map +1 -1
  134. package/es/types/Interface/models/ILetter.js.map +1 -1
  135. package/es/types/Interface/models/IReport.d.ts +12 -11
  136. package/es/types/Interface/models/IReport.d.ts.map +1 -1
  137. package/es/types/Interface/models/IReport.js.map +1 -1
  138. package/es/types/Interface/models/IReportMessage.d.ts +1 -1
  139. package/es/types/Interface/models/IReportMessage.d.ts.map +1 -1
  140. package/es/types/Interface/models/IReportMessage.js.map +1 -1
  141. package/es/types/Interface/models/IReportType.js.map +1 -1
  142. package/es/types/Interface/models/ISociety.d.ts +0 -1
  143. package/es/types/Interface/models/ISociety.d.ts.map +1 -1
  144. package/es/types/Interface/models/ISociety.js.map +1 -1
  145. package/es/types/index.d.ts +22 -4
  146. package/es/types/index.d.ts.map +1 -1
  147. package/es/types/index.js +23 -4
  148. package/es/types/index.js.map +1 -1
  149. package/es/utils/objectUtils/overwrite.d.ts.map +1 -1
  150. package/es/utils/objectUtils/overwrite.js.map +1 -1
  151. package/js/api/resources/Authenticate.js +18 -0
  152. package/js/api/resources/Authenticate.js.map +1 -0
  153. package/js/api/resources/BalanceSheet.js +23 -0
  154. package/js/api/resources/BalanceSheet.js.map +1 -0
  155. package/js/api/resources/Cerfa.js +23 -0
  156. package/js/api/resources/Cerfa.js.map +1 -0
  157. package/js/api/resources/LegalForm.js +18 -0
  158. package/js/api/resources/LegalForm.js.map +1 -0
  159. package/js/api/resources/Letter.js +18 -0
  160. package/js/api/resources/Letter.js.map +1 -0
  161. package/js/api/resources/Report.js +28 -0
  162. package/js/api/resources/Report.js.map +1 -0
  163. package/js/api/resources/Society.js +11 -0
  164. package/js/api/resources/Society.js.map +1 -1
  165. package/js/api/resources/User.js +14 -0
  166. package/js/api/resources/User.js.map +1 -1
  167. package/js/api/resources.js +21 -3
  168. package/js/api/resources.js.map +1 -1
  169. package/js/types/Enum/AccountingJournal.js +1 -0
  170. package/js/types/Enum/AccountingJournal.js.map +1 -1
  171. package/js/types/Enum/BalanceSheet.js +438 -0
  172. package/js/types/Enum/BalanceSheet.js.map +1 -0
  173. package/js/types/Enum/DefaultPermissions.js +18 -0
  174. package/js/types/Enum/DefaultPermissions.js.map +1 -0
  175. package/js/types/Enum/IncomeStatement.js +5 -2
  176. package/js/types/Enum/IncomeStatement.js.map +1 -1
  177. package/js/types/Enum/LegalForm.js +1 -0
  178. package/js/types/Enum/LegalForm.js.map +1 -1
  179. package/js/types/Enum/LetterType.js +52 -0
  180. package/js/types/Enum/LetterType.js.map +1 -0
  181. package/js/types/Enum/ReportState.js +36 -0
  182. package/js/types/Enum/ReportState.js.map +1 -0
  183. package/js/types/Enum/ReportType.js +32 -0
  184. package/js/types/Enum/ReportType.js.map +1 -0
  185. package/js/types/Enum/Role.js +6 -1
  186. package/js/types/Enum/Role.js.map +1 -1
  187. package/js/types/Enum/Vehicle.js +15 -0
  188. package/js/types/Enum/Vehicle.js.map +1 -0
  189. package/js/types/Enum/VehicleType.js +20 -0
  190. package/js/types/Enum/VehicleType.js.map +1 -0
  191. package/js/types/Interface/api/balanceSheet/ReadBalanceSheet.js +6 -0
  192. package/js/types/Interface/api/balanceSheet/ReadBalanceSheet.js.map +1 -0
  193. package/js/types/Interface/api/cerfa/CreateCerfa.js +75 -0
  194. package/js/types/Interface/api/cerfa/CreateCerfa.js.map +1 -0
  195. package/js/types/Interface/api/letter/CreateLetter.js +47 -0
  196. package/js/types/Interface/api/letter/CreateLetter.js.map +1 -0
  197. package/js/types/Interface/api/report/CreateReport.js +41 -0
  198. package/js/types/Interface/api/report/CreateReport.js.map +1 -0
  199. package/js/types/Interface/api/report/QueryReports.js +37 -0
  200. package/js/types/Interface/api/report/QueryReports.js.map +1 -0
  201. package/js/types/Interface/api/{society/ReadSociety.js → report/ReadReport.js} +1 -1
  202. package/js/types/Interface/api/{society/ReadSociety.js.map → report/ReadReport.js.map} +1 -1
  203. package/js/types/Interface/api/society/CreateSociety.js +39 -0
  204. package/js/types/Interface/api/society/CreateSociety.js.map +1 -0
  205. package/js/types/Interface/api/society/GetDataSociety.js +6 -0
  206. package/js/types/Interface/api/society/GetDataSociety.js.map +1 -0
  207. package/js/types/Interface/api/society/LegalFormSiren.js +6 -0
  208. package/js/types/Interface/api/society/LegalFormSiren.js.map +1 -0
  209. package/js/types/Interface/api/user/CreateUser.js +39 -0
  210. package/js/types/Interface/api/user/CreateUser.js.map +1 -0
  211. package/js/types/Interface/api/user/QueryUserSmsConfirmation.js +27 -0
  212. package/js/types/Interface/api/user/QueryUserSmsConfirmation.js.map +1 -0
  213. package/js/types/Interface/models/IApiError.js +14 -3
  214. package/js/types/Interface/models/IApiError.js.map +1 -1
  215. package/js/types/index.js +240 -24
  216. package/js/types/index.js.map +1 -1
  217. package/package.json +16 -16
  218. package/ts/api/resources/Authenticate.ts +7 -0
  219. package/ts/api/resources/BalanceSheet.ts +12 -0
  220. package/ts/api/resources/Cerfa.ts +13 -0
  221. package/ts/api/resources/LegalForm.ts +8 -0
  222. package/ts/api/resources/Letter.ts +10 -0
  223. package/ts/api/resources/Report.ts +22 -0
  224. package/ts/api/resources/Society.ts +11 -0
  225. package/ts/api/resources/User.ts +12 -1
  226. package/ts/api/resources.ts +14 -2
  227. package/ts/types/Enum/AccountingJournal.ts +1 -0
  228. package/ts/types/Enum/BalanceSheet.ts +555 -0
  229. package/ts/types/Enum/DefaultPermissions.ts +12 -0
  230. package/ts/types/Enum/IncomeStatement.ts +6 -2
  231. package/ts/types/Enum/LegalForm.ts +1 -0
  232. package/ts/types/Enum/LetterType.ts +46 -0
  233. package/ts/types/Enum/ReportState.ts +30 -0
  234. package/ts/types/Enum/ReportType.ts +26 -0
  235. package/ts/types/Enum/Role.ts +6 -1
  236. package/ts/types/Enum/Vehicle.ts +7 -0
  237. package/ts/types/Enum/VehicleType.ts +14 -0
  238. package/ts/types/Interface/api/balanceSheet/ReadBalanceSheet.ts +10 -0
  239. package/ts/types/Interface/api/cerfa/CreateCerfa.ts +350 -0
  240. package/ts/types/Interface/api/letter/CreateLetter.ts +37 -0
  241. package/ts/types/Interface/api/report/CreateReport.ts +29 -0
  242. package/ts/types/Interface/api/report/QueryReports.ts +21 -0
  243. package/ts/types/Interface/api/report/ReadReport.ts +9 -0
  244. package/ts/types/Interface/api/society/CreateSociety.ts +24 -0
  245. package/ts/types/Interface/api/society/GetDataSociety.ts +4 -0
  246. package/ts/types/Interface/api/society/LegalFormSiren.ts +5 -0
  247. package/ts/types/Interface/api/user/CreateUser.ts +18 -0
  248. package/ts/types/Interface/api/user/QueryUserSmsConfirmation.ts +6 -0
  249. package/ts/types/Interface/models/IAccountingJournal.ts +2 -0
  250. package/ts/types/Interface/models/IApiError.ts +14 -0
  251. package/ts/types/Interface/models/ILetter.ts +18 -14
  252. package/ts/types/Interface/models/IReport.ts +12 -11
  253. package/ts/types/Interface/models/IReportMessage.ts +1 -1
  254. package/ts/types/Interface/models/IReportType.ts +1 -1
  255. package/ts/types/Interface/models/ISociety.ts +0 -1
  256. package/ts/types/index.ts +23 -4
  257. package/ts/utils/objectUtils/overwrite.ts +1 -1
  258. package/es/types/Interface/api/society/ReadSociety.d.ts +0 -5
  259. package/es/types/Interface/api/society/ReadSociety.d.ts.map +0 -1
  260. package/es/types/Interface/api/society/ReadSociety.js +0 -2
  261. package/es/types/Interface/api/society/ReadSociety.js.map +0 -1
  262. package/ts/types/Interface/api/society/ReadSociety.ts +0 -5
@@ -0,0 +1,26 @@
1
+ export const ReportType = {
2
+ LETTER: {
3
+ id: 1,
4
+ name: 'Lettre à l\'ordre',
5
+ },
6
+ FRAUD: {
7
+ id: 2,
8
+ name: 'Suspicion de fraude',
9
+ },
10
+ ATTITUDE: {
11
+ id: 3,
12
+ name: 'Attitude déplacée',
13
+ },
14
+ BLOCKED: {
15
+ id: 4,
16
+ name: 'Dossier bloqué',
17
+ },
18
+ NO_RESPONSE: {
19
+ id: 5,
20
+ name: 'Pas de réponse',
21
+ },
22
+ NEGATIVE_OPINION: {
23
+ id: 6,
24
+ name: 'Avis négatif',
25
+ },
26
+ };
@@ -3,7 +3,7 @@ export enum Role {
3
3
  ADMIN = 2,
4
4
  FRONT_OFFICE = 3,
5
5
  COMMERCIAL = 9,
6
- GPC = 10,
6
+ CUSTOMER_SUCCESS = 10,
7
7
  SOCIAL = 11,
8
8
  JURIDIC = 12,
9
9
  CHIEF_ACCOUNTANT = 13,
@@ -21,4 +21,9 @@ export enum Role {
21
21
  API = 26,
22
22
  BACK_OFFICE = 27,
23
23
  BACK_OFFICE_EXPRESS = 28,
24
+ BACK_MANAGER = 30,
25
+ FRONT_MANAGER = 31,
26
+ CUSTOMER_SUCCESS_MANAGER = 32,
27
+ COMMERCIAL_MANAGER = 33,
28
+ FACTURATION = 34,
24
29
  }
@@ -0,0 +1,7 @@
1
+ export enum VehicleCerfaFuel {
2
+ ESSENCE = 'super',
3
+ DIESEL = 'diesel',
4
+ ESSENCE_95_98 = 'super sans plomb',
5
+ GAS = 'GPL',
6
+ ELECTRIC = 'électrique',
7
+ }
@@ -0,0 +1,14 @@
1
+ export const VehicleType = {
2
+ TOURISM_VEHICLE: {
3
+ id: 1,
4
+ value: 'T',
5
+ },
6
+ MOTORBIKE: {
7
+ id: 2,
8
+ value: 'M',
9
+ },
10
+ MOPED: {
11
+ id: 3,
12
+ value: 'V',
13
+ },
14
+ };
@@ -0,0 +1,10 @@
1
+ export type ReadBalanceSheetList = Array<{
2
+ name: string;
3
+ total: number;
4
+ totalDeducted: number;
5
+ totalNet: number;
6
+ isCategory?: boolean;
7
+ isSubcategory?: boolean;
8
+ description?: ReadBalanceSheetList;
9
+ key: string;
10
+ }>;
@@ -0,0 +1,350 @@
1
+ import { VehicleCerfaFuel } from '../../../Enum/Vehicle';
2
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
+
4
+ export interface DeterminedResult {
5
+ incomeExpenditure: boolean; // d'après les règles « recettes-dépenses »
6
+ debts: boolean; // d'après les règles « créances-dettes »
7
+ }
8
+
9
+ export type AccountingKept = 'dutyFree' | 'taxIncluded' | 'notSubjectToVat';
10
+ export type CerfaCivility = 'M' | 'Mme' | 'Mlle';
11
+
12
+ export interface AccreditedOrganization {
13
+ isMember: boolean;
14
+ memberSince: Date;
15
+ numberOfEmployees: string;
16
+ netWagesReceived: number; // Salaires nets perçus
17
+ }
18
+
19
+ interface Vehicle {
20
+ name: string;
21
+ type: string;
22
+ fiscalPower: number;
23
+ isBNCScale: boolean;
24
+ isBICScale: boolean;
25
+ fuel: VehicleCerfaFuel;
26
+ professionalKilometers: number;
27
+ deductible: number;
28
+ depreciationPracticedAtReintegrate: number;
29
+ }
30
+
31
+ export interface MoralShareholder {
32
+ legalForm: string;
33
+ name: string;
34
+ siren?: string;
35
+ percentShares: number;
36
+ shares: number;
37
+ address: {
38
+ number: number | undefined;
39
+ street: string;
40
+ zipCode: string;
41
+ city: string;
42
+ country: string;
43
+ };
44
+ }
45
+
46
+ export interface PhysicShareholder {
47
+ civility: CerfaCivility;
48
+ firstname: string;
49
+ lastname: string;
50
+ percentShares: number;
51
+ marriedName: string | null | undefined;
52
+ shares: number | null;
53
+ birth: {
54
+ date: string;
55
+ department: string | undefined;
56
+ city: string;
57
+ country: string;
58
+ }
59
+ address: {
60
+ street: string | undefined;
61
+ zipCode: string | undefined;
62
+ city: string | undefined;
63
+ country: string | undefined;
64
+ number: string | undefined;
65
+ }
66
+ }
67
+
68
+ export interface Subsidiarie {
69
+ legalForm: string;
70
+ name: string;
71
+ siren?: string;
72
+ percentShares: number;
73
+ address: {
74
+ number: number;
75
+ street: string;
76
+ zipCode: string;
77
+ city: string;
78
+ country: string;
79
+ };
80
+ }
81
+
82
+ /**
83
+ * CERFA 2035 TYPES
84
+ */
85
+
86
+ export interface Cerfa2035Society {
87
+ name: string;
88
+ activity: string | null;
89
+ siret: string;
90
+ activityCode?: string; // Code activité pour les praticiens médicaux
91
+ ifExerciceInSociety?: boolean; // Si exercice en société
92
+ partnersCount?: number;
93
+ determinedResult?: DeterminedResult; // Résultat déterminé
94
+ accountingKept: AccountingKept; // Comptabilité tenue
95
+ accreditedOrganization?: AccreditedOrganization // Si vous êtes adhérent d'un organisme agréé (association ou organisme mixte) ou client d'un viseur fiscal
96
+ address: string;
97
+ zipCode: string;
98
+ city: string;
99
+ }
100
+
101
+ export interface Cerfa2035ProfessionalRecipes {
102
+ collected: number;
103
+ toDeduce: {
104
+ disbursements: number;
105
+ retrocededFees: {
106
+ total: number;
107
+ supplement: number;
108
+ }
109
+ };
110
+ net: number;
111
+ financialProducts: number;
112
+ miscellaneousGain: number;
113
+ total: number;
114
+ }
115
+
116
+ export interface Cerfa2035ProfessionalExpenses {
117
+ purchases: number;
118
+ personnelCosts: {
119
+ netSalariesAndBenefitsInKind: number;
120
+ socialChargesOnSalaries: number;
121
+ }
122
+ duesAndTaxes: {
123
+ valueAddedTax: number;
124
+ territorialEconomicContribution: number;
125
+ otherTaxes: number;
126
+ generalDeductibleSocialContribution: number;
127
+ };
128
+ rentAndRentalCharges: number;
129
+ equipmentRental: {
130
+ total: number;
131
+ collaborationFees: number;
132
+ };
133
+ maintenance: number;
134
+ temporaryStaff: number;
135
+ smallTools: number;
136
+ heatingWaterGasElectricity: number;
137
+ feesNotRetrocessions: number;
138
+ insurancePremiums: number;
139
+ vehicleCosts: {
140
+ total: number;
141
+ lumpSumAssessment: boolean;
142
+ };
143
+ otherTravelExpenses: number;
144
+ totalWorkSupplies: number;
145
+ totalTransport: number;
146
+ personalSocialCharges: {
147
+ obligatory: number;
148
+ contributionsMadelin: number;
149
+ retirementSavingsPlans: number;
150
+ total: number;
151
+ };
152
+ receptionFees: number;
153
+ officeSupplies: number;
154
+ legalCosts: number;
155
+ unionDues: number;
156
+ otherManagementFees: number;
157
+ totalDues: number;
158
+ financialExpenses: number;
159
+ miscellaneousLosses: number;
160
+ total: number;
161
+ }
162
+
163
+ export interface Cerfa2035Determination {
164
+ surplus: number;
165
+ shortTermCapitalGains: number;
166
+ miscellaneousToBeReinstated: number;
167
+ civilSocietyBenefit: number;
168
+ totalSurplus: number;
169
+ insufficiency: number;
170
+ administrationFees: number;
171
+ depreciationAllowance: number;
172
+ shortTermLoss: number;
173
+ miscellaneousToBeDeducted: {
174
+ freeZone: {
175
+ amount: number;
176
+ };
177
+ newBusiness: {
178
+ onSavingsSalary: number;
179
+ amount: number;
180
+ };
181
+ innovativeCompanies: {
182
+ amount: number;
183
+ youngArtists: number;
184
+ }
185
+ doctorsExemption: {
186
+ amount: number;
187
+ sectorApprovedDoctors: number;
188
+ };
189
+ total: number;
190
+ }
191
+ civilSocietyDeficit: number;
192
+ totalInsufficiency: number;
193
+ profit: number;
194
+ deficit: number;
195
+ }
196
+
197
+ export interface Cerfa2035ValueAddedTax {
198
+ grossReceipts: number;
199
+ relatedToPurchases: {
200
+ amount: number;
201
+ retrocededFees: number;
202
+ };
203
+ }
204
+
205
+ export interface Cerfa2035KilometricAllowance {
206
+ vehicles: Vehicle[];
207
+ costsNotCoveredByKilometricAllowances: number;
208
+ totalDeductible: number;
209
+ totalDepreciationPracticedAtReintegrate: number;
210
+ }
211
+
212
+ export interface Cerfa2035Recipes {
213
+ fees: number;
214
+ miscellaneousGains: number;
215
+ deductibleVat: number;
216
+ capitalGains: number;
217
+ total: number;
218
+ }
219
+
220
+ export interface Cerfa2035Expenses {
221
+ purchases: number;
222
+ stockVariation: number;
223
+ externalServices: number;
224
+ rentsAndRoyalties: number;
225
+ transport: number;
226
+ management: number;
227
+ vatInRecipes: number;
228
+ turnoverTax: number;
229
+ amortization: number;
230
+ capitalLosses: number;
231
+ total: number;
232
+ }
233
+
234
+ export interface Cerfa2035MonoEstablishment {
235
+ is: boolean; // Est mono établissement
236
+ benchmarkTurnover: number;
237
+ groupTurnover: number;
238
+ workforce: number;
239
+ period: { startDate: Date, endDate: Date };
240
+ cessationDate: Date;
241
+ }
242
+
243
+ export interface Cerfa2035ShareCapital {
244
+ moralAssociates: number;
245
+ moralAssociatesShares: number;
246
+ physicAssociates: number;
247
+ physicAssociatesShares: number;
248
+ moralShareholder: MoralShareholder[];
249
+ physicShareholder: PhysicShareholder[];
250
+ idDeposit?: number;
251
+ }
252
+
253
+ export interface Cerfa2035 {
254
+ isNil: boolean;
255
+ society: Cerfa2035Society;
256
+ immobilizations: number;
257
+ professionalRecipes: Cerfa2035ProfessionalRecipes;
258
+ professionalExpenses: Cerfa2035ProfessionalExpenses;
259
+ determination: Cerfa2035Determination;
260
+ valueAddedTax: Cerfa2035ValueAddedTax;
261
+ territorialContribution: number;
262
+ kilometricAllowances: Cerfa2035KilometricAllowance;
263
+ period: { startDate: Date, endDate: Date, months: string };
264
+ shareCapital: Cerfa2035ShareCapital;
265
+ subsidiaries: { total: number, list: Subsidiarie[] };
266
+ annex?: {
267
+ recipes: Cerfa2035Recipes;
268
+ expenses: Cerfa2035Expenses;
269
+ addedValue: number;
270
+ addedValueContribution: number;
271
+ monoEstablishment: Cerfa2035MonoEstablishment | null;
272
+ }
273
+ }
274
+
275
+ export class ParamsGenerate2035 {
276
+ @ApiProperty()
277
+ isTest?: boolean; // Modifie le chemin du PDF
278
+
279
+ @ApiProperty()
280
+ isNil: boolean; // Néant
281
+
282
+ @ApiPropertyOptional()
283
+ disbursements?: number | null; // Débours payés pour le compte des clients
284
+
285
+ @ApiPropertyOptional()
286
+ supplement?: number | null; // Honoraires rétrocédés (dont suppléments rétrocédés)
287
+
288
+ @ApiPropertyOptional()
289
+ activityCode?: string | null; // Code activité pour les praticiens médicaux
290
+
291
+ @ApiPropertyOptional()
292
+ valueAddedTax?: number | null; // Impôts et taxes : Taxe sur la valeur ajoutée
293
+
294
+ @ApiPropertyOptional()
295
+ equipmentRentalCollaborationFees?: number | null; // Location de matériel et de mobilier – dont redevances de collaboration
296
+
297
+ @ApiPropertyOptional()
298
+ lumpSumAssessment?: boolean | null; // Frais de véhicules - (cocher la case si évaluation forfaitaire)
299
+
300
+ @ApiPropertyOptional()
301
+ personalSocialChargesObligatory?: number | null; // Charges sociales personnelles - dont obligatoires
302
+
303
+ @ApiPropertyOptional()
304
+ contributionsMadelin?: number | null; // Charges sociales personnelles - dont cotisations facultatives Madelin
305
+
306
+ @ApiPropertyOptional()
307
+ retirementSavingsPlans?: number | null; // Dont facultatives aux nouveaux plans d’épargne retraite
308
+
309
+ @ApiPropertyOptional()
310
+ miscellaneousToBeReinstated?: number | null; // Divers à réintégrer
311
+
312
+ @ApiPropertyOptional()
313
+ civilSocietyBenefit?: number | null; // Bénéfice Société civile de moyen
314
+
315
+ @ApiPropertyOptional()
316
+ administrationFees?: number | null; // Frais d'établissement
317
+
318
+ @ApiPropertyOptional()
319
+ mtbdFreeZoneAmount?: number | null; // dont exonération sur le bénéfice « zone franche urbaine territoire entrepreneur »
320
+
321
+ @ApiPropertyOptional()
322
+ mtbdNewBusinessAmount?: number | null; // dont exonération sur le bénéfice « entreprise nouvelle »
323
+
324
+ @ApiPropertyOptional()
325
+ mtbdInnovativeCompaniesAmount?: number | null; // dont exonération « jeunes entreprises innovantes »
326
+
327
+ @ApiPropertyOptional()
328
+ mtbdInnovativeCompaniesYoungArtists?: number | null; // dont exonération sur le bénéfice « jeunes artistes »
329
+
330
+ @ApiPropertyOptional()
331
+ mtbdDoctorsExemptionAmount?: number | null; // dont exonération médecins « zones déficitaires en offre de soins »
332
+
333
+ @ApiPropertyOptional()
334
+ mtbdDoctorsExemptionSectorApprovedDoctors?: number | null; // dont déductions « médecins conventionnés de secteur I »
335
+
336
+ @ApiPropertyOptional()
337
+ grossReceipts?: number | null; // Montant de la TVA afférente aux recettes brutes
338
+
339
+ @ApiPropertyOptional()
340
+ relatedToPurchasesAmount?: number | null; // Montant de la TVA afférente aux achats (biens et services autres qu'immobilisations) :
341
+
342
+ @ApiPropertyOptional()
343
+ retrocededFees?: number | null; // dont montant de la TVA afférente aux honoraires rétrocédés
344
+
345
+ @ApiPropertyOptional()
346
+ territorialContribution?: number | null; // Recettes provenant d'activités exonérées à titre permanent
347
+
348
+ @ApiPropertyOptional()
349
+ miscellaneousToBeDeductedTotal?: number | null; // Divers à déduire (CL)
350
+ }
@@ -0,0 +1,37 @@
1
+ import { ILetter } from '../../..';
2
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
+
4
+ export class CreateLetter implements ILetter {
5
+ @ApiProperty()
6
+ idLetterType: number;
7
+
8
+ @ApiPropertyOptional()
9
+ idReport?: number;
10
+
11
+ @ApiProperty()
12
+ idSociety: number;
13
+
14
+ @ApiProperty()
15
+ letterDate: Date;
16
+
17
+ @ApiPropertyOptional()
18
+ complement?: string;
19
+
20
+ @ApiPropertyOptional()
21
+ fileType?: 'receivedFileObject' | 'responseFileObject' | null;
22
+
23
+ @ApiPropertyOptional()
24
+ isLRAR?: boolean;
25
+
26
+ @ApiPropertyOptional()
27
+ isDone?: boolean;
28
+
29
+ @ApiPropertyOptional()
30
+ needResponse?: boolean;
31
+
32
+ @ApiPropertyOptional()
33
+ ARNumber?: string;
34
+
35
+ @ApiPropertyOptional()
36
+ idAccountant?: number;
37
+ }
@@ -0,0 +1,29 @@
1
+ import { IReport } from '../../..';
2
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
+ import { TFile } from '../file/TFile';
4
+
5
+ export class CreateReport implements IReport {
6
+ @ApiPropertyOptional()
7
+ idReportType?: number;
8
+
9
+ @ApiPropertyOptional()
10
+ idSociety?: number;
11
+
12
+ @ApiProperty()
13
+ idUser: number;
14
+
15
+ @ApiProperty()
16
+ message: string;
17
+
18
+ @ApiPropertyOptional()
19
+ search?: string;
20
+
21
+ @ApiProperty()
22
+ letterDate: Date;
23
+
24
+ @ApiPropertyOptional()
25
+ receivedFile?: TFile;
26
+
27
+ @ApiPropertyOptional()
28
+ responseFile?: TFile;
29
+ }
@@ -0,0 +1,21 @@
1
+ import { ApiPropertyOptional } from '../../../../utils';
2
+
3
+ export class QueryReports {
4
+ @ApiPropertyOptional()
5
+ idReportType?: number;
6
+
7
+ @ApiPropertyOptional()
8
+ idSociety?: number;
9
+
10
+ @ApiPropertyOptional()
11
+ search?: string;
12
+
13
+ @ApiPropertyOptional()
14
+ year?: number;
15
+
16
+ @ApiPropertyOptional()
17
+ state?: number;
18
+
19
+ @ApiPropertyOptional()
20
+ idUser?: number;
21
+ }
@@ -0,0 +1,9 @@
1
+ // import { TFile } from 'Utils/type.utils';
2
+ import { IReport, IUser } from '../../..';
3
+
4
+ export interface ReadReport extends IReport {
5
+ idUser: number,
6
+ idReportMessage?: number,
7
+ message?: string,
8
+ societyUsers?: IUser[]
9
+ }
@@ -0,0 +1,24 @@
1
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
2
+
3
+ export class CreateSociety {
4
+ @ApiProperty()
5
+ idUser: number;
6
+
7
+ @ApiProperty()
8
+ idTypeCompta: number;
9
+
10
+ @ApiPropertyOptional()
11
+ name?: string;
12
+
13
+ @ApiPropertyOptional()
14
+ idActivity?: number;
15
+
16
+ @ApiPropertyOptional()
17
+ idTvaRegime?: number;
18
+
19
+ @ApiPropertyOptional()
20
+ idLegalForm?: number;
21
+
22
+ @ApiPropertyOptional()
23
+ exercicePeriod?: { start: string, end: string };
24
+ }
@@ -0,0 +1,4 @@
1
+ export type GetDataSociety = {
2
+ search: string;
3
+ start?: number
4
+ };
@@ -0,0 +1,5 @@
1
+ export type LegalFormSiren = {
2
+ l1_normalisee: string;
3
+ l4_declaree: string;
4
+ l6_declaree: string;
5
+ };
@@ -0,0 +1,18 @@
1
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
2
+
3
+ export class CreateUser {
4
+ @ApiProperty()
5
+ email: string;
6
+ @ApiProperty()
7
+ phone: string;
8
+ @ApiProperty()
9
+ password: string;
10
+ @ApiProperty()
11
+ firstname: string;
12
+ @ApiProperty()
13
+ lastname: string;
14
+ @ApiProperty()
15
+ acceptCgv?: boolean; // not sure if needed (maybe more a front notion)
16
+ @ApiPropertyOptional()
17
+ acceptNewsletter?: boolean;
18
+ }
@@ -0,0 +1,6 @@
1
+ import { ApiProperty } from '../../../../utils';
2
+
3
+ export class QueryUserSmsConfirmation {
4
+ @ApiProperty()
5
+ code: string;
6
+ }
@@ -2,6 +2,8 @@
2
2
  export interface IAccountingJournal {
3
3
  id?: number;
4
4
  name: string;
5
+ fullname: string;
6
+ idAccountingJournalParent?: number;
5
7
  createdAt?: Date | null;
6
8
  updatedAt?: Date | null;
7
9
  }
@@ -39,6 +39,7 @@ export enum Code {
39
39
 
40
40
  // PDF error
41
41
  mergeFailed = 'merge_failed',
42
+ generationError = 'generation_error',
42
43
 
43
44
  // Email error
44
45
  emailAlreadyExist = 'email_already_exist',
@@ -53,8 +54,21 @@ export enum Code {
53
54
  // Income statement
54
55
  invalidIncomeStatementList = 'invalid_income_statement_list',
55
56
 
57
+ // Balance Sheet
58
+ invalidBalanceSheetList = 'invalid_balance_sheet_list',
59
+
56
60
  // FecFile
57
61
  insertAccountingTransactionFailed = 'insert_accounting_transaction_failed',
62
+
63
+ // User creation
64
+ userAlreadyExistWithSociety = 'user-already-exists',
65
+ userDoesNotExists = 'user-does-not-exist',
66
+ expiredSmsCode = 'expired-sms-code',
67
+ userNotInFmaProcess = 'user-not-in-maf-process',
68
+ wrongSmsCode = 'wrong-sms-code',
69
+
70
+ // Cerfa
71
+ civilityNotFound = 'civility_not_found',
58
72
  }
59
73
 
60
74
  export interface IApiError {
@@ -2,27 +2,31 @@ import { IUser } from './IUser';
2
2
  import { ISociety } from './ISociety';
3
3
  import { ILetterType } from './ILetterType';
4
4
  import { IFile } from './IFile';
5
+ import { IReport } from './IReport';
5
6
 
6
7
  // letters
7
8
  export interface ILetter {
8
9
  id?: number;
9
- idTypeLetter: number;
10
+ complement?: string | null;
11
+ isLRAR?: boolean;
12
+ isDone?: boolean;
13
+ needResponse?: boolean;
14
+ letterDate: Date;
15
+ ARNumber?: string | null;
16
+ idLetterType: number;
17
+ idReceivedFile?: number | null;
18
+ idResponseFile?: number | null;
10
19
  idSociety: number;
11
- idAccountant: number;
12
- complement: string | null;
13
- isLRAR: boolean;
14
- idReceivedFile: number | null;
15
- idResponseFile: number | null;
16
- isDone: boolean;
17
- needResponse: boolean;
18
- receivedAt: Date;
20
+ idReport?: number;
21
+ idAccountant?: number;
19
22
  createdAt?: Date | null;
20
23
  updatedAt?: Date | null;
21
24
 
22
25
  // Associations
23
- user: IUser;
24
- society: ISociety;
25
- typeLetter: ILetterType;
26
- receivedFile: IFile;
27
- responseFile: IFile;
26
+ user?: IUser;
27
+ society?: ISociety;
28
+ report?: IReport;
29
+ typeLetter?: ILetterType;
30
+ receivedFile?: IFile;
31
+ responseFile?: IFile;
28
32
  }