@silexpert/core 1.1.206 → 1.1.207

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 (192) hide show
  1. package/dist/cjs/api/resources/Journal.js +1 -1
  2. package/dist/cjs/api/resources/Journal.js.map +1 -1
  3. package/dist/cjs/api/resources/ReportMessage.d.ts +47 -0
  4. package/dist/cjs/api/resources/ReportMessage.d.ts.map +1 -0
  5. package/dist/cjs/api/resources/ReportMessage.js +59 -0
  6. package/dist/cjs/api/resources/ReportMessage.js.map +1 -0
  7. package/dist/cjs/api/resources.d.ts +2 -0
  8. package/dist/cjs/api/resources.d.ts.map +1 -1
  9. package/dist/cjs/api/resources.js +2 -0
  10. package/dist/cjs/api/resources.js.map +1 -1
  11. package/dist/cjs/types/Enum/Constants.d.ts +24 -0
  12. package/dist/cjs/types/Enum/Constants.d.ts.map +1 -0
  13. package/dist/cjs/types/Enum/Constants.js +35 -0
  14. package/dist/cjs/types/Enum/Constants.js.map +1 -0
  15. package/dist/cjs/types/Enum/MailAuto.d.ts +3 -1
  16. package/dist/cjs/types/Enum/MailAuto.d.ts.map +1 -1
  17. package/dist/cjs/types/Enum/MailAuto.js +2 -0
  18. package/dist/cjs/types/Enum/MailAuto.js.map +1 -1
  19. package/dist/cjs/types/Enum/ReportType.d.ts +32 -0
  20. package/dist/cjs/types/Enum/ReportType.d.ts.map +1 -1
  21. package/dist/cjs/types/Enum/ReportType.js +32 -0
  22. package/dist/cjs/types/Enum/ReportType.js.map +1 -1
  23. package/dist/cjs/types/Enum/RoleDetail.d.ts +32 -0
  24. package/dist/cjs/types/Enum/RoleDetail.d.ts.map +1 -1
  25. package/dist/cjs/types/Enum/RoleDetail.js +32 -0
  26. package/dist/cjs/types/Enum/RoleDetail.js.map +1 -1
  27. package/dist/cjs/types/Interface/api/OnBoarding.d.ts +13 -1
  28. package/dist/cjs/types/Interface/api/OnBoarding.d.ts.map +1 -1
  29. package/dist/cjs/types/Interface/api/OnBoarding.js +45 -3
  30. package/dist/cjs/types/Interface/api/OnBoarding.js.map +1 -1
  31. package/dist/cjs/types/Interface/api/commercial/QueryPaginatedSocietyWithStatsCa.d.ts +1 -0
  32. package/dist/cjs/types/Interface/api/commercial/QueryPaginatedSocietyWithStatsCa.d.ts.map +1 -1
  33. package/dist/cjs/types/Interface/api/commercial/QueryPaginatedSocietyWithStatsCa.js +7 -0
  34. package/dist/cjs/types/Interface/api/commercial/QueryPaginatedSocietyWithStatsCa.js.map +1 -1
  35. package/dist/cjs/types/Interface/api/equipment/Query.d.ts +1 -0
  36. package/dist/cjs/types/Interface/api/equipment/Query.d.ts.map +1 -1
  37. package/dist/cjs/types/Interface/api/equipment/Query.js +6 -0
  38. package/dist/cjs/types/Interface/api/equipment/Query.js.map +1 -1
  39. package/dist/cjs/types/Interface/api/prestation/Query.d.ts +2 -0
  40. package/dist/cjs/types/Interface/api/prestation/Query.d.ts.map +1 -1
  41. package/dist/cjs/types/Interface/api/prestation/Query.js +12 -0
  42. package/dist/cjs/types/Interface/api/prestation/Query.js.map +1 -1
  43. package/dist/cjs/types/Interface/api/report/CreateReport.d.ts +1 -0
  44. package/dist/cjs/types/Interface/api/report/CreateReport.d.ts.map +1 -1
  45. package/dist/cjs/types/Interface/api/report/CreateReport.js +4 -0
  46. package/dist/cjs/types/Interface/api/report/CreateReport.js.map +1 -1
  47. package/dist/cjs/types/Interface/api/report/QueryReports.d.ts +1 -0
  48. package/dist/cjs/types/Interface/api/report/QueryReports.d.ts.map +1 -1
  49. package/dist/cjs/types/Interface/api/report/QueryReports.js +4 -0
  50. package/dist/cjs/types/Interface/api/report/QueryReports.js.map +1 -1
  51. package/dist/cjs/types/Interface/api/report/UpdateReport.d.ts +1 -0
  52. package/dist/cjs/types/Interface/api/report/UpdateReport.d.ts.map +1 -1
  53. package/dist/cjs/types/Interface/api/report/UpdateReport.js.map +1 -1
  54. package/dist/cjs/types/Interface/api/reportMessage/Query.d.ts +4 -0
  55. package/dist/cjs/types/Interface/api/reportMessage/Query.d.ts.map +1 -0
  56. package/dist/cjs/types/Interface/api/reportMessage/Query.js +23 -0
  57. package/dist/cjs/types/Interface/api/reportMessage/Query.js.map +1 -0
  58. package/dist/cjs/types/Interface/models/ICustomerAcceptance.d.ts +1 -0
  59. package/dist/cjs/types/Interface/models/ICustomerAcceptance.d.ts.map +1 -1
  60. package/dist/cjs/types/Interface/models/ICustomerAcceptance.js.map +1 -1
  61. package/dist/cjs/types/Interface/models/IEquipment.d.ts +1 -0
  62. package/dist/cjs/types/Interface/models/IEquipment.d.ts.map +1 -1
  63. package/dist/cjs/types/Interface/models/IEquipment.js.map +1 -1
  64. package/dist/cjs/types/Interface/models/IPrestation.d.ts +3 -2
  65. package/dist/cjs/types/Interface/models/IPrestation.d.ts.map +1 -1
  66. package/dist/cjs/types/Interface/models/IPrestation.js.map +1 -1
  67. package/dist/cjs/types/Interface/models/IReport.d.ts +3 -0
  68. package/dist/cjs/types/Interface/models/IReport.d.ts.map +1 -1
  69. package/dist/cjs/types/Interface/models/IReport.js.map +1 -1
  70. package/dist/cjs/types/Interface/models/IReportMessage.d.ts +13 -0
  71. package/dist/cjs/types/Interface/models/IReportMessage.d.ts.map +1 -0
  72. package/dist/cjs/types/Interface/models/IReportMessage.js +3 -0
  73. package/dist/cjs/types/Interface/models/IReportMessage.js.map +1 -0
  74. package/dist/cjs/types/Interface/models/ISocietyDetail.d.ts +12 -0
  75. package/dist/cjs/types/Interface/models/ISocietyDetail.d.ts.map +1 -1
  76. package/dist/cjs/types/Interface/models/ISocietyDetail.js.map +1 -1
  77. package/dist/cjs/types/index.d.ts +4 -0
  78. package/dist/cjs/types/index.d.ts.map +1 -1
  79. package/dist/cjs/types/index.js +4 -0
  80. package/dist/cjs/types/index.js.map +1 -1
  81. package/dist/cjs/utils/checkup.d.ts +544 -0
  82. package/dist/cjs/utils/checkup.d.ts.map +1 -0
  83. package/dist/cjs/utils/checkup.js +765 -0
  84. package/dist/cjs/utils/checkup.js.map +1 -0
  85. package/dist/mjs/api/resources/Journal.js +1 -1
  86. package/dist/mjs/api/resources/Journal.js.map +1 -1
  87. package/dist/mjs/api/resources/ReportMessage.d.ts +47 -0
  88. package/dist/mjs/api/resources/ReportMessage.d.ts.map +1 -0
  89. package/dist/mjs/api/resources/ReportMessage.js +73 -0
  90. package/dist/mjs/api/resources/ReportMessage.js.map +1 -0
  91. package/dist/mjs/api/resources.d.ts +2 -0
  92. package/dist/mjs/api/resources.d.ts.map +1 -1
  93. package/dist/mjs/api/resources.js +2 -0
  94. package/dist/mjs/api/resources.js.map +1 -1
  95. package/dist/mjs/types/Enum/Constants.d.ts +24 -0
  96. package/dist/mjs/types/Enum/Constants.d.ts.map +1 -0
  97. package/dist/mjs/types/Enum/Constants.js +32 -0
  98. package/dist/mjs/types/Enum/Constants.js.map +1 -0
  99. package/dist/mjs/types/Enum/MailAuto.d.ts +3 -1
  100. package/dist/mjs/types/Enum/MailAuto.d.ts.map +1 -1
  101. package/dist/mjs/types/Enum/MailAuto.js +2 -0
  102. package/dist/mjs/types/Enum/MailAuto.js.map +1 -1
  103. package/dist/mjs/types/Enum/ReportType.d.ts +32 -0
  104. package/dist/mjs/types/Enum/ReportType.d.ts.map +1 -1
  105. package/dist/mjs/types/Enum/ReportType.js +32 -0
  106. package/dist/mjs/types/Enum/ReportType.js.map +1 -1
  107. package/dist/mjs/types/Enum/RoleDetail.d.ts +32 -0
  108. package/dist/mjs/types/Enum/RoleDetail.d.ts.map +1 -1
  109. package/dist/mjs/types/Enum/RoleDetail.js +32 -0
  110. package/dist/mjs/types/Enum/RoleDetail.js.map +1 -1
  111. package/dist/mjs/types/Interface/api/OnBoarding.d.ts +13 -1
  112. package/dist/mjs/types/Interface/api/OnBoarding.d.ts.map +1 -1
  113. package/dist/mjs/types/Interface/api/OnBoarding.js +48 -3
  114. package/dist/mjs/types/Interface/api/OnBoarding.js.map +1 -1
  115. package/dist/mjs/types/Interface/api/commercial/QueryPaginatedSocietyWithStatsCa.d.ts +1 -0
  116. package/dist/mjs/types/Interface/api/commercial/QueryPaginatedSocietyWithStatsCa.d.ts.map +1 -1
  117. package/dist/mjs/types/Interface/api/commercial/QueryPaginatedSocietyWithStatsCa.js +8 -0
  118. package/dist/mjs/types/Interface/api/commercial/QueryPaginatedSocietyWithStatsCa.js.map +1 -1
  119. package/dist/mjs/types/Interface/api/equipment/Query.d.ts +1 -0
  120. package/dist/mjs/types/Interface/api/equipment/Query.d.ts.map +1 -1
  121. package/dist/mjs/types/Interface/api/equipment/Query.js +7 -0
  122. package/dist/mjs/types/Interface/api/equipment/Query.js.map +1 -1
  123. package/dist/mjs/types/Interface/api/prestation/Query.d.ts +2 -0
  124. package/dist/mjs/types/Interface/api/prestation/Query.d.ts.map +1 -1
  125. package/dist/mjs/types/Interface/api/prestation/Query.js +15 -1
  126. package/dist/mjs/types/Interface/api/prestation/Query.js.map +1 -1
  127. package/dist/mjs/types/Interface/api/report/CreateReport.d.ts +1 -0
  128. package/dist/mjs/types/Interface/api/report/CreateReport.d.ts.map +1 -1
  129. package/dist/mjs/types/Interface/api/report/CreateReport.js +5 -0
  130. package/dist/mjs/types/Interface/api/report/CreateReport.js.map +1 -1
  131. package/dist/mjs/types/Interface/api/report/QueryReports.d.ts +1 -0
  132. package/dist/mjs/types/Interface/api/report/QueryReports.d.ts.map +1 -1
  133. package/dist/mjs/types/Interface/api/report/QueryReports.js +5 -0
  134. package/dist/mjs/types/Interface/api/report/QueryReports.js.map +1 -1
  135. package/dist/mjs/types/Interface/api/report/UpdateReport.d.ts +1 -0
  136. package/dist/mjs/types/Interface/api/report/UpdateReport.d.ts.map +1 -1
  137. package/dist/mjs/types/Interface/api/report/UpdateReport.js.map +1 -1
  138. package/dist/mjs/types/Interface/api/reportMessage/Query.d.ts +4 -0
  139. package/dist/mjs/types/Interface/api/reportMessage/Query.d.ts.map +1 -0
  140. package/dist/mjs/types/Interface/api/reportMessage/Query.js +20 -0
  141. package/dist/mjs/types/Interface/api/reportMessage/Query.js.map +1 -0
  142. package/dist/mjs/types/Interface/models/ICustomerAcceptance.d.ts +1 -0
  143. package/dist/mjs/types/Interface/models/ICustomerAcceptance.d.ts.map +1 -1
  144. package/dist/mjs/types/Interface/models/ICustomerAcceptance.js.map +1 -1
  145. package/dist/mjs/types/Interface/models/IEquipment.d.ts +1 -0
  146. package/dist/mjs/types/Interface/models/IEquipment.d.ts.map +1 -1
  147. package/dist/mjs/types/Interface/models/IEquipment.js.map +1 -1
  148. package/dist/mjs/types/Interface/models/IPrestation.d.ts +3 -2
  149. package/dist/mjs/types/Interface/models/IPrestation.d.ts.map +1 -1
  150. package/dist/mjs/types/Interface/models/IPrestation.js.map +1 -1
  151. package/dist/mjs/types/Interface/models/IReport.d.ts +3 -0
  152. package/dist/mjs/types/Interface/models/IReport.d.ts.map +1 -1
  153. package/dist/mjs/types/Interface/models/IReport.js.map +1 -1
  154. package/dist/mjs/types/Interface/models/IReportMessage.d.ts +13 -0
  155. package/dist/mjs/types/Interface/models/IReportMessage.d.ts.map +1 -0
  156. package/dist/mjs/types/Interface/models/IReportMessage.js +2 -0
  157. package/dist/mjs/types/Interface/models/IReportMessage.js.map +1 -0
  158. package/dist/mjs/types/Interface/models/ISocietyDetail.d.ts +12 -0
  159. package/dist/mjs/types/Interface/models/ISocietyDetail.d.ts.map +1 -1
  160. package/dist/mjs/types/Interface/models/ISocietyDetail.js.map +1 -1
  161. package/dist/mjs/types/index.d.ts +4 -0
  162. package/dist/mjs/types/index.d.ts.map +1 -1
  163. package/dist/mjs/types/index.js +4 -0
  164. package/dist/mjs/types/index.js.map +1 -1
  165. package/dist/mjs/utils/checkup.d.ts +544 -0
  166. package/dist/mjs/utils/checkup.d.ts.map +1 -0
  167. package/dist/mjs/utils/checkup.js +760 -0
  168. package/dist/mjs/utils/checkup.js.map +1 -0
  169. package/package.json +1 -1
  170. package/ts/api/resources/Journal.ts +1 -1
  171. package/ts/api/resources/ReportMessage.ts +81 -0
  172. package/ts/api/resources.ts +2 -0
  173. package/ts/types/Enum/Constants.ts +35 -0
  174. package/ts/types/Enum/MailAuto.ts +2 -0
  175. package/ts/types/Enum/ReportType.ts +32 -0
  176. package/ts/types/Enum/RoleDetail.ts +32 -0
  177. package/ts/types/Interface/api/OnBoarding.ts +35 -3
  178. package/ts/types/Interface/api/commercial/QueryPaginatedSocietyWithStatsCa.ts +6 -0
  179. package/ts/types/Interface/api/equipment/Query.ts +5 -0
  180. package/ts/types/Interface/api/prestation/Query.ts +11 -1
  181. package/ts/types/Interface/api/report/CreateReport.ts +3 -0
  182. package/ts/types/Interface/api/report/QueryReports.ts +3 -0
  183. package/ts/types/Interface/api/report/UpdateReport.ts +1 -0
  184. package/ts/types/Interface/api/reportMessage/Query.ts +8 -0
  185. package/ts/types/Interface/models/ICustomerAcceptance.ts +1 -0
  186. package/ts/types/Interface/models/IEquipment.ts +1 -0
  187. package/ts/types/Interface/models/IPrestation.ts +3 -2
  188. package/ts/types/Interface/models/IReport.ts +3 -0
  189. package/ts/types/Interface/models/IReportMessage.ts +16 -0
  190. package/ts/types/Interface/models/ISocietyDetail.ts +12 -0
  191. package/ts/types/index.ts +4 -0
  192. package/ts/utils/checkup.ts +774 -0
