@silexpert/core 1.3.168-1 → 1.3.168-approbation-2

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 (226) hide show
  1. package/dist/cjs/api/resources/DocumentRequest.d.ts +1 -2
  2. package/dist/cjs/api/resources/DocumentRequest.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/DocumentRequest.js +0 -3
  4. package/dist/cjs/api/resources/DocumentRequest.js.map +1 -1
  5. package/dist/cjs/api/resources/SocietyApproval.d.ts +35 -0
  6. package/dist/cjs/api/resources/SocietyApproval.d.ts.map +1 -0
  7. package/dist/cjs/api/resources/SocietyApproval.js +43 -0
  8. package/dist/cjs/api/resources/SocietyApproval.js.map +1 -0
  9. package/dist/cjs/api/resources.d.ts +2 -2
  10. package/dist/cjs/api/resources.d.ts.map +1 -1
  11. package/dist/cjs/api/resources.js +2 -2
  12. package/dist/cjs/api/resources.js.map +1 -1
  13. package/dist/cjs/types/Enum/BalanceSheet.d.ts.map +1 -1
  14. package/dist/cjs/types/Enum/BalanceSheet.js +6 -6
  15. package/dist/cjs/types/Enum/BalanceSheet.js.map +1 -1
  16. package/dist/cjs/types/Enum/BalanceSheetModule.d.ts +0 -2
  17. package/dist/cjs/types/Enum/BalanceSheetModule.d.ts.map +1 -1
  18. package/dist/cjs/types/Enum/BalanceSheetModule.js +1 -23
  19. package/dist/cjs/types/Enum/BalanceSheetModule.js.map +1 -1
  20. package/dist/cjs/types/Enum/Ged.d.ts +2 -16
  21. package/dist/cjs/types/Enum/Ged.d.ts.map +1 -1
  22. package/dist/cjs/types/Enum/Ged.js +0 -131
  23. package/dist/cjs/types/Enum/Ged.js.map +1 -1
  24. package/dist/cjs/types/Enum/SocietyApproval.d.ts +19 -0
  25. package/dist/cjs/types/Enum/SocietyApproval.d.ts.map +1 -0
  26. package/dist/cjs/types/Enum/SocietyApproval.js +144 -0
  27. package/dist/cjs/types/Enum/SocietyApproval.js.map +1 -0
  28. package/dist/cjs/types/Enum/StatutsSection.d.ts +5 -1
  29. package/dist/cjs/types/Enum/StatutsSection.d.ts.map +1 -1
  30. package/dist/cjs/types/Enum/StatutsSection.js +13 -7
  31. package/dist/cjs/types/Enum/StatutsSection.js.map +1 -1
  32. package/dist/cjs/types/Interface/api/SocietyApproval.d.ts +7 -0
  33. package/dist/cjs/types/Interface/api/SocietyApproval.d.ts.map +1 -0
  34. package/dist/cjs/types/Interface/api/SocietyApproval.js +33 -0
  35. package/dist/cjs/types/Interface/api/SocietyApproval.js.map +1 -0
  36. package/dist/cjs/types/Interface/api/documentRequest/Create.d.ts +0 -1
  37. package/dist/cjs/types/Interface/api/documentRequest/Create.d.ts.map +1 -1
  38. package/dist/cjs/types/Interface/api/documentRequest/Create.js +0 -8
  39. package/dist/cjs/types/Interface/api/documentRequest/Create.js.map +1 -1
  40. package/dist/cjs/types/Interface/api/documentRequest/Query.d.ts +0 -3
  41. package/dist/cjs/types/Interface/api/documentRequest/Query.d.ts.map +1 -1
  42. package/dist/cjs/types/Interface/api/documentRequest/Query.js +0 -12
  43. package/dist/cjs/types/Interface/api/documentRequest/Query.js.map +1 -1
  44. package/dist/cjs/types/Interface/api/inpi/infoGreffe.d.ts +78 -0
  45. package/dist/cjs/types/Interface/api/inpi/infoGreffe.d.ts.map +1 -0
  46. package/dist/cjs/types/Interface/{models/IInformationRequest.js → api/inpi/infoGreffe.js} +1 -1
  47. package/dist/cjs/types/Interface/api/inpi/infoGreffe.js.map +1 -0
  48. package/dist/cjs/types/Interface/models/IBalanceSheetModule.d.ts +0 -4
  49. package/dist/cjs/types/Interface/models/IBalanceSheetModule.d.ts.map +1 -1
  50. package/dist/cjs/types/Interface/models/IBalanceSheetModule.js.map +1 -1
  51. package/dist/cjs/types/Interface/models/IDocumentRequest.d.ts +1 -7
  52. package/dist/cjs/types/Interface/models/IDocumentRequest.d.ts.map +1 -1
  53. package/dist/cjs/types/Interface/models/IDocumentRequest.js.map +1 -1
  54. package/dist/cjs/types/Interface/models/ISocietyApproval.d.ts +2 -0
  55. package/dist/cjs/types/Interface/models/ISocietyApproval.d.ts.map +1 -1
  56. package/dist/cjs/types/Interface/models/ISocietyApproval.js.map +1 -1
  57. package/dist/cjs/types/index.d.ts +2 -7
  58. package/dist/cjs/types/index.d.ts.map +1 -1
  59. package/dist/cjs/types/index.js +2 -7
  60. package/dist/cjs/types/index.js.map +1 -1
  61. package/dist/cjs/utils/index.d.ts +1 -0
  62. package/dist/cjs/utils/index.d.ts.map +1 -1
  63. package/dist/cjs/utils/index.js +1 -0
  64. package/dist/cjs/utils/index.js.map +1 -1
  65. package/dist/cjs/utils/societyApproval.d.ts +24 -0
  66. package/dist/cjs/utils/societyApproval.d.ts.map +1 -0
  67. package/dist/cjs/utils/societyApproval.js +64 -0
  68. package/dist/cjs/utils/societyApproval.js.map +1 -0
  69. package/dist/mjs/api/resources/DocumentRequest.d.ts +1 -2
  70. package/dist/mjs/api/resources/DocumentRequest.d.ts.map +1 -1
  71. package/dist/mjs/api/resources/DocumentRequest.js +0 -3
  72. package/dist/mjs/api/resources/DocumentRequest.js.map +1 -1
  73. package/dist/mjs/api/resources/SocietyApproval.d.ts +35 -0
  74. package/dist/mjs/api/resources/SocietyApproval.d.ts.map +1 -0
  75. package/dist/mjs/api/resources/SocietyApproval.js +39 -0
  76. package/dist/mjs/api/resources/SocietyApproval.js.map +1 -0
  77. package/dist/mjs/api/resources.d.ts +2 -2
  78. package/dist/mjs/api/resources.d.ts.map +1 -1
  79. package/dist/mjs/api/resources.js +2 -2
  80. package/dist/mjs/api/resources.js.map +1 -1
  81. package/dist/mjs/types/Enum/BalanceSheet.d.ts.map +1 -1
  82. package/dist/mjs/types/Enum/BalanceSheet.js +6 -6
  83. package/dist/mjs/types/Enum/BalanceSheet.js.map +1 -1
  84. package/dist/mjs/types/Enum/BalanceSheetModule.d.ts +0 -2
  85. package/dist/mjs/types/Enum/BalanceSheetModule.d.ts.map +1 -1
  86. package/dist/mjs/types/Enum/BalanceSheetModule.js +0 -22
  87. package/dist/mjs/types/Enum/BalanceSheetModule.js.map +1 -1
  88. package/dist/mjs/types/Enum/Ged.d.ts +2 -16
  89. package/dist/mjs/types/Enum/Ged.d.ts.map +1 -1
  90. package/dist/mjs/types/Enum/Ged.js +0 -131
  91. package/dist/mjs/types/Enum/Ged.js.map +1 -1
  92. package/dist/mjs/types/Enum/SocietyApproval.d.ts +19 -0
  93. package/dist/mjs/types/Enum/SocietyApproval.d.ts.map +1 -0
  94. package/dist/mjs/types/Enum/SocietyApproval.js +141 -0
  95. package/dist/mjs/types/Enum/SocietyApproval.js.map +1 -0
  96. package/dist/mjs/types/Enum/StatutsSection.d.ts +5 -1
  97. package/dist/mjs/types/Enum/StatutsSection.d.ts.map +1 -1
  98. package/dist/mjs/types/Enum/StatutsSection.js +13 -7
  99. package/dist/mjs/types/Enum/StatutsSection.js.map +1 -1
  100. package/dist/mjs/types/Interface/api/SocietyApproval.d.ts +7 -0
  101. package/dist/mjs/types/Interface/api/SocietyApproval.d.ts.map +1 -0
  102. package/dist/mjs/types/Interface/api/SocietyApproval.js +30 -0
  103. package/dist/mjs/types/Interface/api/SocietyApproval.js.map +1 -0
  104. package/dist/mjs/types/Interface/api/documentRequest/Create.d.ts +0 -1
  105. package/dist/mjs/types/Interface/api/documentRequest/Create.d.ts.map +1 -1
  106. package/dist/mjs/types/Interface/api/documentRequest/Create.js +1 -10
  107. package/dist/mjs/types/Interface/api/documentRequest/Create.js.map +1 -1
  108. package/dist/mjs/types/Interface/api/documentRequest/Query.d.ts +0 -3
  109. package/dist/mjs/types/Interface/api/documentRequest/Query.d.ts.map +1 -1
  110. package/dist/mjs/types/Interface/api/documentRequest/Query.js +1 -15
  111. package/dist/mjs/types/Interface/api/documentRequest/Query.js.map +1 -1
  112. package/dist/mjs/types/Interface/api/inpi/infoGreffe.d.ts +78 -0
  113. package/dist/mjs/types/Interface/api/inpi/infoGreffe.d.ts.map +1 -0
  114. package/dist/mjs/types/Interface/api/inpi/infoGreffe.js +2 -0
  115. package/dist/mjs/types/Interface/api/inpi/infoGreffe.js.map +1 -0
  116. package/dist/mjs/types/Interface/models/IBalanceSheetModule.d.ts +0 -4
  117. package/dist/mjs/types/Interface/models/IBalanceSheetModule.d.ts.map +1 -1
  118. package/dist/mjs/types/Interface/models/IBalanceSheetModule.js.map +1 -1
  119. package/dist/mjs/types/Interface/models/IDocumentRequest.d.ts +1 -7
  120. package/dist/mjs/types/Interface/models/IDocumentRequest.d.ts.map +1 -1
  121. package/dist/mjs/types/Interface/models/IDocumentRequest.js.map +1 -1
  122. package/dist/mjs/types/Interface/models/ISocietyApproval.d.ts +2 -0
  123. package/dist/mjs/types/Interface/models/ISocietyApproval.d.ts.map +1 -1
  124. package/dist/mjs/types/Interface/models/ISocietyApproval.js.map +1 -1
  125. package/dist/mjs/types/index.d.ts +2 -7
  126. package/dist/mjs/types/index.d.ts.map +1 -1
  127. package/dist/mjs/types/index.js +2 -7
  128. package/dist/mjs/types/index.js.map +1 -1
  129. package/dist/mjs/utils/index.d.ts +1 -0
  130. package/dist/mjs/utils/index.d.ts.map +1 -1
  131. package/dist/mjs/utils/index.js +1 -0
  132. package/dist/mjs/utils/index.js.map +1 -1
  133. package/dist/mjs/utils/societyApproval.d.ts +24 -0
  134. package/dist/mjs/utils/societyApproval.d.ts.map +1 -0
  135. package/dist/mjs/utils/societyApproval.js +72 -0
  136. package/dist/mjs/utils/societyApproval.js.map +1 -0
  137. package/package.json +1 -1
  138. package/ts/api/resources/DocumentRequest.ts +1 -5
  139. package/ts/api/resources/SocietyApproval.ts +46 -0
  140. package/ts/api/resources.ts +2 -2
  141. package/ts/types/Enum/BalanceSheet.ts +11 -11
  142. package/ts/types/Enum/BalanceSheetModule.ts +1 -24
  143. package/ts/types/Enum/Ged.ts +0 -132
  144. package/ts/types/Enum/SocietyApproval.ts +153 -0
  145. package/ts/types/Enum/StatutsSection.ts +13 -7
  146. package/ts/types/Interface/api/SocietyApproval.ts +16 -0
  147. package/ts/types/Interface/api/documentRequest/Create.ts +1 -8
  148. package/ts/types/Interface/api/documentRequest/Query.ts +1 -12
  149. package/ts/types/Interface/api/inpi/infoGreffe.ts +86 -0
  150. package/ts/types/Interface/models/IBalanceSheetModule.ts +1 -7
  151. package/ts/types/Interface/models/IDocumentRequest.ts +2 -8
  152. package/ts/types/Interface/models/ISocietyApproval.ts +2 -0
  153. package/ts/types/index.ts +2 -7
  154. package/ts/utils/index.ts +1 -0
  155. package/ts/utils/societyApproval.ts +88 -0
  156. package/dist/cjs/api/resources/InformationRequest.d.ts +0 -11
  157. package/dist/cjs/api/resources/InformationRequest.d.ts.map +0 -1
  158. package/dist/cjs/api/resources/InformationRequest.js +0 -26
  159. package/dist/cjs/api/resources/InformationRequest.js.map +0 -1
  160. package/dist/cjs/types/Enum/InformationRequestState.d.ts +0 -6
  161. package/dist/cjs/types/Enum/InformationRequestState.d.ts.map +0 -1
  162. package/dist/cjs/types/Enum/InformationRequestState.js +0 -10
  163. package/dist/cjs/types/Enum/InformationRequestState.js.map +0 -1
  164. package/dist/cjs/types/Enum/InformationRequestType.d.ts +0 -16
  165. package/dist/cjs/types/Enum/InformationRequestType.d.ts.map +0 -1
  166. package/dist/cjs/types/Enum/InformationRequestType.js +0 -46
  167. package/dist/cjs/types/Enum/InformationRequestType.js.map +0 -1
  168. package/dist/cjs/types/Interface/api/documentRequest/Update.d.ts +0 -12
  169. package/dist/cjs/types/Interface/api/documentRequest/Update.d.ts.map +0 -1
  170. package/dist/cjs/types/Interface/api/documentRequest/Update.js +0 -63
  171. package/dist/cjs/types/Interface/api/documentRequest/Update.js.map +0 -1
  172. package/dist/cjs/types/Interface/api/informationRequest/Create.d.ts +0 -10
  173. package/dist/cjs/types/Interface/api/informationRequest/Create.d.ts.map +0 -1
  174. package/dist/cjs/types/Interface/api/informationRequest/Create.js +0 -49
  175. package/dist/cjs/types/Interface/api/informationRequest/Create.js.map +0 -1
  176. package/dist/cjs/types/Interface/api/informationRequest/Query.d.ts +0 -11
  177. package/dist/cjs/types/Interface/api/informationRequest/Query.d.ts.map +0 -1
  178. package/dist/cjs/types/Interface/api/informationRequest/Query.js +0 -54
  179. package/dist/cjs/types/Interface/api/informationRequest/Query.js.map +0 -1
  180. package/dist/cjs/types/Interface/api/informationRequest/Update.d.ts +0 -12
  181. package/dist/cjs/types/Interface/api/informationRequest/Update.d.ts.map +0 -1
  182. package/dist/cjs/types/Interface/api/informationRequest/Update.js +0 -58
  183. package/dist/cjs/types/Interface/api/informationRequest/Update.js.map +0 -1
  184. package/dist/cjs/types/Interface/models/IInformationRequest.d.ts +0 -25
  185. package/dist/cjs/types/Interface/models/IInformationRequest.d.ts.map +0 -1
  186. package/dist/cjs/types/Interface/models/IInformationRequest.js.map +0 -1
  187. package/dist/mjs/api/resources/InformationRequest.d.ts +0 -11
  188. package/dist/mjs/api/resources/InformationRequest.d.ts.map +0 -1
  189. package/dist/mjs/api/resources/InformationRequest.js +0 -30
  190. package/dist/mjs/api/resources/InformationRequest.js.map +0 -1
  191. package/dist/mjs/types/Enum/InformationRequestState.d.ts +0 -6
  192. package/dist/mjs/types/Enum/InformationRequestState.d.ts.map +0 -1
  193. package/dist/mjs/types/Enum/InformationRequestState.js +0 -7
  194. package/dist/mjs/types/Enum/InformationRequestState.js.map +0 -1
  195. package/dist/mjs/types/Enum/InformationRequestType.d.ts +0 -16
  196. package/dist/mjs/types/Enum/InformationRequestType.d.ts.map +0 -1
  197. package/dist/mjs/types/Enum/InformationRequestType.js +0 -43
  198. package/dist/mjs/types/Enum/InformationRequestType.js.map +0 -1
  199. package/dist/mjs/types/Interface/api/documentRequest/Update.d.ts +0 -12
  200. package/dist/mjs/types/Interface/api/documentRequest/Update.d.ts.map +0 -1
  201. package/dist/mjs/types/Interface/api/documentRequest/Update.js +0 -66
  202. package/dist/mjs/types/Interface/api/documentRequest/Update.js.map +0 -1
  203. package/dist/mjs/types/Interface/api/informationRequest/Create.d.ts +0 -10
  204. package/dist/mjs/types/Interface/api/informationRequest/Create.d.ts.map +0 -1
  205. package/dist/mjs/types/Interface/api/informationRequest/Create.js +0 -50
  206. package/dist/mjs/types/Interface/api/informationRequest/Create.js.map +0 -1
  207. package/dist/mjs/types/Interface/api/informationRequest/Query.d.ts +0 -11
  208. package/dist/mjs/types/Interface/api/informationRequest/Query.d.ts.map +0 -1
  209. package/dist/mjs/types/Interface/api/informationRequest/Query.js +0 -56
  210. package/dist/mjs/types/Interface/api/informationRequest/Query.js.map +0 -1
  211. package/dist/mjs/types/Interface/api/informationRequest/Update.d.ts +0 -12
  212. package/dist/mjs/types/Interface/api/informationRequest/Update.d.ts.map +0 -1
  213. package/dist/mjs/types/Interface/api/informationRequest/Update.js +0 -60
  214. package/dist/mjs/types/Interface/api/informationRequest/Update.js.map +0 -1
  215. package/dist/mjs/types/Interface/models/IInformationRequest.d.ts +0 -25
  216. package/dist/mjs/types/Interface/models/IInformationRequest.d.ts.map +0 -1
  217. package/dist/mjs/types/Interface/models/IInformationRequest.js +0 -2
  218. package/dist/mjs/types/Interface/models/IInformationRequest.js.map +0 -1
  219. package/ts/api/resources/InformationRequest.ts +0 -36
  220. package/ts/types/Enum/InformationRequestState.ts +0 -5
  221. package/ts/types/Enum/InformationRequestType.ts +0 -51
  222. package/ts/types/Interface/api/documentRequest/Update.ts +0 -43
  223. package/ts/types/Interface/api/informationRequest/Create.ts +0 -31
  224. package/ts/types/Interface/api/informationRequest/Query.ts +0 -36
  225. package/ts/types/Interface/api/informationRequest/Update.ts +0 -39
  226. package/ts/types/Interface/models/IInformationRequest.ts +0 -27
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../ts/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,iCAAiC,CAAC;AAChD,cAAc,mCAAmC,CAAC;AAClD,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC","sourcesContent":["export * from './objectUtils';\nexport * from './stringUtils';\nexport * from './brands';\nexport * from './webmail';\nexport * from './decorators';\nexport * from './documents';\nexport * from './balanceSheetModule';\nexport * from './siretValidation';\nexport * from './statutsGeneration';\nexport * from './email';\nexport * from './exercice';\nexport * from './prestation';\nexport * from './task';\nexport * from './social';\nexport * from './commercialManagement/document';\nexport * from './commercialManagement/recurrence';\nexport * from './amount';\nexport * from './quotation';\nexport * from './isHtml';\nexport * from './isUrl';\nexport * from './bankAccount';\nexport * from './commercialOffer';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../ts/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,iCAAiC,CAAC;AAChD,cAAc,mCAAmC,CAAC;AAClD,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC","sourcesContent":["export * from './objectUtils';\nexport * from './stringUtils';\nexport * from './brands';\nexport * from './webmail';\nexport * from './decorators';\nexport * from './documents';\nexport * from './balanceSheetModule';\nexport * from './siretValidation';\nexport * from './statutsGeneration';\nexport * from './email';\nexport * from './exercice';\nexport * from './prestation';\nexport * from './task';\nexport * from './social';\nexport * from './commercialManagement/document';\nexport * from './commercialManagement/recurrence';\nexport * from './amount';\nexport * from './quotation';\nexport * from './isHtml';\nexport * from './isUrl';\nexport * from './bankAccount';\nexport * from './commercialOffer';\nexport * from './societyApproval';\n"]}
@@ -0,0 +1,24 @@
1
+ import { LegalFormTypeEnum } from '../types/Enum/LegalForm';
2
+ import { SocietyApprovalDocumentType, SocietyApprovalDocumentConfig } from '../types/Enum/SocietyApproval';
3
+ import { ISocietyApproval } from '../types/Interface/models/ISocietyApproval';
4
+ /**
5
+ * Récupère la configuration des documents d'approbation pour une forme juridique donnée
6
+ * @param idLegalForm - L'identifiant de la forme juridique
7
+ * @returns La configuration des documents ou undefined si non trouvée
8
+ */
9
+ export declare function getApprovalDocumentsByLegalForm(idLegalForm: LegalFormTypeEnum): SocietyApprovalDocumentConfig | undefined;
10
+ /**
11
+ * Récupère le nom du template pour un document spécifique et une forme juridique
12
+ * @param idLegalForm - L'identifiant de la forme juridique
13
+ * @param idDocumentType - Le type de document d'approbation
14
+ * @returns Le nom du template ou undefined si non trouvé
15
+ */
16
+ export declare function getApprovalDocumentTemplateName(idLegalForm: LegalFormTypeEnum, idDocumentType: SocietyApprovalDocumentType): string | undefined;
17
+ /**
18
+ * Construit les données formatées pour le template d'approbation
19
+ * @param existingApproval - Les données d'approbation de la société
20
+ * @param style - Le style HTML pour le document
21
+ * @returns L'objet de données formaté pour le template
22
+ */
23
+ export declare function buildApprovalTemplateData(existingApproval: ISocietyApproval, style: string): Record<string, any>;
24
+ //# sourceMappingURL=societyApproval.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"societyApproval.d.ts","sourceRoot":"","sources":["../../../ts/utils/societyApproval.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EACL,2BAA2B,EAC3B,6BAA6B,EAE9B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAM9E;;;;GAIG;AACH,wBAAgB,+BAA+B,CAC7C,WAAW,EAAE,iBAAiB,GAC7B,6BAA6B,GAAG,SAAS,CAE3C;AAED;;;;;GAKG;AACH,wBAAgB,+BAA+B,CAC7C,WAAW,EAAE,iBAAiB,EAC9B,cAAc,EAAE,2BAA2B,GAC1C,MAAM,GAAG,SAAS,CAIpB;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CA2ChH"}
@@ -0,0 +1,72 @@
1
+ import { SocietyApprovalDocumentsByLegalForm, } from '../types/Enum/SocietyApproval';
2
+ import { QualityList } from '../types/Enum/Quality';
3
+ import { getBrand } from './brands';
4
+ import { convertNumberToLetter } from './amount';
5
+ import * as dayjs from 'dayjs';
6
+ /**
7
+ * Récupère la configuration des documents d'approbation pour une forme juridique donnée
8
+ * @param idLegalForm - L'identifiant de la forme juridique
9
+ * @returns La configuration des documents ou undefined si non trouvée
10
+ */
11
+ export function getApprovalDocumentsByLegalForm(idLegalForm) {
12
+ return SocietyApprovalDocumentsByLegalForm.find((config) => config.idLegalForm === idLegalForm);
13
+ }
14
+ /**
15
+ * Récupère le nom du template pour un document spécifique et une forme juridique
16
+ * @param idLegalForm - L'identifiant de la forme juridique
17
+ * @param idDocumentType - Le type de document d'approbation
18
+ * @returns Le nom du template ou undefined si non trouvé
19
+ */
20
+ export function getApprovalDocumentTemplateName(idLegalForm, idDocumentType) {
21
+ const config = getApprovalDocumentsByLegalForm(idLegalForm);
22
+ const document = config?.documents.find((doc) => doc.idDocumentType === idDocumentType);
23
+ return document?.templateName;
24
+ }
25
+ /**
26
+ * Construit les données formatées pour le template d'approbation
27
+ * @param existingApproval - Les données d'approbation de la société
28
+ * @param style - Le style HTML pour le document
29
+ * @returns L'objet de données formaté pour le template
30
+ */
31
+ export function buildApprovalTemplateData(existingApproval, style) {
32
+ const yearInText = convertNumberToLetter(+dayjs().format('YYYY')).toLowerCase();
33
+ const dayAndMonthInText = `${convertNumberToLetter(+dayjs().format('D'))} ${dayjs().locale('fr').format('MMMM').toLowerCase()}`;
34
+ return {
35
+ // Variables globales
36
+ style,
37
+ yearInText,
38
+ dayAndMonthInText,
39
+ date: dayjs().locale('fr').format('DD MMMM YYYY'),
40
+ companyInformation: {
41
+ rcs: getBrand()?.companyInformation?.rcs,
42
+ nomRaisonSociale: getBrand()?.companyInformation?.nomRaisonSociale,
43
+ city: getBrand()?.companyInformation?.city,
44
+ postalAddress: getBrand()?.companyInformation?.postalAddress,
45
+ montantCapital: getBrand()?.companyInformation?.montantCapital,
46
+ statut: getBrand()?.companyInformation?.statut,
47
+ ECOrderCity: getBrand()?.companyInformation?.ECOrderCity,
48
+ },
49
+ owner: {
50
+ identity: `${existingApproval?.exercice?.society?.users?.[0]?.idCivility === 1 ? 'Monsieur' : 'Madame'} ${existingApproval?.exercice?.society?.users?.[0]?.firstname} ${existingApproval?.exercice?.society?.users?.[0]?.lastname} `,
51
+ quality: QualityList.find((ql) => ql.id === existingApproval?.exercice?.society?.users?.[0]?.businessPartners?.[0]?.idQuality)?.label,
52
+ },
53
+ // Variables stockées en base
54
+ ...existingApproval,
55
+ generatingDatas: {
56
+ ...existingApproval?.generatingDatas,
57
+ ...(existingApproval?.generatingDatas?.approvalDate
58
+ ? {
59
+ approvalDate: dayjs(existingApproval?.generatingDatas?.approvalDate)
60
+ .locale('fr')
61
+ .format('DD MMMM YYYY')
62
+ .toUpperCase(),
63
+ }
64
+ : {}),
65
+ },
66
+ exercice: {
67
+ ...existingApproval?.exercice,
68
+ endDate: dayjs(existingApproval?.exercice?.endDate).locale('fr').format('DD MMMM YYYY').toLowerCase(),
69
+ },
70
+ };
71
+ }
72
+ //# sourceMappingURL=societyApproval.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"societyApproval.js","sourceRoot":"","sources":["../../../ts/utils/societyApproval.ts"],"names":[],"mappings":"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","sourcesContent":["import { LegalFormTypeEnum } from '../types/Enum/LegalForm';\nimport {\n SocietyApprovalDocumentType,\n SocietyApprovalDocumentConfig,\n SocietyApprovalDocumentsByLegalForm,\n} from '../types/Enum/SocietyApproval';\nimport { ISocietyApproval } from '../types/Interface/models/ISocietyApproval';\nimport { QualityList } from '../types/Enum/Quality';\nimport { getBrand } from './brands';\nimport { convertNumberToLetter } from './amount';\nimport * as dayjs from 'dayjs';\n\n/**\n * Récupère la configuration des documents d'approbation pour une forme juridique donnée\n * @param idLegalForm - L'identifiant de la forme juridique\n * @returns La configuration des documents ou undefined si non trouvée\n */\nexport function getApprovalDocumentsByLegalForm(\n idLegalForm: LegalFormTypeEnum,\n): SocietyApprovalDocumentConfig | undefined {\n return SocietyApprovalDocumentsByLegalForm.find((config) => config.idLegalForm === idLegalForm);\n}\n\n/**\n * Récupère le nom du template pour un document spécifique et une forme juridique\n * @param idLegalForm - L'identifiant de la forme juridique\n * @param idDocumentType - Le type de document d'approbation\n * @returns Le nom du template ou undefined si non trouvé\n */\nexport function getApprovalDocumentTemplateName(\n idLegalForm: LegalFormTypeEnum,\n idDocumentType: SocietyApprovalDocumentType,\n): string | undefined {\n const config = getApprovalDocumentsByLegalForm(idLegalForm);\n const document = config?.documents.find((doc) => doc.idDocumentType === idDocumentType);\n return document?.templateName;\n}\n\n/**\n * Construit les données formatées pour le template d'approbation\n * @param existingApproval - Les données d'approbation de la société\n * @param style - Le style HTML pour le document\n * @returns L'objet de données formaté pour le template\n */\nexport function buildApprovalTemplateData(existingApproval: ISocietyApproval, style: string): Record<string, any> {\n const yearInText = convertNumberToLetter(+dayjs().format('YYYY')).toLowerCase();\n const dayAndMonthInText = `${convertNumberToLetter(+dayjs().format('D'))} ${dayjs().locale('fr').format('MMMM').toLowerCase()}`;\n\n return {\n // Variables globales\n style,\n yearInText,\n dayAndMonthInText,\n date: dayjs().locale('fr').format('DD MMMM YYYY'),\n companyInformation: {\n rcs: getBrand()?.companyInformation?.rcs,\n nomRaisonSociale: getBrand()?.companyInformation?.nomRaisonSociale,\n city: getBrand()?.companyInformation?.city,\n postalAddress: getBrand()?.companyInformation?.postalAddress,\n montantCapital: getBrand()?.companyInformation?.montantCapital,\n statut: getBrand()?.companyInformation?.statut,\n ECOrderCity: getBrand()?.companyInformation?.ECOrderCity,\n },\n owner: {\n identity: `${existingApproval?.exercice?.society?.users?.[0]?.idCivility === 1 ? 'Monsieur' : 'Madame'} ${existingApproval?.exercice?.society?.users?.[0]?.firstname} ${existingApproval?.exercice?.society?.users?.[0]?.lastname} `,\n quality: QualityList.find(\n (ql) => ql.id === existingApproval?.exercice?.society?.users?.[0]?.businessPartners?.[0]?.idQuality,\n )?.label,\n },\n // Variables stockées en base\n ...existingApproval,\n generatingDatas: {\n ...existingApproval?.generatingDatas,\n ...(existingApproval?.generatingDatas?.approvalDate\n ? {\n approvalDate: dayjs(existingApproval?.generatingDatas?.approvalDate)\n .locale('fr')\n .format('DD MMMM YYYY')\n .toUpperCase(),\n }\n : {}),\n },\n exercice: {\n ...existingApproval?.exercice,\n endDate: dayjs(existingApproval?.exercice?.endDate).locale('fr').format('DD MMMM YYYY').toLowerCase(),\n },\n };\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "1.3.168-1",
3
+ "version": "1.3.168-approbation-2",
4
4
  "description": "Silex Core perform HTTP Request and object binding. Silex core helps developers to retrieve and return formatted object",
