@socialgouv/modeles-social 4.100.0 → 4.101.0

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 (244) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/bin/modeles/common/factory/salary.js +5 -0
  3. package/bin/modeles/common/factory/seniority.js +4 -0
  4. package/bin/modeles/common/motif-keys.js +1 -1
  5. package/bin/modeles/common/supported-agreements.d.ts +2 -0
  6. package/bin/modeles/common/supported-agreements.js +3 -1
  7. package/bin/modeles/common/types/salary.d.ts +2 -2
  8. package/bin/modeles/common/types/seniority.js +1 -1
  9. package/bin/modeles/common/utils/__tests__/accumulate-absence-by-year.spec.js +1 -1
  10. package/bin/modeles/conventions/1483_habillement_textiles_commerce_de_detail/__tests__/indemnite-licenciement/anciennete.spec.js +22 -0
  11. package/bin/modeles/conventions/1483_habillement_textiles_commerce_de_detail/__tests__/indemnite-licenciement/formule.spec.js +42 -0
  12. package/bin/modeles/conventions/1483_habillement_textiles_commerce_de_detail/__tests__/indemnite-licenciement/indemnite.spec.d.ts +1 -0
  13. package/bin/modeles/conventions/1483_habillement_textiles_commerce_de_detail/__tests__/indemnite-licenciement/indemnite.spec.js +44 -0
  14. package/bin/modeles/conventions/1483_habillement_textiles_commerce_de_detail/__tests__/indemnite-licenciement/notifications.spec.d.ts +1 -0
  15. package/bin/modeles/conventions/1483_habillement_textiles_commerce_de_detail/__tests__/indemnite-licenciement/notifications.spec.js +43 -0
  16. package/bin/modeles/conventions/1483_habillement_textiles_commerce_de_detail/__tests__/indemnite-licenciement/references.spec.d.ts +1 -0
  17. package/bin/modeles/conventions/1483_habillement_textiles_commerce_de_detail/__tests__/indemnite-licenciement/references.spec.js +66 -0
  18. package/bin/modeles/conventions/1483_habillement_textiles_commerce_de_detail/__tests__/indemnite-licenciement/salaire-ref.spec.d.ts +1 -0
  19. package/bin/modeles/conventions/1483_habillement_textiles_commerce_de_detail/__tests__/indemnite-licenciement/salaire-ref.spec.js +108 -0
  20. package/bin/modeles/conventions/1483_habillement_textiles_commerce_de_detail/index.d.ts +2 -0
  21. package/bin/modeles/conventions/1483_habillement_textiles_commerce_de_detail/index.js +18 -0
  22. package/bin/modeles/conventions/1483_habillement_textiles_commerce_de_detail/salary.d.ts +17 -0
  23. package/bin/modeles/conventions/1483_habillement_textiles_commerce_de_detail/salary.js +46 -0
  24. package/bin/modeles/conventions/1483_habillement_textiles_commerce_de_detail/seniority.d.ts +5 -0
  25. package/bin/modeles/conventions/1483_habillement_textiles_commerce_de_detail/seniority.js +43 -0
  26. package/bin/modeles/conventions/1486_bureaux_etudes_techniques/__tests__/indemnite-licenciement/formule.spec.js +1 -1
  27. package/bin/modeles/conventions/1486_bureaux_etudes_techniques/__tests__/indemnite-licenciement/indemnite.spec.js +2 -2
  28. package/bin/modeles/conventions/1486_bureaux_etudes_techniques/__tests__/indemnite-licenciement/references.spec.js +3 -3
  29. package/bin/modeles/conventions/1486_bureaux_etudes_techniques/salary.js +2 -2
  30. package/bin/modeles/conventions/1486_bureaux_etudes_techniques/seniority.js +1 -1
  31. package/bin/modeles/conventions/1501_restauration_rapide/__tests__/indemnite-licenciement/formule.spec.js +2 -2
  32. package/bin/modeles/conventions/1501_restauration_rapide/__tests__/indemnite-licenciement/indemnite.spec.js +3 -3
  33. package/bin/modeles/conventions/1516_organismes_formation/__tests__/indemnite-licenciement/formule.spec.js +2 -1
  34. package/bin/modeles/conventions/1516_organismes_formation/__tests__/indemnite-licenciement/indemnite.spec.js +32 -13
  35. package/bin/modeles/conventions/1516_organismes_formation/__tests__/indemnite-licenciement/references.spec.js +32 -13
  36. package/bin/modeles/conventions/1516_organismes_formation/__tests__/indemnite-licenciement/salaire-ref.spec.js +3 -3
  37. package/bin/modeles/conventions/1516_organismes_formation/__tests__/preavis-retraite/depart-mise.spec.js +5 -4
  38. package/bin/modeles/conventions/1516_organismes_formation/salary.js +1 -1
  39. package/bin/modeles/conventions/1606_bricolage/__tests__/indemnite-licenciement/formule.spec.js +3 -3
  40. package/bin/modeles/conventions/1606_bricolage/__tests__/indemnite-licenciement/indemnite.spec.js +3 -3
  41. package/bin/modeles/conventions/1606_bricolage/__tests__/indemnite-licenciement/references.spec.js +2 -2
  42. package/bin/modeles/conventions/1606_bricolage/__tests__/indemnite-licenciement/salaire-ref.spec.js +1 -1
  43. package/bin/modeles/conventions/1672_societes_assurances/__tests__/indemnite-licenciement/notifications.spec.js +1 -1
  44. package/bin/modeles/conventions/1702_ouvriers_travaux_public/__tests__/indemnite-licenciement/formule.spec.js +2 -2
  45. package/bin/modeles/conventions/1702_ouvriers_travaux_public/__tests__/indemnite-licenciement/indemnite.spec.js +3 -3
  46. package/bin/modeles/conventions/1740_batiment_region_parisienne/__tests__/indemnite-licenciement/anciennete.spec.d.ts +1 -0
  47. package/bin/modeles/conventions/1740_batiment_region_parisienne/__tests__/indemnite-licenciement/anciennete.spec.js +22 -0
  48. package/bin/modeles/conventions/1740_batiment_region_parisienne/__tests__/indemnite-licenciement/formule.spec.d.ts +1 -0
  49. package/bin/modeles/conventions/1740_batiment_region_parisienne/__tests__/indemnite-licenciement/formule.spec.js +26 -0
  50. package/bin/modeles/conventions/1740_batiment_region_parisienne/__tests__/indemnite-licenciement/indemnite.spec.d.ts +1 -0
  51. package/bin/modeles/conventions/1740_batiment_region_parisienne/__tests__/indemnite-licenciement/indemnite.spec.js +27 -0
  52. package/bin/modeles/conventions/1740_batiment_region_parisienne/__tests__/indemnite-licenciement/references.spec.d.ts +1 -0
  53. package/bin/modeles/conventions/1740_batiment_region_parisienne/__tests__/indemnite-licenciement/references.spec.js +40 -0
  54. package/bin/modeles/conventions/1740_batiment_region_parisienne/__tests__/indemnite-licenciement/salaire-ref.spec.d.ts +1 -0
  55. package/bin/modeles/conventions/1740_batiment_region_parisienne/__tests__/indemnite-licenciement/salaire-ref.spec.js +144 -0
  56. package/bin/modeles/conventions/1740_batiment_region_parisienne/__tests__/preavis-retraite/depart-mise.spec.d.ts +1 -0
  57. package/bin/modeles/conventions/1740_batiment_region_parisienne/__tests__/{depart-mise.spec.js → preavis-retraite/depart-mise.spec.js} +2 -2
  58. package/bin/modeles/conventions/1740_batiment_region_parisienne/index.d.ts +2 -0
  59. package/bin/modeles/conventions/1740_batiment_region_parisienne/index.js +18 -0
  60. package/bin/modeles/conventions/1740_batiment_region_parisienne/salary.d.ts +16 -0
  61. package/bin/modeles/conventions/1740_batiment_region_parisienne/salary.js +43 -0
  62. package/bin/modeles/conventions/1740_batiment_region_parisienne/seniority.d.ts +5 -0
  63. package/bin/modeles/conventions/1740_batiment_region_parisienne/seniority.js +50 -0
  64. package/bin/modeles/conventions/1996_pharmacie/__tests__/indemnite-licenciement/formule.spec.js +1 -1
  65. package/bin/modeles/conventions/1996_pharmacie/__tests__/indemnite-licenciement/indemnite.spec.js +3 -3
  66. package/bin/modeles/conventions/1996_pharmacie/__tests__/indemnite-licenciement/references.spec.js +1 -1
  67. package/bin/modeles/conventions/2148_telecommunications/__tests__/indemnite-licenciement/formule.spec.js +1 -1
  68. package/bin/modeles/conventions/2148_telecommunications/__tests__/indemnite-licenciement/indemnite.spec.js +1 -1
  69. package/bin/modeles/conventions/2148_telecommunications/__tests__/indemnite-licenciement/references.spec.js +1 -1
  70. package/bin/modeles/conventions/2216_commerces_detail_alimentation/__tests__/indemnite-licenciement/formule.spec.js +1 -1
  71. package/bin/modeles/conventions/2216_commerces_detail_alimentation/__tests__/indemnite-licenciement/indemnite.spec.js +2 -2
  72. package/bin/modeles/conventions/2216_commerces_detail_alimentation/__tests__/indemnite-licenciement/r/303/251f/303/251rences.spec.js +1 -1
  73. package/bin/modeles/conventions/29_hospitalisation_privee_but_non_lucratif/salary.js +1 -1
  74. package/bin/modeles/conventions/3239_particuliers_employeurs_domicile/__tests__/indemnite-licenciement/notifications.spec.js +8 -5
  75. package/bin/modeles/conventions/3239_particuliers_employeurs_domicile/salary.js +1 -1
  76. package/bin/modeles/conventions/44_industries_chimiques/__tests__/indemnite-licenciement/salaire-ref.spec.js +2 -1
  77. package/bin/modeles/conventions/44_industries_chimiques/salary.js +7 -6
  78. package/bin/modeles/conventions/573_commerces_de_gros/__tests__/indemnite-licenciement/indemnite.spec.js +2 -2
  79. package/bin/modeles/conventions/573_commerces_de_gros/salary.js +1 -1
  80. package/bin/modeles/conventions/675_habillement_commerce_succursales/types.js +1 -1
  81. package/bin/modeles/conventions/index.d.ts +2 -0
  82. package/bin/modeles/conventions/index.js +2 -0
  83. package/bin/publicodes/types.js +4 -4
  84. package/bin/simulators/preavis-demission/preavis-demission.data.json +1 -1
  85. package/bin/simulators/preavis-licenciement/preavis-licenciement.data.json +1 -1
  86. package/lib/modeles/common/factory/salary.js +5 -0
  87. package/lib/modeles/common/factory/seniority.js +4 -0
  88. package/lib/modeles/common/motif-keys.js +1 -1
  89. package/lib/modeles/common/supported-agreements.d.ts +2 -0
  90. package/lib/modeles/common/supported-agreements.js +3 -1
  91. package/lib/modeles/common/types/salary.d.ts +2 -2
  92. package/lib/modeles/common/types/seniority.js +1 -1
  93. package/lib/modeles/common/utils/__tests__/accumulate-absence-by-year.spec.js +1 -1
  94. package/lib/modeles/common/utils/ccn-supported.json +2 -2
  95. package/lib/modeles/conventions/1483_habillement_textiles_commerce_de_detail/__tests__/indemnite-licenciement/anciennete.spec.d.ts +1 -0
  96. package/lib/modeles/conventions/1483_habillement_textiles_commerce_de_detail/__tests__/indemnite-licenciement/anciennete.spec.js +22 -0
  97. package/lib/modeles/conventions/1483_habillement_textiles_commerce_de_detail/__tests__/indemnite-licenciement/formule.spec.d.ts +1 -0
  98. package/lib/modeles/conventions/1483_habillement_textiles_commerce_de_detail/__tests__/indemnite-licenciement/formule.spec.js +42 -0
  99. package/lib/modeles/conventions/1483_habillement_textiles_commerce_de_detail/__tests__/indemnite-licenciement/indemnite.spec.d.ts +1 -0
  100. package/lib/modeles/conventions/1483_habillement_textiles_commerce_de_detail/__tests__/indemnite-licenciement/indemnite.spec.js +44 -0
  101. package/lib/modeles/conventions/1483_habillement_textiles_commerce_de_detail/__tests__/indemnite-licenciement/notifications.spec.d.ts +1 -0
  102. package/lib/modeles/conventions/1483_habillement_textiles_commerce_de_detail/__tests__/indemnite-licenciement/notifications.spec.js +43 -0
  103. package/lib/modeles/conventions/1483_habillement_textiles_commerce_de_detail/__tests__/indemnite-licenciement/references.spec.d.ts +1 -0
  104. package/lib/modeles/conventions/1483_habillement_textiles_commerce_de_detail/__tests__/indemnite-licenciement/references.spec.js +66 -0
  105. package/lib/modeles/conventions/1483_habillement_textiles_commerce_de_detail/__tests__/indemnite-licenciement/salaire-ref.spec.d.ts +1 -0
  106. package/lib/modeles/conventions/1483_habillement_textiles_commerce_de_detail/__tests__/indemnite-licenciement/salaire-ref.spec.js +108 -0
  107. package/lib/modeles/conventions/1483_habillement_textiles_commerce_de_detail/index.d.ts +2 -0
  108. package/lib/modeles/conventions/1483_habillement_textiles_commerce_de_detail/index.js +18 -0
  109. package/lib/modeles/conventions/1483_habillement_textiles_commerce_de_detail/salary.d.ts +17 -0
  110. package/lib/modeles/conventions/1483_habillement_textiles_commerce_de_detail/salary.js +46 -0
  111. package/lib/modeles/conventions/1483_habillement_textiles_commerce_de_detail/seniority.d.ts +5 -0
  112. package/lib/modeles/conventions/1483_habillement_textiles_commerce_de_detail/seniority.js +43 -0
  113. package/lib/modeles/conventions/1486_bureaux_etudes_techniques/__tests__/indemnite-licenciement/formule.spec.js +1 -1
  114. package/lib/modeles/conventions/1486_bureaux_etudes_techniques/__tests__/indemnite-licenciement/indemnite.spec.js +2 -2
  115. package/lib/modeles/conventions/1486_bureaux_etudes_techniques/__tests__/indemnite-licenciement/references.spec.js +3 -3
  116. package/lib/modeles/conventions/1486_bureaux_etudes_techniques/salary.js +2 -2
  117. package/lib/modeles/conventions/1486_bureaux_etudes_techniques/seniority.js +1 -1
  118. package/lib/modeles/conventions/1501_restauration_rapide/__tests__/indemnite-licenciement/formule.spec.js +2 -2
  119. package/lib/modeles/conventions/1501_restauration_rapide/__tests__/indemnite-licenciement/indemnite.spec.js +3 -3
  120. package/lib/modeles/conventions/1516_organismes_formation/__tests__/indemnite-licenciement/formule.spec.js +2 -1
  121. package/lib/modeles/conventions/1516_organismes_formation/__tests__/indemnite-licenciement/indemnite.spec.js +32 -13
  122. package/lib/modeles/conventions/1516_organismes_formation/__tests__/indemnite-licenciement/references.spec.js +32 -13
  123. package/lib/modeles/conventions/1516_organismes_formation/__tests__/indemnite-licenciement/salaire-ref.spec.js +3 -3
  124. package/lib/modeles/conventions/1516_organismes_formation/__tests__/preavis-retraite/depart-mise.spec.js +5 -4
  125. package/lib/modeles/conventions/1516_organismes_formation/salary.js +1 -1
  126. package/lib/modeles/conventions/1606_bricolage/__tests__/indemnite-licenciement/formule.spec.js +3 -3
  127. package/lib/modeles/conventions/1606_bricolage/__tests__/indemnite-licenciement/indemnite.spec.js +3 -3
  128. package/lib/modeles/conventions/1606_bricolage/__tests__/indemnite-licenciement/references.spec.js +2 -2
  129. package/lib/modeles/conventions/1606_bricolage/__tests__/indemnite-licenciement/salaire-ref.spec.js +1 -1
  130. package/lib/modeles/conventions/1672_societes_assurances/__tests__/indemnite-licenciement/notifications.spec.js +1 -1
  131. package/lib/modeles/conventions/1702_ouvriers_travaux_public/__tests__/indemnite-licenciement/formule.spec.js +2 -2
  132. package/lib/modeles/conventions/1702_ouvriers_travaux_public/__tests__/indemnite-licenciement/indemnite.spec.js +3 -3
  133. package/lib/modeles/conventions/1740_batiment_region_parisienne/__tests__/indemnite-licenciement/anciennete.spec.d.ts +1 -0
  134. package/lib/modeles/conventions/1740_batiment_region_parisienne/__tests__/indemnite-licenciement/anciennete.spec.js +22 -0
  135. package/lib/modeles/conventions/1740_batiment_region_parisienne/__tests__/indemnite-licenciement/formule.spec.d.ts +1 -0
  136. package/lib/modeles/conventions/1740_batiment_region_parisienne/__tests__/indemnite-licenciement/formule.spec.js +26 -0
  137. package/lib/modeles/conventions/1740_batiment_region_parisienne/__tests__/indemnite-licenciement/indemnite.spec.d.ts +1 -0
  138. package/lib/modeles/conventions/1740_batiment_region_parisienne/__tests__/indemnite-licenciement/indemnite.spec.js +27 -0
  139. package/lib/modeles/conventions/1740_batiment_region_parisienne/__tests__/indemnite-licenciement/references.spec.d.ts +1 -0
  140. package/lib/modeles/conventions/1740_batiment_region_parisienne/__tests__/indemnite-licenciement/references.spec.js +40 -0
  141. package/lib/modeles/conventions/1740_batiment_region_parisienne/__tests__/indemnite-licenciement/salaire-ref.spec.d.ts +1 -0
  142. package/lib/modeles/conventions/1740_batiment_region_parisienne/__tests__/indemnite-licenciement/salaire-ref.spec.js +144 -0
  143. package/lib/modeles/conventions/1740_batiment_region_parisienne/__tests__/preavis-retraite/depart-mise.spec.d.ts +1 -0
  144. package/lib/modeles/conventions/1740_batiment_region_parisienne/__tests__/{depart-mise.spec.js → preavis-retraite/depart-mise.spec.js} +2 -2
  145. package/lib/modeles/conventions/1740_batiment_region_parisienne/index.d.ts +2 -0
  146. package/lib/modeles/conventions/1740_batiment_region_parisienne/index.js +18 -0
  147. package/lib/modeles/conventions/1740_batiment_region_parisienne/salary.d.ts +16 -0
  148. package/lib/modeles/conventions/1740_batiment_region_parisienne/salary.js +43 -0
  149. package/lib/modeles/conventions/1740_batiment_region_parisienne/seniority.d.ts +5 -0
  150. package/lib/modeles/conventions/1740_batiment_region_parisienne/seniority.js +50 -0
  151. package/lib/modeles/conventions/1996_pharmacie/__tests__/indemnite-licenciement/formule.spec.js +1 -1
  152. package/lib/modeles/conventions/1996_pharmacie/__tests__/indemnite-licenciement/indemnite.spec.js +3 -3
  153. package/lib/modeles/conventions/1996_pharmacie/__tests__/indemnite-licenciement/references.spec.js +1 -1
  154. package/lib/modeles/conventions/2148_telecommunications/__tests__/indemnite-licenciement/formule.spec.js +1 -1
  155. package/lib/modeles/conventions/2148_telecommunications/__tests__/indemnite-licenciement/indemnite.spec.js +1 -1
  156. package/lib/modeles/conventions/2148_telecommunications/__tests__/indemnite-licenciement/references.spec.js +1 -1
  157. package/lib/modeles/conventions/2216_commerces_detail_alimentation/__tests__/indemnite-licenciement/formule.spec.js +1 -1
  158. package/lib/modeles/conventions/2216_commerces_detail_alimentation/__tests__/indemnite-licenciement/indemnite.spec.js +2 -2
  159. package/lib/modeles/conventions/2216_commerces_detail_alimentation/__tests__/indemnite-licenciement/r/303/251f/303/251rences.spec.js +1 -1
  160. package/lib/modeles/conventions/29_hospitalisation_privee_but_non_lucratif/salary.js +1 -1
  161. package/lib/modeles/conventions/3239_particuliers_employeurs_domicile/__tests__/indemnite-licenciement/notifications.spec.js +8 -5
  162. package/lib/modeles/conventions/3239_particuliers_employeurs_domicile/salary.js +1 -1
  163. package/lib/modeles/conventions/44_industries_chimiques/__tests__/indemnite-licenciement/salaire-ref.spec.js +2 -1
  164. package/lib/modeles/conventions/44_industries_chimiques/salary.js +7 -6
  165. package/lib/modeles/conventions/573_commerces_de_gros/__tests__/indemnite-licenciement/indemnite.spec.js +2 -2
  166. package/lib/modeles/conventions/573_commerces_de_gros/salary.js +1 -1
  167. package/lib/modeles/conventions/675_habillement_commerce_succursales/types.js +1 -1
  168. package/lib/modeles/conventions/index.d.ts +2 -0
  169. package/lib/modeles/conventions/index.js +2 -0
  170. package/lib/modeles/modeles-indemnite-licenciement.json +486 -9
  171. package/lib/modeles/modeles-preavis-retraite.json +13 -50
  172. package/lib/publicodes/types.js +4 -4
  173. package/lib/simulators/preavis-demission/preavis-demission.data.json +1 -1
  174. package/lib/simulators/preavis-licenciement/preavis-licenciement.data.json +1 -1
  175. package/package.json +4 -4
  176. package/src/modeles/common/factory/salary.ts +6 -0
  177. package/src/modeles/common/factory/seniority.ts +6 -0
  178. package/src/modeles/common/supported-agreements.ts +2 -0
  179. package/src/modeles/common/types/salary.ts +6 -0
  180. package/src/modeles/common/utils/__tests__/accumulate-absence-by-year.spec.ts +4 -4
  181. package/src/modeles/conventions/1483_habillement_textiles_commerce_de_detail/__tests__/indemnite-licenciement/anciennete.spec.ts +44 -0
  182. package/src/modeles/conventions/1483_habillement_textiles_commerce_de_detail/__tests__/indemnite-licenciement/formule.spec.ts +89 -0
  183. package/src/modeles/conventions/1483_habillement_textiles_commerce_de_detail/__tests__/indemnite-licenciement/indemnite.spec.ts +76 -0
  184. package/src/modeles/conventions/1483_habillement_textiles_commerce_de_detail/__tests__/indemnite-licenciement/notifications.spec.ts +75 -0
  185. package/src/modeles/conventions/1483_habillement_textiles_commerce_de_detail/__tests__/indemnite-licenciement/references.spec.ts +99 -0
  186. package/src/modeles/conventions/1483_habillement_textiles_commerce_de_detail/__tests__/indemnite-licenciement/salaire-ref.spec.ts +116 -0
  187. package/src/modeles/conventions/1483_habillement_textiles_commerce_de_detail/indemnite-licenciement.yaml +187 -0
  188. package/src/modeles/conventions/1483_habillement_textiles_commerce_de_detail/index.ts +2 -0
  189. package/src/modeles/conventions/1483_habillement_textiles_commerce_de_detail/salary.ts +55 -0
  190. package/src/modeles/conventions/1483_habillement_textiles_commerce_de_detail/seniority.ts +14 -0
  191. package/src/modeles/conventions/1486_bureaux_etudes_techniques/__tests__/indemnite-licenciement/formule.spec.ts +1 -1
  192. package/src/modeles/conventions/1486_bureaux_etudes_techniques/__tests__/indemnite-licenciement/indemnite.spec.ts +2 -2
  193. package/src/modeles/conventions/1486_bureaux_etudes_techniques/__tests__/indemnite-licenciement/references.spec.ts +3 -3
  194. package/src/modeles/conventions/1486_bureaux_etudes_techniques/preavis-retraite.yaml +1 -8
  195. package/src/modeles/conventions/1486_bureaux_etudes_techniques/seniority.ts +1 -1
  196. package/src/modeles/conventions/1501_restauration_rapide/__tests__/indemnite-licenciement/formule.spec.ts +4 -4
  197. package/src/modeles/conventions/1501_restauration_rapide/__tests__/indemnite-licenciement/indemnite.spec.ts +6 -6
  198. package/src/modeles/conventions/1516_organismes_formation/__tests__/indemnite-licenciement/formule.spec.ts +4 -2
  199. package/src/modeles/conventions/1516_organismes_formation/__tests__/indemnite-licenciement/indemnite.spec.ts +67 -29
  200. package/src/modeles/conventions/1516_organismes_formation/__tests__/indemnite-licenciement/references.spec.ts +65 -28
  201. package/src/modeles/conventions/1516_organismes_formation/__tests__/indemnite-licenciement/salaire-ref.spec.ts +3 -3
  202. package/src/modeles/conventions/1516_organismes_formation/__tests__/preavis-retraite/depart-mise.spec.ts +21 -16
  203. package/src/modeles/conventions/1516_organismes_formation/indemnite-licenciement.yaml +21 -5
  204. package/src/modeles/conventions/1516_organismes_formation/preavis-retraite.yaml +10 -2
  205. package/src/modeles/conventions/1516_organismes_formation/salary.ts +1 -1
  206. package/src/modeles/conventions/1606_bricolage/__tests__/indemnite-licenciement/formule.spec.ts +4 -4
  207. package/src/modeles/conventions/1606_bricolage/__tests__/indemnite-licenciement/indemnite.spec.ts +4 -4
  208. package/src/modeles/conventions/1606_bricolage/__tests__/indemnite-licenciement/references.spec.ts +4 -4
  209. package/src/modeles/conventions/1606_bricolage/__tests__/indemnite-licenciement/salaire-ref.spec.ts +1 -1
  210. package/src/modeles/conventions/1672_societes_assurances/__tests__/indemnite-licenciement/notifications.spec.ts +2 -2
  211. package/src/modeles/conventions/1702_ouvriers_travaux_public/__tests__/indemnite-licenciement/formule.spec.ts +4 -4
  212. package/src/modeles/conventions/1702_ouvriers_travaux_public/__tests__/indemnite-licenciement/indemnite.spec.ts +6 -6
  213. package/src/modeles/conventions/1740_batiment_region_parisienne/__tests__/indemnite-licenciement/anciennete.spec.ts +41 -0
  214. package/src/modeles/conventions/1740_batiment_region_parisienne/__tests__/indemnite-licenciement/formule.spec.ts +56 -0
  215. package/src/modeles/conventions/1740_batiment_region_parisienne/__tests__/indemnite-licenciement/indemnite.spec.ts +55 -0
  216. package/src/modeles/conventions/1740_batiment_region_parisienne/__tests__/indemnite-licenciement/references.spec.ts +61 -0
  217. package/src/modeles/conventions/1740_batiment_region_parisienne/__tests__/indemnite-licenciement/salaire-ref.spec.ts +165 -0
  218. package/src/modeles/conventions/1740_batiment_region_parisienne/__tests__/{depart-mise.spec.ts → preavis-retraite/depart-mise.spec.ts} +2 -2
  219. package/src/modeles/conventions/1740_batiment_region_parisienne/indemnite-licenciement.yaml +150 -0
  220. package/src/modeles/conventions/1740_batiment_region_parisienne/index.ts +2 -0
  221. package/src/modeles/conventions/1740_batiment_region_parisienne/salary.ts +58 -0
  222. package/src/modeles/conventions/1740_batiment_region_parisienne/seniority.ts +23 -0
  223. package/src/modeles/conventions/1996_pharmacie/__tests__/indemnite-licenciement/formule.spec.ts +2 -2
  224. package/src/modeles/conventions/1996_pharmacie/__tests__/indemnite-licenciement/indemnite.spec.ts +6 -6
  225. package/src/modeles/conventions/1996_pharmacie/__tests__/indemnite-licenciement/references.spec.ts +2 -2
  226. package/src/modeles/conventions/2148_telecommunications/__tests__/indemnite-licenciement/formule.spec.ts +2 -2
  227. package/src/modeles/conventions/2148_telecommunications/__tests__/indemnite-licenciement/indemnite.spec.ts +2 -2
  228. package/src/modeles/conventions/2148_telecommunications/__tests__/indemnite-licenciement/references.spec.ts +2 -2
  229. package/src/modeles/conventions/2216_commerces_detail_alimentation/__tests__/indemnite-licenciement/formule.spec.ts +2 -2
  230. package/src/modeles/conventions/2216_commerces_detail_alimentation/__tests__/indemnite-licenciement/indemnite.spec.ts +4 -4
  231. package/src/modeles/conventions/2216_commerces_detail_alimentation/__tests__/indemnite-licenciement/r/303/251f/303/251rences.spec.ts +2 -2
  232. package/src/modeles/conventions/2614_travaux_publics/indemnite-licenciement.yaml +1 -1
  233. package/src/modeles/conventions/3127_entreprises_services_a_la_personne/preavis-retraite.yaml +2 -16
  234. package/src/modeles/conventions/3239_particuliers_employeurs_domicile/__tests__/indemnite-licenciement/notifications.spec.ts +10 -5
  235. package/src/modeles/conventions/3239_particuliers_employeurs_domicile/indemnite-licenciement.yaml +7 -1
  236. package/src/modeles/conventions/413_handicap/indemnite-licenciement.yaml +3 -3
  237. package/src/modeles/conventions/44_industries_chimiques/__tests__/indemnite-licenciement/salaire-ref.spec.ts +12 -10
  238. package/src/modeles/conventions/44_industries_chimiques/salary.ts +2 -1
  239. package/src/modeles/conventions/573_commerces_de_gros/__tests__/indemnite-licenciement/indemnite.spec.ts +4 -4
  240. package/src/modeles/conventions/index.ts +2 -0
  241. package/src/simulators/preavis-demission/preavis-demission.data.json +1 -1
  242. package/src/simulators/preavis-licenciement/preavis-licenciement.data.json +1 -1
  243. /package/bin/modeles/conventions/{1740_batiment_region_parisienne/__tests__/depart-mise.spec.d.ts → 1483_habillement_textiles_commerce_de_detail/__tests__/indemnite-licenciement/anciennete.spec.d.ts} +0 -0
  244. /package/{lib/modeles/conventions/1740_batiment_region_parisienne/__tests__/depart-mise.spec.d.ts → bin/modeles/conventions/1483_habillement_textiles_commerce_de_detail/__tests__/indemnite-licenciement/formule.spec.d.ts} +0 -0
