@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
@@ -0,0 +1,153 @@
1
+ import { LegalFormTypeEnum } from './LegalForm';
2
+
3
+ export enum SocietyApprovalDocumentType {
4
+ PV_AG = 1,
5
+ POWER_MANDATE = 2,
6
+ DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS = 3,
7
+ INCOME_APPROPRIATION = 4,
8
+ }
9
+
10
+ export type SocietyApprovalDocumentTemplate = {
11
+ idDocumentType: SocietyApprovalDocumentType;
12
+ docName: string;
13
+ templateName: string;
14
+ };
15
+
16
+ export type SocietyApprovalDocumentConfig = {
17
+ idLegalForm: LegalFormTypeEnum;
18
+ legalFormName: string;
19
+ documents: SocietyApprovalDocumentTemplate[];
20
+ };
21
+
22
+ export const SocietyApprovalDocumentsByLegalForm: SocietyApprovalDocumentConfig[] = [
23
+ {
24
+ idLegalForm: LegalFormTypeEnum.EURL,
25
+ legalFormName: 'EURL',
26
+ documents: [
27
+ {
28
+ idDocumentType: SocietyApprovalDocumentType.PV_AG,
29
+ docName: "Procès-verbal d'approbation des comptes",
30
+ templateName: 'APPROVAL_EURL',
31
+ },
32
+ {
33
+ idDocumentType: SocietyApprovalDocumentType.POWER_MANDATE,
34
+ docName: 'Mandat de pouvoir',
35
+ templateName: 'POWER_MANDATE_EURL',
36
+ },
37
+ {
38
+ idDocumentType: SocietyApprovalDocumentType.DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS,
39
+ docName: 'Déclaration de confidentialité pour les comptes annuels',
40
+ templateName: 'DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_EURL',
41
+ },
42
+ {
43
+ idDocumentType: SocietyApprovalDocumentType.INCOME_APPROPRIATION,
44
+ docName: 'Affectation du résultat',
45
+ templateName: 'INCOME_APPROPRIATION_EURL',
46
+ },
47
+ ],
48
+ },
49
+ {
50
+ idLegalForm: LegalFormTypeEnum.SARL,
51
+ legalFormName: 'SARL',
52
+ documents: [
53
+ {
54
+ idDocumentType: SocietyApprovalDocumentType.PV_AG,
55
+ docName: "Procès-verbal d'approbation des comptes",
56
+ templateName: 'APPROVAL_SARL',
57
+ },
58
+ {
59
+ idDocumentType: SocietyApprovalDocumentType.POWER_MANDATE,
60
+ docName: 'Mandat de pouvoir',
61
+ templateName: 'POWER_MANDATE_SARL',
62
+ },
63
+ {
64
+ idDocumentType: SocietyApprovalDocumentType.DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS,
65
+ docName: 'Déclaration de confidentialité pour les comptes annuels',
66
+ templateName: 'DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_SARL',
67
+ },
68
+ {
69
+ idDocumentType: SocietyApprovalDocumentType.INCOME_APPROPRIATION,
70
+ docName: 'Affectation du résultat',
71
+ templateName: 'INCOME_APPROPRIATION_SARL',
72
+ },
73
+ ],
74
+ },
75
+ {
76
+ idLegalForm: LegalFormTypeEnum.SASU,
77
+ legalFormName: 'SASU',
78
+ documents: [
79
+ {
80
+ idDocumentType: SocietyApprovalDocumentType.PV_AG,
81
+ docName: "Procès-verbal d'approbation des comptes",
82
+ templateName: 'APPROVAL_SASU',
83
+ },
84
+ {
85
+ idDocumentType: SocietyApprovalDocumentType.POWER_MANDATE,
86
+ docName: 'Mandat de pouvoir',
87
+ templateName: 'POWER_MANDATE_SASU',
88
+ },
89
+ {
90
+ idDocumentType: SocietyApprovalDocumentType.DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS,
91
+ docName: 'Déclaration de confidentialité pour les comptes annuels',
92
+ templateName: 'DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_SASU',
93
+ },
94
+ {
95
+ idDocumentType: SocietyApprovalDocumentType.INCOME_APPROPRIATION,
96
+ docName: 'Affectation du résultat',
97
+ templateName: 'INCOME_APPROPRIATION_SASU',
98
+ },
99
+ ],
100
+ },
101
+ {
102
+ idLegalForm: LegalFormTypeEnum.SAS,
103
+ legalFormName: 'SAS',
104
+ documents: [
105
+ {
106
+ idDocumentType: SocietyApprovalDocumentType.PV_AG,
107
+ docName: "Procès-verbal d'approbation des comptes",
108
+ templateName: 'APPROVAL_SAS',
109
+ },
110
+ {
111
+ idDocumentType: SocietyApprovalDocumentType.POWER_MANDATE,
112
+ docName: 'Mandat de pouvoir',
113
+ templateName: 'POWER_MANDATE_SAS',
114
+ },
115
+ {
116
+ idDocumentType: SocietyApprovalDocumentType.DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS,
117
+ docName: 'Déclaration de confidentialité pour les comptes annuels',
118
+ templateName: 'DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_SAS',
119
+ },
120
+ {
121
+ idDocumentType: SocietyApprovalDocumentType.INCOME_APPROPRIATION,
122
+ docName: 'Affectation du résultat',
123
+ templateName: 'INCOME_APPROPRIATION_SAS',
124
+ },
125
+ ],
126
+ },
127
+ {
128
+ idLegalForm: LegalFormTypeEnum.SCI,
129
+ legalFormName: 'SCI',
130
+ documents: [
131
+ {
132
+ idDocumentType: SocietyApprovalDocumentType.PV_AG,
133
+ docName: "Procès-verbal d'approbation des comptes",
134
+ templateName: 'APPROVAL_SCI',
135
+ },
136
+ {
137
+ idDocumentType: SocietyApprovalDocumentType.POWER_MANDATE,
138
+ docName: 'Mandat de pouvoir',
139
+ templateName: 'POWER_MANDATE_SCI',
140
+ },
141
+ {
142
+ idDocumentType: SocietyApprovalDocumentType.DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS,
143
+ docName: 'Déclaration de confidentialité pour les comptes annuels',
144
+ templateName: 'DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS_SCI',
145
+ },
146
+ {
147
+ idDocumentType: SocietyApprovalDocumentType.INCOME_APPROPRIATION,
148
+ docName: 'Affectation du résultat',
149
+ templateName: 'INCOME_APPROPRIATION_SCI',
150
+ },
151
+ ],
152
+ },
153
+ ];
@@ -1,10 +1,16 @@
1
1
  import { LegalForm } from './LegalForm';
