@silexpert/core 1.1.252 → 1.1.254

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 (119) hide show
  1. package/dist/cjs/api/resources/BudgetInsight.d.ts +2 -1
  2. package/dist/cjs/api/resources/BudgetInsight.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/BudgetInsight.js +3 -0
  4. package/dist/cjs/api/resources/BudgetInsight.js.map +1 -1
  5. package/dist/cjs/api/resources/CalendarEvent.d.ts +1 -0
  6. package/dist/cjs/api/resources/CalendarEvent.d.ts.map +1 -1
  7. package/dist/cjs/api/resources/CalendarEvent.js +9 -0
  8. package/dist/cjs/api/resources/CalendarEvent.js.map +1 -1
  9. package/dist/cjs/types/Enum/BrandClementine.d.ts +3 -4
  10. package/dist/cjs/types/Enum/BrandClementine.d.ts.map +1 -1
  11. package/dist/cjs/types/Enum/BrandClementine.js +3 -337
  12. package/dist/cjs/types/Enum/BrandClementine.js.map +1 -1
  13. package/dist/cjs/types/Enum/BrandLegalstart.d.ts +2 -3
  14. package/dist/cjs/types/Enum/BrandLegalstart.d.ts.map +1 -1
  15. package/dist/cjs/types/Enum/BrandLegalstart.js +2 -106
  16. package/dist/cjs/types/Enum/BrandLegalstart.js.map +1 -1
  17. package/dist/cjs/types/Enum/BrandPourcentage.d.ts +6 -105
  18. package/dist/cjs/types/Enum/BrandPourcentage.d.ts.map +1 -1
  19. package/dist/cjs/types/Enum/BrandPourcentage.js +46 -617
  20. package/dist/cjs/types/Enum/BrandPourcentage.js.map +1 -1
  21. package/dist/cjs/types/Enum/SalesContractBrandClementine.d.ts +42 -0
  22. package/dist/cjs/types/Enum/SalesContractBrandClementine.d.ts.map +1 -0
  23. package/dist/cjs/types/Enum/SalesContractBrandClementine.js +339 -0
  24. package/dist/cjs/types/Enum/SalesContractBrandClementine.js.map +1 -0
  25. package/dist/cjs/types/Enum/SalesContractBrandLegalstart.d.ts +17 -0
  26. package/dist/cjs/types/Enum/SalesContractBrandLegalstart.d.ts.map +1 -0
  27. package/dist/cjs/types/Enum/SalesContractBrandLegalstart.js +110 -0
  28. package/dist/cjs/types/Enum/SalesContractBrandLegalstart.js.map +1 -0
  29. package/dist/cjs/types/Enum/SalesContractBrandPourcentage.d.ts +101 -0
  30. package/dist/cjs/types/Enum/SalesContractBrandPourcentage.d.ts.map +1 -0
  31. package/dist/cjs/types/Enum/SalesContractBrandPourcentage.js +488 -0
  32. package/dist/cjs/types/Enum/SalesContractBrandPourcentage.js.map +1 -0
  33. package/dist/cjs/types/Interface/api/bankAccount/Read.d.ts +1 -0
  34. package/dist/cjs/types/Interface/api/bankAccount/Read.d.ts.map +1 -1
  35. package/dist/cjs/types/Interface/api/bankAccount/Read.js.map +1 -1
  36. package/dist/cjs/types/Interface/api/budgetInsight/Delete.d.ts +6 -0
  37. package/dist/cjs/types/Interface/api/budgetInsight/Delete.d.ts.map +1 -0
  38. package/dist/cjs/types/Interface/api/budgetInsight/Delete.js +36 -0
  39. package/dist/cjs/types/Interface/api/budgetInsight/Delete.js.map +1 -0
  40. package/dist/cjs/types/Interface/api/notion/Read.d.ts +8 -0
  41. package/dist/cjs/types/Interface/api/notion/Read.d.ts.map +1 -0
  42. package/dist/cjs/types/Interface/api/notion/Read.js +3 -0
  43. package/dist/cjs/types/Interface/api/notion/Read.js.map +1 -0
  44. package/dist/cjs/types/index.d.ts +1 -0
  45. package/dist/cjs/types/index.d.ts.map +1 -1
  46. package/dist/cjs/types/index.js +1 -0
  47. package/dist/cjs/types/index.js.map +1 -1
  48. package/dist/cjs/utils/bankAccount.d.ts.map +1 -1
  49. package/dist/cjs/utils/bankAccount.js +4 -5
  50. package/dist/cjs/utils/bankAccount.js.map +1 -1
  51. package/dist/cjs/utils/email/templates/signature.js +1 -1
  52. package/dist/cjs/utils/email/templates/signature.js.map +1 -1
  53. package/dist/mjs/api/resources/BudgetInsight.d.ts +2 -1
  54. package/dist/mjs/api/resources/BudgetInsight.d.ts.map +1 -1
  55. package/dist/mjs/api/resources/BudgetInsight.js +3 -0
  56. package/dist/mjs/api/resources/BudgetInsight.js.map +1 -1
  57. package/dist/mjs/api/resources/CalendarEvent.d.ts +1 -0
  58. package/dist/mjs/api/resources/CalendarEvent.d.ts.map +1 -1
  59. package/dist/mjs/api/resources/CalendarEvent.js +9 -0
  60. package/dist/mjs/api/resources/CalendarEvent.js.map +1 -1
  61. package/dist/mjs/types/Enum/BrandClementine.d.ts +3 -4
  62. package/dist/mjs/types/Enum/BrandClementine.d.ts.map +1 -1
  63. package/dist/mjs/types/Enum/BrandClementine.js +3 -337
  64. package/dist/mjs/types/Enum/BrandClementine.js.map +1 -1
  65. package/dist/mjs/types/Enum/BrandLegalstart.d.ts +2 -3
  66. package/dist/mjs/types/Enum/BrandLegalstart.d.ts.map +1 -1
  67. package/dist/mjs/types/Enum/BrandLegalstart.js +2 -106
  68. package/dist/mjs/types/Enum/BrandLegalstart.js.map +1 -1
  69. package/dist/mjs/types/Enum/BrandPourcentage.d.ts +6 -105
  70. package/dist/mjs/types/Enum/BrandPourcentage.d.ts.map +1 -1
  71. package/dist/mjs/types/Enum/BrandPourcentage.js +46 -617
  72. package/dist/mjs/types/Enum/BrandPourcentage.js.map +1 -1
  73. package/dist/mjs/types/Enum/SalesContractBrandClementine.d.ts +42 -0
  74. package/dist/mjs/types/Enum/SalesContractBrandClementine.d.ts.map +1 -0
  75. package/dist/mjs/types/Enum/SalesContractBrandClementine.js +336 -0
  76. package/dist/mjs/types/Enum/SalesContractBrandClementine.js.map +1 -0
  77. package/dist/mjs/types/Enum/SalesContractBrandLegalstart.d.ts +17 -0
  78. package/dist/mjs/types/Enum/SalesContractBrandLegalstart.d.ts.map +1 -0
  79. package/dist/mjs/types/Enum/SalesContractBrandLegalstart.js +107 -0
  80. package/dist/mjs/types/Enum/SalesContractBrandLegalstart.js.map +1 -0
  81. package/dist/mjs/types/Enum/SalesContractBrandPourcentage.d.ts +101 -0
  82. package/dist/mjs/types/Enum/SalesContractBrandPourcentage.d.ts.map +1 -0
  83. package/dist/mjs/types/Enum/SalesContractBrandPourcentage.js +485 -0
  84. package/dist/mjs/types/Enum/SalesContractBrandPourcentage.js.map +1 -0
  85. package/dist/mjs/types/Interface/api/bankAccount/Read.d.ts +1 -0
  86. package/dist/mjs/types/Interface/api/bankAccount/Read.d.ts.map +1 -1
  87. package/dist/mjs/types/Interface/api/bankAccount/Read.js.map +1 -1
  88. package/dist/mjs/types/Interface/api/budgetInsight/Delete.d.ts +6 -0
  89. package/dist/mjs/types/Interface/api/budgetInsight/Delete.d.ts.map +1 -0
  90. package/dist/mjs/types/Interface/api/budgetInsight/Delete.js +35 -0
  91. package/dist/mjs/types/Interface/api/budgetInsight/Delete.js.map +1 -0
  92. package/dist/mjs/types/Interface/api/notion/Read.d.ts +8 -0
  93. package/dist/mjs/types/Interface/api/notion/Read.d.ts.map +1 -0
  94. package/dist/mjs/types/Interface/api/notion/Read.js +2 -0
  95. package/dist/mjs/types/Interface/api/notion/Read.js.map +1 -0
  96. package/dist/mjs/types/index.d.ts +1 -0
  97. package/dist/mjs/types/index.d.ts.map +1 -1
  98. package/dist/mjs/types/index.js +1 -0
  99. package/dist/mjs/types/index.js.map +1 -1
  100. package/dist/mjs/utils/bankAccount.d.ts.map +1 -1
  101. package/dist/mjs/utils/bankAccount.js +4 -5
  102. package/dist/mjs/utils/bankAccount.js.map +1 -1
  103. package/dist/mjs/utils/email/templates/signature.js +1 -1
  104. package/dist/mjs/utils/email/templates/signature.js.map +1 -1
  105. package/package.json +1 -1
  106. package/ts/api/resources/BudgetInsight.ts +5 -1
  107. package/ts/api/resources/CalendarEvent.ts +11 -0
  108. package/ts/types/Enum/BrandClementine.ts +3 -337
  109. package/ts/types/Enum/BrandLegalstart.ts +2 -106
  110. package/ts/types/Enum/BrandPourcentage.ts +47 -618
  111. package/ts/types/Enum/SalesContractBrandClementine.ts +337 -0
  112. package/ts/types/Enum/SalesContractBrandLegalstart.ts +107 -0
  113. package/ts/types/Enum/SalesContractBrandPourcentage.ts +487 -0
  114. package/ts/types/Interface/api/bankAccount/Read.ts +1 -0
  115. package/ts/types/Interface/api/budgetInsight/Delete.ts +19 -0
  116. package/ts/types/Interface/api/notion/Read.ts +7 -0
  117. package/ts/types/index.ts +1 -0
  118. package/ts/utils/bankAccount.ts +8 -6
  119. package/ts/utils/email/templates/signature.ts +1 -1
