@silexpert/core 1.3.199-8 → 1.3.199

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 (208) hide show
  1. package/dist/cjs/api/resources/User.d.ts +1 -8
  2. package/dist/cjs/api/resources/User.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/User.js +0 -58
  4. package/dist/cjs/api/resources/User.js.map +1 -1
  5. package/dist/cjs/api/resources/Webex.d.ts +8 -0
  6. package/dist/cjs/api/resources/Webex.d.ts.map +1 -0
  7. package/dist/cjs/api/resources/Webex.js +17 -0
  8. package/dist/cjs/api/resources/Webex.js.map +1 -0
  9. package/dist/cjs/api/resources/WorkingSchedule.d.ts +1 -2
  10. package/dist/cjs/api/resources/WorkingSchedule.d.ts.map +1 -1
  11. package/dist/cjs/api/resources/WorkingSchedule.js +0 -3
  12. package/dist/cjs/api/resources/WorkingSchedule.js.map +1 -1
  13. package/dist/cjs/types/Enum/Card.d.ts +2 -2
  14. package/dist/cjs/types/Enum/Card.d.ts.map +1 -1
  15. package/dist/cjs/types/Enum/Card.js +2 -2
  16. package/dist/cjs/types/Enum/Card.js.map +1 -1
  17. package/dist/cjs/types/Enum/EbookIntention.d.ts +8 -0
  18. package/dist/cjs/types/Enum/EbookIntention.d.ts.map +1 -0
  19. package/dist/cjs/types/Enum/EbookIntention.js +18 -0
  20. package/dist/cjs/types/Enum/EbookIntention.js.map +1 -0
  21. package/dist/cjs/types/Enum/EquipmentType.d.ts +0 -15
  22. package/dist/cjs/types/Enum/EquipmentType.d.ts.map +1 -1
  23. package/dist/cjs/types/Enum/EquipmentType.js +0 -15
  24. package/dist/cjs/types/Enum/EquipmentType.js.map +1 -1
  25. package/dist/cjs/types/Enum/Ged.js +1 -1
  26. package/dist/cjs/types/Enum/Ged.js.map +1 -1
  27. package/dist/cjs/types/Enum/PrestationState.d.ts +2 -1
  28. package/dist/cjs/types/Enum/PrestationState.d.ts.map +1 -1
  29. package/dist/cjs/types/Enum/PrestationState.js +7 -0
  30. package/dist/cjs/types/Enum/PrestationState.js.map +1 -1
  31. package/dist/cjs/types/Enum/PrestationType.d.ts +1 -0
  32. package/dist/cjs/types/Enum/PrestationType.d.ts.map +1 -1
  33. package/dist/cjs/types/Enum/PrestationType.js +24 -3
  34. package/dist/cjs/types/Enum/PrestationType.js.map +1 -1
  35. package/dist/cjs/types/Enum/SalesContractBrandClementine.d.ts.map +1 -1
  36. package/dist/cjs/types/Enum/SalesContractBrandClementine.js +19 -4
  37. package/dist/cjs/types/Enum/SalesContractBrandClementine.js.map +1 -1
  38. package/dist/cjs/types/Interface/api/SocietyApproval.d.ts +8 -1
  39. package/dist/cjs/types/Interface/api/SocietyApproval.d.ts.map +1 -1
  40. package/dist/cjs/types/Interface/api/SocietyApproval.js +43 -0
  41. package/dist/cjs/types/Interface/api/SocietyApproval.js.map +1 -1
  42. package/dist/cjs/types/Interface/api/brevo/BrevoElement.d.ts +1 -0
  43. package/dist/cjs/types/Interface/api/brevo/BrevoElement.d.ts.map +1 -1
  44. package/dist/cjs/types/Interface/api/brevo/BrevoElement.js +6 -0
  45. package/dist/cjs/types/Interface/api/brevo/BrevoElement.js.map +1 -1
  46. package/dist/cjs/types/Interface/api/card/QueryUserCards.d.ts +1 -0
  47. package/dist/cjs/types/Interface/api/card/QueryUserCards.d.ts.map +1 -1
  48. package/dist/cjs/types/Interface/api/card/QueryUserCards.js +6 -0
  49. package/dist/cjs/types/Interface/api/card/QueryUserCards.js.map +1 -1
  50. package/dist/cjs/types/Interface/api/prestation/Query.d.ts +2 -0
  51. package/dist/cjs/types/Interface/api/prestation/Query.d.ts.map +1 -1
  52. package/dist/cjs/types/Interface/api/prestation/Query.js +13 -0
  53. package/dist/cjs/types/Interface/api/prestation/Query.js.map +1 -1
  54. package/dist/cjs/types/Interface/api/user/CreateCoworker.d.ts.map +1 -1
  55. package/dist/cjs/types/Interface/api/user/CreateCoworker.js +0 -11
  56. package/dist/cjs/types/Interface/api/user/CreateCoworker.js.map +1 -1
  57. package/dist/cjs/types/Interface/api/webex/GetWebinarsParams.d.ts +7 -0
  58. package/dist/cjs/types/Interface/api/webex/GetWebinarsParams.d.ts.map +1 -0
  59. package/dist/cjs/types/Interface/api/webex/GetWebinarsParams.js +38 -0
  60. package/dist/cjs/types/Interface/api/webex/GetWebinarsParams.js.map +1 -0
  61. package/dist/cjs/types/Interface/api/webex/PaginatedWebinars.d.ts +7 -0
  62. package/dist/cjs/types/Interface/api/webex/PaginatedWebinars.d.ts.map +1 -0
  63. package/dist/cjs/types/Interface/api/webex/PaginatedWebinars.js +3 -0
  64. package/dist/cjs/types/Interface/api/webex/PaginatedWebinars.js.map +1 -0
  65. package/dist/cjs/types/Interface/api/webex/WebexMeeting.d.ts +22 -0
  66. package/dist/cjs/types/Interface/api/webex/WebexMeeting.d.ts.map +1 -0
  67. package/dist/cjs/types/Interface/api/webex/WebexMeeting.js +3 -0
  68. package/dist/cjs/types/Interface/api/webex/WebexMeeting.js.map +1 -0
  69. package/dist/cjs/types/Interface/api/webex/WebexRegistrant.d.ts +18 -0
  70. package/dist/cjs/types/Interface/api/webex/WebexRegistrant.d.ts.map +1 -0
  71. package/dist/cjs/types/Interface/api/webex/WebexRegistrant.js +40 -0
  72. package/dist/cjs/types/Interface/api/webex/WebexRegistrant.js.map +1 -0
  73. package/dist/cjs/types/Interface/models/IUser.d.ts +0 -1
  74. package/dist/cjs/types/Interface/models/IUser.d.ts.map +1 -1
  75. package/dist/cjs/types/Interface/models/IUser.js.map +1 -1
  76. package/dist/cjs/types/index.d.ts +5 -0
  77. package/dist/cjs/types/index.d.ts.map +1 -1
  78. package/dist/cjs/types/index.js +5 -0
  79. package/dist/cjs/types/index.js.map +1 -1
  80. package/dist/cjs/utils/documents.js +1 -1
  81. package/dist/cjs/utils/documents.js.map +1 -1
  82. package/dist/cjs/utils/prestation.d.ts.map +1 -1
  83. package/dist/cjs/utils/prestation.js +2 -1
  84. package/dist/cjs/utils/prestation.js.map +1 -1
  85. package/dist/cjs/utils/societyApproval.d.ts.map +1 -1
  86. package/dist/cjs/utils/societyApproval.js +12 -3
  87. package/dist/cjs/utils/societyApproval.js.map +1 -1
  88. package/dist/mjs/api/resources/User.d.ts +1 -8
  89. package/dist/mjs/api/resources/User.d.ts.map +1 -1
  90. package/dist/mjs/api/resources/User.js +0 -58
  91. package/dist/mjs/api/resources/User.js.map +1 -1
  92. package/dist/mjs/api/resources/Webex.d.ts +8 -0
  93. package/dist/mjs/api/resources/Webex.d.ts.map +1 -0
  94. package/dist/mjs/api/resources/Webex.js +13 -0
  95. package/dist/mjs/api/resources/Webex.js.map +1 -0
  96. package/dist/mjs/api/resources/WorkingSchedule.d.ts +1 -2
  97. package/dist/mjs/api/resources/WorkingSchedule.d.ts.map +1 -1
  98. package/dist/mjs/api/resources/WorkingSchedule.js +0 -3
  99. package/dist/mjs/api/resources/WorkingSchedule.js.map +1 -1
  100. package/dist/mjs/types/Enum/Card.d.ts +2 -2
  101. package/dist/mjs/types/Enum/Card.d.ts.map +1 -1
  102. package/dist/mjs/types/Enum/Card.js +2 -2
  103. package/dist/mjs/types/Enum/Card.js.map +1 -1
  104. package/dist/mjs/types/Enum/EbookIntention.d.ts +8 -0
  105. package/dist/mjs/types/Enum/EbookIntention.d.ts.map +1 -0
  106. package/dist/mjs/types/Enum/EbookIntention.js +15 -0
  107. package/dist/mjs/types/Enum/EbookIntention.js.map +1 -0
  108. package/dist/mjs/types/Enum/EquipmentType.d.ts +0 -15
  109. package/dist/mjs/types/Enum/EquipmentType.d.ts.map +1 -1
  110. package/dist/mjs/types/Enum/EquipmentType.js +0 -15
  111. package/dist/mjs/types/Enum/EquipmentType.js.map +1 -1
  112. package/dist/mjs/types/Enum/Ged.js +1 -1
  113. package/dist/mjs/types/Enum/Ged.js.map +1 -1
  114. package/dist/mjs/types/Enum/PrestationState.d.ts +2 -1
  115. package/dist/mjs/types/Enum/PrestationState.d.ts.map +1 -1
  116. package/dist/mjs/types/Enum/PrestationState.js +7 -0
  117. package/dist/mjs/types/Enum/PrestationState.js.map +1 -1
  118. package/dist/mjs/types/Enum/PrestationType.d.ts +1 -0
  119. package/dist/mjs/types/Enum/PrestationType.d.ts.map +1 -1
  120. package/dist/mjs/types/Enum/PrestationType.js +23 -2
  121. package/dist/mjs/types/Enum/PrestationType.js.map +1 -1
  122. package/dist/mjs/types/Enum/SalesContractBrandClementine.d.ts.map +1 -1
  123. package/dist/mjs/types/Enum/SalesContractBrandClementine.js +20 -5
  124. package/dist/mjs/types/Enum/SalesContractBrandClementine.js.map +1 -1
  125. package/dist/mjs/types/Interface/api/SocietyApproval.d.ts +8 -1
  126. package/dist/mjs/types/Interface/api/SocietyApproval.d.ts.map +1 -1
  127. package/dist/mjs/types/Interface/api/SocietyApproval.js +52 -2
  128. package/dist/mjs/types/Interface/api/SocietyApproval.js.map +1 -1
  129. package/dist/mjs/types/Interface/api/brevo/BrevoElement.d.ts +1 -0
  130. package/dist/mjs/types/Interface/api/brevo/BrevoElement.d.ts.map +1 -1
  131. package/dist/mjs/types/Interface/api/brevo/BrevoElement.js +7 -0
  132. package/dist/mjs/types/Interface/api/brevo/BrevoElement.js.map +1 -1
  133. package/dist/mjs/types/Interface/api/card/QueryUserCards.d.ts +1 -0
  134. package/dist/mjs/types/Interface/api/card/QueryUserCards.d.ts.map +1 -1
  135. package/dist/mjs/types/Interface/api/card/QueryUserCards.js +6 -0
  136. package/dist/mjs/types/Interface/api/card/QueryUserCards.js.map +1 -1
  137. package/dist/mjs/types/Interface/api/prestation/Query.d.ts +2 -0
  138. package/dist/mjs/types/Interface/api/prestation/Query.d.ts.map +1 -1
  139. package/dist/mjs/types/Interface/api/prestation/Query.js +15 -0
  140. package/dist/mjs/types/Interface/api/prestation/Query.js.map +1 -1
  141. package/dist/mjs/types/Interface/api/user/CreateCoworker.d.ts.map +1 -1
  142. package/dist/mjs/types/Interface/api/user/CreateCoworker.js +0 -11
  143. package/dist/mjs/types/Interface/api/user/CreateCoworker.js.map +1 -1
  144. package/dist/mjs/types/Interface/api/webex/GetWebinarsParams.d.ts +7 -0
  145. package/dist/mjs/types/Interface/api/webex/GetWebinarsParams.d.ts.map +1 -0
  146. package/dist/mjs/types/Interface/api/webex/GetWebinarsParams.js +38 -0
  147. package/dist/mjs/types/Interface/api/webex/GetWebinarsParams.js.map +1 -0
  148. package/dist/mjs/types/Interface/api/webex/PaginatedWebinars.d.ts +7 -0
  149. package/dist/mjs/types/Interface/api/webex/PaginatedWebinars.d.ts.map +1 -0
  150. package/dist/mjs/types/Interface/api/webex/PaginatedWebinars.js +2 -0
  151. package/dist/mjs/types/Interface/api/webex/PaginatedWebinars.js.map +1 -0
  152. package/dist/mjs/types/Interface/api/webex/WebexMeeting.d.ts +22 -0
  153. package/dist/mjs/types/Interface/api/webex/WebexMeeting.d.ts.map +1 -0
  154. package/dist/mjs/types/Interface/api/webex/WebexMeeting.js +2 -0
  155. package/dist/mjs/types/Interface/api/webex/WebexMeeting.js.map +1 -0
  156. package/dist/mjs/types/Interface/api/webex/WebexRegistrant.d.ts +18 -0
  157. package/dist/mjs/types/Interface/api/webex/WebexRegistrant.d.ts.map +1 -0
  158. package/dist/mjs/types/Interface/api/webex/WebexRegistrant.js +40 -0
  159. package/dist/mjs/types/Interface/api/webex/WebexRegistrant.js.map +1 -0
  160. package/dist/mjs/types/Interface/models/IUser.d.ts +0 -1
  161. package/dist/mjs/types/Interface/models/IUser.d.ts.map +1 -1
  162. package/dist/mjs/types/Interface/models/IUser.js.map +1 -1
  163. package/dist/mjs/types/index.d.ts +5 -0
  164. package/dist/mjs/types/index.d.ts.map +1 -1
  165. package/dist/mjs/types/index.js +5 -0
  166. package/dist/mjs/types/index.js.map +1 -1
  167. package/dist/mjs/utils/documents.js +1 -1
  168. package/dist/mjs/utils/documents.js.map +1 -1
  169. package/dist/mjs/utils/prestation.d.ts.map +1 -1
  170. package/dist/mjs/utils/prestation.js +2 -1
  171. package/dist/mjs/utils/prestation.js.map +1 -1
  172. package/dist/mjs/utils/societyApproval.d.ts.map +1 -1
  173. package/dist/mjs/utils/societyApproval.js +11 -0
  174. package/dist/mjs/utils/societyApproval.js.map +1 -1
  175. package/package.json +1 -1
  176. package/ts/api/resources/User.ts +0 -65
  177. package/ts/api/resources/Webex.ts +16 -0
  178. package/ts/api/resources/WorkingSchedule.ts +0 -5
  179. package/ts/types/Enum/Card.ts +2 -2
  180. package/ts/types/Enum/EbookIntention.ts +14 -0
  181. package/ts/types/Enum/EquipmentType.ts +0 -15
  182. package/ts/types/Enum/Ged.ts +1 -1
  183. package/ts/types/Enum/PrestationState.ts +7 -0
  184. package/ts/types/Enum/PrestationType.ts +24 -2
  185. package/ts/types/Enum/SalesContractBrandClementine.ts +20 -4
  186. package/ts/types/Interface/api/SocietyApproval.ts +38 -2
  187. package/ts/types/Interface/api/brevo/BrevoElement.ts +5 -0
  188. package/ts/types/Interface/api/card/QueryUserCards.ts +5 -0
  189. package/ts/types/Interface/api/prestation/Query.ts +11 -0
  190. package/ts/types/Interface/api/user/CreateCoworker.ts +0 -11
  191. package/ts/types/Interface/api/webex/GetWebinarsParams.ts +20 -0
  192. package/ts/types/Interface/api/webex/PaginatedWebinars.ts +7 -0
  193. package/ts/types/Interface/api/webex/WebexMeeting.ts +21 -0
  194. package/ts/types/Interface/api/webex/WebexRegistrant.ts +34 -0
  195. package/ts/types/Interface/models/IUser.ts +0 -1
  196. package/ts/types/index.ts +5 -0
  197. package/ts/utils/documents.ts +1 -1
  198. package/ts/utils/prestation.ts +2 -1
  199. package/ts/utils/societyApproval.ts +11 -0
  200. package/dist/cjs/utils/transforms/number.transform.d.ts +0 -3
  201. package/dist/cjs/utils/transforms/number.transform.d.ts.map +0 -1
  202. package/dist/cjs/utils/transforms/number.transform.js +0 -36
  203. package/dist/cjs/utils/transforms/number.transform.js.map +0 -1
  204. package/dist/mjs/utils/transforms/number.transform.d.ts +0 -3
  205. package/dist/mjs/utils/transforms/number.transform.d.ts.map +0 -1
  206. package/dist/mjs/utils/transforms/number.transform.js +0 -33
  207. package/dist/mjs/utils/transforms/number.transform.js.map +0 -1
  208. package/ts/utils/transforms/number.transform.ts +0 -38