2
2
 
3
3
  export enum DocumentSectionType {
4
+ // Utilisés pour la génération de statuts depuis l'ERP
4
5
  ARTICLES = 1,
5
6
  ANNEXES = 2,
6
7
  LIST_SUBSCRIBERS = 3,
7
8
  DECLARATION_ON_HONOR_OF_NON_CONVICTION = 4,
9
+ // Utilisés pour la génération de documents juridiques (approbation) depuis clientApp
10
+ APPROVAL_PV = 5,
11
+ POWER_MANDATE = 6,
12
+ DECLARATION_OF_CONFIDENTIALITY_FOR_ANNUAL_ACCOUNTS = 7,
13
+ INCOME_APPROPRIATION = 8,
8
14
  }
9
15
 
10
16
  export const DocumentSectionTypeDetail = [
@@ -25,7 +31,7 @@ export const DocumentSectionTypeDetail = [
25
31
  },
26
32
  {
27
33
  id: DocumentSectionType.DECLARATION_ON_HONOR_OF_NON_CONVICTION,
28
- name: 'Déclaration sur l\'honneur de non-condamnation',
34
+ name: "Déclaration sur l'honneur de non-condamnation",
29
35
  filePrefix: 'declaration_non_condamnation',
30
36
  },
31
37
  ];