@@ -0,0 +1,760 @@
1
+ import { AverageTimeItems, SelectYesNoStatementBool, ClementineSources } from '../types/Enum/Constants';
2
+ import { QualityList } from '../types/Enum/Quality';
3
+ import { Vat } from '../types/Enum/Vat';
4
+ import * as dayjs from 'dayjs';
5
+ export const setRangeItems = (maxRange) => {
6
+ const res = [];
7
+ for (let i = 0; i < maxRange; i += 1) {
8
+ res.push({ text: i, value: i });
9
+ }
10
+ return res;
11
+ };
12
+ export const getCheckupDetailForm = (societyDetail, //FIXME: typage ???
13
+ brandName, bankList) => {
14
+ const isSocietyCreationCompute = societyDetail.isSocietyCreation !== null &&
15
+ societyDetail.isSocietyCreation !== undefined
16
+ ? societyDetail.isSocietyCreation
17
+ : true;
18
+ return [
19
+ {
20
+ name: 'Découverte de l\'entreprise',
21
+ questions: [
22
+ {
23
+ value: 'detailActivity',
24
+ component: 'FormInputTextArea',
25
+ text: 'Pouvez vous m’expliquer le fonctionnement de votre activité ?',
26
+ //TODO: conseil à afficher
27
+ meta: {
28
+ placeholder: 'E-commerce, ventes de produits finis, artisanat...',
29
+ hideDetails: true,
30
+ },
31
+ },
32
+ {
33
+ value: 'nbBankaccounts',
34
+ component: 'FormInputSelect',
35
+ text: 'Combien de comptes bancaires avez-vous ?',
36
+ meta: {
37
+ items: setRangeItems(15).map(i => ({ ...i, value: i.value.toString() })),
38
+ hideDetails: true,
39
+ },
40
+ lg: societyDetail.nbBankaccounts > 0 ? 8 : 12,
41
+ },
42
+ {
43
+ //TODO: champ à créer
44
+ component: 'FormInputSelect',
45
+ text: 'Lesquelles ?',
46
+ value: 'listBanks',
47
+ meta: {
48
+ multiple: true,
49
+ items: [...bankList, { id: 'hors-ue', name: 'Hors UE' }],
50
+ itemText: 'name',
51
+ itemValue: 'id',
52
+ hideDetails: true,
53
+ },
54
+ lg: societyDetail.nbBankaccounts > 0 ? 4 : 12,
55
+ condition: societyDetail.nbBankaccounts > 0,
56
+ },
57
+ {
58
+ component: 'FormInputSelect',
59
+ text: 'Combien d\'associés êtes-vous ?',
60
+ // lg: 4,
61
+ value: 'nbAssociates',
62
+ meta: {
63
+ items: setRangeItems(20),
64
+ hideDetails: true,
65
+ },
66
+ lg: 4,
67
+ },
68
+ {
69
+ component: 'FormInputSelect',
70
+ text: 'Combien d\'associés travaillent dans la société ?',
71
+ // lg: 4,
72
+ value: 'nbAssociatesInCompany',
73
+ meta: {
74
+ items: setRangeItems(20),
75
+ hideDetails: true,
76
+ },
77
+ lg: 4,
78
+ },
79
+ {
80
+ component: 'FormInputSelect',
81
+ text: 'Combien de salariés êtes-vous ?',
82
+ value: 'nbEmployees',
83
+ meta: {
84
+ items: setRangeItems(20),
85
+ hideDetails: true,
86
+ },
87
+ lg: 4,
88
+ },
89
+ {
90
+ component: 'FormInputSelect',
91
+ text: 'Avez-vous des prévisions d’embauches ?',
92
+ value: 'hiringPromess',
93
+ meta: {
94
+ items: SelectYesNoStatementBool.map(i => ({ ...i, value: i.value.toString() })),
95
+ hideDetails: true,
96
+ },
97
+ lg: 4,
98
+ },
99
+ {
100
+ component: 'FormInputSelect',
101
+ text: 'Le siège social est-il au domicile ?',
102
+ // lg: 4,
103
+ value: 'isPersoAdress',
104
+ meta: {
105
+ items: SelectYesNoStatementBool.map(i => ({ ...i, value: i.value.toString() })),
106
+ hideDetails: true,
107
+ },
108
+ lg: 4,
109
+ },
110
+ {
111
+ component: 'FormInputSelect',
112
+ text: 'Êtes-vous propriétaire ?',
113
+ value: 'professionnalRent',
114
+ meta: {
115
+ items: SelectYesNoStatementBool.map(i => ({ ...i, value: i.value.toString() })),
116
+ hideDetails: true,
117
+ },
118
+ condition: societyDetail.isPersoAdress === '1',
119
+ lg: societyDetail.isPersoAdress === '1' ? 4 : 8,
120
+ },
121
+ {
122
+ component: 'FormInputSelect',
123
+ text: 'Si non, avez-vous un bail commercial ?',
124
+ value: 'hasCommercialLease',
125
+ meta: {
126
+ items: SelectYesNoStatementBool.map(i => ({ ...i, value: i.value.toString() })),
127
+ hideDetails: true,
128
+ },
129
+ //TODO: conseil à afficher
130
+ condition: societyDetail.isPersoAdress === '1',
131
+ lg: societyDetail.isPersoAdress === '1' ? 4 : 8,
132
+ },
133
+ {
134
+ component: 'FormInputText',
135
+ text: 'Quelle est la surface approximative du local ?',
136
+ value: 'commercialArea',
137
+ type: 'number',
138
+ meta: {
139
+ suffix: 'm²',
140
+ hideDetails: true,
141
+ },
142
+ condition: societyDetail.isPersoAdress === '1',
143
+ lg: societyDetail.isPersoAdress === '1' ? 4 : 8,
144
+ },
145
+ {
146
+ component: 'FormInputText',
147
+ text: 'Quel est le montant du loyer mensuel',
148
+ value: 'commercialRentAmount',
149
+ type: 'number',
150
+ meta: {
151
+ suffix: '€',
152
+ hideDetails: true,
153
+ },
154
+ condition: societyDetail.isPersoAdress === '1',
155
+ lg: societyDetail.isPersoAdress === '1' ? 4 : 8,
156
+ },
157
+ {
158
+ component: 'FormInputSelect',
159
+ text: 'Utilisez-vous votre véhicule personnel dans le cadre de votre activité ?',
160
+ value: 'vehicle',
161
+ required: false,
162
+ meta: {
163
+ items: SelectYesNoStatementBool.map(i => ({ ...i, value: i.value.toString() })),
164
+ hideDetails: true,
165
+ },
166
+ lg: 4,
167
+ //TODO: conseil à afficher
168
+ },
169
+ {
170
+ component: 'FormInputSelect',
171
+ text: 'Votre structure a-t-elle des participations dans d\'autres sociétés ?',
172
+ value: 'interestOtherCompanies',
173
+ meta: {
174
+ items: setRangeItems(15).map(i => ({ ...i, value: i.value.toString() })),
175
+ hideDetails: true,
176
+ },
177
+ lg: parseInt(societyDetail.interestOtherCompanies, 10) > 0 ? 4 : 12,
178
+ },
179
+ {
180
+ component: 'FormInputText',
181
+ text: 'Si oui, quels sont les noms des sociétés ?',
182
+ value: 'commercialRentAmount',
183
+ condition: parseInt(societyDetail.interestOtherCompanies, 10) > 0,
184
+ lg: parseInt(societyDetail.interestOtherCompanies, 10) > 0 ? 4 : 12,
185
+ },
186
+ {
187
+ //TODO: champ à créer
188
+ component: 'FormInputSelect',
189
+ text: `Sont-elles clientes chez ${brandName}`,
190
+ value: 'areOtherCompaniesOnOurBrand',
191
+ meta: {
192
+ items: SelectYesNoStatementBool.map(i => ({ ...i, value: i.value.toString() })),
193
+ hideDetails: true,
194
+ },
195
+ condition: parseInt(societyDetail.interestOtherCompanies, 10) > 0,
196
+ lg: parseInt(societyDetail.interestOtherCompanies, 10) > 0 ? 4 : 12,
197
+ //TODO: si non, conseil à afficher
198
+ },
199
+ {
200
+ //TODO: champ à créer
201
+ component: 'FormInputSelect',
202
+ text: 'Quels sont vos taux de TVA ?',
203
+ value: 'listTva',
204
+ meta: {
205
+ multiple: true,
206
+ items: Object.values(Vat)
207
+ .filter(v => !v.isVatIntracom && !v.isVatImportation && v.immobilization)
208
+ .sort((a, b) => b.displayOrder - a.displayOrder),
209
+ itemText: 'name',
210
+ itemValue: 'id',
211
+ hideDetails: true,
212
+ },
213
+ lg: 4,
214
+ },
215
+ {
216
+ //TODO: champ à créer
217
+ component: 'FormInputSelect',
218
+ text: 'Votre compte impôts.gouv.fr a t-il été paramétré avec le RIB transmis au service facturation ?',
219
+ value: 'ribSentToTaxDepartment',
220
+ meta: {
221
+ items: SelectYesNoStatementBool.map(i => ({ ...i, value: i.value.toString() })),
222
+ hideDetails: true,
223
+ },
224
+ lg: 8,
225
+ },
226
+ {
227
+ //TRICK: insertion du bloc de DropBox de RIB
228
+ value: 'rib',
229
+ condition: societyDetail.ribSentToTaxDepartment === '0',
230
+ //TODO: conseil à afficher
231
+ lg: 4,
232
+ },
233
+ {
234
+ component: 'FormInputTextArea',
235
+ text: 'Remarques',
236
+ value: 'historyComments',
237
+ required: false,
238
+ meta: {
239
+ hideDetails: true,
240
+ },
241
+ lg: 12,
242
+ },
243
+ {
244
+ //TODO: champ à créer
245
+ component: 'FormInputSelect',
246
+ text: 'Avez-vous un logiciel de facturation ?',
247
+ value: 'hasBillingSoftware',
248
+ meta: {
249
+ items: SelectYesNoStatementBool.map(i => ({ ...i, value: i.value.toString() })),
250
+ hideDetails: true,
251
+ },
252
+ lg: 4,
253
+ },
254
+ {
255
+ component: 'FormInputText',
256
+ text: 'Lequel ?',
257
+ value: 'billingSoftware',
258
+ //TODO: si non, conseil à afficher
259
+ lg: 4,
260
+ meta: {
261
+ hideDetails: true,
262
+ },
263
+ condition: societyDetail.hasBillingSoftware === '1',
264
+ },
265
+ {
266
+ component: 'FormInputSelect',
267
+ text: 'Quels sont les modes de réglements dont vous disposez ?',
268
+ value: 'collectionSystem',
269
+ meta: {
270
+ items: [
271
+ //TODO: ajouter PayPal et Stripe ?
272
+ { text: 'Chèque', value: 'cheque' },
273
+ { text: 'Espèce', value: 'espece' },
274
+ { text: 'Intermédiaire', value: 'intermediaire' },
275
+ { text: 'Virement', value: 'virement' },
276
+ ],
277
+ hideDetails: true,
278
+ },
279
+ lg: 4,
280
+ },
281
+ {
282
+ //TODO: champ à créer
283
+ component: 'FormInputSelect',
284
+ text: 'Où est situé le siège de l’entreprise ?',
285
+ value: 'officeType',
286
+ meta: {
287
+ items: [
288
+ { text: 'Domicile', value: 'domicile' },
289
+ { text: 'Boîte de Domiciliation', value: 'boite de Domiciliation' },
290
+ { text: 'Local ou Bureau', value: 'local/bureau' },
291
+ ],
292
+ hideDetails: true,
293
+ },
294
+ //TODO: 3 conseils à afficher
295
+ lg: 4,
296
+ },
297
+ ],
298
+ },
299
+ {
300
+ name: 'Création d\'entreprise',
301
+ display: isSocietyCreationCompute === true,
302
+ questions: [
303
+ {
304
+ component: 'FormInputSelect',
305
+ text: 'Avez-vous utilisé des apports personnels en capital lors de la création ?',
306
+ value: 'personnalContributionCapital',
307
+ meta: {
308
+ items: SelectYesNoStatementBool.map(i => ({ ...i, value: i.value.toString() })),
309
+ hideDetails: true,
310
+ },
311
+ lg: 4,
312
+ },
313
+ {
314
+ component: 'FormInputSelect',
315
+ text: 'Avez-vous utilisé des apports personnels en compte courant lors de la création ?',
316
+ value: 'personnalContributionCurrentBankAccount',
317
+ meta: {
318
+ items: SelectYesNoStatementBool.map(i => ({ ...i, value: i.value.toString() })),
319
+ hideDetails: true,
320
+ },
321
+ lg: 4,
322
+ },
323
+ {
324
+ component: 'FormInputSelect',
325
+ text: 'Avez-vous utilisé des apports personnels en nature lors de la création ?',
326
+ value: 'personnalContributionInKind',
327
+ meta: {
328
+ items: SelectYesNoStatementBool.map(i => ({ ...i, value: i.value.toString() })),
329
+ hideDetails: true,
330
+ },
331
+ lg: 4,
332
+ },
333
+ {
334
+ component: 'FormInputText',
335
+ text: 'Quelle activité exerciez-vous auparavant ?',
336
+ value: 'oldActivite',
337
+ meta: {
338
+ hideDetails: true,
339
+ },
340
+ },
341
+ {
342
+ component: 'FormInputSelect',
343
+ text: 'Avez-vous bénéficié d\'une rupture conventionnelle ou du versement d\'une indemnité de licenciement dans le cadre de votre installation ?',
344
+ value: 'indemnite',
345
+ required: false,
346
+ meta: {
347
+ items: SelectYesNoStatementBool.map(i => ({ ...i, value: i.value.toString() })),
348
+ hideDetails: true,
349
+ },
350
+ },
351
+ {
352
+ component: 'FormInputSelect',
353
+ text: 'Bénéficiez vous de l\'aide de Pôle Emploi ?',
354
+ value: 'poleEmploiAid',
355
+ required: false,
356
+ meta: {
357
+ items: SelectYesNoStatementBool.map(i => ({ ...i, value: i.value.toString() })),
358
+ hideDetails: true,
359
+ },
360
+ lg: societyDetail.poleEmploiAid === '1' ? 6 : 12,
361
+ },
362
+ {
363
+ component: 'FormInputText',
364
+ text: 'Si oui, option retenue ?',
365
+ value: 'poleEmploiAidType',
366
+ required: false,
367
+ meta: {
368
+ hideDetails: true,
369
+ },
370
+ condition: societyDetail.poleEmploiAid === '1',
371
+ lg: societyDetail.poleEmploiAid === '1' ? 6 : 12,
372
+ },
373
+ {
374
+ component: 'FormInputSelect',
375
+ text: 'Avez-vous bénéficié d\'un prêt d\'honneur ?',
376
+ value: 'honorLoan',
377
+ required: false,
378
+ meta: {
379
+ items: SelectYesNoStatementBool.map(i => ({ ...i, value: i.value.toString() })),
380
+ hideDetails: true,
381
+ },
382
+ lg: societyDetail.honorLoan === '1' ? 6 : 12,
383
+ },
384
+ {
385
+ component: 'FormInputText',
386
+ text: 'Si oui, quel est le montant du prêt d\'honneur ?',
387
+ value: 'honorLoanAmount',
388
+ type: 'number',
389
+ required: false,
390
+ meta: {
391
+ suffix: '€',
392
+ hideDetails: true,
393
+ },
394
+ condition: societyDetail.honorLoan === '1',
395
+ lg: societyDetail.honorLoan === '1' ? 6 : 12,
396
+ },
397
+ {
398
+ component: 'FormInputSelect',
399
+ text: 'Allez-vous travailler à l\'international ? (import ou export)',
400
+ value: 'workInternationnal',
401
+ required: false,
402
+ meta: {
403
+ items: SelectYesNoStatementBool.map(i => ({ ...i, value: i.value.toString() })),
404
+ hideDetails: true,
405
+ },
406
+ lg: 4,
407
+ },
408
+ {
409
+ component: 'FormInputSelect',
410
+ text: 'Avez-vous dû financer un stock de départ ?',
411
+ value: 'financingStartingStock',
412
+ required: false,
413
+ meta: {
414
+ items: SelectYesNoStatementBool.map(i => ({ ...i, value: i.value.toString() })),
415
+ hideDetails: true,
416
+ },
417
+ lg: societyDetail.financingStartingStock === '1' ? 4 : 8,
418
+ },
419
+ {
420
+ component: 'FormInputText',
421
+ text: 'Si oui, montant approximatif',
422
+ value: 'financingStartingStockAmount',
423
+ type: 'number',
424
+ required: false,
425
+ meta: {
426
+ suffix: '€',
427
+ hideDetails: true,
428
+ },
429
+ condition: societyDetail.financingStartingStock === '1',
430
+ lg: societyDetail.financingStartingStock === '1' ? 4 : 8,
431
+ },
432
+ {
433
+ //TODO: champ à créer
434
+ component: 'FormInputSelect',
435
+ text: 'Quels sont vos types d\'apport ?',
436
+ value: 'contributionTypes',
437
+ meta: {
438
+ multiple: true,
439
+ items: [
440
+ { text: 'Nature', value: 'nature' },
441
+ { text: 'Numéraire', value: 'numeraire' },
442
+ { text: 'Industriel', value: 'industriel' },
443
+ ],
444
+ hideDetails: true,
445
+ },
446
+ lg: 4,
447
+ },
448
+ {
449
+ component: 'FormInputText',
450
+ text: 'Chiffre d\'affaires Prévisionnel ?',
451
+ value: 'previsionCa',
452
+ meta: {
453
+ suffix: '€',
454
+ hideDetails: true,
455
+ },
456
+ lg: 4,
457
+ },
458
+ {
459
+ component: 'FormInputSelect',
460
+ text: 'Existe-t-il des emprunts en cours ?',
461
+ value: 'isLoans',
462
+ meta: {
463
+ items: setRangeItems(15).map(i => ({ ...i, value: i.value.toString() })),
464
+ hideDetails: true,
465
+ },
466
+ lg: 4,
467
+ },
468
+ ],
469
+ },
470
+ {
471
+ name: 'Entreprise existante',
472
+ display: isSocietyCreationCompute === false,
473
+ questions: [
474
+ {
475
+ component: 'FormInputSelect',
476
+ text: 'Aviez-vous fait des investissements dans le cadre de la création de votre entreprise ?',
477
+ value: 'investissement',
478
+ meta: {
479
+ items: SelectYesNoStatementBool.map(i => ({ ...i, value: i.value.toString() })),
480
+ hideDetails: true,
481
+ },
482
+ lg: societyDetail.investissement === '1' ? 4 : 8,
483
+ },
484
+ {
485
+ //TODO: champ à créer
486
+ component: 'FormInputSelect',
487
+ text: 'De quelles natures ?',
488
+ value: 'investissementTypes',
489
+ meta: {
490
+ multiple: true,
491
+ items: [
492
+ { text: 'Nature', value: 'nature' },
493
+ { text: 'Numéraire', value: 'numeraire' },
494
+ { text: 'Industriel', value: 'industriel' },
495
+ ],
496
+ hideDetails: true,
497
+ },
498
+ condition: societyDetail.investissement === '1',
499
+ lg: societyDetail.investissement === '1' ? 4 : 8,
500
+ },
501
+ {
502
+ component: 'FormInputSelect',
503
+ text: 'Avez-vous des projets d\'investissement à court ou moyen terme ?',
504
+ value: 'investissementCTMT',
505
+ meta: {
506
+ items: SelectYesNoStatementBool.map(i => ({ ...i, value: i.value.toString() })),
507
+ hideDetails: true,
508
+ },
509
+ lg: 4,
510
+ },
511
+ {
512
+ component: 'FormInputSelect',
513
+ text: 'Avez-vous déjà eu des contrôles fiscaux ?',
514
+ value: 'fiscalControl',
515
+ meta: {
516
+ items: SelectYesNoStatementBool.map(i => ({ ...i, value: i.value.toString() })),
517
+ hideDetails: true,
518
+ },
519
+ lg: 4,
520
+ },
521
+ {
522
+ component: 'FormInputSelect',
523
+ text: 'Existe-t-il des emprunts en cours ?',
524
+ value: 'borrowingInProgress',
525
+ meta: {
526
+ items: setRangeItems(15).map(i => ({ ...i, value: i.value.toString() })),
527
+ hideDetails: true,
528
+ },
529
+ lg: 4,
530
+ },
531
+ {
532
+ //TODO: champ à créer
533
+ component: 'FormInputSelect',
534
+ text: 'Quel(s) est/sont le(s) motif(s) de votre changement d\'Expert-Comptable ?',
535
+ value: 'listReasonsWhyChangingEC',
536
+ meta: {
537
+ multiple: true,
538
+ items: [
539
+ { text: 'Litige', value: 'litige' },
540
+ { text: 'Impayé', value: 'impayé' },
541
+ { text: 'Pas réactif', value: 'pas réactif' },
542
+ { text: 'Manque de conseil', value: 'manque de conseil' },
543
+ { text: 'proximité', value: 'proximité' },
544
+ { text: 'pPrix', value: 'prix' },
545
+ ],
546
+ hideDetails: true,
547
+ },
548
+ lg: 4,
549
+ },
550
+ ],
551
+ },
552
+ {
553
+ name: 'Découverte chef d\'entreprise',
554
+ questions: [
555
+ {
556
+ component: 'FormInputSelect',
557
+ text: 'Avez-vous suivi une formation particulière en lien avec votre activité ?',
558
+ value: 'descriptionFormation',
559
+ meta: {
560
+ items: SelectYesNoStatementBool.map(i => ({ ...i, value: i.value.toString() })),
561
+ hideDetails: true,
562
+ },
563
+ lg: 6,
564
+ //TODO: si non, conseil à afficher
565
+ },
566
+ {
567
+ component: 'FormInputSelect',
568
+ text: 'Avez-vous des connaissances de gestion ?',
569
+ value: 'managementKnowledge',
570
+ meta: {
571
+ items: SelectYesNoStatementBool.map(i => ({ ...i, value: i.value.toString() })),
572
+ hideDetails: true,
573
+ },
574
+ lg: 6,
575
+ },
576
+ {
577
+ component: 'FormInputSelect',
578
+ text: 'Avez-vous des responsabilités politiques ?',
579
+ value: 'politicalResponsability',
580
+ meta: {
581
+ items: SelectYesNoStatementBool.map(i => ({ ...i, value: i.value.toString() })),
582
+ hideDetails: true,
583
+ },
584
+ lg: 6,
585
+ },
586
+ {
587
+ component: 'FormInputSelect',
588
+ text: 'Avez-vous des participations dans d\'autres sociétés ?',
589
+ value: 'participationsInOtherSociety',
590
+ meta: {
591
+ items: SelectYesNoStatementBool.map(i => ({ ...i, value: i.value.toString() })),
592
+ hideDetails: true,
593
+ },
594
+ lg: 6,
595
+ },
596
+ {
597
+ component: 'FormInputSelect',
598
+ text: 'Êtes-vous résident fiscal français ?',
599
+ value: 'frenchTaxResident',
600
+ meta: {
601
+ items: SelectYesNoStatementBool.map(i => ({ ...i, value: i.value.toString() })),
602
+ hideDetails: true,
603
+ },
604
+ lg: 6,
605
+ },
606
+ {
607
+ component: 'FormInputSelect',
608
+ text: 'Êtes-vous interdit bancaire ?',
609
+ value: 'prohibitedBanking',
610
+ meta: {
611
+ items: SelectYesNoStatementBool.map(i => ({ ...i, value: i.value.toString() })),
612
+ hideDetails: true,
613
+ },
614
+ lg: 6,
615
+ },
616
+ {
617
+ component: 'FormInputSelect',
618
+ text: 'Êtes-vous en redressement judiciaire ?',
619
+ value: 'judiciaryRecovery',
620
+ meta: {
621
+ items: SelectYesNoStatementBool.map(i => ({ ...i, value: i.value.toString() })),
622
+ hideDetails: true,
623
+ },
624
+ lg: 6,
625
+ },
626
+ {
627
+ component: 'FormInputSelect',
628
+ text: `Êtes-vous imposable au titre de l'IR ${dayjs()
629
+ .subtract(2, 'year')
630
+ .format('YYYY')}/${dayjs()
631
+ .subtract(1, 'year')
632
+ .format('YYYY')} ?`,
633
+ value: 'isIrTaxable',
634
+ meta: {
635
+ items: SelectYesNoStatementBool.map(i => ({ ...i, value: i.value.toString() })),
636
+ hideDetails: true,
637
+ },
638
+ lg: 6,
639
+ },
640
+ {
641
+ //TODO: champ à créer
642
+ component: 'FormInputSelect',
643
+ text: 'Quelle est votre fonction dans l\'entreprise ?',
644
+ value: 'listQualities',
645
+ meta: {
646
+ multiple: true,
647
+ items: Object.values(QualityList).sort((a, b) => a.label > b.label ? 1 : -1),
648
+ itemText: 'label',
649
+ itemValue: 'id',
650
+ hideDetails: true,
651
+ },
652
+ lg: 6,
653
+ },
654
+ ],
655
+ },
656
+ {
657
+ name: 'Organisation',
658
+ questions: [
659
+ {
660
+ //TODO: champ à créer
661
+ component: 'FormInputSelect',
662
+ text: 'En combien de temps vos clients vous règlent-ils ?',
663
+ value: 'averageCustomerRegulationTime',
664
+ meta: {
665
+ items: AverageTimeItems,
666
+ hideDetails: true,
667
+ },
668
+ },
669
+ {
670
+ //TODO: champ à créer
671
+ component: 'FormInputSelect',
672
+ text: 'En combien de temps réglez-vous vos fournisseurs ?',
673
+ value: 'averageSupplierRegulationTime',
674
+ meta: {
675
+ items: AverageTimeItems,
676
+ hideDetails: true,
677
+ },
678
+ },
679
+ {
680
+ component: 'FormInputSelect',
681
+ text: 'Classez-vous vos pièces comptables (factures d’achats par mois, etc ...) ?',
682
+ value: 'rankFiles',
683
+ meta: {
684
+ items: SelectYesNoStatementBool.map(i => ({ ...i, value: i.value.toString() })),
685
+ hideDetails: true,
686
+ },
687
+ },
688
+ //FIXME: on garde ? On supprime ?
689
+ // {
690
+ // name: "Myclementine",
691
+ // display: isItThisEnv("Clementine", process.env.NODE_ENV),
692
+ // questions: [
693
+ // {
694
+ // component: "FormInputSelect",
695
+ // text: "Nous allons synchroniser votre banque à présent :",
696
+ // meta: {
697
+ // items: bankSynchronisationItems,
698
+ // classes: "rounded noBorder",
699
+ // flat: true
700
+ // },
701
+ // value: "bankSynchronisationState",
702
+ // type: "number"
703
+ // },
704
+ // {
705
+ // component: "FormInputSelect",
706
+ // text: "Avez-vous besoin d'une explication de la plateforme :",
707
+ // meta: {
708
+ // items: SelectYesNoStatementBool,
709
+ // classes: "rounded noBorder",
710
+ // flat: true
711
+ // },
712
+ // value: "platformExplanation",
713
+ // type: "number"
714
+ // },
715
+ // {
716
+ // component: "FormInputSelect",
717
+ // text: "Avez-vous proposé à votre client d’installer l'application mobile :",
718
+ // meta: {
719
+ // items: SelectYesNoStatementBool,
720
+ // classes: "rounded noBorder",
721
+ // flat: true
722
+ // },
723
+ // value: "mobileAppInstallationProposal",
724
+ // type: "number"
725
+ // }
726
+ ],
727
+ },
728
+ {
729
+ name: 'Conclusion',
730
+ questions: [
731
+ {
732
+ component: 'FormInputText',
733
+ text: 'Avez-vous des besoins spécifiques ?',
734
+ value: 'specificNeeds',
735
+ meta: {
736
+ hideDetails: true,
737
+ },
738
+ },
739
+ {
740
+ component: 'FormInputTextArea',
741
+ text: 'Commentaires généraux',
742
+ value: 'remarqueComment',
743
+ meta: {
744
+ hideDetails: true,
745
+ },
746
+ },
747
+ {
748
+ component: 'FormInputSelect',
749
+ text: 'Comment nous avez-vous connu ?',
750
+ meta: {
751
+ items: ClementineSources,
752
+ hideDetails: true,
753
+ },
754
+ value: 'idFindClementine',
755
+ },
756
+ ],
757
+ },
758
+ ];
759
+ };
760
+ //# sourceMappingURL=checkup.js.map