@@ -0,0 +1,487 @@
1
+ import { PrestationType, allPrestationsWithBrochure, PrestationDetail } from './PrestationType';
2
+
3
+ export const SalesContractBrandPourcentageOnline = [
4
+ // pour les pages statiques
5
+ {
6
+ label: 'Page d\'introduction',
7
+ name: 'page_intro',
8
+ needBgImage: true,
9
+ versionable: false,
10
+ idPrestationType: allPrestationsWithBrochure,
11
+ },
12
+ {
13
+ label: 'Page chiffres',
14
+ name: 'page_numbers',
15
+ needBgImage: true,
16
+ versionable: false,
17
+ idPrestationType: allPrestationsWithBrochure,
18
+ },
19
+ {
20
+ label: 'Page simplifié',
21
+ name: 'page_simplified',
22
+ needBgImage: true,
23
+ versionable: false,
24
+ idPrestationType: allPrestationsWithBrochure,
25
+ },
26
+ {
27
+ label: 'Détail de la lettre de mission',
28
+ name: 'page_detail_ldm',
29
+ needBgImage: false,
30
+ versionable: false,
31
+ idPrestationType: Object.values(PrestationDetail).filter(p => !p.isBack && !p.hidden && allPrestationsWithBrochure.includes(p.id!)).map(({ id }) => id), // Prestations non express
32
+ },
33
+ {
34
+ label: 'Détail de la lettre de mission (express)',
35
+ name: 'page_detail_ldm_back',
36
+ needBgImage: false,
37
+ versionable: false,
38
+ idPrestationType: Object.values(PrestationDetail).filter(p => p.isBack && !p.hidden && allPrestationsWithBrochure.includes(p.id!)).map(({ id }) => id), // Prestations express
39
+ },
40
+ {
41
+ label: 'Compta Pourcentage',
42
+ name: 'bloc_compta_pourcentage',
43
+ needBgImage: false,
44
+ versionable: false,
45
+ idPrestationType: [PrestationType.COMPTA_POURCENTAGE, PrestationType.COMPTA_POURCENTAGE_EXPRESS],
46
+ },
47
+ {
48
+ label: 'Compta Pourcentage sur mesure',
49
+ name: 'bloc_compta_pourcentage_sur_mesure',
50
+ needBgImage: false,
51
+ versionable: false,
52
+ idPrestationType: [],
53
+ },
54
+ {
55
+ label: 'Compta Pourcentage Premium',
56
+ name: 'bloc_compta_pourcentage_premium',
57
+ needBgImage: false,
58
+ versionable: false,
59
+ idPrestationType: [PrestationType.COMPTA_POURCENTAGE_PREMIUM, PrestationType.COMPTA_POURCENTAGE_PREMIUM_EXPRESS],
60
+ condition: (turnover: number): boolean => turnover < 1500000,
61
+ },
62
+ {
63
+ label: 'Compta Pourcentage Premium sur mesure',
64
+ name: 'bloc_compta_pourcentage_premium_sur_mesure',
65
+ needBgImage: false,
66
+ versionable: false,
67
+ idPrestationType: [PrestationType.COMPTA_POURCENTAGE_PREMIUM, PrestationType.COMPTA_POURCENTAGE_PREMIUM_EXPRESS],
68
+ condition: (turnover: number): boolean => turnover >= 1500000,
69
+ },
70
+ {
71
+ label: 'Forfait social',
72
+ name: 'bloc_social',
73
+ needBgImage: false,
74
+ versionable: true,
75
+ idPrestationType: allPrestationsWithBrochure.filter(p => p !== PrestationType.BILAN_PREVISIONNEL),
76
+ keyName: 'idPrestationSocial',
77
+ },
78
+ {
79
+ label: 'Forfait création société',
80
+ name: 'bloc_creation',
81
+ idPrestationType: allPrestationsWithBrochure.filter(p => p !== PrestationType.BILAN_PREVISIONNEL),
82
+ needBgImage: false,
83
+ versionable: true,
84
+ keyName: 'idPrestationCreation',
85
+ condition: (price: number): boolean => price === 500,
86
+ },
87
+ {
88
+ label: 'Forfait création société premium',
89
+ name: 'bloc_creation_premium',
90
+ idPrestationType: allPrestationsWithBrochure.filter(p => p !== PrestationType.BILAN_PREVISIONNEL),
91
+ needBgImage: false,
92
+ versionable: true,
93
+ keyName: 'idPrestationCreation',
94
+ condition: (price: number): boolean => price === 1000,
95
+ },
96
+ {
97
+ label: 'Forfait approbation des comptes annuels',
98
+ name: 'bloc_annual_accounts',
99
+ needBgImage: false,
100
+ idPrestationType: allPrestationsWithBrochure.filter(p => p !== PrestationType.BILAN_PREVISIONNEL),
101
+ versionable: true,
102
+ keyName: 'idPrestationJuridique',
103
+ },
104
+ {
105
+ label: 'Prise en charge de votre déclaration d\'impôts sur le revenu',
106
+ name: 'bloc_tax_return',
107
+ needBgImage: false,
108
+ idPrestationType: [],
109
+ versionable: true,
110
+ keyName: 'idPrestationDeclarationIR',
111
+ },
112
+ {
113
+ label: 'Accompagnement contrôle fiscal',
114
+ name: 'bloc_tax_audit',
115
+ needBgImage: false,
116
+ idPrestationType: allPrestationsWithBrochure.filter(p => p !== PrestationType.BILAN_PREVISIONNEL),
117
+ versionable: true,
118
+ keyName: 'idPrestationControleFiscal',
119
+ },
120
+ {
121
+ label: 'Bilan Prévisionnel',
122
+ name: 'bloc_bilan_previsionnel',
123
+ needBgImage: false,
124
+ idPrestationType: [PrestationType.CREATION_SOCIETE, PrestationType.BILAN_PREVISIONNEL],
125
+ versionable: true,
126
+ keyName: 'prestationOptions',
127
+ },
128
+ {
129
+ label: 'Signature',
130
+ name: 'bloc_sign',
131
+ needBgImage: false,
132
+ idPrestationType: allPrestationsWithBrochure,
133
+ versionable: false,
134
+ },
135
+ {
136
+ label: 'Conditions Générals de Vente (CGV) 1/2',
137
+ name: 'bloc_cgv_first',
138
+ needBgImage: false,
139
+ idPrestationType: allPrestationsWithBrochure,
140
+ versionable: false,
141
+ },
142
+ {
143
+ label: 'Conditions Générals de Vente (CGV) 2/2',
144
+ name: 'bloc_cgv_second',
145
+ needBgImage: false,
146
+ idPrestationType: allPrestationsWithBrochure,
147
+ versionable: false,
148
+ },
149
+ {
150
+ label: 'Mandat de prélèvement SEPA',
151
+ name: 'bloc_sepa',
152
+ needBgImage: false,
153
+ idPrestationType: allPrestationsWithBrochure,
154
+ versionable: false,
155
+ },
156
+ {
157
+ label: 'Pièces à nous envoyer',
158
+ name: 'bloc_send_files',
159
+ needBgImage: false,
160
+ idPrestationType: allPrestationsWithBrochure,
161
+ versionable: false,
162
+ },
163
+ ];
164
+
165
+ export const SalesContractBrandPourcentageECE = [
166
+ // pour les pages statiques
167
+ {
168
+ label: 'Page d\'introduction',
169
+ name: 'page_intro',
170
+ needBgImage: true,
171
+ versionable: false,
172
+ idPrestationType: allPrestationsWithBrochure,
173
+ },
174
+ {
175
+ label: 'Page chiffres',
176
+ name: 'page_numbers',
177
+ needBgImage: true,
178
+ versionable: false,
179
+ idPrestationType: allPrestationsWithBrochure,
180
+ },
181
+ {
182
+ label: 'Page simplifié',
183
+ name: 'page_simplified',
184
+ needBgImage: true,
185
+ versionable: false,
186
+ idPrestationType: allPrestationsWithBrochure,
187
+ },
188
+ {
189
+ label: 'Détail de la lettre de mission',
190
+ name: 'page_detail_ldm',
191
+ needBgImage: false,
192
+ versionable: false,
193
+ idPrestationType: Object.values(PrestationDetail).filter(p => !p.isBack && !p.hidden && allPrestationsWithBrochure.includes(p.id!)).map(({ id }) => id), // Prestations non express
194
+ },
195
+ {
196
+ label: 'Détail de la lettre de mission (express)',
197
+ name: 'page_detail_ldm_back',
198
+ needBgImage: false,
199
+ versionable: false,
200
+ idPrestationType: Object.values(PrestationDetail).filter(p => p.isBack && !p.hidden && allPrestationsWithBrochure.includes(p.id!)).map(({ id }) => id), // Prestations express
201
+ },
202
+ {
203
+ label: 'Compta Pourcentage',
204
+ name: 'bloc_compta_pourcentage',
205
+ needBgImage: false,
206
+ versionable: false,
207
+ idPrestationType: [PrestationType.COMPTA_POURCENTAGE, PrestationType.COMPTA_POURCENTAGE_EXPRESS],
208
+ },
209
+ {
210
+ label: 'Compta Pourcentage sur mesure',
211
+ name: 'bloc_compta_pourcentage_sur_mesure',
212
+ needBgImage: false,
213
+ versionable: false,
214
+ idPrestationType: [],
215
+ },
216
+ {
217
+ label: 'Compta Pourcentage Premium',
218
+ name: 'bloc_compta_pourcentage_premium',
219
+ needBgImage: false,
220
+ versionable: false,
221
+ idPrestationType: [PrestationType.COMPTA_POURCENTAGE_PREMIUM, PrestationType.COMPTA_POURCENTAGE_PREMIUM_EXPRESS],
222
+ condition: (turnover: number): boolean => turnover < 1500000,
223
+ },
224
+ {
225
+ label: 'Compta Pourcentage Premium sur mesure',
226
+ name: 'bloc_compta_pourcentage_premium_sur_mesure',
227
+ needBgImage: false,
228
+ versionable: false,
229
+ idPrestationType: [PrestationType.COMPTA_POURCENTAGE_PREMIUM, PrestationType.COMPTA_POURCENTAGE_PREMIUM_EXPRESS],
230
+ condition: (turnover: number): boolean => turnover >= 1500000,
231
+ },
232
+ {
233
+ label: 'Forfait social',
234
+ name: 'bloc_social',
235
+ needBgImage: false,
236
+ versionable: true,
237
+ idPrestationType: allPrestationsWithBrochure.filter(p => p !== PrestationType.BILAN_PREVISIONNEL),
238
+ keyName: 'idPrestationSocial',
239
+ },
240
+ {
241
+ label: 'Forfait création société',
242
+ name: 'bloc_creation',
243
+ idPrestationType: allPrestationsWithBrochure.filter(p => p !== PrestationType.BILAN_PREVISIONNEL),
244
+ needBgImage: false,
245
+ versionable: true,
246
+ keyName: 'idPrestationCreation',
247
+ condition: (price: number): boolean => price === 500,
248
+ },
249
+ {
250
+ label: 'Forfait création société premium',
251
+ name: 'bloc_creation_premium',
252
+ idPrestationType: allPrestationsWithBrochure.filter(p => p !== PrestationType.BILAN_PREVISIONNEL),
253
+ needBgImage: false,
254
+ versionable: true,
255
+ keyName: 'idPrestationCreation',
256
+ condition: (price: number): boolean => price === 1000,
257
+ },
258
+ {
259
+ label: 'Forfait approbation des comptes annuels',
260
+ name: 'bloc_annual_accounts',
261
+ needBgImage: false,
262
+ idPrestationType: allPrestationsWithBrochure.filter(p => p !== PrestationType.BILAN_PREVISIONNEL),
263
+ versionable: true,
264
+ keyName: 'idPrestationJuridique',
265
+ },
266
+ {
267
+ label: 'Prise en charge de votre déclaration d\'impôts sur le revenu',
268
+ name: 'bloc_tax_return',
269
+ needBgImage: false,
270
+ idPrestationType: [],
271
+ versionable: true,
272
+ keyName: 'idPrestationDeclarationIR',
273
+ },
274
+ {
275
+ label: 'Accompagnement contrôle fiscal',
276
+ name: 'bloc_tax_audit',
277
+ needBgImage: false,
278
+ idPrestationType: allPrestationsWithBrochure.filter(p => p !== PrestationType.BILAN_PREVISIONNEL),
279
+ versionable: true,
280
+ keyName: 'idPrestationControleFiscal',
281
+ },
282
+ {
283
+ label: 'Bilan Prévisionnel',
284
+ name: 'bloc_bilan_previsionnel',
285
+ needBgImage: false,
286
+ idPrestationType: [PrestationType.CREATION_SOCIETE, PrestationType.BILAN_PREVISIONNEL],
287
+ versionable: true,
288
+ keyName: 'prestationOptions',
289
+ },
290
+ {
291
+ label: 'Signature',
292
+ name: 'bloc_sign',
293
+ needBgImage: false,
294
+ idPrestationType: allPrestationsWithBrochure,
295
+ versionable: false,
296
+ },
297
+ {
298
+ label: 'Conditions Générals de Vente (CGV) 1/2',
299
+ name: 'bloc_cgv_first',
300
+ needBgImage: false,
301
+ idPrestationType: allPrestationsWithBrochure,
302
+ versionable: false,
303
+ },
304
+ {
305
+ label: 'Conditions Générals de Vente (CGV) 2/2',
306
+ name: 'bloc_cgv_second',
307
+ needBgImage: false,
308
+ idPrestationType: allPrestationsWithBrochure,
309
+ versionable: false,
310
+ },
311
+ {
312
+ label: 'Mandat de prélèvement SEPA',
313
+ name: 'bloc_sepa',
314
+ needBgImage: false,
315
+ idPrestationType: allPrestationsWithBrochure,
316
+ versionable: false,
317
+ },
318
+ {
319
+ label: 'Pièces à nous envoyer',
320
+ name: 'bloc_send_files',
321
+ needBgImage: false,
322
+ idPrestationType: allPrestationsWithBrochure,
323
+ versionable: false,
324
+ },
325
+ ];
326
+
327
+ export const SalesContractBrandPourcentageECF = [
328
+ // pour les pages statiques
329
+ {
330
+ label: 'Page d\'introduction',
331
+ name: 'page_intro',
332
+ needBgImage: true,
333
+ versionable: false,
334
+ idPrestationType: allPrestationsWithBrochure,
335
+ },
336
+ {
337
+ label: 'Page chiffres',
338
+ name: 'page_numbers',
339
+ needBgImage: true,
340
+ versionable: false,
341
+ idPrestationType: allPrestationsWithBrochure,
342
+ },
343
+ {
344
+ label: 'Page simplifié',
345
+ name: 'page_simplified',
346
+ needBgImage: true,
347
+ versionable: false,
348
+ idPrestationType: allPrestationsWithBrochure,
349
+ },
350
+ {
351
+ label: 'Détail de la lettre de mission',
352
+ name: 'page_detail_ldm',
353
+ needBgImage: false,
354
+ versionable: false,
355
+ idPrestationType: Object.values(PrestationDetail).filter(p => !p.isBack && !p.hidden && allPrestationsWithBrochure.includes(p.id!)).map(({ id }) => id), // Prestations non express
356
+ },
357
+ {
358
+ label: 'Détail de la lettre de mission (express)',
359
+ name: 'page_detail_ldm_back',
360
+ needBgImage: false,
361
+ versionable: false,
362
+ idPrestationType: Object.values(PrestationDetail).filter(p => p.isBack && !p.hidden && allPrestationsWithBrochure.includes(p.id!)).map(({ id }) => id), // Prestations express
363
+ },
364
+ {
365
+ label: 'Compta Pourcentage',
366
+ name: 'bloc_compta_pourcentage',
367
+ needBgImage: false,
368
+ versionable: false,
369
+ idPrestationType: [PrestationType.COMPTA_POURCENTAGE, PrestationType.COMPTA_POURCENTAGE_EXPRESS],
370
+ },
371
+ {
372
+ label: 'Compta Pourcentage sur mesure',
373
+ name: 'bloc_compta_pourcentage_sur_mesure',
374
+ needBgImage: false,
375
+ versionable: false,
376
+ idPrestationType: [],
377
+ },
378
+ {
379
+ label: 'Compta Pourcentage Premium',
380
+ name: 'bloc_compta_pourcentage_premium',
381
+ needBgImage: false,
382
+ versionable: false,
383
+ idPrestationType: [PrestationType.COMPTA_POURCENTAGE_PREMIUM, PrestationType.COMPTA_POURCENTAGE_PREMIUM_EXPRESS],
384
+ condition: (turnover: number): boolean => turnover < 1500000,
385
+ },
386
+ {
387
+ label: 'Compta Pourcentage Premium sur mesure',
388
+ name: 'bloc_compta_pourcentage_premium_sur_mesure',
389
+ needBgImage: false,
390
+ versionable: false,
391
+ idPrestationType: [PrestationType.COMPTA_POURCENTAGE_PREMIUM, PrestationType.COMPTA_POURCENTAGE_PREMIUM_EXPRESS],
392
+ condition: (turnover: number): boolean => turnover >= 1500000,
393
+ },
394
+ {
395
+ label: 'Forfait social',
396
+ name: 'bloc_social',
397
+ needBgImage: false,
398
+ versionable: true,
399
+ idPrestationType: allPrestationsWithBrochure.filter(p => p !== PrestationType.BILAN_PREVISIONNEL),
400
+ keyName: 'idPrestationSocial',
401
+ },
402
+ {
403
+ label: 'Forfait création société',
404
+ name: 'bloc_creation',
405
+ idPrestationType: allPrestationsWithBrochure.filter(p => p !== PrestationType.BILAN_PREVISIONNEL),
406
+ needBgImage: false,
407
+ versionable: true,
408
+ keyName: 'idPrestationCreation',
409
+ condition: (price: number): boolean => price === 500,
410
+ },
411
+ {
412
+ label: 'Forfait création société premium',
413
+ name: 'bloc_creation_premium',
414
+ idPrestationType: allPrestationsWithBrochure.filter(p => p !== PrestationType.BILAN_PREVISIONNEL),
415
+ needBgImage: false,
416
+ versionable: true,
417
+ keyName: 'idPrestationCreation',
418
+ condition: (price: number): boolean => price === 1000,
419
+ },
420
+ {
421
+ label: 'Forfait approbation des comptes annuels',
422
+ name: 'bloc_annual_accounts',
423
+ needBgImage: false,
424
+ idPrestationType: allPrestationsWithBrochure.filter(p => p !== PrestationType.BILAN_PREVISIONNEL),
425
+ versionable: true,
426
+ keyName: 'idPrestationJuridique',
427
+ },
428
+ {
429
+ label: 'Prise en charge de votre déclaration d\'impôts sur le revenu',
430
+ name: 'bloc_tax_return',
431
+ needBgImage: false,
432
+ idPrestationType: [],
433
+ versionable: true,
434
+ keyName: 'idPrestationDeclarationIR',
435
+ },
436
+ {
437
+ label: 'Accompagnement contrôle fiscal',
438
+ name: 'bloc_tax_audit',
439
+ needBgImage: false,
440
+ idPrestationType: allPrestationsWithBrochure.filter(p => p !== PrestationType.BILAN_PREVISIONNEL),
441
+ versionable: true,
442
+ keyName: 'idPrestationControleFiscal',
443
+ },
444
+ {
445
+ label: 'Bilan Prévisionnel',
446
+ name: 'bloc_bilan_previsionnel',
447
+ needBgImage: false,
448
+ idPrestationType: [PrestationType.CREATION_SOCIETE, PrestationType.BILAN_PREVISIONNEL],
449
+ versionable: true,
450
+ keyName: 'prestationOptions',
451
+ },
452
+ {
453
+ label: 'Signature',
454
+ name: 'bloc_sign',
455
+ needBgImage: false,
456
+ idPrestationType: allPrestationsWithBrochure,
457
+ versionable: false,
458
+ },
459
+ {
460
+ label: 'Conditions Générals de Vente (CGV) 1/2',
461
+ name: 'bloc_cgv_first',
462
+ needBgImage: false,
463
+ idPrestationType: allPrestationsWithBrochure,
464
+ versionable: false,
465
+ },
466
+ {
467
+ label: 'Conditions Générals de Vente (CGV) 2/2',
468
+ name: 'bloc_cgv_second',
469
+ needBgImage: false,
470
+ idPrestationType: allPrestationsWithBrochure,
471
+ versionable: false,
472
+ },
473
+ {
474
+ label: 'Mandat de prélèvement SEPA',
475
+ name: 'bloc_sepa',
476
+ needBgImage: false,
477
+ idPrestationType: allPrestationsWithBrochure,
478
+ versionable: false,
479
+ },
480
+ {
481
+ label: 'Pièces à nous envoyer',
482
+ name: 'bloc_send_files',
483
+ needBgImage: false,
484
+ idPrestationType: allPrestationsWithBrochure,
485
+ versionable: false,
486
+ },
487
+ ];
@@ -14,4 +14,5 @@ export type ReadBankAccountTransactionsIntermediateSolde = {
14
14
  balanceBankAccount: number;
15
15
  difference: number | null;
16
16
  noBalanceInfoForDay?: boolean;
17
+ isRelatedToAccountingFile: boolean;
17
18
  };