@@ -197,7 +203,7 @@ export const StatutsSection: StatutsSectionTypeV1[] = [
197
203
  {
198
204
  name: StatutsSectionName.S10_AE,
199
205
  onlyForLegalForms: [LegalForm.EI.id, LegalForm.EIRL.id, LegalForm.EURL.id, LegalForm.AUTO_ENTREPRENEUR.id],
200
- title: 'Article 10 - COMPTES COURANTS D\'ASSOCIÉS',
206
+ title: "Article 10 - COMPTES COURANTS D'ASSOCIÉS",
201
207
  idDocumentSectionType: DocumentSectionType.ARTICLES,
202
208
  },
203
209
  {
@@ -265,7 +271,7 @@ export const StatutsSection: StatutsSectionTypeV1[] = [
265
271
  {
266
272
  name: StatutsSectionName.S19_AE,
267
273
  onlyForLegalForms: [LegalForm.EI.id, LegalForm.EIRL.id, LegalForm.EURL.id, LegalForm.AUTO_ENTREPRENEUR.id],
268
- title: 'Article 19 – DECISIONS PRISES PAR L\'ASSOCIE UNIQUE',
274
+ title: "Article 19 – DECISIONS PRISES PAR L'ASSOCIE UNIQUE",
269
275
  idDocumentSectionType: DocumentSectionType.ARTICLES,
270
276
  },
271
277
  {
@@ -377,7 +383,7 @@ export const StatutsSection: StatutsSectionTypeV1[] = [
377
383
  {
378
384
  name: StatutsSectionName.S12_SA,
379
385
  exceptForLegalForms: [LegalForm.EI.id, LegalForm.EIRL.id, LegalForm.EURL.id, LegalForm.AUTO_ENTREPRENEUR.id],
380
- title: 'Article 12 – FORME DES CESSIONS OU TRANSMISSIONS D\'ACTIONS',
386
+ title: "Article 12 – FORME DES CESSIONS OU TRANSMISSIONS D'ACTIONS",
381
387
  idDocumentSectionType: DocumentSectionType.ARTICLES,
382
388
  },
383
389
  {
@@ -395,7 +401,7 @@ export const StatutsSection: StatutsSectionTypeV1[] = [
395
401
  {
396
402
  name: StatutsSectionName.S15_SA,
397
403
  exceptForLegalForms: [LegalForm.EI.id, LegalForm.EIRL.id, LegalForm.EURL.id, LegalForm.AUTO_ENTREPRENEUR.id],
398
- title: 'Article 15 - NULLITE DES CESSIONS D\'ACTIONS',
404
+ title: "Article 15 - NULLITE DES CESSIONS D'ACTIONS",
399
405
  idDocumentSectionType: DocumentSectionType.ARTICLES,
400
406
  },
401
407
  {
@@ -469,7 +475,7 @@ export const StatutsSection: StatutsSectionTypeV1[] = [
469
475
  {
470
476
  name: StatutsSectionName.S25_SA,
471
477
  exceptForLegalForms: [LegalForm.EI.id, LegalForm.EIRL.id, LegalForm.EURL.id, LegalForm.AUTO_ENTREPRENEUR.id],
472
- title: 'Article 25 – COMITE D\'ENTREPRISE',
478
+ title: "Article 25 – COMITE D'ENTREPRISE",
473
479
  idDocumentSectionType: DocumentSectionType.ARTICLES,
474
480
  },
475
481
  {
@@ -555,7 +561,7 @@ export const StatutsSection: StatutsSectionTypeV1[] = [
555
561
  },
556
562
  {
557
563
  name: StatutsSectionName.DECLARATION_OF_HONOR,
558
- title: 'DECLARATION SUR L\'HONNEUR DE NON-CONDAMNATION',
564
+ title: "DECLARATION SUR L'HONNEUR DE NON-CONDAMNATION",
559
565
  idDocumentSectionType: DocumentSectionType.DECLARATION_ON_HONOR_OF_NON_CONVICTION,
560
566
  },
561
567
  ];
@@ -0,0 +1,16 @@
1
+ import { IsDate, IsEnum, IsOptional } from 'class-validator';
2
+ import { ApiProperty, ApiPropertyOptional } from '../../../utils';
3
+ import { SocietyApprovalDocumentType } from '../../Enum/SocietyApproval';
4
+
5
+ export class SocietyApprovalJsonDatas {
6
+ @ApiPropertyOptional()
7
+ @IsOptional()
8
+ @IsDate()
9
+ approvalDate?: Date;
10
+ }
11
+
12
+ export class CreateDocument {
13
+ @ApiProperty()
14
+ @IsEnum(SocietyApprovalDocumentType, { each: true })
15
+ listIdDocumentType: number[];
16
+ }
@@ -1,8 +1,7 @@
1
- import { IsBoolean, IsEnum, IsInt, IsOptional } from 'class-validator';
1
+ import { IsEnum, IsInt, IsOptional } from 'class-validator';
2
2
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
3
  import { IDocumentRequest } from '../../models/IDocumentRequest';
4
4
  import { TypeFile } from '../../../Enum/Ged';
5
- import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
6
5
 
7
6
  export class CreateDocumentRequest implements Omit<IDocumentRequest, 'id' | 'idRequestedBy'> {
8
7
  @ApiProperty()
@@ -26,10 +25,4 @@ export class CreateDocumentRequest implements Omit<IDocumentRequest, 'id' | 'idR
26
25
  @ApiPropertyOptional()
27
26
  @IsOptional()
28
27
  comment?: string;
29
-
30
- @ApiPropertyOptional()
31
- @IsOptional()
32
- @IsBoolean()
33
- @ToBoolean()
34
- isMandatory?: boolean;
35
28
  }
@@ -1,6 +1,5 @@
1
- import { IsArray, IsInt, IsOptional } from 'class-validator';
1
+ import { IsInt, IsOptional } from 'class-validator';
2
2
  import { ApiPropertyOptional } from '../../../../utils';
3
- import { TypeFile } from '../../../Enum/Ged';
4
3
 
5
4
  export class QueryDocumentRequest {
6
5
  @ApiPropertyOptional()
@@ -12,14 +11,4 @@ export class QueryDocumentRequest {
12
11
  @IsOptional()
13
12
  @IsInt()
14
13
  idBalanceSheet?: number;
15
-
16
- @ApiPropertyOptional()
17
- @IsOptional()
18
- @IsInt()
19
- idRequestedBy?: number;
20
-
21
- @ApiPropertyOptional()
22
- @IsOptional()
23
- @IsArray()
24
- typeFile?: TypeFile[];
25
14
  }
@@ -0,0 +1,86 @@
1
+ interface GeoCoordinates {
2
+ lon: number;
3
+ lat: number;
4
+ }
5
+
6
+ interface CommuneResult {
7
+ commune: string;
8
+ code_commune: string;
9
+ code_postal: string;
10
+ bureau_distributeur: string;
11
+ greffe: string;
12
+ type_greffe: string;
13
+ coordonnees_geo: GeoCoordinates;
14
+ }
15
+
16
+ export interface InfoGreffeCommuneResponse {
17
+ total_count: number;
18
+ results: CommuneResult[];
19
+ }
20
+
21
+ interface Region {
22
+ code: string;
23
+ libelle: string;
24
+ libelle_minusucles: string;
25
+ coordonnees_gps_centre: string;
26
+ coordonnees_gps_contour: string;
27
+ etat: string;
28
+ }
29
+
30
+ interface Departement {
31
+ code: string;
32
+ libelle: string;
33
+ libelle_minusucles: string;
34
+ region: Region;
35
+ etat: string;
36
+ }
37
+
38
+ interface TypeGreffe {
39
+ code_type_greffe: string;
40
+ libelle_type_greffe: string;
41
+ libelle_court_type_greffe: string;
42
+ lieu: string;
43
+ fonction: string;
44
+ libelle_ville_force: string | null;
45
+ }
46
+
47
+ interface AdresseDeclaree {
48
+ ligne1: string;
49
+ ligne2: string | null;
50
+ ligne3: string;
51
+ code_postal: string;
52
+ bureau_distributeur: string;
53
+ }
54
+
55
+ interface Adresse {
56
+ adresse_declaree: AdresseDeclaree;
57
+ coordonnees_gps: string;
58
+ }
59
+
60
+ interface LibellesTypeGreffeCalcules {
61
+ libelle_complet: string;
62
+ libelle_court: string;
63
+ libelle_complet_avec_lieu: string;
64
+ libelle_complet_avec_fonction: string;
65
+ }
66
+
67
+ interface Greffe {
68
+ code: string;
69
+ libelle: string;
70
+ libelle_court: string;
71
+ adresse: Adresse;
72
+ libelles_type_greffe_calcules: LibellesTypeGreffeCalcules;
73
+ type_greffe: TypeGreffe;
74
+ departement: Departement;
75
+ region: Region;
76
+ etat: string;
77
+ }
78
+
79
+ export interface InfoGreffeResponse {
80
+ code: string;
81
+ libelle: string;
82
+ libelle_minusucles: string;
83
+ etat: string;
84
+ departement: Departement;
85
+ greffe: Greffe;
86
+ }
@@ -1,6 +1,4 @@
1
- import { IExercice } from './IExercice';
2
- import { ISociety } from './ISociety';
3
-
1
+ // balanceSheetModule
4
2
  export interface IBalanceSheetModule {
5
3
  id?: number;
6
4
  inventory: boolean | null;
@@ -34,8 +32,4 @@ export interface IBalanceSheetModule {
34
32
  idExercice: number;
35
33
  createdAt?: Date | null;
36
34
  updatedAt?: Date | null;
37
-
38
- // Associations
39
- society?: ISociety;
40
- exercice?: IExercice;
41
35
  }
@@ -7,19 +7,13 @@ import { IFile } from './IFile';
7
7
  import { IGedFile } from './IGedFile';
8
8
 
9
9
  export interface IDocumentRequest {
10
- id?: number;
10
+ id: number;
11
11
  idSociety: number;
12
12
  idExercice?: number | null;
13
13
  idBalanceSheet?: number | null;
14
- idRequestedBy: number; // IUser who requested the document
14
+ idRequestedBy: number;
15
15
  typeFile: TypeFile;
16
16
  comment?: string | null;
17
- isNotConcerned?: boolean; // This can't be null (default false in db)
18
- isMandatory?: boolean; // If true, client cannot mark this request as not concerned
19
- notConcernedAt?: Date | null;
20
- createdAt?: Date | null;
21
- updatedAt?: Date | null;
22
- deletedAt?: Date | null;
23
17
 
24
18
  // Associations
25
19
  society?: ISociety;
@@ -1,3 +1,4 @@
1
+ import { SocietyApprovalJsonDatas } from '../api/SocietyApproval';
1
2
  import { IExercice } from './IExercice';
2
3
  import { IFile } from './IFile';
3
4
  import { IPaymentWaiting } from './IPaymentWaiting';
@@ -19,6 +20,7 @@ export interface ISocietyApproval {
19
20
  docsCompletedDate: Date | null;
20
21
  registryDepositDate: Date | null;
21
22
  endLegalServiceDate: Date | null;
23
+ generatingDatas?: SocietyApprovalJsonDatas;
22
24
  idFile: number | null;
23
25
  idAccountant: number | null;
24
26
  idExercice: number | null;
package/ts/types/index.ts CHANGED
@@ -324,7 +324,6 @@ export * from './Interface/models/IAIQuestion';
324
324
  export * from './Interface/models/IAIConversation';
325
325
  export * from './Interface/models/IPaymentAttempt';
326
326
  export * from './Interface/models/IDocumentRequest';
327
- export * from './Interface/models/IInformationRequest';
328
327
  export * from './Interface/models/IRevenueMovement';
329
328
  export * from './Interface/models/IRevenueSnapshot';
330
329
 
@@ -480,6 +479,7 @@ export * from './Enum/ChecklistType';
480
479
  export * from './Enum/NotificationType';
481
480
  export * from './Enum/TaskResponseType';
482
481
  export * from './Enum/InternalService';
482
+ export * from './Enum/SocietyApproval';
483
483
  export * from './Enum/SocietyTypeEvent';
484
484
  export * from './Enum/Call';
485
485
  export * from './Enum/ConnectionError';
@@ -558,8 +558,6 @@ export * from './Enum/TeamType';
558
558
  export * from './Enum/PartneredAccountantServiceType';
559
559
  export * from './Enum/PartneredAccountantServiceTypeId';
560
560
  export * from './Enum/PaymentAttempt';
561
- export * from './Enum/InformationRequestType';
562
- export * from './Enum/InformationRequestState';
563
561
  export * from './Enum/Revenue';
564
562
 
565
563
  // Interfaces API
@@ -655,6 +653,7 @@ export * from './Interface/api/facturation/CreateRebilling';
655
653
  export * from './Interface/api/facturation/GoToFacturation';
656
654
  export * from './Interface/api/facturation/ReadRecommanded';
657
655
  export * from './Interface/api/OnBoarding';
656
+ export * from './Interface/api/SocietyApproval';
658
657
  export * from './Interface/api/commercial/Query';
659
658
  export * from './Interface/api/commercial/QueryGetStats';
660
659
  export * from './Interface/api/commercial/QueryGetStatsHistory';
@@ -1146,10 +1145,6 @@ export * from './Interface/api/recurrence/Query';
1146
1145
  export * from './Interface/api/recurrence/Read';
1147
1146
  export * from './Interface/api/documentRequest/Query';
1148
1147
  export * from './Interface/api/documentRequest/Create';
1149
- export * from './Interface/api/documentRequest/Update';
1150
- export * from './Interface/api/informationRequest/Query';
1151
- export * from './Interface/api/informationRequest/Create';
1152
- export * from './Interface/api/informationRequest/Update';
1153
1148
  export * from './Interface/api/automaticRegistration/Query';
1154
1149
  export * from './Interface/api/automaticRegistration/Read';
1155
1150
 
package/ts/utils/index.ts CHANGED
@@ -20,3 +20,4 @@ export * from './isHtml';
20
20
  export * from './isUrl';
21
21
  export * from './bankAccount';
22
22
  export * from './commercialOffer';
23
+ export * from './societyApproval';
@@ -0,0 +1,88 @@
1
+ import { LegalFormTypeEnum } from '../types/Enum/LegalForm';
2
+ import {
3
+ SocietyApprovalDocumentType,
4
+ SocietyApprovalDocumentConfig,
5
+ SocietyApprovalDocumentsByLegalForm,
6
+ } from '../types/Enum/SocietyApproval';
7
+ import { ISocietyApproval } from '../types/Interface/models/ISocietyApproval';
8
+ import { QualityList } from '../types/Enum/Quality';
9
+ import { getBrand } from './brands';
10
+ import { convertNumberToLetter } from './amount';
11
+ import * as dayjs from 'dayjs';
12
+
13
+ /**
14
+ * Récupère la configuration des documents d'approbation pour une forme juridique donnée
15
+ * @param idLegalForm - L'identifiant de la forme juridique
16
+ * @returns La configuration des documents ou undefined si non trouvée
17
+ */
18
+ export function getApprovalDocumentsByLegalForm(
19
+ idLegalForm: LegalFormTypeEnum,
20
+ ): SocietyApprovalDocumentConfig | undefined {
21
+ return SocietyApprovalDocumentsByLegalForm.find((config) => config.idLegalForm === idLegalForm);
22
+ }
23
+
24
+ /**
25
+ * Récupère le nom du template pour un document spécifique et une forme juridique
26
+ * @param idLegalForm - L'identifiant de la forme juridique
27
+ * @param idDocumentType - Le type de document d'approbation
28
+ * @returns Le nom du template ou undefined si non trouvé
29
+ */
30
+ export function getApprovalDocumentTemplateName(
31
+ idLegalForm: LegalFormTypeEnum,
32
+ idDocumentType: SocietyApprovalDocumentType,
33
+ ): string | undefined {
34
+ const config = getApprovalDocumentsByLegalForm(idLegalForm);
35
+ const document = config?.documents.find((doc) => doc.idDocumentType === idDocumentType);
36
+ return document?.templateName;
37
+ }
38
+
39
+ /**
40
+ * Construit les données formatées pour le template d'approbation
41
+ * @param existingApproval - Les données d'approbation de la société
42
+ * @param style - Le style HTML pour le document
43
+ * @returns L'objet de données formaté pour le template
44
+ */
45
+ export function buildApprovalTemplateData(existingApproval: ISocietyApproval, style: string): Record<string, any> {
46
+ const yearInText = convertNumberToLetter(+dayjs().format('YYYY')).toLowerCase();
47
+ const dayAndMonthInText = `${convertNumberToLetter(+dayjs().format('D'))} ${dayjs().locale('fr').format('MMMM').toLowerCase()}`;
48
+
49
+ return {
50
+ // Variables globales
51
+ style,
52
+ yearInText,
53
+ dayAndMonthInText,
54
+ date: dayjs().locale('fr').format('DD MMMM YYYY'),
55
+ companyInformation: {
56
+ rcs: getBrand()?.companyInformation?.rcs,
57
+ nomRaisonSociale: getBrand()?.companyInformation?.nomRaisonSociale,
58
+ city: getBrand()?.companyInformation?.city,
59
+ postalAddress: getBrand()?.companyInformation?.postalAddress,
60
+ montantCapital: getBrand()?.companyInformation?.montantCapital,
61
+ statut: getBrand()?.companyInformation?.statut,
62
+ ECOrderCity: getBrand()?.companyInformation?.ECOrderCity,
63
+ },
64
+ owner: {
65
+ identity: `${existingApproval?.exercice?.society?.users?.[0]?.idCivility === 1 ? 'Monsieur' : 'Madame'} ${existingApproval?.exercice?.society?.users?.[0]?.firstname} ${existingApproval?.exercice?.society?.users?.[0]?.lastname} `,
66
+ quality: QualityList.find(
67
+ (ql) => ql.id === existingApproval?.exercice?.society?.users?.[0]?.businessPartners?.[0]?.idQuality,
68
+ )?.label,
69
+ },
70
+ // Variables stockées en base
71
+ ...existingApproval,
72
+ generatingDatas: {
73
+ ...existingApproval?.generatingDatas,
74
+ ...(existingApproval?.generatingDatas?.approvalDate
75
+ ? {
76
+ approvalDate: dayjs(existingApproval?.generatingDatas?.approvalDate)
77
+ .locale('fr')
78
+ .format('DD MMMM YYYY')
79
+ .toUpperCase(),
80
+ }
81
+ : {}),
82
+ },
83
+ exercice: {
84
+ ...existingApproval?.exercice,
85
+ endDate: dayjs(existingApproval?.exercice?.endDate).locale('fr').format('DD MMMM YYYY').toLowerCase(),
86
+ },
87
+ };
88
+ }
@@ -1,11 +0,0 @@
1
- import { Resource } from '../Resource';
2
- import { CreateInformationRequest, IInformationRequest, QueryInformationRequest, UpdateInformationRequest } from '../../types';
3
- export declare class InformationRequest extends Resource {
4
- create(body: CreateInformationRequest): Promise<IInformationRequest>;
5
- update(id: number, body: UpdateInformationRequest): Promise<IInformationRequest>;
6
- getAllBySociety(idSociety: number, query?: QueryInformationRequest, signal?: AbortSignal): Promise<IInformationRequest[]>;
7
- getPendingBySociety(idSociety: number, query?: QueryInformationRequest, signal?: AbortSignal): Promise<IInformationRequest[]>;
8
- getById(id: number, signal?: AbortSignal): Promise<IInformationRequest>;
9
- delete(id: number): Promise<void>;
10
- }
11
- //# sourceMappingURL=InformationRequest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"InformationRequest.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/InformationRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAE/H,qBAAa,kBAAmB,SAAQ,QAAQ;IAC9C,MAAM,CAAC,IAAI,EAAE,wBAAwB,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAIpE,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,wBAAwB,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAIhF,eAAe,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,uBAAuB,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,mBAAmB,EAAE,CAAC;IAOzH,mBAAmB,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,uBAAuB,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,mBAAmB,EAAE,CAAC;IAO7H,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAMvE,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAGlC"}
@@ -1,26 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InformationRequest = void 0;
4
- const Resource_1 = require("../Resource");
5
- class InformationRequest extends Resource_1.Resource {
6
- create(body) {
7
- return this.axios.$post('/information-requests', body);
8
- }
9
- update(id, body) {
10
- return this.axios.$put(`/information-requests/${id}`, body);
11
- }
12
- getAllBySociety(idSociety, query, signal) {
13
- return this.axios.$get(`/information-requests/society/${idSociety}`, Object.assign(Object.assign({}, signal && { signal }), query && { params: query }));
14
- }
15
- getPendingBySociety(idSociety, query, signal) {
16
- return this.axios.$get(`/information-requests/pending/${idSociety}`, Object.assign(Object.assign({}, signal && { signal }), query && { params: query }));
17
- }
18
- getById(id, signal) {
19
- return this.axios.$get(`/information-requests/${id}`, Object.assign({}, signal && { signal }));
20
- }
21
- delete(id) {
22
- return this.axios.$delete(`/information-requests/${id}`);
23
- }
24
- }
25
- exports.InformationRequest = InformationRequest;
26
- //# sourceMappingURL=InformationRequest.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"InformationRequest.js","sourceRoot":"","sources":["../../../../ts/api/resources/InformationRequest.ts"],"names":[],"mappings":";;;AAAA,0CAAuC;AAGvC,MAAa,kBAAmB,SAAQ,mBAAQ;IAC9C,MAAM,CAAC,IAA8B;QACnC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,uBAAuB,EAAE,IAAI,CAAC,CAAC;IACzD,CAAC;IAED,MAAM,CAAC,EAAU,EAAE,IAA8B;QAC/C,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;IAC9D,CAAC;IAED,eAAe,CAAC,SAAiB,EAAE,KAA+B,EAAE,MAAoB;QACtF,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,iCAAiC,SAAS,EAAE,kCAC9D,MAAM,IAAI,EAAE,MAAM,EAAE,GACpB,KAAK,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,EAC7B,CAAC;IACL,CAAC;IAED,mBAAmB,CAAC,SAAiB,EAAE,KAA+B,EAAE,MAAoB;QAC1F,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,iCAAiC,SAAS,EAAE,kCAC9D,MAAM,IAAI,EAAE,MAAM,EAAE,GACpB,KAAK,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,EAC7B,CAAC;IACL,CAAC;IAED,OAAO,CAAC,EAAU,EAAE,MAAoB;QACtC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,oBAC/C,MAAM,IAAI,EAAE,MAAM,EAAE,EACvB,CAAC;IACL,CAAC;IAED,MAAM,CAAC,EAAU;QACf,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,yBAAyB,EAAE,EAAE,CAAC,CAAC;IAC3D,CAAC;CACF;AAhCD,gDAgCC","sourcesContent":["import { Resource } from '../Resource';\nimport { CreateInformationRequest, IInformationRequest, QueryInformationRequest, UpdateInformationRequest } from '../../types';\n\nexport class InformationRequest extends Resource {\n create(body: CreateInformationRequest): Promise<IInformationRequest> {\n return this.axios.$post('/information-requests', body);\n }\n\n update(id: number, body: UpdateInformationRequest): Promise<IInformationRequest> {\n return this.axios.$put(`/information-requests/${id}`, body);\n }\n\n getAllBySociety(idSociety: number, query?: QueryInformationRequest, signal?: AbortSignal): Promise<IInformationRequest[]> {\n return this.axios.$get(`/information-requests/society/${idSociety}`, {\n ...signal && { signal },\n ...query && { params: query },\n });\n }\n\n getPendingBySociety(idSociety: number, query?: QueryInformationRequest, signal?: AbortSignal): Promise<IInformationRequest[]> {\n return this.axios.$get(`/information-requests/pending/${idSociety}`, {\n ...signal && { signal },\n ...query && { params: query },\n });\n }\n\n getById(id: number, signal?: AbortSignal): Promise<IInformationRequest> {\n return this.axios.$get(`/information-requests/${id}`, {\n ...signal && { signal },\n });\n }\n\n delete(id: number): Promise<void> {\n return this.axios.$delete(`/information-requests/${id}`);\n }\n}\n"]}
@@ -1,6 +0,0 @@
1
- export declare enum InformationRequestState {
2
- PENDING = 1,
3
- COMPLETED = 2,
4
- NOT_CONCERNED = 3
5
- }
6
- //# sourceMappingURL=InformationRequestState.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"InformationRequestState.d.ts","sourceRoot":"","sources":["../../../../ts/types/Enum/InformationRequestState.ts"],"names":[],"mappings":"AAAA,oBAAY,uBAAuB;IACjC,OAAO,IAAI;IACX,SAAS,IAAI;IACb,aAAa,IAAI;CAClB"}
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InformationRequestState = void 0;
4
- var InformationRequestState;
5
- (function (InformationRequestState) {
6
- InformationRequestState[InformationRequestState["PENDING"] = 1] = "PENDING";
7
- InformationRequestState[InformationRequestState["COMPLETED"] = 2] = "COMPLETED";
8
- InformationRequestState[InformationRequestState["NOT_CONCERNED"] = 3] = "NOT_CONCERNED";
9
- })(InformationRequestState || (exports.InformationRequestState = InformationRequestState = {}));
10
- //# sourceMappingURL=InformationRequestState.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"InformationRequestState.js","sourceRoot":"","sources":["../../../../ts/types/Enum/InformationRequestState.ts"],"names":[],"mappings":";;;AAAA,IAAY,uBAIX;AAJD,WAAY,uBAAuB;IACjC,2EAAW,CAAA;IACX,+EAAa,CAAA;IACb,uFAAiB,CAAA;AACnB,CAAC,EAJW,uBAAuB,uCAAvB,uBAAuB,QAIlC","sourcesContent":["export enum InformationRequestState {\n PENDING = 1,\n COMPLETED = 2,\n NOT_CONCERNED = 3,\n}\n"]}
@@ -1,16 +0,0 @@
1
- import { TypeFile } from './Ged';
2
- export declare enum InformationRequestType {
3
- CASH_BOOK = 1,
4
- STOCK_STATUS = 2,
5
- SUPPLIER_DEBTS = 3,
6
- CUSTOMER_RECEIVABLES = 4,
7
- Z_TICKETS = 5,
8
- KILOMETRIC_ALLOWANCES_SUMMARY = 6
9
- }
10
- export declare const InformationRequestTypeDetails: Record<InformationRequestType, {
11
- id: InformationRequestType;
12
- name: string;
13
- typeFile: TypeFile;
14
- helpText?: string;
15
- }>;
16
- //# sourceMappingURL=InformationRequestType.d.ts.map