5
5
  "homepage": "https://gitlab.compta-clementine.fr/dev/silex-api",
6
6
  "main": "dist/cjs/index.js",
@@ -1,15 +1,11 @@
1
1
  import { Resource } from '../Resource';
2
- import { CreateDocumentRequest, IDocumentRequest, QueryDocumentRequest, UpdateDocumentRequest } from '../../types';
2
+ import { CreateDocumentRequest, IDocumentRequest, QueryDocumentRequest } from '../../types';
3
3
 
4
4
  export class DocumentRequest extends Resource {
5
5
  create(body: CreateDocumentRequest): Promise<IDocumentRequest> {
6
6
  return this.axios.$post('/documents-requests', body);
7
7
  }
8
8
 
9
- update(id: number, body: UpdateDocumentRequest): Promise<IDocumentRequest> {
10
- return this.axios.$put(`/documents-requests/${id}`, body);
11
- }
12
-
13
9
  getAllBySociety(idSociety: number, query?: QueryDocumentRequest, signal?: AbortSignal): Promise<IDocumentRequest[]> {
14
10
  return this.axios.$get(`/documents-requests/society/${idSociety}`, {
15
11
  ...signal && { signal },
@@ -0,0 +1,46 @@
1
+ import { Resource } from '../Resource';
2
+ import { ISocietyApproval, CreateDocument, ReadLibraryFile } from '../../types';
3
+
4
+ export class SocietyApproval extends Resource {
5
+ /**
6
+ * Get society approval data for a given exercice
7
+ * @param idExercice - The exercice ID
8
+ * @returns Society approval with all needed data
9
+ */
10
+ get(idExercice: number): Promise<ISocietyApproval> {
11
+ return this.axios.$get(`/exercices/${idExercice}/approvals`);
12
+ }
13
+
14
+ /**
15
+ * Get approval data needed for PDF generation
16
+ * Retrieves all necessary information before generating a PDF document
17
+ * @param idExercice - The exercice ID
18
+ * @returns Approval data with template data for PDF generation
19
+ */
20
+ getGeneratingData(idExercice: number): Promise<{
21
+ approval: ISocietyApproval;
22
+ templateData: Record<string, any>;
23
+ }> {
24
+ return this.axios.$get(`/exercices/${idExercice}/approvals/generating-data`);
25
+ }
26
+
27
+ /**
28
+ * Create or update society approval
29
+ * @param idExercice - The exercice ID
30
+ * @param payload - The approval data
31
+ * @returns Updated or created society approval
32
+ */
33
+ updateOrCreate(idExercice: number, payload: ISocietyApproval): Promise<ISocietyApproval> {
34
+ return this.axios.$post(`/exercices/${idExercice}/approvals`, payload);
35
+ }
36
+
37
+ /**
38
+ * Generate approval PDF document
39
+ * @param idExercice - The exercice ID
40
+ * @param payload - The document type(s) to generate
41
+ * @returns PDF file as blob
42
+ */
43
+ generatePdf(idExercice: number, payload: CreateDocument): Promise<ReadLibraryFile> {
44
+ return this.axios.$post(`/exercices/${idExercice}/approvals/pdf`, payload);
45
+ }
46
+ }
@@ -186,8 +186,8 @@ import { DashboardLayout } from './resources/DashboardLayout';
186
186
  import { DocumentRequest } from './resources/DocumentRequest';
187
187
  import { BalanceSheetReport } from './resources/BalanceSheetReport';
188
188
  import { Revenue } from './resources/Revenue';
189
- import { InformationRequest } from './resources/InformationRequest';
190
189
  import { AutomaticRegistration } from './resources/AutomaticRegistration';
190
+ import { SocietyApproval } from './resources/SocietyApproval';
191
191
 
192
192
  export const resources = {
193
193
  budgetInsight: BudgetInsight,
@@ -378,6 +378,6 @@ export const resources = {
378
378
  documentRequest: DocumentRequest,
379
379
  balanceSheetReport: BalanceSheetReport,
380
380
  revenue: Revenue,
381
- informationRequest: InformationRequest,
382
381
  automaticRegistration: AutomaticRegistration,
382
+ societyApproval: SocietyApproval,
383
383
  };
@@ -233,14 +233,14 @@ export const BalanceSheetDetails = [
233
233
  forRoles: [['front_office'], ['expert'], ['satisfaction']],
234
234
  },
235
235
  {
236
- text: 'Accepté SIE en l\'état',
236
+ text: "Accepté SIE en l'état",
237
237
  value: BalanceSheetState.ACCEPTED_BY_SIE_IN_STATE,
238
238
  color: 'green darken-3',
239
239
  colorText: 'green--text',
240
240
  forRoles: [['front_office'], ['expert']],
241
241
  },
242
242
  {
243
- text: 'Refus d\'établir',
243
+ text: "Refus d'établir",
244
244
  value: BalanceSheetState.ESTABLISH_REFUSED,
245
245
  color: 'orange darken-1',
246
246
  colorText: 'orange--text text--darken-1',
@@ -271,7 +271,7 @@ export const ForecastBalanceSheetDetails = [
271
271
  forRoles: [['front_office'], ['expert']],
272
272
  },
273
273
  {
274
- text: 'Prévisionnel d\' abandonné',
274
+ text: "Prévisionnel d' abandonné",
275
275
  value: BalanceSheetState.ABANDONED_FORECAST,
276
276
  color: 'green darken-3',
277
277
  colorText: 'green--text',
@@ -319,7 +319,7 @@ export type BalanceSheetList = BalanceSheetField[];
319
319
 
320
320
  export enum BalanceSheetLabel {
321
321
  CAPITAL_SOUSCRIT = 'Capital souscrit - non appelé',
322
- FRAIS_ETABLISSEMENT = 'Frais d\'établissement',
322
+ FRAIS_ETABLISSEMENT = "Frais d'établissement",
323
323
  CONCESSIONS_BREVETS = 'Concessions, brevets, licences, marques, procédés, logiciels, droits et valeurs similaires',
324
324
  FOND_COMMERCIAL = 'Fonds commercial',
325
325
  AUTRES_IMMOBILISATIONS_INCORPORELLES = 'Autres immobilisations inc.',
@@ -345,7 +345,7 @@ export enum BalanceSheetLabel {
345
345
  VALEUR_MOBILIERE_PLACEMENT_ACTION_PROPRE = 'Actions propres',
346
346
  VALEUR_MOBILIERE_PLACEMENT = 'Valeurs mobilières de placement',
347
347
  DISPONIBILITES = 'Disponibilités',
348
- CHARGES_CONSTATEES_AVANCE = 'Charges constatées d\'avance',
348
+ CHARGES_CONSTATEES_AVANCE = "Charges constatées d'avance",
349
349
  TOTAL_2 = 'Total (II)',
350
350
  PRIMES_DE_REMBOURSEMENT_DES_EMPRUNTS = 'Primes de remboursement des emprunts (IV)',
351
351
  ECARTS_DE_CONVERSIONS = 'Ecarts de conversion Actif (V)',
@@ -479,7 +479,7 @@ export const BALANCE_SHEET_LIST_ACTIVE: BalanceSheetList = [
479
479
  accountsDescription: [],
480
480
  },
481
481
  {
482
- name: 'Titres immobilisés de l\'activité de portefeuille',
482
+ name: "Titres immobilisés de l'activité de portefeuille",
483
483
  accounts: ['273'],
484
484
  accountsDeducted: ['2973'],
485
485
  accountsDescription: [],
@@ -716,13 +716,13 @@ export const BALANCE_SHEET_LIST_ACTIVE: BalanceSheetList = [
716
716
  export enum BalanceSheetPassiveLabel {
717
717
  CAPITAL = 'Capital (dont versé...)',
718
718
  RESERVE_LEGALE = 'Réserve légale',
719
- PRIMES_EMISSION = 'Primes d\'émission, de fusion, d\'apport',
719
+ PRIMES_EMISSION = "Primes d'émission, de fusion, d'apport",
720
720
  ECART_DE_REEVALUATION = 'Ecart de réévaluation',
721
721
  RESERVES_STATUAIRES = 'Réserves statutaires ou contractuelles',
722
722
  RESERVES_REGLEMENTEES = 'Réserves réglementées',
723
723
  AUTRES_RESERVES = 'Autres',
724
724
  REPORT_A_NOUVEAU = 'Report à nouveau',
725
- SUBVENTIONS_INVESTISSEMENT = 'Subventions d\'investissement',
725
+ SUBVENTIONS_INVESTISSEMENT = "Subventions d'investissement",
726
726
  PROVISIONS_REFLEMENTEES = 'Provisions réglementées',
727
727
  PROVISIONS_POUR_RISQUES = 'Provisions pour risques',
728
728
  PROVISIONS_POUR_CHARGES = 'Provisions pour charges',
@@ -735,7 +735,7 @@ export enum BalanceSheetPassiveLabel {
735
735
  DETTES_FISCALES_ET_SOCIALES = 'Dettes fiscales et sociales',
736
736
  DETTES_SUR_IMMOBILISATIONS_ET_COMPTES_RATTACHES = 'Dettes sur immobilisations et Comptes rattachés',
737
737
  AUTRES_DETTES = 'Autres dettes',
738
- PRODUITS_CONSTATES_D_AVANCE = 'Produits constatés d\'avance',
738
+ PRODUITS_CONSTATES_D_AVANCE = "Produits constatés d'avance",
739
739
  ECART_PASSIF = 'Ecarts de conversion passif (IV)',
740
740
  TOTAL_GENERAL = 'Total général (I+II+III+IV)',
741
741
  CONCOURS = '(1) Dont concours bancaires courants et soldes créditeurs de banques',
@@ -769,7 +769,7 @@ export const BALANCE_SHEET_LIST_PASSIVE: BalanceSheetList = [
769
769
  accountsDescription: [],
770
770
  },
771
771
  {
772
- name: 'Ecart d\'équivalence',
772
+ name: "Ecart d'équivalence",
773
773
  key: 'equivalenceGap',
774
774
  accounts: ['107'],
775
775
  isSubcategory: true,
@@ -815,7 +815,7 @@ export const BALANCE_SHEET_LIST_PASSIVE: BalanceSheetList = [
815
815
  accountsDescription: [],
816
816
  },
817
817
  {
818
- name: 'Résultat de l\'exercice (bénéfice ou perte)',
818
+ name: "Résultat de l'exercice (bénéfice ou perte)",
819
819
  key: 'resultExercice',
820
820
  accounts: ['12'], // comptes 6 - 7
821
821
  isSubcategory: true,
@@ -1,4 +1,4 @@
1
- import { IBalanceSheetModule, LegalForm } from '..';
1
+ import { LegalForm } from '..';
2
2
 
3
3
  export enum BalanceSheetModule {
4
4
  SHARE_CAPITAL = 1,
@@ -62,26 +62,3 @@ export const BalanceSheetModuleByCompanyType: IBalanceSheetModuleByCompanyType =
62
62
  },
63
63
  },
64
64
  };
65
-
66
- export const BalanceSheetModuleFieldMapping: Record<BalanceSheetModule, keyof IBalanceSheetModule> = {
67
- [BalanceSheetModule.SHARE_CAPITAL]: 'hasShareCapital',
68
- [BalanceSheetModule.IMMOBILIZATIONS]: 'recoveryImmobilization',
69
- [BalanceSheetModule.LOANS]: 'loanToDeclare',
70
- [BalanceSheetModule.SALARY_FILES]: 'salariesFile',
71
- [BalanceSheetModule.INCOME_ALLOCATION]: 'incomeAllocation',
72
- [BalanceSheetModule.MANUAL_ENTRIES]: 'hasManualEntryToDeclare',
73
- [BalanceSheetModule.MEAL_EXPENSES]: 'hasMealExpenses',
74
- [BalanceSheetModule.INVENTORY]: 'inventory',
75
- [BalanceSheetModule.PROFESSIONAL_SHARE]: 'hasLaundryFees',
76
- [BalanceSheetModule.PROVISIONS]: 'provisionToDeclare',
77
- [BalanceSheetModule.VAT_CONTROL]: 'hasCheckedVAT',
78
- [BalanceSheetModule.CUSTOMER_INVOICE_TO_ESTABLISH]: 'hasCustomerInvoiceToEstablish',
79
- [BalanceSheetModule.CUSTOMER_ASSET_TO_ESTABLISH]: 'hasCustomerAssetToEstablish',
80
- [BalanceSheetModule.CUSTOMER_PREPAID_INCOME]: 'hasCustomerPrepaidIncome',
81
- [BalanceSheetModule.NOT_RECEIVED_PROVIDER_INVOICE]: 'hasProviderInvoiceNotReceived',
82
- [BalanceSheetModule.PROVIDER_ASSET_TO_RECEIVE]: 'hasProviderAssetToReceived',
83
- [BalanceSheetModule.PROVIDER_PREPAID_EXPENSES]: 'hasProviderPrepaidReceived',
84
- [BalanceSheetModule.COMPANY_TAX]: 'hasCheckedCompanyTax',
85
- [BalanceSheetModule.PREVIOUS_FISCAL_PERIOD]: 'hasPreviousExercice',
86
- [BalanceSheetModule.FINANCIAL_CHARGES]: 'hasFinancialCharges',
87
- };
@@ -54,9 +54,6 @@ export enum GedFolder {
54
54
  BACKUP = 48,
55
55
  PREVISIONAL = 49,
56
56
  PREVISIONAL_ANNEX = 50,
57
- CASH_BOOK = 51,
58
- STOCK = 52,
59
- SUMMARY = 53,
60
57
  }
61
58
 
62
59
  export enum TypeFile {
@@ -161,18 +158,8 @@ export enum TypeFile {
161
158
  SUBSIDY_ALLOCATION_NOTIFICATION = 99, // Notifications d'attribution de subventions publiques
162
159
  FINANCING_CONTRACTS_OR_SUBSIDY_AGREEMENTS = 100, // Contrats de financement ou conventions de subvention
163
160
  LDM = 101, // Lettres de mission
164
- SUPPLIER_DEBTS = 102, // Vos dettes fournisseurs
165
- CUSTOMER_RECEIVABLES = 103, // Vos créances clients
166
- PAYROLL_ACCOUNTING_FILE = 104, // Votre fichier des écritures comptables de paie
167
- MONTHLY_TESE_SUMMARIES = 105, // Etats des récapitulatifs mensuels TESE
168
- TICKET_Z = 106, // Vos Ticket Z
169
- POLICE_BOOK = 107, // Votre Livre de police
170
- STRIPE_AMAZON_STATEMENTS = 108, // Vos relevés stripe, amazon etc
171
- INVOICING_SOFTWARE_SUMMARY = 109, // Un récapitulatif de votre logiciel de facturation détaillé par type d'encaissement et par taux de TVA
172
- MILEAGE_ALLOWANCES_SUMMARY = 110, // Un récapitulatif de vos indemnités kilométriques
173
161
  }
174
162
 
175
- /** @deprecated this is a legacy enum try to use TypeFile enum if you can or use both enum's */
176
163
  export enum GedFileType {
177
164
  STATUTES = 1,
178
165
  IDENTITY_CARD = 2, // existing typeFile
@@ -593,24 +580,6 @@ export const GedFolderList: Array<{
593
580
  isVisibleForClient: false,
594
581
  idGedCategory: GedCategory.ACCOUNTING_AND_TAX,
595
582
  },
596
- {
597
- id: GedFolder.CASH_BOOK,
598
- name: 'Caisse',
599
- isVisibleForClient: true,
600
- idGedCategory: GedCategory.ACCOUNTING_AND_TAX,
601
- },
602
- {
603
- id: GedFolder.STOCK,
604
- name: 'Stock',
605
- isVisibleForClient: true,
606
- idGedCategory: GedCategory.ACCOUNTING_AND_TAX,
607
- },
608
- {
609
- id: GedFolder.SUMMARY,
610
- name: 'Récapitulatif',
611
- isVisibleForClient: true,
612
- idGedCategory: GedCategory.ACCOUNTING_AND_TAX,
613
- },
614
583
  ];
615
584
 
616
585
  export const gedCategoryWithName: Array<{
@@ -638,7 +607,6 @@ export const TypeFileDetail: Record<number, {
638
607
  typeFile: TypeFile;
639
608
  name: string;
640
609
  idGedFolder?: GedFolder;
641
- helpText?: string;
642
610
  }> = {
643
611
  [TypeFile.INSURANCE_CONTRACT]: {
644
612
  typeFile: TypeFile.INSURANCE_CONTRACT,
@@ -649,13 +617,11 @@ export const TypeFileDetail: Record<number, {
649
617
  typeFile: TypeFile.COMPANY_CONTRIBUTION_PROOF,
650
618
  name: 'Justificatif des apports faits à la société',
651
619
  idGedFolder: GedFolder.JURIDICAL,
652
- helpText: 'Vos relevés bancaires personnels indiquant le montant d’épargne disponible, votre avis d\'imposition personnel'
653
620
  },
654
621
  [TypeFile.NOTARY_STATEMENT_AND_PURCHASE_DEED]: {
655
622
  typeFile: TypeFile.NOTARY_STATEMENT_AND_PURCHASE_DEED,
656
623
  name: 'Décompte de notaire et acte d\'achat',
657
624
  idGedFolder: GedFolder.JURIDICAL,
658
- helpText: 'Le décompte du notaire définitif doit détailler toutes les opérations intervenues'
659
625
  },
660
626
  [TypeFile.PV_RESULT_ALLOCATION]: {
661
627
  typeFile: TypeFile.PV_RESULT_ALLOCATION,
@@ -761,103 +727,5 @@ export const TypeFileDetail: Record<number, {
761
727
  typeFile: TypeFile.FINANCING_CONTRACTS_OR_SUBSIDY_AGREEMENTS,
762
728
  name: 'Contrats de financement ou conventions de subvention',
763
729
  idGedFolder: GedFolder.SUBVENTION,
764
- },
765
- [TypeFile.CAISSE]: {
766
- typeFile: TypeFile.CAISSE,
767
- name: 'Livre de caisse',
768
- idGedFolder: GedFolder.CASH_BOOK,
769
- helpText: `Créer un tableau structuré Le livre de caisse peut être tenu sur papier, dans un tableur (Excel), ou via un logiciel comptable. Il doit comporter les colonnes suivantes :
770
- Date
771
- Libellé / Description de l’opération
772
- Pièce justificative (n° ou référence)
773
- Entrée (recette)
774
- Sortie (dépense)
775
- Solde
776
- Enregistrer chaque opération
777
- Dès qu’une opération en espèces est effectuée, elle doit être inscrite dans le livre de caisse.
778
- Le solde doit être mis à jour après chaque mouvement.
779
- Conserver les justificatifs
780
- Chaque opération doit être appuyée par une pièce justificative (facture, reçu, ticket de caisse…).
781
- Ces documents doivent être classés et conservés.
782
- Faire des contrôles réguliers
783
- Vérifiez que le solde du livre de caisse correspond au montant réel dans la caisse. En cas d’écart, il faut l’expliquer et le corriger.
784
- Clôturer périodiquement
785
- À la fin de chaque mois ou période comptable, le livre de caisse peut être clôturé et archivé`
786
- },
787
- [TypeFile.STOCK]: {
788
- typeFile: TypeFile.STOCK,
789
- name: 'L\'état de vos stocks à la date de clôture',
790
- idGedFolder: GedFolder.STOCK,
791
- helpText: 'L’état des stocks doit recenser l’ensemble des produits disponibles à la date de clôture. Chaque article doit être identifié précisément, classé par catégorie (matières premières, marchandises, produits finis), et valorisé au prix d’achat hors taxes (HT). Ce document doit impérativement être daté et signé'
792
- },
793
- [TypeFile.RECIPROCITE]: {
794
- typeFile: TypeFile.RECIPROCITE,
795
- name: 'Le grand livre de réciprocité des comptes',
796
- idGedFolder: GedFolder.BALANCE_GL_JOURNALS_YEAR,
797
- helpText: 'Votre société détient ou a cédé des actions à une autre entité, ce qui établit un lien capitalistique entre les deux sociétés. En conséquence, des mouvements comptables peuvent exister entre elles. Afin d\'assurer la cohérence des écritures comptables, nous vous demandons de nous transmettre les grands livres des opérations enregistrées dans la comptabilité de l’autre société. Cela nous permettra de rapprocher et cadrer les flux entre les deux entités'
798
- },
799
- [TypeFile.SUPPLIER_DEBTS]: {
800
- typeFile: TypeFile.SUPPLIER_DEBTS,
801
- name: 'Vos dettes fournisseurs',
802
- idGedFolder: GedFolder.BALANCE_GL_JOURNALS_YEAR,
803
- helpText: 'Les factures d’achats émises avant la clôture de l’exercice mais non réglées à cette date'
804
- },
805
- [TypeFile.CUSTOMER_RECEIVABLES]: {
806
- typeFile: TypeFile.CUSTOMER_RECEIVABLES,
807
- name: 'Vos créances clients',
808
- idGedFolder: GedFolder.BALANCE_GL_JOURNALS_YEAR,
809
- helpText: 'Les factures de ventes émises avant la clôture de l’exercice mais non encaissées à cette date'
810
- },
811
- [TypeFile.PAYROLL_ACCOUNTING_FILE]: {
812
- typeFile: TypeFile.PAYROLL_ACCOUNTING_FILE,
813
- name: 'Votre fichier des écritures comptables de paie',
814
- idGedFolder: GedFolder.PAY_SLIPS,
815
- helpText: 'Les écritures de paie, le tableau des charges, le livre de paie annuel. Ces documents sont fournis par le prestataire qui établit les bulletins de salaire'
816
- },
817
- [TypeFile.MONTHLY_TESE_SUMMARIES]: {
818
- typeFile: TypeFile.MONTHLY_TESE_SUMMARIES,
819
- name: 'États des récapitulatifs mensuels TESE',
820
- idGedFolder: GedFolder.PAY_SLIPS,
821
- },
822
- [TypeFile.TICKET_Z]: {
823
- typeFile: TypeFile.TICKET_Z,
824
- name: 'Vos ticket Z',
825
- idGedFolder: GedFolder.CASH_BOOK,
826
- helpText: 'Un ticket Z mensuel regroupe et récapitule toutes les ventes enregistrées durant le mois. Le document est édité par la caisse enregistreuse à la fin d’un mois'
827
- },
828
- [TypeFile.POLICE_BOOK]: {
829
- typeFile: TypeFile.POLICE_BOOK,
830
- name: 'Votre livre de police',
831
- idGedFolder: GedFolder.SUMMARY,
832
- helpText: 'Récapitulatif des achats et des ventes de vos véhicules afin de comparer la marge. Le document doit être signé et tamponné par la mairie ou la police avant remplissage de celui-ci'
833
- },
834
- [TypeFile.STRIPE_AMAZON_STATEMENTS]: {
835
- typeFile: TypeFile.STRIPE_AMAZON_STATEMENTS,
836
- name: ' Vos relevés stripe, amazon ect..',
837
- idGedFolder: GedFolder.SUMMARY,
838
- helpText: `Stripe : Dans le menu Rapports → Balance ou Relevés financiers, vous pouvez générer un rapport mensuel complet en PDF ou CSV incluant paiements, frais, remboursements, et soldes.
839
- Amazon : Rendez-vous sur Business Analytics.
840
- Sous Rapports, sélectionnez Commandes.
841
- Sélectionnez la période, les filtres, les colonnes, les factures et tous les documents liés à la commande que vous souhaitez télécharger.
842
- Saisissez un nom pour votre rapport de commande.
843
- Sélectionnez Télécharger en format PDF`
844
- },
845
- [TypeFile.INVOICING_SOFTWARE_SUMMARY]: {
846
- typeFile: TypeFile.INVOICING_SOFTWARE_SUMMARY,
847
- name: 'Un récapitulatif de votre logiciel de facturation détaillé par type d’encaissement et par taux de TVA',
848
- idGedFolder: GedFolder.SUMMARY,
849
- },
850
- [TypeFile.MILEAGE_ALLOWANCES_SUMMARY]: {
851
- typeFile: TypeFile.MILEAGE_ALLOWANCES_SUMMARY,
852
- name: 'Un récapitulatif de vos indemnités kilométriques',
853
- idGedFolder: GedFolder.SUMMARY,
854
- helpText: `Le récapitulatif de vos indemnités kilométriques (IK) doit comporter les éléments suivants :
855
- Le lieu de départ
856
- Le lieu d’arrivée
857
- Le nombre de kilomètres parcourus
858
- Le véhicule utilisé
859
- La puissance fiscale du véhicule (CV fiscaux)
860
- Le barème appliqué
861
- Le montant de l’indemnité calculée`
862
730
  }
863
731
  };