@@ -0,0 +1,19 @@
1
+ import { IsBoolean, IsInt, IsOptional } from 'class-validator';
2
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
4
+
5
+ export class DeleteBudgetInsightConnection {
6
+ @ApiProperty()
7
+ @IsInt()
8
+ idSociety: number;
9
+
10
+ @ApiProperty()
11
+ @IsInt()
12
+ idBudgetConnection: number;
13
+
14
+ @ApiPropertyOptional()
15
+ @IsBoolean()
16
+ @ToBoolean()
17
+ @IsOptional()
18
+ shouldDeleteBankAccounts?: boolean;
19
+ }
@@ -0,0 +1,7 @@
1
+ export type ReadNotionNews = {
2
+ id: string,
3
+ html: string,
4
+ environment: string[],
5
+ site: string,
6
+ type: string,
7
+ };
package/ts/types/index.ts CHANGED
@@ -850,6 +850,7 @@ export * from './Interface/api/sponsorship/ReadSponsorship';
850
850
  export * from './Interface/api/budgetInsight/UpdateBudgetPermanentToken';
851
851
  export * from './Interface/api/budgetInsight/Read';
852
852
  export * from './Interface/api/budgetInsight/Create';
853
+ export * from './Interface/api/budgetInsight/Delete';
853
854
  export * from './Interface/api/budgetInsight/Query';
