@silexpert/core 1.3.205-5 → 1.3.205-7

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 (70) hide show
  1. package/dist/cjs/api/resources/User.js.map +1 -1
  2. package/dist/cjs/types/Enum/UsersHistory.d.ts +2 -1
  3. package/dist/cjs/types/Enum/UsersHistory.d.ts.map +1 -1
  4. package/dist/cjs/types/Enum/UsersHistory.js +3 -0
  5. package/dist/cjs/types/Enum/UsersHistory.js.map +1 -1
  6. package/dist/cjs/types/Interface/api/team/UpdateTeamsForUser.d.ts +1 -1
  7. package/dist/cjs/types/Interface/api/team/UpdateTeamsForUser.d.ts.map +1 -1
  8. package/dist/cjs/types/Interface/api/team/UpdateTeamsForUser.js +5 -4
  9. package/dist/cjs/types/Interface/api/team/UpdateTeamsForUser.js.map +1 -1
  10. package/dist/cjs/types/Interface/api/user/UpdateCoworker.d.ts +1 -0
  11. package/dist/cjs/types/Interface/api/user/UpdateCoworker.d.ts.map +1 -1
  12. package/dist/cjs/types/Interface/api/user/UpdateCoworker.js +6 -0
  13. package/dist/cjs/types/Interface/api/user/UpdateCoworker.js.map +1 -1
  14. package/dist/cjs/types/Interface/api/usersHistory/Create.d.ts +2 -1
  15. package/dist/cjs/types/Interface/api/usersHistory/Create.d.ts.map +1 -1
  16. package/dist/cjs/types/Interface/api/usersHistory/Create.js +5 -0
  17. package/dist/cjs/types/Interface/api/usersHistory/Create.js.map +1 -1
  18. package/dist/cjs/types/Interface/api/usersHistory/Update.d.ts +2 -1
  19. package/dist/cjs/types/Interface/api/usersHistory/Update.d.ts.map +1 -1
  20. package/dist/cjs/types/Interface/api/usersHistory/Update.js +5 -0
  21. package/dist/cjs/types/Interface/api/usersHistory/Update.js.map +1 -1
  22. package/dist/cjs/types/Interface/api/webex/GetWebinarsParams.d.ts.map +1 -1
  23. package/dist/cjs/types/Interface/api/webex/GetWebinarsParams.js +10 -5
  24. package/dist/cjs/types/Interface/api/webex/GetWebinarsParams.js.map +1 -1
  25. package/dist/cjs/types/Interface/models/IUsersHistory.d.ts +7 -1
  26. package/dist/cjs/types/Interface/models/IUsersHistory.d.ts.map +1 -1
  27. package/dist/cjs/types/Interface/models/IUsersHistory.js.map +1 -1
  28. package/dist/cjs/utils/societyApproval.d.ts.map +1 -1
  29. package/dist/cjs/utils/societyApproval.js +9 -2
  30. package/dist/cjs/utils/societyApproval.js.map +1 -1
  31. package/dist/mjs/api/resources/User.js.map +1 -1
  32. package/dist/mjs/types/Enum/UsersHistory.d.ts +2 -1
  33. package/dist/mjs/types/Enum/UsersHistory.d.ts.map +1 -1
  34. package/dist/mjs/types/Enum/UsersHistory.js +3 -0
  35. package/dist/mjs/types/Enum/UsersHistory.js.map +1 -1
  36. package/dist/mjs/types/Interface/api/team/UpdateTeamsForUser.d.ts +1 -1
  37. package/dist/mjs/types/Interface/api/team/UpdateTeamsForUser.d.ts.map +1 -1
  38. package/dist/mjs/types/Interface/api/team/UpdateTeamsForUser.js +7 -6
  39. package/dist/mjs/types/Interface/api/team/UpdateTeamsForUser.js.map +1 -1
  40. package/dist/mjs/types/Interface/api/user/UpdateCoworker.d.ts +1 -0
  41. package/dist/mjs/types/Interface/api/user/UpdateCoworker.d.ts.map +1 -1
  42. package/dist/mjs/types/Interface/api/user/UpdateCoworker.js +7 -0
  43. package/dist/mjs/types/Interface/api/user/UpdateCoworker.js.map +1 -1
  44. package/dist/mjs/types/Interface/api/usersHistory/Create.d.ts +2 -1
  45. package/dist/mjs/types/Interface/api/usersHistory/Create.d.ts.map +1 -1
  46. package/dist/mjs/types/Interface/api/usersHistory/Create.js +6 -0
  47. package/dist/mjs/types/Interface/api/usersHistory/Create.js.map +1 -1
  48. package/dist/mjs/types/Interface/api/usersHistory/Update.d.ts +2 -1
  49. package/dist/mjs/types/Interface/api/usersHistory/Update.d.ts.map +1 -1
  50. package/dist/mjs/types/Interface/api/usersHistory/Update.js +6 -0
  51. package/dist/mjs/types/Interface/api/usersHistory/Update.js.map +1 -1
  52. package/dist/mjs/types/Interface/api/webex/GetWebinarsParams.d.ts.map +1 -1
  53. package/dist/mjs/types/Interface/api/webex/GetWebinarsParams.js +12 -7
  54. package/dist/mjs/types/Interface/api/webex/GetWebinarsParams.js.map +1 -1
  55. package/dist/mjs/types/Interface/models/IUsersHistory.d.ts +7 -1
  56. package/dist/mjs/types/Interface/models/IUsersHistory.d.ts.map +1 -1
  57. package/dist/mjs/types/Interface/models/IUsersHistory.js.map +1 -1
  58. package/dist/mjs/utils/societyApproval.d.ts.map +1 -1
  59. package/dist/mjs/utils/societyApproval.js +10 -1
  60. package/dist/mjs/utils/societyApproval.js.map +1 -1
  61. package/package.json +1 -1
  62. package/ts/api/resources/User.ts +2 -2
  63. package/ts/types/Enum/UsersHistory.ts +4 -0
  64. package/ts/types/Interface/api/team/UpdateTeamsForUser.ts +5 -4
  65. package/ts/types/Interface/api/user/UpdateCoworker.ts +5 -0
  66. package/ts/types/Interface/api/usersHistory/Create.ts +5 -3
  67. package/ts/types/Interface/api/usersHistory/Update.ts +5 -1
  68. package/ts/types/Interface/api/webex/GetWebinarsParams.ts +12 -7
  69. package/ts/types/Interface/models/IUsersHistory.ts +7 -1
  70. package/ts/utils/societyApproval.ts +10 -1
