@silexpert/core 0.4.197 → 0.4.202

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 (286) hide show
  1. package/es/api/resources/Checklist.d.ts +20 -0
  2. package/es/api/resources/Checklist.d.ts.map +1 -0
  3. package/es/api/resources/Checklist.js +38 -0
  4. package/es/api/resources/Checklist.js.map +1 -0
  5. package/es/api/resources/GeneralLedger.d.ts +2 -1
  6. package/es/api/resources/GeneralLedger.d.ts.map +1 -1
  7. package/es/api/resources/GeneralLedger.js +3 -0
  8. package/es/api/resources/GeneralLedger.js.map +1 -1
  9. package/es/api/resources/Lettering.d.ts +7 -0
  10. package/es/api/resources/Lettering.d.ts.map +1 -0
  11. package/es/api/resources/Lettering.js +13 -0
  12. package/es/api/resources/Lettering.js.map +1 -0
  13. package/es/api/resources/Mobile.d.ts +6 -0
  14. package/es/api/resources/Mobile.d.ts.map +1 -0
  15. package/es/api/resources/Mobile.js +7 -0
  16. package/es/api/resources/Mobile.js.map +1 -0
  17. package/es/api/resources/Notification.d.ts +5 -0
  18. package/es/api/resources/Notification.d.ts.map +1 -0
  19. package/es/api/resources/Notification.js +7 -0
  20. package/es/api/resources/Notification.js.map +1 -0
  21. package/es/api/resources/Revision.d.ts +2 -1
  22. package/es/api/resources/Revision.d.ts.map +1 -1
  23. package/es/api/resources/Revision.js +3 -0
  24. package/es/api/resources/Revision.js.map +1 -1
  25. package/es/api/resources/Transaction.d.ts +5 -13
  26. package/es/api/resources/Transaction.d.ts.map +1 -1
  27. package/es/api/resources/Transaction.js +5 -0
  28. package/es/api/resources/Transaction.js.map +1 -1
  29. package/es/api/resources/User.d.ts +3 -1
  30. package/es/api/resources/User.d.ts.map +1 -1
  31. package/es/api/resources/User.js +6 -0
  32. package/es/api/resources/User.js.map +1 -1
  33. package/es/api/resources.d.ts +8 -0
  34. package/es/api/resources.d.ts.map +1 -1
  35. package/es/api/resources.js +8 -0
  36. package/es/api/resources.js.map +1 -1
  37. package/es/types/Enum/Account.d.ts +4 -0
  38. package/es/types/Enum/Account.d.ts.map +1 -1
  39. package/es/types/Enum/Account.js +4 -0
  40. package/es/types/Enum/Account.js.map +1 -1
  41. package/es/types/Enum/BrandClementine.d.ts +10 -0
  42. package/es/types/Enum/BrandClementine.d.ts.map +1 -1
  43. package/es/types/Enum/BrandClementine.js +5 -0
  44. package/es/types/Enum/BrandClementine.js.map +1 -1
  45. package/es/types/Enum/BrandComptalib.d.ts +6 -0
  46. package/es/types/Enum/BrandComptalib.d.ts.map +1 -1
  47. package/es/types/Enum/BrandComptalib.js +8 -0
  48. package/es/types/Enum/BrandComptalib.js.map +1 -1
  49. package/es/types/Enum/BrandLegalstart.d.ts +2 -0
  50. package/es/types/Enum/BrandLegalstart.d.ts.map +1 -1
  51. package/es/types/Enum/BrandLegalstart.js +2 -0
  52. package/es/types/Enum/BrandLegalstart.js.map +1 -1
  53. package/es/types/Enum/ChecklistType.d.ts +60 -0
  54. package/es/types/Enum/ChecklistType.d.ts.map +1 -0
  55. package/es/types/Enum/ChecklistType.js +64 -0
  56. package/es/types/Enum/ChecklistType.js.map +1 -0
  57. package/es/types/Enum/EstimateInvoice.d.ts +1 -1
  58. package/es/types/Enum/EstimateInvoice.d.ts.map +1 -1
  59. package/es/types/Enum/EstimateInvoice.js +9 -9
  60. package/es/types/Enum/EstimateInvoice.js.map +1 -1
  61. package/es/types/Enum/MailAuto.d.ts +3 -1
  62. package/es/types/Enum/MailAuto.d.ts.map +1 -1
  63. package/es/types/Enum/MailAuto.js +2 -0
  64. package/es/types/Enum/MailAuto.js.map +1 -1
  65. package/es/types/Enum/NotificationType.d.ts +5 -0
  66. package/es/types/Enum/NotificationType.d.ts.map +1 -0
  67. package/es/types/Enum/NotificationType.js +6 -0
  68. package/es/types/Enum/NotificationType.js.map +1 -0
  69. package/es/types/Enum/VehicleType.d.ts +9 -17
  70. package/es/types/Enum/VehicleType.d.ts.map +1 -1
  71. package/es/types/Enum/VehicleType.js.map +1 -1
  72. package/es/types/Interface/api/checklist/Query.d.ts +20 -0
  73. package/es/types/Interface/api/checklist/Query.d.ts.map +1 -0
  74. package/es/types/Interface/api/checklist/Query.js +59 -0
  75. package/es/types/Interface/api/checklist/Query.js.map +1 -0
  76. package/es/types/Interface/api/checklist/Read.d.ts +12 -0
  77. package/es/types/Interface/api/checklist/Read.d.ts.map +1 -0
  78. package/es/types/Interface/api/checklist/Read.js +2 -0
  79. package/es/types/Interface/api/checklist/Read.js.map +1 -0
  80. package/es/types/Interface/api/checklist/Update.d.ts +6 -0
  81. package/es/types/Interface/api/checklist/Update.d.ts.map +1 -0
  82. package/es/types/Interface/api/checklist/Update.js +25 -0
  83. package/es/types/Interface/api/checklist/Update.js.map +1 -0
  84. package/es/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.d.ts +3 -1
  85. package/es/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.d.ts.map +1 -1
  86. package/es/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.js.map +1 -1
  87. package/es/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts +10 -0
  88. package/es/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts.map +1 -0
  89. package/es/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js +2 -0
  90. package/es/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js.map +1 -0
  91. package/es/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.d.ts +12 -0
  92. package/es/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.d.ts.map +1 -0
  93. package/es/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js +63 -0
  94. package/es/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js.map +1 -0
  95. package/es/types/Interface/api/lettering/QueryRegroupLettering.d.ts +4 -0
  96. package/es/types/Interface/api/lettering/QueryRegroupLettering.d.ts.map +1 -0
  97. package/es/types/Interface/api/lettering/QueryRegroupLettering.js +19 -0
  98. package/es/types/Interface/api/lettering/QueryRegroupLettering.js.map +1 -0
  99. package/es/types/Interface/api/mail/QueryCountMail.d.ts +1 -0
  100. package/es/types/Interface/api/mail/QueryCountMail.d.ts.map +1 -1
  101. package/es/types/Interface/api/mail/QueryCountMail.js +6 -0
  102. package/es/types/Interface/api/mail/QueryCountMail.js.map +1 -1
  103. package/es/types/Interface/api/mobile/UpdateMobile.d.ts +4 -0
  104. package/es/types/Interface/api/mobile/UpdateMobile.d.ts.map +1 -0
  105. package/es/types/Interface/api/mobile/UpdateMobile.js +17 -0
  106. package/es/types/Interface/api/mobile/UpdateMobile.js.map +1 -0
  107. package/es/types/Interface/api/notification/CreateNotification.d.ts +6 -0
  108. package/es/types/Interface/api/notification/CreateNotification.d.ts.map +1 -0
  109. package/es/types/Interface/api/notification/CreateNotification.js +22 -0
  110. package/es/types/Interface/api/notification/CreateNotification.js.map +1 -0
  111. package/es/types/Interface/api/revision/QueryRevisionApprobation.d.ts +7 -0
  112. package/es/types/Interface/api/revision/QueryRevisionApprobation.d.ts.map +1 -0
  113. package/es/types/Interface/api/revision/QueryRevisionApprobation.js +34 -0
  114. package/es/types/Interface/api/revision/QueryRevisionApprobation.js.map +1 -0
  115. package/es/types/Interface/api/revision/ReadRevisionAccount.d.ts +2 -2
  116. package/es/types/Interface/api/revision/ReadRevisionAccount.d.ts.map +1 -1
  117. package/es/types/Interface/api/revision/ReadRevisionAccount.js.map +1 -1
  118. package/es/types/Interface/api/society/ReadSociety.d.ts +4 -0
  119. package/es/types/Interface/api/society/ReadSociety.d.ts.map +1 -1
  120. package/es/types/Interface/api/society/ReadSociety.js.map +1 -1
  121. package/es/types/Interface/api/tax/ReadTax.d.ts +9 -0
  122. package/es/types/Interface/api/tax/ReadTax.d.ts.map +1 -1
  123. package/es/types/Interface/api/tax/ReadTax.js.map +1 -1
  124. package/es/types/Interface/api/user/ParamsGetAll.d.ts +1 -3
  125. package/es/types/Interface/api/user/ParamsGetAll.d.ts.map +1 -1
  126. package/es/types/Interface/api/user/ParamsGetAll.js +3 -13
  127. package/es/types/Interface/api/user/ParamsGetAll.js.map +1 -1
  128. package/es/types/Interface/models/IAccountDetail.d.ts +6 -6
  129. package/es/types/Interface/models/IAccountDetail.d.ts.map +1 -1
  130. package/es/types/Interface/models/IAccountDetail.js.map +1 -1
  131. package/es/types/Interface/models/IAccountingEntry.d.ts +1 -0
  132. package/es/types/Interface/models/IAccountingEntry.d.ts.map +1 -1
  133. package/es/types/Interface/models/IAccountingEntry.js.map +1 -1
  134. package/es/types/Interface/models/IAccountingTransaction.d.ts +0 -3
  135. package/es/types/Interface/models/IAccountingTransaction.d.ts.map +1 -1
  136. package/es/types/Interface/models/IAccountingTransaction.js.map +1 -1
  137. package/es/types/Interface/models/IApiError.d.ts +5 -1
  138. package/es/types/Interface/models/IApiError.d.ts.map +1 -1
  139. package/es/types/Interface/models/IApiError.js +4 -0
  140. package/es/types/Interface/models/IApiError.js.map +1 -1
  141. package/es/types/Interface/models/IChecklist.d.ts +13 -9
  142. package/es/types/Interface/models/IChecklist.d.ts.map +1 -1
  143. package/es/types/Interface/models/IChecklist.js.map +1 -1
  144. package/es/types/Interface/models/IChecklistDetail.d.ts +1 -0
  145. package/es/types/Interface/models/IChecklistDetail.d.ts.map +1 -1
  146. package/es/types/Interface/models/IChecklistDetail.js.map +1 -1
  147. package/es/types/Interface/models/IChecklistType.d.ts +7 -0
  148. package/es/types/Interface/models/IChecklistType.d.ts.map +1 -1
  149. package/es/types/Interface/models/IChecklistType.js.map +1 -1
  150. package/es/types/Interface/models/ILettering.d.ts +0 -2
  151. package/es/types/Interface/models/ILettering.d.ts.map +1 -1
  152. package/es/types/Interface/models/ILettering.js.map +1 -1
  153. package/es/types/Interface/models/IMobile.d.ts +11 -0
  154. package/es/types/Interface/models/IMobile.d.ts.map +1 -0
  155. package/es/types/Interface/models/IMobile.js +2 -0
  156. package/es/types/Interface/models/IMobile.js.map +1 -0
  157. package/es/types/Interface/models/ISociety.d.ts +11 -2
  158. package/es/types/Interface/models/ISociety.d.ts.map +1 -1
  159. package/es/types/Interface/models/ISociety.js.map +1 -1
  160. package/es/types/Interface/models/ISocietyConfig.d.ts +1 -0
  161. package/es/types/Interface/models/ISocietyConfig.d.ts.map +1 -1
  162. package/es/types/Interface/models/ISocietyConfig.js.map +1 -1
  163. package/es/types/Interface/models/IUser.d.ts +2 -0
  164. package/es/types/Interface/models/IUser.d.ts.map +1 -1
  165. package/es/types/Interface/models/IUser.js.map +1 -1
  166. package/es/types/index.d.ts +13 -0
  167. package/es/types/index.d.ts.map +1 -1
  168. package/es/types/index.js +13 -0
  169. package/es/types/index.js.map +1 -1
  170. package/es/utils/checklist.d.ts +3 -0
  171. package/es/utils/checklist.d.ts.map +1 -0
  172. package/es/utils/checklist.js +37 -0
  173. package/es/utils/checklist.js.map +1 -0
  174. package/js/api/resources/Checklist.js +68 -0
  175. package/js/api/resources/Checklist.js.map +1 -0
  176. package/js/api/resources/GeneralLedger.js +6 -0
  177. package/js/api/resources/GeneralLedger.js.map +1 -1
  178. package/js/api/resources/Lettering.js +25 -0
  179. package/js/api/resources/Lettering.js.map +1 -0
  180. package/js/api/resources/Mobile.js +18 -0
  181. package/js/api/resources/Mobile.js.map +1 -0
  182. package/js/api/resources/Notification.js +18 -0
  183. package/js/api/resources/Notification.js.map +1 -0
  184. package/js/api/resources/Revision.js +4 -0
  185. package/js/api/resources/Revision.js.map +1 -1
  186. package/js/api/resources/Transaction.js +6 -0
  187. package/js/api/resources/Transaction.js.map +1 -1
  188. package/js/api/resources/User.js +10 -0
  189. package/js/api/resources/User.js.map +1 -1
  190. package/js/api/resources.js +13 -1
  191. package/js/api/resources.js.map +1 -1
  192. package/js/types/Enum/Account.js +4 -0
  193. package/js/types/Enum/Account.js.map +1 -1
  194. package/js/types/Enum/BrandClementine.js +5 -0
  195. package/js/types/Enum/BrandClementine.js.map +1 -1
  196. package/js/types/Enum/BrandComptalib.js +8 -0
  197. package/js/types/Enum/BrandComptalib.js.map +1 -1
  198. package/js/types/Enum/BrandLegalstart.js +2 -0
  199. package/js/types/Enum/BrandLegalstart.js.map +1 -1
  200. package/js/types/Enum/ChecklistType.js +76 -0
  201. package/js/types/Enum/ChecklistType.js.map +1 -0
  202. package/js/types/Enum/EstimateInvoice.js +9 -9
  203. package/js/types/Enum/EstimateInvoice.js.map +1 -1
  204. package/js/types/Enum/MailAuto.js +2 -0
  205. package/js/types/Enum/MailAuto.js.map +1 -1
  206. package/js/types/Enum/NotificationType.js +12 -0
  207. package/js/types/Enum/NotificationType.js.map +1 -0
  208. package/js/types/Enum/VehicleType.js.map +1 -1
  209. package/js/types/Interface/api/checklist/Query.js +57 -0
  210. package/js/types/Interface/api/checklist/Query.js.map +1 -0
  211. package/js/types/Interface/api/checklist/Read.js +6 -0
  212. package/js/types/Interface/api/checklist/Read.js.map +1 -0
  213. package/js/types/Interface/api/checklist/Update.js +33 -0
  214. package/js/types/Interface/api/checklist/Update.js.map +1 -0
  215. package/js/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js +6 -0
  216. package/js/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js.map +1 -0
  217. package/js/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js +54 -0
  218. package/js/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.js.map +1 -0
  219. package/js/types/Interface/api/lettering/QueryRegroupLettering.js +29 -0
  220. package/js/types/Interface/api/lettering/QueryRegroupLettering.js.map +1 -0
  221. package/js/types/Interface/api/mail/QueryCountMail.js +4 -0
  222. package/js/types/Interface/api/mail/QueryCountMail.js.map +1 -1
  223. package/js/types/Interface/api/mobile/UpdateMobile.js +27 -0
  224. package/js/types/Interface/api/mobile/UpdateMobile.js.map +1 -0
  225. package/js/types/Interface/api/notification/CreateNotification.js +31 -0
  226. package/js/types/Interface/api/notification/CreateNotification.js.map +1 -0
  227. package/js/types/Interface/api/revision/QueryRevisionApprobation.js +35 -0
  228. package/js/types/Interface/api/revision/QueryRevisionApprobation.js.map +1 -0
  229. package/js/types/Interface/api/user/ParamsGetAll.js +1 -7
  230. package/js/types/Interface/api/user/ParamsGetAll.js.map +1 -1
  231. package/js/types/Interface/models/IApiError.js +4 -0
  232. package/js/types/Interface/models/IApiError.js.map +1 -1
  233. package/js/types/Interface/models/IMobile.js +6 -0
  234. package/js/types/Interface/models/IMobile.js.map +1 -0
  235. package/js/types/index.js +156 -0
  236. package/js/types/index.js.map +1 -1
  237. package/js/utils/checklist.js +48 -0
  238. package/js/utils/checklist.js.map +1 -0
  239. package/package.json +1 -1
  240. package/ts/api/resources/Checklist.ts +51 -0
  241. package/ts/api/resources/GeneralLedger.ts +5 -1
  242. package/ts/api/resources/Lettering.ts +15 -0
  243. package/ts/api/resources/Mobile.ts +8 -0
  244. package/ts/api/resources/Notification.ts +7 -0
  245. package/ts/api/resources/Revision.ts +6 -0
  246. package/ts/api/resources/Transaction.ts +10 -14
  247. package/ts/api/resources/User.ts +7 -1
  248. package/ts/api/resources.ts +8 -0
  249. package/ts/types/Enum/Account.ts +4 -0
  250. package/ts/types/Enum/BrandClementine.ts +5 -0
  251. package/ts/types/Enum/BrandComptalib.ts +8 -0
  252. package/ts/types/Enum/BrandLegalstart.ts +2 -0
  253. package/ts/types/Enum/ChecklistType.ts +62 -0
  254. package/ts/types/Enum/EstimateInvoice.ts +1 -1
  255. package/ts/types/Enum/MailAuto.ts +2 -0
  256. package/ts/types/Enum/NotificationType.ts +4 -0
  257. package/ts/types/Enum/VehicleType.ts +11 -1
  258. package/ts/types/Interface/api/checklist/Query.ts +51 -0
  259. package/ts/types/Interface/api/checklist/Read.ts +10 -0
  260. package/ts/types/Interface/api/checklist/Update.ts +13 -0
  261. package/ts/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.ts +3 -1
  262. package/ts/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.ts +10 -0
  263. package/ts/types/Interface/api/generalLedger/QueryGeneralLedgerAuxiliary.ts +47 -0
  264. package/ts/types/Interface/api/lettering/QueryRegroupLettering.ts +8 -0
  265. package/ts/types/Interface/api/mail/QueryCountMail.ts +5 -0
  266. package/ts/types/Interface/api/mobile/UpdateMobile.ts +6 -0
  267. package/ts/types/Interface/api/notification/CreateNotification.ts +10 -0
  268. package/ts/types/Interface/api/revision/QueryRevisionApprobation.ts +22 -0
  269. package/ts/types/Interface/api/revision/ReadRevisionAccount.ts +2 -2
  270. package/ts/types/Interface/api/society/ReadSociety.ts +5 -0
  271. package/ts/types/Interface/api/tax/ReadTax.ts +8 -1
  272. package/ts/types/Interface/api/user/ParamsGetAll.ts +2 -12
  273. package/ts/types/Interface/models/IAccountDetail.ts +6 -6
  274. package/ts/types/Interface/models/IAccountingEntry.ts +1 -0
  275. package/ts/types/Interface/models/IAccountingTransaction.ts +0 -3
  276. package/ts/types/Interface/models/IApiError.ts +5 -0
  277. package/ts/types/Interface/models/IChecklist.ts +13 -9
  278. package/ts/types/Interface/models/IChecklistDetail.ts +1 -0
  279. package/ts/types/Interface/models/IChecklistType.ts +7 -0
  280. package/ts/types/Interface/models/ILettering.ts +0 -2
  281. package/ts/types/Interface/models/IMobile.ts +13 -0
  282. package/ts/types/Interface/models/ISociety.ts +11 -2
  283. package/ts/types/Interface/models/ISocietyConfig.ts +1 -0
  284. package/ts/types/Interface/models/IUser.ts +2 -0
  285. package/ts/types/index.ts +13 -0
  286. package/ts/utils/checklist.ts +43 -0