@@ -9,6 +9,7 @@ export enum JuridicalPrestationState {
9
9
  WAITING_KBIS = 8,
10
10
  SENDING_KBIS = 9,
11
11
  DISCONTINUED = 10,
12
+ DISSOLUTION_READY = 11,
12
13
  }
13
14
 
14
15
  export const JuridicalPrestationStateDetail = [
@@ -18,6 +19,12 @@ export const JuridicalPrestationStateDetail = [
18
19
  color: 'grey lighten-4',
19
20
  hidden: false,
20
21
  },
22
+ {
23
+ id: JuridicalPrestationState.DISSOLUTION_READY,
24
+ name: 'Dissolution à produire',
25
+ color: 'primary lighten-2',
26
+ hidden: false,
27
+ },
21
28
  {
22
29
  id: JuridicalPrestationState.WAITING_INFO_BILLING,
23
30
  name: 'En attente informations / paiement',
@@ -253,6 +253,28 @@ export const allPrestations2025WithBrochure = [
253
253
  PrestationType.ATTESTATION_MASSE_SALARIALE,
254
254
  PrestationType.ATTESTATION_1,
255
255
  PrestationType.ATTESTATION_NON_REMUNERATION_RECURRENTE,
256
+ PrestationType.DISSOLUTION_LIQUIDATION_A_DATE_CLOTURE,
257
+ ];
258
+
259
+ export const allPrestations2025WithCGV = [
260
+ PrestationType.EXPERTISE,
261
+ PrestationType.SUPPORT,
262
+ PrestationType.PREMIUM,
263
+ PrestationType.CUSTOM_MADE,
264
+ PrestationType.EI,
265
+ PrestationType.MICRO,
266
+ PrestationType.GESTION_IMMO,
267
+ PrestationType.CREATION_SOCIETE,
268
+ PrestationType.SOCIAL,
269
+ PrestationType.GESTION_JURIDIQUE,
270
+ PrestationType.CONSULTING_HOUR,
271
+ PrestationType.ATTESTATION_REMUNERATION,
272
+ PrestationType.ATTESTATION_NON_REMUNERATION,
273
+ PrestationType.ATTESTATION_CA,
274
+ PrestationType.ATTESTATION_COMPTE_COURANT,
275
+ PrestationType.ATTESTATION_MASSE_SALARIALE,
276
+ PrestationType.ATTESTATION_1,
277
+ PrestationType.ATTESTATION_NON_REMUNERATION_RECURRENTE,
256
278
  ];
257
279
 
258
280
  export const ClementineSubscriptionAccountancyExpertPrestations: PrestationType[] = [
@@ -1365,7 +1387,7 @@ export const PrestationDetail: PrestationDetailEnum = {
1365
1387
  },
1366
1388
  DISSOLUTION_LIQUIDATION_A_DATE_CLOTURE: {
1367
1389
  id: 61,
1368
- name: 'Dissolution Liquidation à date de clôture (y compris bilan de liquidation)',
1390
+ name: 'Dissolution / Liquidation',
1369
1391
  isComptable: false,
1370
1392
  isJuridique: true,
1371
1393
  isSocial: false,
@@ -1373,7 +1395,7 @@ export const PrestationDetail: PrestationDetailEnum = {
1373
1395
  inAverageCart: false,
1374
1396
  isBack: false,
1375
1397
  minimumPrice: null,
1376
- price: 589,
1398
+ price: 1239,
1377
1399
  isCatalog: true,
1378
1400
  isPlannable: true,
1379
1401
  hidden: false,
@@ -4,6 +4,7 @@ import {
4
4
  allPrestationsWithBrochure,
5
5
  PrestationDetail,
6
6
  allPrestations2025WithBrochure,
7
+ allPrestations2025WithCGV,
7
8
  } from './PrestationType';
8
9
 
9
10
  export const SalesContractClementine: SaleContract[] = [
@@ -137,6 +138,14 @@ export const SalesContractClementine: SaleContract[] = [
137
138
  versionable: false,
138
139
  keyName: 'prestationOptions', //TODO: pas sûr de la pertinence de cette keyName
139
140
  },
141
+ {
142
+ label: 'Dissolution / Liquidation 2026',
143
+ name: 'bloc_dissolution_liquidation_2026',
144
+ needBgImage: false,
145
+ idPrestationType: [PrestationType.DISSOLUTION_LIQUIDATION_A_DATE_CLOTURE],
146
+ versionable: false,
147
+ //keyName: 'prestationOptions', //TODO: pas sûr de la pertinence de cette keyName
148
+ },
140
149
  {
141
150
  label: 'Prestations complémentaires 2025',
142
151
  name: 'page_presta_complem_2025',
@@ -353,21 +362,28 @@ export const SalesContractClementine: SaleContract[] = [
353
362
  label: 'Conditions Générales de Vente 2025 (CGV) 1/3',
354
363
  name: 'bloc_cgv_first_2025',
355
364
  needBgImage: false,
356
- idPrestationType: allPrestations2025WithBrochure,
365
+ idPrestationType: allPrestations2025WithCGV,
357
366
  versionable: false,
358
367
  },
359
368
  {
360
369
  label: 'Conditions Générales de Vente 2025 (CGV) 2/3',
361
370
  name: 'bloc_cgv_second_2025',
362
371
  needBgImage: false,
363
- idPrestationType: allPrestations2025WithBrochure,
372
+ idPrestationType: allPrestations2025WithCGV,
364
373
  versionable: false,
365
374
  },
366
375
  {
367
376
  label: 'Conditions Générales de Vente 2025 (CGV) 3/3',
368
377
  name: 'bloc_cgv_third_2025',
369
378
  needBgImage: false,
370
- idPrestationType: allPrestations2025WithBrochure,
379
+ idPrestationType: allPrestations2025WithCGV,
380
+ versionable: false,
381
+ },
382
+ {
383
+ label: 'Conditions Générales de Vente Dissolution / Liquidation 2026 (CGV)',
384
+ name: 'bloc_cgv_dissolution_liquidation_2026',
385
+ needBgImage: false,
386
+ idPrestationType: [PrestationType.DISSOLUTION_LIQUIDATION_A_DATE_CLOTURE],
371
387
  versionable: false,
372
388
  },
373
389
  {
@@ -375,7 +391,7 @@ export const SalesContractClementine: SaleContract[] = [
375
391
  name: 'page_detail_ldm_2025',
376
392
  needBgImage: false,
377
393
  versionable: false,
378
- idPrestationType: allPrestations2025WithBrochure,
394
+ idPrestationType: allPrestations2025WithCGV,
379
395
  },
380
396
  {
381
397
  label: 'Devis 2025',
@@ -1,6 +1,6 @@
1
- import { IsDate, IsEnum, IsInt, IsOptional, IsString } from 'class-validator';
1
+ import { IsBoolean, IsDate, IsEnum, IsInt, IsNumber, IsOptional, IsString } from 'class-validator';
2
2
  import { ApiProperty, ApiPropertyOptional } from '../../../utils';
3
- import { SocietyApprovalDocumentType } from '../../Enum/SocietyApproval';
3
+ import { RegulatedConventionType, SocietyApprovalDocumentType } from '../../Enum/SocietyApproval';
4
4
  import { ISocietyApproval } from '../models/ISocietyApproval';
5
5
  import { ToBoolean } from '../../../utils/transforms/boolean.transform';
6
6
 
@@ -9,6 +9,42 @@ export class SocietyApprovalJsonDatas {
9
9
  @IsOptional()
10
10
  @IsDate()
11
11
  approvalDate?: Date;
12
+
13
+ @ApiPropertyOptional()
14
+ @IsOptional()
15
+ @IsDate()
16
+ approvalDividendsPaymentDate?: Date;
17
+
18
+ @ApiPropertyOptional()
19
+ @IsOptional()
20
+ @IsNumber()
21
+ changeExecutiveRemuneration?: number; //Modification de rémunération du dirigeant
22
+
23
+ @ApiPropertyOptional()
24
+ @IsOptional()
25
+ @IsBoolean()
26
+ @ToBoolean()
27
+ lossOfEquity?: boolean; //Perte des capitaux propres
28
+
29
+ @ApiPropertyOptional()
30
+ @IsOptional()
31
+ @IsNumber()
32
+ dividendsAmountNLess1?: number; //Montants des dividendes année N-1
33
+
34
+ @ApiPropertyOptional()
35
+ @IsOptional()
36
+ @IsNumber()
37
+ dividendsAmountNLess2?: number; //Montants des dividendes année N-2
38
+
39
+ @ApiPropertyOptional()
40
+ @IsOptional()
41
+ @IsNumber()
42
+ dividendsAmountNLess3?: number; //Montants des dividendes année N-3
43
+
44
+ @ApiPropertyOptional()
45
+ @IsOptional()
46
+ @IsEnum(RegulatedConventionType, { each: true })
47
+ conventionsList?: RegulatedConventionType[];
12
48
  }
13
49
 
14
50
  export class CreateDocument {
@@ -39,6 +39,11 @@ export class CreateContact {
39
39
  @IsString()
40
40
  @IsOptional()
41
41
  godfatherName?: string;
42
+
43
+ @ApiPropertyOptional()
44
+ @IsOptional()
45
+ @IsString()
46
+ ebookTag?: string;
42
47
  }
43
48
 
44
49
  export class GetContact {
@@ -44,6 +44,11 @@ export class QueryUserCards {
44
44
  @IsBoolean()
45
45
  @ToBoolean()
46
46
  declare includePostponed?: boolean;
47
+
48
+ @ApiPropertyOptional()
49
+ @IsOptional()
50
+ @IsArray()
51
+ declare idTypeBrand?: number[];
47
52
  }
48
53
 
49
54
  export class QueryUserCardsPaginated extends QueryUserCards {
@@ -34,6 +34,12 @@ export class QueryCreatePrestation {
34
34
  @IsOptional()
35
35
  @IsObject()
36
36
  subPrestationsOffer?: ICommercialOffer;
37
+
38
+ @ApiPropertyOptional()
39
+ @IsOptional()
40
+ @IsBoolean()
41
+ @ToBoolean()
42
+ allowClientAccess?: boolean;
37
43
  }
38
44
 
39
45
  export interface subPrestationsType {
@@ -110,4 +116,9 @@ export class QueryUpdatePrestation {
110
116
  @IsBoolean()
111
117
  @ToBoolean()
112
118
  signed: boolean;
119
+
120
+ @ApiPropertyOptional()
121
+ @IsOptional()
122
+ @IsInt()
123
+ idPrestationList: number;
113
124
  }
@@ -11,10 +11,8 @@ import {
11
11
  IsPhoneNumber,
12
12
  IsString,
13
13
  } from 'class-validator';
14
- import { Transform } from 'class-transformer';
15
14
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils/decorators';
16
15
  import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
17
- import { ToNumber } from '../../../../utils/transforms/number.transform';
18
16
  import { EntityType } from '../../../Enum/EntityType';
19
17
 
20
18
  export class CreateCoworker {
@@ -51,7 +49,6 @@ export class CreateCoworker {
51
49
  @ApiPropertyOptional()
52
50
  @IsOptional()
53
51
  @IsNumber()
54
- @ToNumber()
55
52
  idCivility?: number;
56
53
 
57
54
  @ApiProperty({ default: true })
@@ -104,25 +101,17 @@ export class CreateCoworker {
104
101
  @ApiProperty()
105
102
  @IsDefined()
106
103
  @IsInt()
107
- @ToNumber()
108
104
  idOffice: number;
109
105
 
110
106
  @ApiProperty()
111
107
  @IsDefined()
112
108
  @IsEnum(EntityType)
113
- @ToNumber()
114
109
  entity: EntityType;
115
110
 
116
111
  @ApiPropertyOptional()
117
112
  @IsOptional()
118
113
  @IsArray()
119
114
  @IsInt({ each: true })
120
- @Transform(({ value }: { value: any }) => {
121
- if (Array.isArray(value)) {
122
- return value.map((v) => Number(v));
123
- }
124
- return value as number;
125
- })
126
115
  idRoles?: number[];
127
116
 
128
117
  @ApiPropertyOptional()
@@ -0,0 +1,20 @@
1
+ import { IsInt, IsString } from 'class-validator';
2
+ import { ApiProperty } from '../../../../utils';
3
+
4
+ export class GetWebinarsParams {
5
+ @ApiProperty()
6
+ @IsString()
7
+ from?: string;
8
+
9
+ @ApiProperty()
10
+ @IsString()
11
+ to?: string;
12
+
13
+ @ApiProperty()
14
+ @IsInt()
15
+ limit?: number;
16
+
17
+ @ApiProperty()
18
+ @IsInt()
19
+ skip?: number;
20
+ }
@@ -0,0 +1,7 @@
1
+ import { WebexMeeting } from './WebexMeeting';
2
+
3
+ export interface PaginatedWebinars {
4
+ skip: number;
5
+ limit: number;
6
+ items: WebexMeeting[];
7
+ }
@@ -0,0 +1,21 @@
1
+ export interface WebexMeeting {
2
+ id: string;
3
+ meetingNumber: string;
4
+ title: string;
5
+ password?: string;
6
+ phoneAndVideoSystemPassword?: string;
7
+ meetingType: string;
8
+ state: string;
9
+ timezone: string;
10
+ start: string;
11
+ end: string;
12
+ hostUserId: string;
13
+ hostDisplayName: string;
14
+ hostEmail: string;
15
+ webLink: string;
16
+ sipAddress?: string;
17
+ dialInIpAddress?: string;
18
+ enabledAutoRecordMeeting?: boolean;
19
+ allowAnyUserToBeCoHost?: boolean;
20
+ telephony?: any;
21
+ }
@@ -0,0 +1,34 @@
1
+ import { IsEmail, IsOptional, IsString } from 'class-validator';
2
+ import { ApiProperty } from '../../../../utils';
3
+
4
+ export interface WebexRegistrant {
5
+ registrantId?: string;
6
+ id?: string;
7
+ meetingId?: string;
8
+ email: string;
9
+ firstName: string;
10
+ lastName: string;
11
+ displayName?: string;
12
+ company?: string;
13
+ jobTitle?: string;
14
+ }
15
+
16
+ export class AddWebexRegistrantBody {
17
+ @ApiProperty()
18
+ @IsString()
19
+ @IsEmail()
20
+ email: string;
21
+
22
+ @ApiProperty()
23
+ @IsString()
24
+ firstName: string;
25
+
26
+ @ApiProperty()
27
+ @IsString()
28
+ lastName: string;
29
+
30
+ @ApiProperty()
31
+ @IsString()
32
+ @IsOptional()
33
+ workPhone?: string;
34
+ }
@@ -80,7 +80,6 @@ export interface IUser {
80
80
  idProspectIsWith?: number | null;
81
81
  apprentice?: boolean;
82
82
  flexitime?: boolean;
83
- idOffice?: number | null;
84
83
  /**
85
84
  * @deprecated
86
85
  */
package/ts/types/index.ts CHANGED
@@ -566,6 +566,7 @@ export * from './Enum/PaymentAttempt';
566
566
  export * from './Enum/InformationRequestType';
567
567
  export * from './Enum/InformationRequestState';
568
568
  export * from './Enum/Revenue';
569
+ export * from './Enum/EbookIntention';
569
570
 
570
571
  // Interfaces API
571
572
  export * from './Interface/api/authentification/AuthenticationResponse';
@@ -1197,4 +1198,8 @@ export * from './Interface/api/refund/QueryRefundPaginated';
1197
1198
  export * from './Interface/api/revenue/revenueMovement';
1198
1199
  export * from './Interface/api/revenue/revenueSnapshot';
1199
1200
  export * from './Interface/api/revenue/revenueSnapshotGenerate';
1201
+ export * from './Interface/api/webex/GetWebinarsParams';
1202
+ export * from './Interface/api/webex/PaginatedWebinars';
1203
+ export * from './Interface/api/webex/WebexMeeting';
1204
+ export * from './Interface/api/webex/WebexRegistrant';
1200
1205
  export * from './Interface/api/bankAccount/Benchmark';
@@ -31,7 +31,7 @@ const requiredListDocs = (params: RequiredDocsType): GedFileType[] => {
31
31
  return [GedFileType.RIB, GedFileType.PLAQUETTE];
32
32
  }
33
33
 
34
- const generique = [GedFileType.IDENTITY_CARD, GedFileType.RIB, GedFileType.PLAQUETTE];
34
+ const generique = [GedFileType.IDENTITY_CARD, GedFileType.RIB, GedFileType.PLAQUETTE, GedFileType.FISCAL_MEMENTO];
35
35
 
36
36
  // Si le client faisait sa compta lui-même
37
37
  // et que le goToClient est supérieur à la date de reprise + 4 mois
@@ -183,7 +183,7 @@ const calculateScoringOfPrestation = (
183
183
  isSoftwarePrestation([idPrestationType]) &&
184
184
  currentPrestation?.exercices?.length &&
185
185
  //@ts-expect-error
186
- (currentPrestation?.exercices[0].ExercicePrestation?.totalPrestation < 80 ||
186
+ (currentPrestation?.exercices[0].ExercicePrestation?.totalPrestation < 72 ||
187
187
  //@ts-expect-error
188
188
  currentPrestation?.exercices[0].ExercicePrestation?.monthNumber !== 1)
189
189
  ) {
@@ -385,6 +385,7 @@ const calculatePrestationPriceWithPriceGrid = (
385
385
  if (totalMonth > 0) {
386
386
  if (isYearly) {
387
387
  yearlyPrice = (10 - totalMonth) * (yearlyPrice ? yearlyPrice / 10 : 0);
388
+ monthNbr = monthNbr - totalMonth;
388
389
  } else {
389
390
  monthNbr = monthNbr - totalMonth;
390
391
  }
@@ -11,6 +11,7 @@ import { getBrand } from './brands';
11
11
  import { convertNumberToLetter } from './amount';
12
12
  import * as dayjs from 'dayjs';
13
13
  import { CityOfGreffeDetail } from '../types/Enum/CityOfGreffe';
14
+ import { siretToSiren } from './siretValidation';
14
15
 
15
16
  /**
16
17
  * Récupère le nom de la forme juridique
@@ -116,12 +117,22 @@ export function buildApprovalTemplateData(existingApproval: ISocietyApproval, st
116
117
  .toUpperCase(),
117
118
  }
118
119
  : {}),
120
+ ...(existingApproval?.generatingDatas?.approvalDividendsPaymentDate
121
+ ? {
122
+ approvalDividendsPaymentDate: dayjs(existingApproval?.generatingDatas?.approvalDividendsPaymentDate)
123
+ .locale('fr')
124
+ .format('DD MMMM YYYY'),
125
+ }
126
+ : {}),
119
127
  },
120
128
  exercice: {
121
129
  ...existingApproval?.exercice,
122
130
  society: {
123
131
  ...existingApproval?.exercice?.society,
124
132
  cityOfGreffe: getCityOfGreffeName(existingApproval?.exercice?.society?.idCityOfGreffe).toUpperCase(),
133
+ siren: existingApproval?.exercice?.society?.siret
134
+ ? siretToSiren(existingApproval.exercice.society.siret)
135
+ : null,
125
136
  },
126
137
  endDate: dayjs(existingApproval?.exercice?.endDate).locale('fr').format('DD MMMM YYYY').toLowerCase(),
127
138
  },
@@ -1,3 +0,0 @@
1
- declare const ToNumber: () => (target: any, key: string) => void;
2
- export { ToNumber };
3
- //# sourceMappingURL=number.transform.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"number.transform.d.ts","sourceRoot":"","sources":["../../../../ts/utils/transforms/number.transform.ts"],"names":[],"mappings":"AAmBA,QAAA,MAAM,QAAQ,SAYJ,QAAQ,GAAG,EAAE,KAAK,MAAM,SAIjC,CAAC;AAEF,OAAO,EAAE,QAAQ,EAAE,CAAC"}
@@ -1,36 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ToNumber = void 0;
4
- const class_transformer_1 = require("class-transformer");
5
- const valueToNumber = (value) => {
6
- if (value === null || value === undefined || value === '') {
7
- return undefined;
8
- }
9
- if (typeof value === 'number') {
10
- return value;
11
- }
12
- if (typeof value === 'string') {
13
- const num = Number(value);
14
- if (isNaN(num)) {
15
- return undefined;
16
- }
17
- return num;
18
- }
19
- return undefined;
20
- };
21
- const ToNumber = () => {
22
- const toPlain = (0, class_transformer_1.Transform)(
23
- // eslint-disable-next-line @typescript-eslint/no-unsafe-return
24
- ({ value }) => value, {
25
- toPlainOnly: true,
26
- });
27
- const toClass = (target, key) => (0, class_transformer_1.Transform)(({ obj }) => valueToNumber(obj[key]), {
28
- toClassOnly: true,
29
- })(target, key);
30
- return (target, key) => {
31
- toPlain(target, key);
32
- toClass(target, key);
33
- };
34
- };
35
- exports.ToNumber = ToNumber;
36
- //# sourceMappingURL=number.transform.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"number.transform.js","sourceRoot":"","sources":["../../../../ts/utils/transforms/number.transform.ts"],"names":[],"mappings":";;;AAAA,yDAA8C;AAE9C,MAAM,aAAa,GAAG,CAAC,KAAU,EAAE,EAAE;IACnC,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,EAAE,EAAE,CAAC;QAC1D,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,OAAO,KAAK,CAAC;IACf,CAAC;IACD,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,MAAM,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;QAC1B,IAAI,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC;YACf,OAAO,SAAS,CAAC;QACnB,CAAC;QACD,OAAO,GAAG,CAAC;IACb,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AAEF,MAAM,QAAQ,GAAG,GAAG,EAAE;IACpB,MAAM,OAAO,GAAG,IAAA,6BAAS;IACvB,+DAA+D;IAC/D,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,EACpB;QACE,WAAW,EAAE,IAAI;KAClB,CACF,CAAC;IACF,MAAM,OAAO,GAAG,CAAC,MAAW,EAAE,GAAW,EAAE,EAAE,CAC3C,IAAA,6BAAS,EAAC,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,EAAE;QAC9C,WAAW,EAAE,IAAI;KAClB,CAAC,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAClB,OAAO,CAAC,MAAW,EAAE,GAAW,EAAE,EAAE;QAClC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QACrB,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACvB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEO,4BAAQ","sourcesContent":["import { Transform } from 'class-transformer';\n\nconst valueToNumber = (value: any) => {\n if (value === null || value === undefined || value === '') {\n return undefined;\n }\n if (typeof value === 'number') {\n return value;\n }\n if (typeof value === 'string') {\n const num = Number(value);\n if (isNaN(num)) {\n return undefined;\n }\n return num;\n }\n return undefined;\n};\n\nconst ToNumber = () => {\n const toPlain = Transform(\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n ({ value }) => value,\n {\n toPlainOnly: true,\n },\n );\n const toClass = (target: any, key: string) =>\n Transform(({ obj }) => valueToNumber(obj[key]), {\n toClassOnly: true,\n })(target, key);\n return (target: any, key: string) => {\n toPlain(target, key);\n toClass(target, key);\n };\n};\n\nexport { ToNumber };\n"]}
@@ -1,3 +0,0 @@
1
- declare const ToNumber: () => (target: any, key: string) => void;
2
- export { ToNumber };
3
- //# sourceMappingURL=number.transform.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"number.transform.d.ts","sourceRoot":"","sources":["../../../../ts/utils/transforms/number.transform.ts"],"names":[],"mappings":"AAmBA,QAAA,MAAM,QAAQ,SAYJ,QAAQ,GAAG,EAAE,KAAK,MAAM,SAIjC,CAAC;AAEF,OAAO,EAAE,QAAQ,EAAE,CAAC"}
@@ -1,33 +0,0 @@
1
- import { Transform } from 'class-transformer';
2
- const valueToNumber = (value) => {
3
- if (value === null || value === undefined || value === '') {
4
- return undefined;
5
- }
6
- if (typeof value === 'number') {
7
- return value;
8
- }
9
- if (typeof value === 'string') {
10
- const num = Number(value);
11
- if (isNaN(num)) {
12
- return undefined;
13
- }
14
- return num;
15
- }
16
- return undefined;
17
- };
18
- const ToNumber = () => {
19
- const toPlain = Transform(
20
- // eslint-disable-next-line @typescript-eslint/no-unsafe-return
21
- ({ value }) => value, {
22
- toPlainOnly: true,
23
- });
24
- const toClass = (target, key) => Transform(({ obj }) => valueToNumber(obj[key]), {
25
- toClassOnly: true,
26
- })(target, key);
27
- return (target, key) => {
28
- toPlain(target, key);
29
- toClass(target, key);
30
- };
31
- };
32
- export { ToNumber };
33
- //# sourceMappingURL=number.transform.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"number.transform.js","sourceRoot":"","sources":["../../../../ts/utils/transforms/number.transform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,MAAM,aAAa,GAAG,CAAC,KAAU,EAAE,EAAE;IACnC,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,EAAE,EAAE,CAAC;QAC1D,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,OAAO,KAAK,CAAC;IACf,CAAC;IACD,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,MAAM,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;QAC1B,IAAI,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC;YACf,OAAO,SAAS,CAAC;QACnB,CAAC;QACD,OAAO,GAAG,CAAC;IACb,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AAEF,MAAM,QAAQ,GAAG,GAAG,EAAE;IACpB,MAAM,OAAO,GAAG,SAAS;IACvB,+DAA+D;IAC/D,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,EACpB;QACE,WAAW,EAAE,IAAI;KAClB,CACF,CAAC;IACF,MAAM,OAAO,GAAG,CAAC,MAAW,EAAE,GAAW,EAAE,EAAE,CAC3C,SAAS,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,EAAE;QAC9C,WAAW,EAAE,IAAI;KAClB,CAAC,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAClB,OAAO,CAAC,MAAW,EAAE,GAAW,EAAE,EAAE;QAClC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QACrB,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACvB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAE,QAAQ,EAAE,CAAC","sourcesContent":["import { Transform } from 'class-transformer';\n\nconst valueToNumber = (value: any) => {\n if (value === null || value === undefined || value === '') {\n return undefined;\n }\n if (typeof value === 'number') {\n return value;\n }\n if (typeof value === 'string') {\n const num = Number(value);\n if (isNaN(num)) {\n return undefined;\n }\n return num;\n }\n return undefined;\n};\n\nconst ToNumber = () => {\n const toPlain = Transform(\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n ({ value }) => value,\n {\n toPlainOnly: true,\n },\n );\n const toClass = (target: any, key: string) =>\n Transform(({ obj }) => valueToNumber(obj[key]), {\n toClassOnly: true,\n })(target, key);\n return (target: any, key: string) => {\n toPlain(target, key);\n toClass(target, key);\n };\n};\n\nexport { ToNumber };\n"]}
@@ -1,38 +0,0 @@
1
- import { Transform } from 'class-transformer';
2
-
3
- const valueToNumber = (value: any) => {
4
- if (value === null || value === undefined || value === '') {
5
- return undefined;
6
- }
7
- if (typeof value === 'number') {
8
- return value;
9
- }
10
- if (typeof value === 'string') {
11
- const num = Number(value);
12
- if (isNaN(num)) {
13
- return undefined;
14
- }
15
- return num;
16
- }
17
- return undefined;
18
- };
19
-
20
- const ToNumber = () => {
21
- const toPlain = Transform(
22
- // eslint-disable-next-line @typescript-eslint/no-unsafe-return
23
- ({ value }) => value,
24
- {
25
- toPlainOnly: true,
26
- },
27
- );
28
- const toClass = (target: any, key: string) =>
29
- Transform(({ obj }) => valueToNumber(obj[key]), {
30
- toClassOnly: true,
31
- })(target, key);
32
- return (target: any, key: string) => {
33
- toPlain(target, key);
34
- toClass(target, key);
35
- };
36
- };
37
-
38
- export { ToNumber };