package/CHANGELOG.md CHANGED
@@ -3,6 +3,26 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [4.101.0](https://github.com/SocialGouv/code-du-travail-numerique/compare/v4.100.0...v4.101.0) (2023-06-12)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **indemnité de licenciement:** derniers retours sur la 1516 suite au nouvel avenant ([#5208](https://github.com/SocialGouv/code-du-travail-numerique/issues/5208)) ([56d0a4c](https://github.com/SocialGouv/code-du-travail-numerique/commit/56d0a4cd5c962eded5157d14af7ce05f73b17875))
11
+ - **indemnité de licenciement:** mise en place des modifs issues d'un avenant du 6 février 2023 sur la cc 1516 ([#5188](https://github.com/SocialGouv/code-du-travail-numerique/issues/5188)) ([48a571d](https://github.com/SocialGouv/code-du-travail-numerique/commit/48a571d5786c5598ef0ba551cdc36257abf37a1c))
12
+ - **indemnite-licenciement:** ajout d'une notification pour la CC 3239 ([#5164](https://github.com/SocialGouv/code-du-travail-numerique/issues/5164)) ([e3f6ca5](https://github.com/SocialGouv/code-du-travail-numerique/commit/e3f6ca5d57f018066f9b854c2d8f5f1472057ef6))
13
+ - **indemnite-licenciement:** revert sur salary 1672 et 1702 ([0d071fa](https://github.com/SocialGouv/code-du-travail-numerique/commit/0d071fae3d5df923d41626c357a1e585c2aec99d))
14
+ - **indemnite-licenciement:** salaire de reference non pris en compte sur la cc 44 ([#5162](https://github.com/SocialGouv/code-du-travail-numerique/issues/5162)) ([1d4362f](https://github.com/SocialGouv/code-du-travail-numerique/commit/1d4362f9101d1d3734e9236c3f87bf4d309712a3))
15
+ - **indemnite-licenciement:** tests unitaires pour la cc 1740 ([c961387](https://github.com/SocialGouv/code-du-travail-numerique/commit/c96138736c8bdf162e522bb817f6b46fbf1fee87))
16
+ - **sentry:** getting source maps ([#5166](https://github.com/SocialGouv/code-du-travail-numerique/issues/5166)) ([c393785](https://github.com/SocialGouv/code-du-travail-numerique/commit/c393785d626b8b9da1bde689be870f766eff9bf6))
17
+ - **simulateurs:** mise en place des modifs issues d'un avenant du 6 février 2023 sur la cc 1516 ([#5189](https://github.com/SocialGouv/code-du-travail-numerique/issues/5189)) ([b8903e9](https://github.com/SocialGouv/code-du-travail-numerique/commit/b8903e9bac57011d3ad08d4b883395d4b2b66ba0))
18
+
19
+ ### Features
20
+
21
+ - **dep:** optimize fetching of yarn dependencies ([#5190](https://github.com/SocialGouv/code-du-travail-numerique/issues/5190)) ([49878e3](https://github.com/SocialGouv/code-du-travail-numerique/commit/49878e3251b0d7aab82ce1c7652bd8cad829e67c))
22
+ - **indemnite-licenciement:** ajout de la cc 1483 ([#5154](https://github.com/SocialGouv/code-du-travail-numerique/issues/5154)) ([a8030e1](https://github.com/SocialGouv/code-du-travail-numerique/commit/a8030e18369777db579022f10d20a0de92b82ff5))
23
+ - **indemnite-licenciement:** ajout de la cc 1740 ([#5155](https://github.com/SocialGouv/code-du-travail-numerique/issues/5155)) ([d66e652](https://github.com/SocialGouv/code-du-travail-numerique/commit/d66e652b92a3e47f10d0901f65165fdbae9ef89f))
24
+ - **indemnite-licenciement:** retirer pour certaines cc un messages sur la page resultat ([#5165](https://github.com/SocialGouv/code-du-travail-numerique/issues/5165)) ([dd14970](https://github.com/SocialGouv/code-du-travail-numerique/commit/dd14970ac6d44c0aa5fc69099ea3fe6e0326b1d9))
25
+
6
26
  # [4.100.0](https://github.com/SocialGouv/code-du-travail-numerique/compare/v4.99.0...v4.100.0) (2023-05-24)
7
27
 
8
28
  ### Bug Fixes
@@ -15,6 +15,7 @@ var _1516_organismes_formation_1 = require("../../conventions/1516_organismes_fo
15
15
  var _1527_immobilier_1 = require("../../conventions/1527_immobilier");
16
16
  var _1672_societes_assurances_1 = require("../../conventions/1672_societes_assurances");
17
17
  var _1702_ouvriers_travaux_public_1 = require("../../conventions/1702_ouvriers_travaux_public");
18
+ var _1740_batiment_region_parisienne_1 = require("../../conventions/1740_batiment_region_parisienne");
18
19
  var _2098_personnel_presta_service_tertiaire_1 = require("../../conventions/2098_personnel_presta_service_tertiaire");
19
20
  var salary_1 = require("../../conventions/2148_telecommunications/salary");
20
21
  var salary_2 = require("../../conventions/2596_coiffure/salary");
@@ -61,8 +62,12 @@ var ReferenceSalaryFactory = /** @class */ (function () {
61
62
  return new _1672_societes_assurances_1.ReferenceSalary1672();
62
63
  case __1.SupportedCcIndemniteLicenciement.IDCC0086:
63
64
  return new _86_publicite_francaise_1.ReferenceSalary86();
65
+ case __1.SupportedCcIndemniteLicenciement.IDCC1483:
66
+ return new conventions_1.ReferenceSalary1483();
64
67
  case __1.SupportedCcIndemniteLicenciement.IDCC1702:
65
68
  return new _1702_ouvriers_travaux_public_1.ReferenceSalary1702();
69
+ case __1.SupportedCcIndemniteLicenciement.IDCC1740:
70
+ return new _1740_batiment_region_parisienne_1.ReferenceSalary1740();
66
71
  case __1.SupportedCcIndemniteLicenciement.default:
67
72
  default:
68
73
  return new base_1.ReferenceSalaryLegal();
@@ -57,8 +57,12 @@ var SeniorityFactory = /** @class */ (function () {
57
57
  return new conventions_1.Seniority1606();
58
58
  case index_1.SupportedCcIndemniteLicenciement.IDCC1672:
59
59
  return new conventions_1.Seniority1672();
60
+ case index_1.SupportedCcIndemniteLicenciement.IDCC1483:
61
+ return new conventions_1.Seniority1483();
60
62
  case index_1.SupportedCcIndemniteLicenciement.IDCC1702:
61
63
  return new conventions_1.Seniority1702();
64
+ case index_1.SupportedCcIndemniteLicenciement.IDCC1740:
65
+ return new conventions_1.Seniority1740();
62
66
  case index_1.SupportedCcIndemniteLicenciement.default:
63
67
  default:
64
68
  return new base_1.SeniorityLegal();
@@ -15,4 +15,4 @@ var MotifKeys;
15
15
  MotifKeys["convenancePro"] = "absenceConvenancePro";
16
16
  MotifKeys["absenceInjustifi\u00E9e"] = "absenceInjustifiee";
17
17
  MotifKeys["congeEnfantMalade"] = "absenceCongesEnfantMalade";
18
- })(MotifKeys = exports.MotifKeys || (exports.MotifKeys = {}));
18
+ })(MotifKeys || (exports.MotifKeys = MotifKeys = {}));
@@ -41,6 +41,8 @@ export declare enum SupportedCcIndemniteLicenciement {
41
41
  IDCC1672 = "1672",
42
42
  IDCC0086 = "86",
43
43
  IDCC2148 = "2148",
44
+ IDCC1483 = "1483",
45
+ IDCC1740 = "1740",
44
46
  default = "default"
45
47
  }
46
48
  export declare const INDEMNITE_LICENCIEMENT_PRODUCTION_READY_CC: number[];
@@ -46,8 +46,10 @@ var SupportedCcIndemniteLicenciement;
46
46
  SupportedCcIndemniteLicenciement["IDCC1672"] = "1672";
47
47
  SupportedCcIndemniteLicenciement["IDCC0086"] = "86";
48
48
  SupportedCcIndemniteLicenciement["IDCC2148"] = "2148";
49
+ SupportedCcIndemniteLicenciement["IDCC1483"] = "1483";
50
+ SupportedCcIndemniteLicenciement["IDCC1740"] = "1740";
49
51
  SupportedCcIndemniteLicenciement["default"] = "default";
50
- })(SupportedCcIndemniteLicenciement = exports.SupportedCcIndemniteLicenciement || (exports.SupportedCcIndemniteLicenciement = {}));
52
+ })(SupportedCcIndemniteLicenciement || (exports.SupportedCcIndemniteLicenciement = SupportedCcIndemniteLicenciement = {}));
51
53
  exports.INDEMNITE_LICENCIEMENT_PRODUCTION_READY_CC = [
52
54
  16, 29, 44, 413, 573, 650, 1090, 1351, 1486, 1501, 1518, 1527, 1596, 1597,
53
55
  1979, 2216, 2264, 2941, 3043, 3127, 3239, 1517, 2098, 2511, 2609, 787, 843,
@@ -1,5 +1,5 @@
1
1
  import type { LegalReferenceSalaryProps } from "../../base";
2
- import type { CC16ReferenceSalaryProps, CC29ReferenceSalaryProps, CC44ReferenceSalaryProps, CC573ReferenceSalaryProps, CC675ReferenceSalaryProps, CC1486ReferenceSalaryProps, CC1516ReferenceSalaryProps, CC1527ReferenceSalaryProps, CC1672ReferenceSalaryProps, CC1702ReferenceSalaryProps, CC2098ReferenceSalaryProps, CC2148ReferenceSalaryProps, CC2596ReferenceSalaryProps, CC2609ReferenceSalaryProps, CC2614ReferenceSalaryProps, CC3239ReferenceSalaryProps } from "../../conventions";
2
+ import type { CC16ReferenceSalaryProps, CC29ReferenceSalaryProps, CC44ReferenceSalaryProps, CC573ReferenceSalaryProps, CC675ReferenceSalaryProps, CC1483ReferenceSalaryProps, CC1486ReferenceSalaryProps, CC1516ReferenceSalaryProps, CC1527ReferenceSalaryProps, CC1672ReferenceSalaryProps, CC1702ReferenceSalaryProps, CC1740ReferenceSalaryProps, CC2098ReferenceSalaryProps, CC2148ReferenceSalaryProps, CC2596ReferenceSalaryProps, CC2609ReferenceSalaryProps, CC2614ReferenceSalaryProps, CC3239ReferenceSalaryProps } from "../../conventions";
3
3
  import type { SupportedCcIndemniteLicenciement } from "..";
4
4
  export type SalaryPeriods = {
5
5
  month: string;
@@ -10,4 +10,4 @@ export interface IReferenceSalary<T extends SupportedCcIndemniteLicenciement> {
10
10
  computeReferenceSalary: (args: ReferenceSalaryProps<T>) => number;
11
11
  computeExtraInfo?: (args: ReferenceSalaryProps<T>) => Record<string, number | string>;
12
12
  }
13
- export type ReferenceSalaryProps<T> = T extends SupportedCcIndemniteLicenciement.IDCC0016 ? CC16ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC0029 ? CC29ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC0044 ? CC44ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC0573 ? CC573ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC1486 ? CC1486ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC1516 ? CC1516ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC1527 ? CC1527ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC2098 ? CC2098ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC2596 ? CC2596ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC2609 ? CC2609ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC2148 ? CC2148ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC2614 ? CC2614ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC3239 ? CC3239ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC0675 ? CC675ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC1672 ? CC1672ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC1702 ? CC1702ReferenceSalaryProps : LegalReferenceSalaryProps;
13
+ export type ReferenceSalaryProps<T> = T extends SupportedCcIndemniteLicenciement.IDCC0016 ? CC16ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC0029 ? CC29ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC0044 ? CC44ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC0573 ? CC573ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC1486 ? CC1486ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC1516 ? CC1516ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC1527 ? CC1527ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC2098 ? CC2098ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC2596 ? CC2596ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC2609 ? CC2609ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC2148 ? CC2148ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC2614 ? CC2614ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC3239 ? CC3239ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC0675 ? CC675ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC1672 ? CC1672ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC1483 ? CC1483ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC1702 ? CC1702ReferenceSalaryProps : T extends SupportedCcIndemniteLicenciement.IDCC1740 ? CC1740ReferenceSalaryProps : LegalReferenceSalaryProps;
@@ -5,4 +5,4 @@ var QuestionOuiNon;
5
5
  (function (QuestionOuiNon) {
6
6
  QuestionOuiNon["oui"] = "Oui";
7
7
  QuestionOuiNon["non"] = "Non";
8
- })(QuestionOuiNon = exports.QuestionOuiNon || (exports.QuestionOuiNon = {}));
8
+ })(QuestionOuiNon || (exports.QuestionOuiNon = QuestionOuiNon = {}));
@@ -12,7 +12,7 @@ var date2021 = (0, date_fns_1.parse)("05/04/2021", "dd/MM/yyyy", new Date());
12
12
  var exitIn2020 = (0, date_fns_1.parse)("10/11/2020", "dd/MM/yyyy", new Date());
13
13
  var exitIn2021 = (0, date_fns_1.parse)("12/06/2021", "dd/MM/yyyy", new Date());
14
14
  describe("Accumulation d'absence par année", function () {
15
- test.each(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n absences | years | expectedOutput\n ", " | ", " | ", "\n ", " | ", " | ", "\n ", " | ", " | ", "\n ", " | ", " | ", "\n ", " | ", " | ", "\n "], ["\n absences | years | expectedOutput\n ", " | ", " | ", "\n ", " | ", " | ", "\n ", " | ", " | ", "\n ", " | ", " | ", "\n ", " | ", " | ", "\n "])), [], [], [], [{ durationInMonth: 1, startedAt: "02/06/2020", motif: { value: 1 } }], [{ begin: date2020, end: exitIn2020 }], [{ totalAbsenceInMonth: 1, year: 2020 }], [{ durationInMonth: 1, startedAt: "10/05/2020", motif: { value: 1 } }, { durationInMonth: 2, startedAt: "10/07/2020", motif: { value: 1 } }], [{ begin: date2020, end: exitIn2020 }], [{ totalAbsenceInMonth: 3, year: 2020 }], [{ durationInMonth: 3, startedAt: "10/07/2020", motif: { value: 1 } }, { durationInMonth: 2, startedAt: "10/04/2021", motif: { value: 1 } }], [{ begin: date2020, end: date2021LessOneDay }, { begin: date2021, end: exitIn2021 }], [{ totalAbsenceInMonth: 3, year: 2020 }, { totalAbsenceInMonth: 2, year: 2021 }], [{ durationInMonth: 1, startedAt: "20/03/2021", motif: { value: 1 } }], [{ begin: date2020, end: date2021LessOneDay }, { begin: date2021, end: exitIn2021 }], [{ totalAbsenceInMonth: 0.5, year: 2020 }, { totalAbsenceInMonth: 0.4666666666666667, year: 2021 }])("Avec $absences.length absence(s) et $years.length année(s) on attend $expectedOutput.length découpe(s) par année", function (_a) {
15
+ test.each(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n absences | years | expectedOutput\n ", " | ", " | ", "\n ", " | ", " | ", "\n ", " | ", " | ", "\n ", " | ", " | ", "\n ", " | ", " | ", "\n "], ["\n absences | years | expectedOutput\n ", " | ", " | ", "\n ", " | ", " | ", "\n ", " | ", " | ", "\n ", " | ", " | ", "\n ", " | ", " | ", "\n "])), [], [], [], [{ durationInMonth: 1, motif: { value: 1 }, startedAt: "02/06/2020" }], [{ begin: date2020, end: exitIn2020 }], [{ totalAbsenceInMonth: 1, year: 2020 }], [{ durationInMonth: 1, motif: { value: 1 }, startedAt: "10/05/2020" }, { durationInMonth: 2, motif: { value: 1 }, startedAt: "10/07/2020" }], [{ begin: date2020, end: exitIn2020 }], [{ totalAbsenceInMonth: 3, year: 2020 }], [{ durationInMonth: 3, motif: { value: 1 }, startedAt: "10/07/2020" }, { durationInMonth: 2, motif: { value: 1 }, startedAt: "10/04/2021" }], [{ begin: date2020, end: date2021LessOneDay }, { begin: date2021, end: exitIn2021 }], [{ totalAbsenceInMonth: 3, year: 2020 }, { totalAbsenceInMonth: 2, year: 2021 }], [{ durationInMonth: 1, motif: { value: 1 }, startedAt: "20/03/2021" }], [{ begin: date2020, end: date2021LessOneDay }, { begin: date2021, end: exitIn2021 }], [{ totalAbsenceInMonth: 0.5, year: 2020 }, { totalAbsenceInMonth: 0.4666666666666667, year: 2021 }])("Avec $absences.length absence(s) et $years.length année(s) on attend $expectedOutput.length découpe(s) par année", function (_a) {
16
16
  var absences = _a.absences, years = _a.years, expectedOutput = _a.expectedOutput;
17
17
  var result = (0, __1.accumulateAbsenceByYear)(absences, years);
18
18
  expect(result).toEqual(expectedOutput);
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
+ return cooked;
5
+ };
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ var common_1 = require("../../../../common");
8
+ describe("CC 1483", function () {
9
+ describe("Calcul de l'ancienneté", function () {
10
+ test.each(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n absences | entryDate | exitDate | expectedAnciennete\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n "], ["\n absences | entryDate | exitDate | expectedAnciennete\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n "])), [], "20/02/2020", "20/02/2021", 1, [{ motif: { motif: { key: common_1.MotifKeys.maladieNonPro } } }, { motif: { key: common_1.MotifKeys.accidentTrajet } }, { motif: { key: common_1.MotifKeys.congesSabbatique } }, { motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { motif: { key: common_1.MotifKeys.congesParentalEducation } }, { motif: { key: common_1.MotifKeys.congesSansSolde } }, { motif: { key: common_1.MotifKeys.greve } }, { motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 1, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 1, [{ durationInMonth: "1", motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 1, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: "1", motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 1, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: "1", motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 1, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: "1", motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 1, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: "1", motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 1, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: "1", motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 1, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: "1", motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 1, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: "1", motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 1, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 1, [{ durationInMonth: "1", motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: "1", motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: "1", motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: "1", motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: "1", motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: "1", motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: "1", motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: "1", motif: { key: common_1.MotifKeys.miseAPied } }], "20/02/2020", "20/02/2021", 1, [{ durationInMonth: "1", motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: "1", motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: "1", motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: "1", motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: "1", motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: "1", motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: "1", motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: "1", motif: { key: common_1.MotifKeys.miseAPied } }], "20/01/2021", "20/02/2021", 0.08333333333333333, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "01/01/1979", "01/01/2021", 42, [{ durationInMonth: 0, motif: { key: common_1.MotifKeys.maladieNonPro } }, { durationInMonth: 100, motif: { key: common_1.MotifKeys.accidentTrajet } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSabbatique } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesCreationEntreprise } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesParentalEducation } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.congesSansSolde } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.greve } }, { durationInMonth: 0, motif: { key: common_1.MotifKeys.miseAPied } }], "01/01/1979", "01/01/2021", 42)("Calcul de l'ancienneté avec $entryDate et $exitDate en attendant $expectedAnciennete an", function (_a) {
11
+ var absences = _a.absences, entryDate = _a.entryDate, exitDate = _a.exitDate, expectedAnciennete = _a.expectedAnciennete;
12
+ var seniority = new common_1.SeniorityFactory().create(common_1.SupportedCcIndemniteLicenciement.IDCC1483);
13
+ var result = seniority.computeSeniority({
14
+ absencePeriods: absences,
15
+ dateEntree: entryDate,
16
+ dateSortie: exitDate,
17
+ });
18
+ expect(result.value).toEqual(expectedAnciennete);
19
+ });
20
+ });
21
+ });
22
+ var templateObject_1;
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
+ return cooked;
5
+ };
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ var publicodes_1 = require("../../../../../publicodes");
8
+ var engine = new publicodes_1.IndemniteLicenciementPublicodes(modelsIndemniteLicenciement, "1483");
9
+ describe("Formule indemnité licenciement - 1483", function () {
10
+ describe("Pour un non-cadres", function () {
11
+ test.each(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n seniorityRight | seniority | expectedFormula | expectedExplanations\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n "], ["\n seniorityRight | seniority | expectedFormula | expectedExplanations\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n "])), 1, 0, "", [], 1, 1, "", [], 1.01, 8, "(1 / 5 * Sref * A1)", ["A1: Années de présence dès la première année (8 ans)", "Sref : Salaire de référence (1000 €)"], 1.01, 10, "(1 / 5 * Sref * A1)", ["A1: Années de présence dès la première année (10 ans)", "Sref : Salaire de référence (1000 €)"], 1.01, 18, "(1 / 5 * Sref * A1) + (1 / 3 * Sref * A2)", ["A1: Années de présence dès la première année (10 ans)", "A2: Années de présence à partir de 10 ans de présence (8 ans)", "Sref : Salaire de référence (1000 €)"])("ancienneté: $seniority an, => $expectedFormula", function (_a) {
12
+ var seniority = _a.seniority, seniorityRight = _a.seniorityRight, expectedFormula = _a.expectedFormula, expectedExplanations = _a.expectedExplanations;
13
+ engine.setSituation({
14
+ "contrat salarié . convention collective": "'IDCC1483'",
15
+ "contrat salarié . convention collective . habillement textiles commerce de detail . catégorie professionnelle": "'Non-cadres'",
16
+ "contrat salarié . indemnité de licenciement . ancienneté conventionnelle en année": seniority,
17
+ "contrat salarié . indemnité de licenciement . ancienneté conventionnelle requise en année": seniorityRight,
18
+ "contrat salarié . indemnité de licenciement . salaire de référence conventionnel": "1000",
19
+ }, "contrat salarié . indemnité de licenciement . résultat conventionnel");
20
+ var result = engine.getFormule();
21
+ expect(result.formula).toEqual(expectedFormula);
22
+ expect(result.explanations).toEqual(expectedExplanations);
23
+ });
24
+ });
25
+ describe("Pour un cadres", function () {
26
+ test.each(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n age | seniorityRight | seniority | expectedFormula | expectedExplanations\n ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", "\n "], ["\n age | seniorityRight | seniority | expectedFormula | expectedExplanations\n ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", "\n "])), 49, 1, 0, "", [], 49, 1, 1, "", [], 49, 1.01, 2, "(1 / 5 * Sref * A)", ["A: Années de présence dès la première année (2 ans)", "Sref : Salaire de référence (1000 €)"], 49, 1.01, 5, "(1 / 4 * Sref * A1)", ["A1: Années de présence dès la première année (5 ans)", "Sref : Salaire de référence (1000 €)"], 49, 1.01, 17, "(1 / 4 * Sref * A1) + (1 / 3 * Sref * A2 )", ["A1: Années de présence dès la première année (16 ans)", "A2: Années de présence après 16 ans (1 an)", "Sref : Salaire de référence (1000 €)"], 51, 1, 1, "", [], 51, 1.01, 2, "(1 / 5 * Sref * A)", ["A: Années de présence dès la première année (2 ans)", "Sref : Salaire de référence (1000 €)"], 51, 1.01, 5, "(1 / 4 * Sref * A1)", ["A1: Années de présence dès la première année (5 ans)", "Sref : Salaire de référence (1000 €)"], 51, 1.01, 17, "(1 / 4 * Sref * A1) + (1 / 3 * Sref * A2 ) + (25% * (1 / 4 * Sref * A1)) + (25% * (1 / 3 * Sref * A2 ))", ["A1: Années de présence dès la première année (16 ans)", "A2: Années de présence après 16 ans (1 an)", "Sref : Salaire de référence (1000 €)"])("ancienneté: $seniority an, age $age => $expectedFormula", function (_a) {
27
+ var seniority = _a.seniority, seniorityRight = _a.seniorityRight, expectedFormula = _a.expectedFormula, expectedExplanations = _a.expectedExplanations, age = _a.age;
28
+ engine.setSituation({
29
+ "contrat salarié . convention collective": "'IDCC1483'",
30
+ "contrat salarié . convention collective . habillement textiles commerce de detail . age": age,
31
+ "contrat salarié . convention collective . habillement textiles commerce de detail . catégorie professionnelle": "'Cadres'",
32
+ "contrat salarié . indemnité de licenciement . ancienneté conventionnelle en année": seniority,
33
+ "contrat salarié . indemnité de licenciement . ancienneté conventionnelle requise en année": seniorityRight,
34
+ "contrat salarié . indemnité de licenciement . salaire de référence conventionnel": "1000",
35
+ }, "contrat salarié . indemnité de licenciement . résultat conventionnel");
36
+ var result = engine.getFormule();
37
+ expect(result.formula).toEqual(expectedFormula);
38
+ expect(result.explanations).toEqual(expectedExplanations);
39
+ });
40
+ });
41
+ });
42
+ var templateObject_1, templateObject_2;
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
+ return cooked;
5
+ };
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ var publicodes_1 = require("../../../../../publicodes");
8
+ var engine = new publicodes_1.IndemniteLicenciementPublicodes(modelsIndemniteLicenciement, "1483");
9
+ describe("Indemnité conventionnel de licenciement pour la CC 1483", function () {
10
+ describe("Pour un non-cadres", function () {
11
+ test.each(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n seniorityRight | seniority | salary | expectedCompensation\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n "], ["\n seniorityRight | seniority | salary | expectedCompensation\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n "])), 1, 0, 2331, 0, 1, 1, 2331, 0, 1.01, 8, 2331, 3729.6, 1.01, 10, 2331, 4662, 1.01, 18, 2450, 11433.33)("ancienneté: $seniority an, salaire de référence: $salary => $expectedCompensation €", function (_a) {
12
+ var _b;
13
+ var seniority = _a.seniority, seniorityRight = _a.seniorityRight, salary = _a.salary, expectedCompensation = _a.expectedCompensation;
14
+ var _c = engine.setSituation({
15
+ "contrat salarié . convention collective": "'IDCC1483'",
16
+ "contrat salarié . convention collective . habillement textiles commerce de detail . catégorie professionnelle": "'Non-cadres'",
17
+ "contrat salarié . indemnité de licenciement . ancienneté conventionnelle en année": seniority,
18
+ "contrat salarié . indemnité de licenciement . ancienneté conventionnelle requise en année": seniorityRight,
19
+ "contrat salarié . indemnité de licenciement . salaire de référence conventionnel": salary,
20
+ }, "contrat salarié . indemnité de licenciement . résultat conventionnel"), result = _c.result, missingArgs = _c.missingArgs;
21
+ expect(missingArgs).toEqual([]);
22
+ expect((_b = result.unit) === null || _b === void 0 ? void 0 : _b.numerators).toEqual(["€"]);
23
+ expect(result.value).toEqual(expectedCompensation);
24
+ });
25
+ });
26
+ describe("Pour un cadres", function () {
27
+ test.each(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n age | seniorityRight | seniority | salary | expectedCompensation\n ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", "\n "], ["\n age | seniorityRight | seniority | salary | expectedCompensation\n ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", "\n "])), 49, 1, 0, 3040, 0, 49, 1, 1, 3040, 0, 49, 1.01, 2, 3040, 1216, 49, 1.01, 5, 3040, 3800, 49, 1.01, 17, 3098, 13424.67, 51, 1, 1, 3040, 0, 51, 1.01, 2, 3040, 1216, 51, 1.01, 5, 3040, 3800, 51, 1.01, 17, 3098, 16780.83)("ancienneté: $seniority an, salaire de référence: $salary, age $age => $expectedCompensation €", function (_a) {
28
+ var _b;
29
+ var seniority = _a.seniority, seniorityRight = _a.seniorityRight, salary = _a.salary, expectedCompensation = _a.expectedCompensation, age = _a.age;
30
+ var _c = engine.setSituation({
31
+ "contrat salarié . convention collective": "'IDCC1483'",
32
+ "contrat salarié . convention collective . habillement textiles commerce de detail . age": age,
33
+ "contrat salarié . convention collective . habillement textiles commerce de detail . catégorie professionnelle": "'Cadres'",
34
+ "contrat salarié . indemnité de licenciement . ancienneté conventionnelle en année": seniority,
35
+ "contrat salarié . indemnité de licenciement . ancienneté conventionnelle requise en année": seniorityRight,
36
+ "contrat salarié . indemnité de licenciement . salaire de référence conventionnel": salary,
37
+ }, "contrat salarié . indemnité de licenciement . résultat conventionnel"), result = _c.result, missingArgs = _c.missingArgs;
38
+ expect(missingArgs).toEqual([]);
39
+ expect((_b = result.unit) === null || _b === void 0 ? void 0 : _b.numerators).toEqual(["€"]);
40
+ expect(result.value).toEqual(expectedCompensation);
41
+ });
42
+ });
43
+ });
44
+ var templateObject_1, templateObject_2;
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
+ return cooked;
5
+ };
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ var publicodes_1 = require("../../../../../publicodes");
8
+ var engine = new publicodes_1.IndemniteLicenciementPublicodes(modelsIndemniteLicenciement, "1483");
9
+ var notif = "Conformément aux règles de la convention collective, le montant de l’indemnité pourrait être plus important si le salarié a perçu une indemnité compensatrice de congés payés et/ou une indemnité compensatrice de préavis.";
10
+ describe("Notifications juridique pour l'indemnité conventionnel de licenciement pour la CC 1483", function () {
11
+ describe("Pour un non-cadres", function () {
12
+ test.each(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n seniorityRight | seniority | salary | expectedNotification\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n "], ["\n seniorityRight | seniority | salary | expectedNotification\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n "])), 1.01, 8, 2331, notif, 1.01, 10, 2331, notif, 1.01, 18, 2450, notif)("ancienneté: $seniority an, salaire de référence: $salary => $expectedNotification", function (_a) {
13
+ var seniority = _a.seniority, seniorityRight = _a.seniorityRight, salary = _a.salary, expectedNotification = _a.expectedNotification;
14
+ engine.setSituation({
15
+ "contrat salarié . convention collective": "'IDCC1483'",
16
+ "contrat salarié . convention collective . habillement textiles commerce de detail . catégorie professionnelle": "'Non-cadres'",
17
+ "contrat salarié . indemnité de licenciement . ancienneté conventionnelle en année": seniority,
18
+ "contrat salarié . indemnité de licenciement . ancienneté conventionnelle requise en année": seniorityRight,
19
+ "contrat salarié . indemnité de licenciement . salaire de référence conventionnel": salary,
20
+ }, "contrat salarié . indemnité de licenciement . résultat conventionnel");
21
+ var notifications = engine.getNotifications();
22
+ expect(notifications).toHaveLength(1);
23
+ expect(notifications[0].description).toContain(expectedNotification);
24
+ });
25
+ });
26
+ describe("Pour un cadres", function () {
27
+ test.each(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n age | seniorityRight | seniority | salary | expectedNotification\n ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", "\n "], ["\n age | seniorityRight | seniority | salary | expectedNotification\n ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", "\n "])), 49, 1.01, 2, 3040, notif, 49, 1.01, 5, 3040, notif, 49, 1.01, 17, 3040, notif, 51, 1.01, 2, 3040, notif, 51, 1.01, 5, 3040, notif, 51, 1.01, 17, 3040, notif)("ancienneté: $seniority an, salaire de référence: $salary, age $age => $expectedNotification", function (_a) {
28
+ var seniority = _a.seniority, seniorityRight = _a.seniorityRight, salary = _a.salary, expectedNotification = _a.expectedNotification, age = _a.age;
29
+ engine.setSituation({
30
+ "contrat salarié . convention collective": "'IDCC1483'",
31
+ "contrat salarié . convention collective . habillement textiles commerce de detail . age": age,
32
+ "contrat salarié . convention collective . habillement textiles commerce de detail . catégorie professionnelle": "'Cadres'",
33
+ "contrat salarié . indemnité de licenciement . ancienneté conventionnelle en année": seniority,
34
+ "contrat salarié . indemnité de licenciement . ancienneté conventionnelle requise en année": seniorityRight,
35
+ "contrat salarié . indemnité de licenciement . salaire de référence conventionnel": salary,
36
+ }, "contrat salarié . indemnité de licenciement . résultat conventionnel");
37
+ var notifications = engine.getNotifications();
38
+ expect(notifications).toHaveLength(1);
39
+ expect(notifications[0].description).toContain(expectedNotification);
40
+ });
41
+ });
42
+ });
43
+ var templateObject_1, templateObject_2;
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
+ return cooked;
5
+ };
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ var publicodes_1 = require("../../../../../publicodes");
8
+ var engine = new publicodes_1.IndemniteLicenciementPublicodes(modelsIndemniteLicenciement, "1483");
9
+ var refNonCadres = [
10
+ {
11
+ article: "Article 17, Chapitre Ier",
12
+ url: "https://www.legifrance.gouv.fr/conv_coll/id/KALIARTI000022017249/?idConteneur=KALICONT000005635594",
13
+ },
14
+ {
15
+ article: "Article 18, Chapitre Ier",
16
+ url: "https://www.legifrance.gouv.fr/conv_coll/id/KALIARTI000022017246/?idConteneur=KALICONT000005635594",
17
+ },
18
+ {
19
+ article: "Article 31",
20
+ url: "https://www.legifrance.gouv.fr/conv_coll/article/KALIARTI000005840280?idConteneur=KALICONT000005635594&origin=list#KALIARTI000005840280",
21
+ },
22
+ ];
23
+ var refCadres = [
24
+ {
25
+ article: "Article 11, Chapitre II",
26
+ url: "https://www.legifrance.gouv.fr/conv_coll/id/KALIARTI000022017243/?idConteneur=KALICONT000005635594&origin=list",
27
+ },
28
+ {
29
+ article: "Article 31",
30
+ url: "https://www.legifrance.gouv.fr/conv_coll/article/KALIARTI000005840280?idConteneur=KALICONT000005635594&origin=list#KALIARTI000005840280",
31
+ },
32
+ ];
33
+ describe("Références juridique pour l'indemnité conventionnel de licenciement pour la CC 1483", function () {
34
+ describe("Pour un non-cadres", function () {
35
+ test.each(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n seniorityRight | seniority | salary | expectedReferences\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n "], ["\n seniorityRight | seniority | salary | expectedReferences\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", "\n "])), 1.01, 8, 2331, refNonCadres, 1.01, 10, 2331, refNonCadres, 1.01, 18, 2450, refNonCadres)("ancienneté: $seniority an, salaire de référence: $salary => $expectedReferences", function (_a) {
36
+ var seniority = _a.seniority, seniorityRight = _a.seniorityRight, salary = _a.salary, expectedReferences = _a.expectedReferences;
37
+ engine.setSituation({
38
+ "contrat salarié . convention collective": "'IDCC1483'",
39
+ "contrat salarié . convention collective . habillement textiles commerce de detail . catégorie professionnelle": "'Non-cadres'",
40
+ "contrat salarié . indemnité de licenciement . ancienneté conventionnelle en année": seniority,
41
+ "contrat salarié . indemnité de licenciement . ancienneté conventionnelle requise en année": seniorityRight,
42
+ "contrat salarié . indemnité de licenciement . salaire de référence conventionnel": salary,
43
+ }, "contrat salarié . indemnité de licenciement . résultat conventionnel");
44
+ var result = engine.getReferences("résultat conventionnel");
45
+ expect(result).toHaveLength(expectedReferences.length);
46
+ expect(result).toEqual(expect.arrayContaining(expectedReferences));
47
+ });
48
+ });
49
+ describe("Pour un cadres", function () {
50
+ test.each(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n age | seniorityRight | seniority | salary | expectedReferences\n ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", "\n "], ["\n age | seniorityRight | seniority | salary | expectedReferences\n ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", "\n ", " | ", " | ", " | ", " | ", "\n "])), 49, 1.01, 2, 3040, refCadres, 49, 1.01, 5, 3040, refCadres, 49, 1.01, 17, 3040, refCadres, 51, 1.01, 2, 3040, refCadres, 51, 1.01, 5, 3040, refCadres, 51, 1.01, 17, 3040, refCadres)("ancienneté: $seniority an, salaire de référence: $salary, age $age => $expectedReferences", function (_a) {
51
+ var seniority = _a.seniority, seniorityRight = _a.seniorityRight, salary = _a.salary, expectedReferences = _a.expectedReferences, age = _a.age;
52
+ engine.setSituation({
53
+ "contrat salarié . convention collective": "'IDCC1483'",
54
+ "contrat salarié . convention collective . habillement textiles commerce de detail . age": age,
55
+ "contrat salarié . convention collective . habillement textiles commerce de detail . catégorie professionnelle": "'Cadres'",
56
+ "contrat salarié . indemnité de licenciement . ancienneté conventionnelle en année": seniority,
57
+ "contrat salarié . indemnité de licenciement . ancienneté conventionnelle requise en année": seniorityRight,
58
+ "contrat salarié . indemnité de licenciement . salaire de référence conventionnel": salary,
59
+ }, "contrat salarié . indemnité de licenciement . résultat conventionnel");
60
+ var result = engine.getReferences("résultat conventionnel");
61
+ expect(result).toHaveLength(expectedReferences.length);
62
+ expect(result).toEqual(expect.arrayContaining(expectedReferences));
63
+ });
64
+ });
65
+ });
66
+ var templateObject_1, templateObject_2;
@@ -0,0 +1,108 @@
1
+ "use strict";
2
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
+ return cooked;
5
+ };
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ var salary_1 = require("../../salary");
8
+ describe("Calcul du salaire pour la CC 1483", function () {
9
+ var ReferenceSalary = new salary_1.ReferenceSalary1483();
10
+ var UN_SALAIRE = {
11
+ salaires: [{ month: "janvier", value: 2000 }],
12
+ salairesPendantPreavis: [],
13
+ };
14
+ var MULTIPLE_SALAIRES = {
15
+ salaires: [
16
+ { month: "janvier", value: 2000 },
17
+ { month: "février", value: 3000 },
18
+ { month: "mars", value: 2000 },
19
+ ],
20
+ salairesPendantPreavis: [],
21
+ };
22
+ var MULTIPLE_WITH_PRIME_SALAIRES = {
23
+ salaires: [
24
+ { month: "janvier", value: 2000 },
25
+ { month: "février", prime: 960, value: 3000 },
26
+ { month: "mars", value: 2000 },
27
+ ],
28
+ salairesPendantPreavis: [],
29
+ };
30
+ var ONE_SALAIRE_PREAVIS = {
31
+ salaires: [
32
+ { month: "janvier", value: 2000 },
33
+ { month: "février", value: 3000 },
34
+ { month: "mars", value: 2000 },
35
+ ],
36
+ salairesPendantPreavis: [{ month: "janvier", value: 3500 }],
37
+ };
38
+ var MULTIPLE_SALAIRE_PREAVIS = {
39
+ salaires: [
40
+ { month: "septembre", value: 1000 },
41
+ { month: "aout", value: 1000 },
42
+ { month: "juillet", value: 1000 },
43
+ { month: "juin", value: 1000 },
44
+ { month: "mai", value: 1000 },
45
+ { month: "avril", value: 1000 },
46
+ { month: "mars", value: 1000 },
47
+ { month: "février", value: 1000 },
48
+ { month: "janvier", value: 3600 },
49
+ ],
50
+ salairesPendantPreavis: [
51
+ { month: "décembre", value: 1000 },
52
+ { month: "novembre", value: 3500 },
53
+ { month: "octobre", value: 1000 },
54
+ ],
55
+ };
56
+ var MULTIPLE_WITH_PRIME_SALAIRE_PREAVIS = {
57
+ salaires: [
58
+ { month: "janvier", value: 2000 },
59
+ { month: "février", value: 5000 },
60
+ { month: "mars", value: 2000 },
61
+ ],
62
+ salairesPendantPreavis: [
63
+ { month: "janvier", prime: 960, value: 3500 },
64
+ { month: "février", value: 3000 },
65
+ { month: "mars", value: 2000 },
66
+ ],
67
+ };
68
+ var MULTIPLE_SALAIRE_PREAVIS_BUT_LAST_SALARY_HIGER = {
69
+ salaires: [
70
+ { month: "septembre", value: 5000 },
71
+ { month: "aout", value: 5000 },
72
+ { month: "juillet", value: 5000 },
73
+ { month: "juin", value: 5000 },
74
+ { month: "mai", value: 5000 },
75
+ { month: "avril", value: 5000 },
76
+ { month: "mars", value: 5000 },
77
+ { month: "février", value: 5000 },
78
+ { month: "janvier", value: 5000 },
79
+ ],
80
+ salairesPendantPreavis: [
81
+ { month: "décembre", value: 1000 },
82
+ { month: "novembre", value: 3500 },
83
+ { month: "octobre", value: 1000 },
84
+ ],
85
+ };
86
+ var DIFFERENT_SALAIRES_WITH_PRIMES = {
87
+ salaires: [
88
+ { month: "janvier", value: 3010 },
89
+ { month: "février", value: 2830 },
90
+ { month: "mars", value: 3017 },
91
+ { month: "avril", value: 3075 },
92
+ { month: "mai", value: 2966 },
93
+ { month: "juin", value: 3092 },
94
+ { month: "juillet", value: 2758 },
95
+ { month: "août", value: 3014 },
96
+ { month: "septembre", value: 2920 },
97
+ { month: "octobre", prime: 600, value: 3487 },
98
+ { month: "novembre", value: 2981 },
99
+ { month: "décembre", value: 2898 },
100
+ ],
101
+ salairesPendantPreavis: [],
102
+ };
103
+ test.each(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n salaires | expectedSalary\n ", " | ", "\n ", " | ", "\n ", " | ", "\n ", " | ", "\n ", " | ", "\n ", " | ", "\n ", " | ", "\n ", " | ", "\n "], ["\n salaires | expectedSalary\n ", " | ", "\n ", " | ", "\n ", " | ", "\n ", " | ", "\n ", " | ", "\n ", " | ", "\n ", " | ", "\n ", " | ", "\n "])), UN_SALAIRE, 2000, MULTIPLE_SALAIRES, 2333.3333333333335, MULTIPLE_WITH_PRIME_SALAIRES, 2573.3333333333335, ONE_SALAIRE_PREAVIS, 2833.3333333333335, MULTIPLE_SALAIRE_PREAVIS, 1833.3333333333333, MULTIPLE_WITH_PRIME_SALAIRE_PREAVIS, 3073.3333333333335, MULTIPLE_SALAIRE_PREAVIS_BUT_LAST_SALARY_HIGER, 5000, DIFFERENT_SALAIRES_WITH_PRIMES, 3272)("$# $expectedSalary €", function (_a) {
104
+ var salaires = _a.salaires, expectedSalary = _a.expectedSalary;
105
+ expect(ReferenceSalary.computeReferenceSalary(salaires)).toEqual(expectedSalary);
106
+ });
107
+ });
108
+ var templateObject_1;
@@ -0,0 +1,2 @@
1
+ export * from "./salary";
2
+ export * from "./seniority";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./salary"), exports);
18
+ __exportStar(require("./seniority"), exports);
@@ -0,0 +1,17 @@
1
+ import type { IReferenceSalary, ReferenceSalaryProps, SalaryPeriods, SupportedCcIndemniteLicenciement } from "../../common";
2
+ export type CC1483ReferenceSalaryProps = {
3
+ salaires: SalaryPeriods[];
4
+ salairesPendantPreavis: SalaryPeriods[];
5
+ };
6
+ export declare class ReferenceSalary1483 implements IReferenceSalary<SupportedCcIndemniteLicenciement.IDCC1483> {
7
+ /**
8
+ * Règle :
9
+ * - soit 1/12 * S
10
+ * S : total des salaires perçus lors des 12 derniers mois précédant le jour de l'envoi de la lettre de licenciement (brut)
11
+ *
12
+ * - soit 1/3 * S + (P/12) * 3
13
+ * S : total des salaires perçus lors des 3 derniers mois précédant la date d'expiration du préavis, effectué ou non (brut)
14
+ * P : prime(s) ou gratification(s) de caractère annuel ou exceptionnel versée(s) pendant cette période (prise en compte prorata temporis)
15
+ **/
16
+ computeReferenceSalary({ salaires, salairesPendantPreavis, }: ReferenceSalaryProps<SupportedCcIndemniteLicenciement.IDCC1483>): number;
17
+ }