@@ -0,0 +1,10 @@
1
+ import { ApiProperty } from '../../../../utils';
2
+ import { NotificationType } from '../../../Enum/NotificationType';
3
+
4
+ export class CreateNotification {
5
+ @ApiProperty()
6
+ notificationType: NotificationType;
7
+
8
+ @ApiProperty()
9
+ token: string;
10
+ }
@@ -0,0 +1,22 @@
1
+ import {
2
+ IsDate, IsNumber, IsString,
3
+ } from 'class-validator';
4
+ import { ApiProperty, ApiPropertyOptional } from '../../../..';
5
+
6
+ export class QueryRevisionApprobation {
7
+ @ApiProperty()
8
+ @IsDate()
9
+ startDate: Date;
10
+
11
+ @ApiProperty()
12
+ @IsDate()
13
+ endDate: Date;
14
+
15
+ @ApiProperty()
16
+ @IsNumber()
17
+ idSociety: number;
18
+
19
+ @ApiPropertyOptional()
20
+ @IsString()
21
+ comment?: string;
22
+ }
@@ -18,6 +18,8 @@ export interface ReadRevisionAccount {
18
18
  idAccountingTransaction: number;
19
19
  idVat: number | null;
20
20
  idImmobilization: number | null;
21
+ idLettering?: number | null;
22
+ lettering?: ILettering;
21
23
  createdAt: Date;
22
24
  updatedAt: Date;
23
25
  accountingTransaction: {
@@ -28,10 +30,8 @@ export interface ReadRevisionAccount {
28
30
  idUser: number | null;
29
31
  exported: Date | null;
30
32
  idAccountingJournal: number;
31
- idLettering: number | null;
32
33
  accountingFiles: Array<IAccountingFile>;
33
34
  accountingJournal: IAccountingJournal;
34
- lettering: ILettering;
35
35
  user: IUser;
36
36
  },
37
37
  thirdParty: { id: number, fullname: string } | null,
@@ -4,4 +4,9 @@ export type UnpaidDetail = {
4
4
  idExercice: number,
5
5
  dateStart: Date,
6
6
  dateEnd: Date,
7
+ };
8
+
9
+ export type ReadInvalidFieldState = {
10
+ label: string;
11
+ field: string;
7
12
  };
@@ -24,4 +24,11 @@ export interface TaxDate {
24
24
  date: string;
25
25
  required: boolean;
26
26
  isBalance: boolean;
27
- }
27
+ }
28
+
29
+ export type ReadVatAmountDetail = { idVat: number; real: number; collected: number; };
30
+
31
+ export type ReadVatAmount = {
32
+ isBalanced: boolean;
33
+ details: ReadVatAmountDetail[];
34
+ };
@@ -1,7 +1,6 @@
1
1
  import {
2
2
  IsBoolean, IsOptional, IsString,
3
3
  } from 'class-validator';
4
- import { Includeable, WhereOptions } from 'sequelize';
5
4
  import { ApiPropertyOptional } from '../../../../utils';
6
5
  import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
7
6
 
@@ -15,17 +14,8 @@ export class ParamsGetAll {
15
14
 
16
15
  @ApiPropertyOptional()
17
16
  @IsOptional()
18
- @IsString({
19
- each: true,
20
- })
21
- where?: WhereOptions<any>;
22
-
23
- @ApiPropertyOptional()
24
- @IsOptional()
25
- @IsString({
26
- each: true,
27
- })
28
- include?: Includeable[];
17
+ @IsString()
18
+ search?: string;
29
19
 
30
20
  @ApiPropertyOptional()
31
21
  @IsOptional()
@@ -5,19 +5,19 @@ import { IUser } from './IUser';
5
5
  // accountDetail
6
6
  export interface IAccountDetail {
7
7
  id?: number;
8
- comment: string | null;
8
+ comment?: string | null;
9
9
  isPending: boolean;
10
10
  checkByIdAccountant: number | null;
11
11
  checkByIdSupervisor: number | null;
12
12
  idAccount: number;
13
- idExercice: number;
13
+ idExercice?: number;
14
14
  idSociety: number;
15
15
  createdAt?: Date | null;
16
16
  updatedAt?: Date | null;
17
17
 
18
18
  // Associations
19
- society: ISociety;
20
- account: IAccount;
21
- accountDetailByAccountant: IUser;
22
- accountDetailBySupervisor: IUser;
19
+ society?: ISociety;
20
+ account?: IAccount;
21
+ accountDetailByAccountant?: IUser;
22
+ accountDetailBySupervisor?: IUser;
23
23
  }
@@ -19,6 +19,7 @@ export interface IAccountingEntry {
19
19
  idInherit: number | null;
20
20
  idAccount: number | null;
21
21
  idThirdParty: number | null;
22
+ idLettering?: number | null;
22
23
  idAccountingTransaction: number;
23
24
  idVat?: number | null;
24
25
  idImmobilization?: number | null;
@@ -8,7 +8,6 @@ import { IRule } from './IRule';
8
8
  import { IEstimateInvoice } from './IEstimateInvoice';
9
9
  import { IFile } from './IFile';
10
10
  import { IComptaType } from './IComptaType';
11
- import { ILettering } from './ILettering';
12
11
  import { IPartnerTransaction } from './IPartnerTransaction';
13
12
  import { ICurrency } from './ICurrency';
14
13
  import { IMachineLearningResult } from '../..';
@@ -46,7 +45,6 @@ export interface IAccountingTransaction {
46
45
  idSocietyVehicle?: number | null;
47
46
  idSocietyPartner?: number | null;
48
47
  idRule?: number | null;
49
- idLettering?: number | null;
50
48
  idAccountingJournal: number;
51
49
  idTypeCompta?: number | null;
52
50
  idEstimateInvoice?: number | null;
@@ -69,7 +67,6 @@ export interface IAccountingTransaction {
69
67
  estimatesInvoice?: IEstimateInvoice;
70
68
  file?: IFile;
71
69
  typeComptum?: IComptaType;
72
- lettering?: ILettering;
73
70
  partnersTransaction: IPartnerTransaction | null;
74
71
  parents?: IAccountingTransaction[];
75
72
  childs?: IAccountingTransaction[];
@@ -160,6 +160,11 @@ export enum Code {
160
160
 
161
161
  // Society Vehicles
162
162
  MISSING_REGISTRATION_CARD = 'MISSING_REGISTRATION_CARD',
163
+
164
+ PREVIOUS_CHECKLIST_NOT_COMPLETED = 'previous_checklist_not_completed',
165
+ CAN_NOT_EDIT_COMPLETED_ISSUE = 'can_not_edit_completed_issue',
166
+ CAN_NOT_CONFIRM_CHECKLIST = 'can_not_confirm_checklist',
167
+ CHECKLIST_ALREADY_EXIST = 'checklist_already_exist',
163
168
  }
164
169
 
165
170
  export interface IApiError {
@@ -2,23 +2,27 @@ import { IChecklistDetail } from './IChecklistDetail';
2
2
  import { IUser } from './IUser';
3
3
  import { IExercice } from './IExercice';
4
4
  import { ICustomerTva } from './ICustomerTva';
5
+ import { ChecklistTypeEnum } from '../../Enum/ChecklistType';
5
6
 
6
7
  // checklist
7
8
  export interface IChecklist {
8
9
  id?: number;
9
10
  idUserFront: number | null;
10
- revisionDate: Date | null;
11
- dateStart: Date | null;
12
- dateEnd: Date | null;
13
- notifyFront: boolean;
11
+ revisionDate?: Date | null;
12
+ isConfirmed: boolean;
13
+ date: Date | null;
14
+ type: ChecklistTypeEnum;
15
+ startDate?: Date | null;
16
+ endDate?: Date | null;
17
+ notifyFront?: boolean;
14
18
  idExercice: number | null;
15
- idCustomerTva: number | null;
19
+ idCustomerVat: number | null;
16
20
  createdAt?: Date | null;
17
21
  updatedAt?: Date | null;
18
22
 
19
23
  // Associations
20
- checklistHasSomeDetails: IChecklistDetail[];
21
- checklistHasOneSupervisor: IUser;
22
- exoChecklist: IExercice;
23
- checklistHasOneCustomerTva: ICustomerTva;
24
+ checklistHasSomeDetails?: IChecklistDetail[];
25
+ checklistHasOneSupervisor?: IUser;
26
+ exoChecklist?: IExercice;
27
+ checklistHasOneCustomerVat?: ICustomerTva;
24
28
  }
@@ -5,6 +5,7 @@ import { IChecklist } from './IChecklist';
5
5
  export interface IChecklistDetail {
6
6
  id?: number;
7
7
  value: string;
8
+ isAutomatic: boolean;
8
9
  idBankAccount: number | null;
9
10
  idTypeChecklist: number;
10
11
  idChecklist: number;
@@ -11,6 +11,13 @@ export interface IChecklistType {
11
11
  options: string | null;
12
12
  idTypeChecklistCategorie: number | null;
13
13
  visible: boolean;
14
+ isNewVersion: boolean;
15
+ isSimple: boolean;
16
+ isReinforced: boolean;
17
+ isBlockingSimple: boolean;
18
+ isBlockingReinforced: boolean;
19
+ emailContent: string | null;
20
+ errorContent: string | null;
14
21
  createdAt?: Date | null;
15
22
  updatedAt?: Date | null;
16
23
 
@@ -1,6 +1,5 @@
1
1
  import { IEngagementBankTransaction } from './IEngagementBankTransaction';
2
2
  import { IEngagementAccountingFile } from './IEngagementAccountingFile';
3
- import { IAccountingTransaction } from './IAccountingTransaction';
4
3
 
5
4
  // lettering
6
5
  export interface ILettering {
@@ -14,5 +13,4 @@ export interface ILettering {
14
13
  // Associations
15
14
  engagementBankTransaction: IEngagementBankTransaction;
16
15
  engagementAccountingFile: IEngagementAccountingFile;
17
- accountingTransaction: IAccountingTransaction;
18
16
  }
@@ -0,0 +1,13 @@
1
+ import { IUser } from './IUser';
2
+
3
+ export interface IMobile {
4
+ id?: number;
5
+ lastConnection: Date | null;
6
+ token: string | null;
7
+ idUser: number;
8
+ createdAt?: Date | null;
9
+ updatedAt?: Date | null;
10
+
11
+ // Associations
12
+ user?: IUser;
13
+ }
@@ -47,7 +47,7 @@ import { ILog } from './ILog';
47
47
  import { ISms } from './ISms';
48
48
  import { IUser } from './IUser';
49
49
  import {
50
- ComptaType, Country, IPartneredAccountantCompanyService, Sector, UnpaidDetail,
50
+ ComptaType, Country, INafCode, IPartneredAccountantCompanyService, Sector, UnpaidDetail, IPartneredAccountantToSociety,
51
51
  } from '../..';
52
52
  import { IBrandType } from './IBrandType';
53
53
 
@@ -71,7 +71,6 @@ export interface ISociety {
71
71
  address: string | null;
72
72
  siret: string | null;
73
73
  diaCode: string | null;
74
- nafCode: string | null;
75
74
  socialCapital: string | null;
76
75
  archive: boolean;
77
76
  archiveDate: Date | null;
@@ -104,6 +103,7 @@ export interface ISociety {
104
103
  idVatRegime: number | null;
105
104
  idTaxSystem: number | null;
106
105
  idActivity: number | null;
106
+ profitsType: number | null;
107
107
  idSource: number | null;
108
108
  idFiscalRegime: number | null;
109
109
  idRegion: number | null;
@@ -115,6 +115,7 @@ export interface ISociety {
115
115
  idSector: Sector | null;
116
116
  idSocietyNotes: number | null;
117
117
  folderNote: string | null;
118
+ oldNafCode: string | null;
118
119
  dateSendAdvise: Date | null;
119
120
  idUserAdvise: number | null;
120
121
  idVatForInternalInvoicing: number;
@@ -139,6 +140,12 @@ export interface ISociety {
139
140
  canceledFirstStepAt: Date | null;
140
141
  completedFirstStepAt: Date | null;
141
142
  lastMobileConnection: Date | null;
143
+ idNafCode: number | null;
144
+ canceledFirstStepTourAt: Date | null;
145
+ step: string | null;
146
+ hidePartneredAccountantsBubbleLink: boolean | null;
147
+ cancelCompleteCreationModal: Date | null;
148
+ isCreatedInApp: boolean;
142
149
 
143
150
  // Associations
144
151
  accounts?: IAccount[];
@@ -168,6 +175,7 @@ export interface ISociety {
168
175
  tvaRegime?: IVatRegime;
169
176
  fiscalRegime?: IFiscalRegime;
170
177
  source?: ISource;
178
+ nafCode?: INafCode;
171
179
  analyticsUtm?: IAnalyticsUtm;
172
180
  activity?: IActivity;
173
181
  softwareCompta?: ISoftwareCompta;
@@ -191,4 +199,5 @@ export interface ISociety {
191
199
  users?: IUser[];
192
200
  brandType?: IBrandType;
193
201
  partneredAccountantCompaniesServices: IPartneredAccountantCompanyService[];
202
+ partneredAccountantRelated: IPartneredAccountantToSociety;
194
203
  }
@@ -9,6 +9,7 @@ export interface ISocietyConfig {
9
9
  logo?: string | null;
10
10
  adjournment: boolean;
11
11
  acceptCgv: boolean;
12
+ showWelcomeModal: boolean;
12
13
  modalNews: boolean;
13
14
  typeMicroentreprise?: number | null;
14
15
  showTipSchedule: boolean;
@@ -13,6 +13,7 @@ import { INotification } from './INotification';
13
13
  import { ISociety } from './ISociety';
14
14
  import { ITeam } from './ITeam';
15
15
  import { IUserTest } from './IUserTest';
16
+ import { IMobile } from './IMobile';
16
17
 
17
18
  type isAny<T> = T | any;
18
19
 
@@ -95,4 +96,5 @@ export interface IUser {
95
96
  societies?: ISociety[];
96
97
  teams?: ITeam[];
97
98
  usersTest?: IUserTest;
99
+ mobile?: IMobile;
98
100
  }
package/ts/types/index.ts CHANGED
@@ -302,6 +302,7 @@ export * from './Interface/models/IBalanceSheetStatus';
302
302
  export * from './Interface/models/IBalanceSheetCompletion';
303
303
  export * from './Interface/models/IDefaultPromotion';
304
304
  export * from './Interface/models/INafCode';
305
+ export * from './Interface/models/IMobile';
305
306
 
306
307
  // Forms
307
308
  export * from './Form/FormAuthenticate';
@@ -408,6 +409,8 @@ export * from './Enum/MailFlag';
408
409
  export * from './Enum/Contract';
409
410
  export * from './Enum/SalariesType';
410
411
  export * from './Enum/SheetMonthScheduleDetailType';
412
+ export * from './Enum/ChecklistType';
413
+ export * from './Enum/NotificationType';
411
414
 
412
415
  // Interfaces API
413
416
  export * from './Interface/api/jeDeclare/ReadJeDeclare';
@@ -513,6 +516,7 @@ export * from './Interface/api/ocr/OcrTypeTransactions';
513
516
  export * from './Interface/api/bankStatement/ReadBankStatement';
514
517
  export * from './Interface/api/tax/ReadCompanyTax';
515
518
  export * from './Interface/api/revision/QueryRevision';
519
+ export * from './Interface/api/revision/QueryRevisionApprobation';
516
520
  export * from './Interface/api/revision/QueryRevisionPaginate';
517
521
  export * from './Interface/api/revision/ReadRevision';
518
522
  export * from './Interface/api/revision/RevisionObject';
@@ -564,6 +568,8 @@ export * from './Interface/api/fecFile/CreateFecFile';
564
568
  export * from './Interface/api/fecFile/DeleteFecFile';
565
569
  export * from './Interface/api/fecFile/ReadFecFile';
566
570
  export * from './Interface/api/generalLedger/QueryGeneralLedger';
571
+ export * from './Interface/api/generalLedger/QueryGeneralLedgerAuxiliary';
572
+ export * from './Interface/api/generalLedger/IGeneralLedgerThirdParty';
567
573
  export * from './Interface/api/incomeStatement/QueryIncomeStatement';
568
574
  export * from './Interface/api/incomeStatement/ReadIncomeStatement';
569
575
  export * from './Interface/api/balanceSheet/ReadBalanceSheet';
@@ -588,6 +594,7 @@ export * from './Interface/api/promoCode/CreatePromoCode';
588
594
  export * from './Interface/api/balanceBankAccount/CreateBudgetBalanceBankAccount';
589
595
  export * from './Interface/api/loan/CreateLoan';
590
596
  export * from './Interface/api/stock/StocksType';
597
+ export * from './Interface/api/lettering/QueryRegroupLettering';
591
598
  // export * from './Interface/api/stock/StockEntries';
592
599
  export * from './Interface/api/societyPromoCode/CreateSocietyPromoCode';
593
600
  export * from './Interface/api/loan/UpdateLoan';
@@ -690,11 +697,17 @@ export * from './Interface/api/balanceSheetModule/ReadPrepareModulesAndCompletio
690
697
  export * from './Interface/api/bankAccount/ReadExpiredBankAccount';
691
698
  export * from './Interface/api/sheetMonthSchedule/QuerySheetMonthSchedule';
692
699
  export * from './Interface/api/calendarEvent/createCalendarEvent';
700
+ export * from './Interface/api/checklist/Read';
701
+ export * from './Interface/api/checklist/Query';
702
+ export * from './Interface/api/checklist/Update';
703
+ export * from './Interface/api/notification/CreateNotification';
693
704
 
694
705
  // Enums types
695
706
  export * from './Interface/enum/Util';
707
+ export * from './Interface/api/mobile/UpdateMobile';
696
708
 
697
709
  export * from '../utils/cerfa';
710
+ export * from '../utils/checklist';
698
711
  export * from './Interface/api/affectedPatrimony/CreateAffectedPatrimony';
699
712
  export * from './Interface/api/affectedPatrimony/CreateInKindAffectedPatrimony';
700
713
  export * from './Interface/api/affectedPatrimony/ResultCreateAffectedPatrimony';
@@ -0,0 +1,43 @@
1
+ import {
2
+ ChecklistDetailName, ChecklistDetailType, ChecklistTypeEnum, IChecklist, IChecklistType, QueryGetAllBlockingIssues,
3
+ } from '../types';
4
+
5
+ export function getAllBlockingIssues(checklist: IChecklist, meta: QueryGetAllBlockingIssues): IChecklistType[] {
6
+ const { questionsList, answers } = meta;
7
+
8
+ const blockingQuestions = questionsList.filter((q) => (checklist.type === ChecklistTypeEnum.REINFORCED ? q.isBlockingReinforced : checklist.type === ChecklistTypeEnum.DEFAULT ? q.isBlockingSimple : false));
9
+ const blockingIssues: IChecklistType[] = [];
10
+
11
+ blockingQuestions.forEach((question) => {
12
+ const answer = answers.find((a) => a.idTypeChecklist === question.id);
13
+
14
+ if (!answer) {
15
+ blockingIssues.push(question);
16
+ } else if (question.name === ChecklistDetailName.ACTION_TAKEN) {
17
+ // Comptes bancaires actifs synchronisés ?
18
+ const questionForAreAllBankAccountsSynchronized = questionsList.find((q) => q.name === ChecklistDetailName.ARE_ALL_BANK_ACCOUNTS_SYNCHRONIZED);
19
+ const answerForAreAllBankAccountsSynchronized = answers.find((a) => a.idTypeChecklist && a.idTypeChecklist === questionForAreAllBankAccountsSynchronized?.id);
20
+
21
+ // Applicatin annotée à 80/100% ?
22
+ const questionForAnnoted = questionsList.find((q) => q.name === (checklist.type === ChecklistTypeEnum.REINFORCED ? ChecklistDetailName.FULLY_ANNOTED : ChecklistDetailName.ALMOST_ANNOTED));
23
+ const answerForAnnoted = answers.find((a) => a.idTypeChecklist && a.idTypeChecklist === questionForAnnoted?.id);
24
+
25
+ if ((!answerForAnnoted?.value || answerForAnnoted.value === '0' || !answerForAreAllBankAccountsSynchronized?.value || answerForAreAllBankAccountsSynchronized.value === '0') && (answer.value === '2' || answer.value === '0' || !answer.value || answer.value === '')) {
26
+ blockingIssues.push(question);
27
+ }
28
+ } else if (question.name === ChecklistDetailName.HAS_JUSTIFIED_CONTRIBUTIONS) {
29
+ const questionForComment = questionsList.find((q) => q.name === ChecklistDetailName.COMMENTS);
30
+ const comment = answers.find((a) => a.idTypeChecklist && a.idTypeChecklist === questionForComment?.id);
31
+
32
+ if (!answer.value || answer.value === '0' || (answer.value === '1' && (!comment?.value || comment?.value === ''))) {
33
+ blockingIssues.push(question);
34
+ }
35
+ } else if ([ChecklistDetailType.SELECT as string, ChecklistDetailType.SWITCH].includes(question.type)) {
36
+ if (!answer.value || answer.value === '0') {
37
+ blockingIssues.push(question);
38
+ }
39
+ }
40
+ });
41
+
42
+ return blockingIssues;
43
+ }