854
855
  export * from './Interface/api/partneredAccountant/ReadPartneredAccountant';
855
856
  export * from './Interface/api/partneredAccountant/QueryPartneredAccountantSocieties';
@@ -20,16 +20,18 @@ export function isSynchro(params: IBankAccount, dateOfTermination?: Date, bankCo
20
20
 
21
21
  /** Si budget lastUpdate = la date du jour alors synchro
22
22
  * Ou si lastupdate = inProgressImport et lastupdate est après lastTryImport
23
- *
24
- *
25
23
  */
26
24
  if (params.idPartnerType && params.lastUpdate &&
27
25
  [PartnerTransactionType.QONTO, PartnerTransactionType.SHINE, PartnerTransactionType.BUDGET_INSIGHT].includes(params.idPartnerType)
28
- && ((dayjs(params.lastUpdate).format('YYYY-MM-DD') === dayjs().format('YYYY-MM-DD') ) ||
29
- (dayjs(params.lastUpdate).format('YYYY-MM-DD') === dayjs(params.inProgressImport).format('YYYY-MM-DD') &&
30
- (!params.lastTryImport || dayjs(params.lastUpdate).format('YYYYMMDD') >= dayjs(params.lastTryImport).format('YYYYMMDD')) )
26
+ &&
27
+ (
28
+ (dayjs(params.lastUpdate).format('YYYY-MM-DD') === dayjs().format('YYYY-MM-DD') ) || // si lastUpdate = date du jour OU
29
+ (
30
+ dayjs(params.lastUpdate).format('YYYY-MM-DD') === dayjs(params.inProgressImport).format('YYYY-MM-DD') &&
31
+ (!params.lastTryImport || dayjs(params.lastUpdate).format('YYYYMMDD') >= dayjs(params.lastTryImport).format('YYYYMMDD'))
32
+ )
31
33
  )
32
- && (!bankConnection || bankConnection?.errorCode === null)
34
+ && (!bankConnection || bankConnection?.errorCode === null)
33
35
  ) return StateSynchro.SYNCHRONIZED;
34
36
 
35
37
  if (dateOfTermination && (dayjs(params.lastUpdate).isAfter(dateOfTermination) || dayjs(params.lastUpdate).isSame(dateOfTermination))) return StateSynchro.SYNCHRONIZED;
@@ -194,7 +194,7 @@ ${logoClementine}
194
194
  Nos horaires : <%= horaires %>
195
195
 
196
196
  <% if(['Pourcentage ECE - AMEX', 'Pourcentage ECF'].includes(brandName)) { %>
197
- <br/>Adresse : <%- brandPostalAddress %> - <%- brandCity %>
197
+ <br/>Adresse : 11, Boulevard Victor Hugo - Nice
198
198
  <% } %>
199
199
  </p>
200
200