@@ -93,6 +93,14 @@ export function buildApprovalTemplateData(existingApproval: ISocietyApproval, st
93
93
  const brand = getBrand();
94
94
  return {
95
95
  // Variables globales
96
+ rates: {
97
+ flatTax: 0.314,
98
+ flatLevy: 0.128, //prelevement forfaitaire
99
+ csg: 0.106,
100
+ solidarity: 0.075,
101
+ crds: 0.005,
102
+ socialSecurityContributions: 0.186, //= csg + solidarity + crds
103
+ },
96
104
  style,
97
105
  yearInText,
98
106
  dayAndMonthInText,
@@ -138,7 +146,8 @@ export function buildApprovalTemplateData(existingApproval: ISocietyApproval, st
138
146
  ...existingApproval?.exercice?.society,
139
147
  cityOfGreffe: getCityOfGreffeName(existingApproval?.exercice?.society?.idCityOfGreffe).toUpperCase(),
140
148
  siren: existingApproval?.exercice?.society?.siret
141
- ? siretToSiren(existingApproval.exercice.society.siret)?.replace(/(\d{3})(\d{3})(\d{3})/, '$1 $2 $3') ?? null
149
+ ? (siretToSiren(existingApproval.exercice.society.siret)?.replace(/(\d{3})(\d{3})(\d{3})/, '$1 $2 $3') ??
150
+ null)
142
151
  : null,
143
152
  },
144
153
  endDate: dayjs(existingApproval?.exercice?.endDate).locale('fr').format('DD MMMM YYYY').toLowerCase(),