@silexpert/core 1.1.252 → 1.1.254

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. package/dist/cjs/api/resources/BudgetInsight.d.ts +2 -1
  2. package/dist/cjs/api/resources/BudgetInsight.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/BudgetInsight.js +3 -0
  4. package/dist/cjs/api/resources/BudgetInsight.js.map +1 -1
  5. package/dist/cjs/api/resources/CalendarEvent.d.ts +1 -0
  6. package/dist/cjs/api/resources/CalendarEvent.d.ts.map +1 -1
  7. package/dist/cjs/api/resources/CalendarEvent.js +9 -0
  8. package/dist/cjs/api/resources/CalendarEvent.js.map +1 -1
  9. package/dist/cjs/types/Enum/BrandClementine.d.ts +3 -4
  10. package/dist/cjs/types/Enum/BrandClementine.d.ts.map +1 -1
  11. package/dist/cjs/types/Enum/BrandClementine.js +3 -337
  12. package/dist/cjs/types/Enum/BrandClementine.js.map +1 -1
  13. package/dist/cjs/types/Enum/BrandLegalstart.d.ts +2 -3
  14. package/dist/cjs/types/Enum/BrandLegalstart.d.ts.map +1 -1
  15. package/dist/cjs/types/Enum/BrandLegalstart.js +2 -106
  16. package/dist/cjs/types/Enum/BrandLegalstart.js.map +1 -1
  17. package/dist/cjs/types/Enum/BrandPourcentage.d.ts +6 -105
  18. package/dist/cjs/types/Enum/BrandPourcentage.d.ts.map +1 -1
  19. package/dist/cjs/types/Enum/BrandPourcentage.js +46 -617
  20. package/dist/cjs/types/Enum/BrandPourcentage.js.map +1 -1
  21. package/dist/cjs/types/Enum/SalesContractBrandClementine.d.ts +42 -0
  22. package/dist/cjs/types/Enum/SalesContractBrandClementine.d.ts.map +1 -0
  23. package/dist/cjs/types/Enum/SalesContractBrandClementine.js +339 -0
  24. package/dist/cjs/types/Enum/SalesContractBrandClementine.js.map +1 -0
  25. package/dist/cjs/types/Enum/SalesContractBrandLegalstart.d.ts +17 -0
  26. package/dist/cjs/types/Enum/SalesContractBrandLegalstart.d.ts.map +1 -0
  27. package/dist/cjs/types/Enum/SalesContractBrandLegalstart.js +110 -0
  28. package/dist/cjs/types/Enum/SalesContractBrandLegalstart.js.map +1 -0
  29. package/dist/cjs/types/Enum/SalesContractBrandPourcentage.d.ts +101 -0
  30. package/dist/cjs/types/Enum/SalesContractBrandPourcentage.d.ts.map +1 -0
  31. package/dist/cjs/types/Enum/SalesContractBrandPourcentage.js +488 -0
  32. package/dist/cjs/types/Enum/SalesContractBrandPourcentage.js.map +1 -0
  33. package/dist/cjs/types/Interface/api/bankAccount/Read.d.ts +1 -0
  34. package/dist/cjs/types/Interface/api/bankAccount/Read.d.ts.map +1 -1
  35. package/dist/cjs/types/Interface/api/bankAccount/Read.js.map +1 -1
  36. package/dist/cjs/types/Interface/api/budgetInsight/Delete.d.ts +6 -0
  37. package/dist/cjs/types/Interface/api/budgetInsight/Delete.d.ts.map +1 -0
  38. package/dist/cjs/types/Interface/api/budgetInsight/Delete.js +36 -0
  39. package/dist/cjs/types/Interface/api/budgetInsight/Delete.js.map +1 -0
  40. package/dist/cjs/types/Interface/api/notion/Read.d.ts +8 -0
  41. package/dist/cjs/types/Interface/api/notion/Read.d.ts.map +1 -0
  42. package/dist/cjs/types/Interface/api/notion/Read.js +3 -0
  43. package/dist/cjs/types/Interface/api/notion/Read.js.map +1 -0
  44. package/dist/cjs/types/index.d.ts +1 -0
  45. package/dist/cjs/types/index.d.ts.map +1 -1
  46. package/dist/cjs/types/index.js +1 -0
  47. package/dist/cjs/types/index.js.map +1 -1
  48. package/dist/cjs/utils/bankAccount.d.ts.map +1 -1
  49. package/dist/cjs/utils/bankAccount.js +4 -5
  50. package/dist/cjs/utils/bankAccount.js.map +1 -1
  51. package/dist/cjs/utils/email/templates/signature.js +1 -1
  52. package/dist/cjs/utils/email/templates/signature.js.map +1 -1
  53. package/dist/mjs/api/resources/BudgetInsight.d.ts +2 -1
  54. package/dist/mjs/api/resources/BudgetInsight.d.ts.map +1 -1
  55. package/dist/mjs/api/resources/BudgetInsight.js +3 -0
  56. package/dist/mjs/api/resources/BudgetInsight.js.map +1 -1
  57. package/dist/mjs/api/resources/CalendarEvent.d.ts +1 -0
  58. package/dist/mjs/api/resources/CalendarEvent.d.ts.map +1 -1
  59. package/dist/mjs/api/resources/CalendarEvent.js +9 -0
  60. package/dist/mjs/api/resources/CalendarEvent.js.map +1 -1
  61. package/dist/mjs/types/Enum/BrandClementine.d.ts +3 -4
  62. package/dist/mjs/types/Enum/BrandClementine.d.ts.map +1 -1
  63. package/dist/mjs/types/Enum/BrandClementine.js +3 -337
  64. package/dist/mjs/types/Enum/BrandClementine.js.map +1 -1
  65. package/dist/mjs/types/Enum/BrandLegalstart.d.ts +2 -3
  66. package/dist/mjs/types/Enum/BrandLegalstart.d.ts.map +1 -1
  67. package/dist/mjs/types/Enum/BrandLegalstart.js +2 -106
  68. package/dist/mjs/types/Enum/BrandLegalstart.js.map +1 -1
  69. package/dist/mjs/types/Enum/BrandPourcentage.d.ts +6 -105
  70. package/dist/mjs/types/Enum/BrandPourcentage.d.ts.map +1 -1
  71. package/dist/mjs/types/Enum/BrandPourcentage.js +46 -617
  72. package/dist/mjs/types/Enum/BrandPourcentage.js.map +1 -1
  73. package/dist/mjs/types/Enum/SalesContractBrandClementine.d.ts +42 -0
  74. package/dist/mjs/types/Enum/SalesContractBrandClementine.d.ts.map +1 -0
  75. package/dist/mjs/types/Enum/SalesContractBrandClementine.js +336 -0
  76. package/dist/mjs/types/Enum/SalesContractBrandClementine.js.map +1 -0
  77. package/dist/mjs/types/Enum/SalesContractBrandLegalstart.d.ts +17 -0
  78. package/dist/mjs/types/Enum/SalesContractBrandLegalstart.d.ts.map +1 -0
  79. package/dist/mjs/types/Enum/SalesContractBrandLegalstart.js +107 -0
  80. package/dist/mjs/types/Enum/SalesContractBrandLegalstart.js.map +1 -0
  81. package/dist/mjs/types/Enum/SalesContractBrandPourcentage.d.ts +101 -0
  82. package/dist/mjs/types/Enum/SalesContractBrandPourcentage.d.ts.map +1 -0
  83. package/dist/mjs/types/Enum/SalesContractBrandPourcentage.js +485 -0
  84. package/dist/mjs/types/Enum/SalesContractBrandPourcentage.js.map +1 -0
  85. package/dist/mjs/types/Interface/api/bankAccount/Read.d.ts +1 -0
  86. package/dist/mjs/types/Interface/api/bankAccount/Read.d.ts.map +1 -1
  87. package/dist/mjs/types/Interface/api/bankAccount/Read.js.map +1 -1
  88. package/dist/mjs/types/Interface/api/budgetInsight/Delete.d.ts +6 -0
  89. package/dist/mjs/types/Interface/api/budgetInsight/Delete.d.ts.map +1 -0
  90. package/dist/mjs/types/Interface/api/budgetInsight/Delete.js +35 -0
  91. package/dist/mjs/types/Interface/api/budgetInsight/Delete.js.map +1 -0
  92. package/dist/mjs/types/Interface/api/notion/Read.d.ts +8 -0
  93. package/dist/mjs/types/Interface/api/notion/Read.d.ts.map +1 -0
  94. package/dist/mjs/types/Interface/api/notion/Read.js +2 -0
  95. package/dist/mjs/types/Interface/api/notion/Read.js.map +1 -0
  96. package/dist/mjs/types/index.d.ts +1 -0
  97. package/dist/mjs/types/index.d.ts.map +1 -1
  98. package/dist/mjs/types/index.js +1 -0
  99. package/dist/mjs/types/index.js.map +1 -1
  100. package/dist/mjs/utils/bankAccount.d.ts.map +1 -1
  101. package/dist/mjs/utils/bankAccount.js +4 -5
  102. package/dist/mjs/utils/bankAccount.js.map +1 -1
  103. package/dist/mjs/utils/email/templates/signature.js +1 -1
  104. package/dist/mjs/utils/email/templates/signature.js.map +1 -1
  105. package/package.json +1 -1
  106. package/ts/api/resources/BudgetInsight.ts +5 -1
  107. package/ts/api/resources/CalendarEvent.ts +11 -0
  108. package/ts/types/Enum/BrandClementine.ts +3 -337
  109. package/ts/types/Enum/BrandLegalstart.ts +2 -106
  110. package/ts/types/Enum/BrandPourcentage.ts +47 -618
  111. package/ts/types/Enum/SalesContractBrandClementine.ts +337 -0
  112. package/ts/types/Enum/SalesContractBrandLegalstart.ts +107 -0
  113. package/ts/types/Enum/SalesContractBrandPourcentage.ts +487 -0
  114. package/ts/types/Interface/api/bankAccount/Read.ts +1 -0
  115. package/ts/types/Interface/api/budgetInsight/Delete.ts +19 -0
  116. package/ts/types/Interface/api/notion/Read.ts +7 -0
  117. package/ts/types/index.ts +1 -0
  118. package/ts/utils/bankAccount.ts +8 -6
  119. package/ts/utils/email/templates/signature.ts +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"signature.js","sourceRoot":"","sources":["../../../../../ts/utils/email/templates/signature.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,GAAG;;;;;;;;;GASb,CAAC;AAEJ,MAAM,cAAc,GAAG;;;;;;;;;;;;aAYV,CAAC;AAEd,MAAM,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;UAuBL,CAAC;AAEX,MAAM,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoGd,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,OAAO;;;;;;;EAOzC,cAAc;;;IAGZ,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAiGN,MAAM;;;;;;;;;SASD,CAAC","sourcesContent":["const newIban = `<% if (commercialName === 'Clementine' && isFacturation) { %>\n <p style=\"font-size: 15px; font-family: Arial; margin:0; padding:0px 0 4px; color:#6E6E71; margin-bottom: 10px; font-weight: bold;\">\n <span style=\"color: #A0A0A0\">Nos coordonnées bancaires </span>IBAN : <%= iban %> - BIC : <%= bic %>\n </p>\n <% }else if (commercialName === 'Pourcentage' && [5, 7].includes(idTypeBrand)) { %> \n <p style=\"font-size: 15px; font-family: Arial; margin:0; padding:0px 0 4px; color:#6E6E71; margin-bottom: 10px; font-weight: bold;\">\n <span style=\"color: #A0A0A0\">Attention changement de RIB </span>IBAN : <%= iban %> - BIC : <%= bic %>\n </p>\n<% } %>\n `;\n\nconst logoClementine = `<% if (commercialName === 'Clementine') { %><tr>\n<td\ncolspan=\"3\"\nclass=\"logo\"\nstyle=\"\"\nwidth=\"950\">\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/logo_2022.png\"\n alt=\"Logo\"\n height=\"32\"\n style=\"padding-bottom: 10px;\">\n</td>\n</tr><% } %>`;\n\nconst avatar = `<% if (!forceRole && user?.avatar?.token) { %>\n <td\n class=\"avatar\"\n style=\"text-align:center; padding: 20px 0 20px 20px; position: relative;\"\n width=\"100\">\n <% if(commercialName === 'Clementine') { %>\n <p style=\"padding: 20px;background-image: url('https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_quotes.png');background-size: 26%;background-position: 81% -3%;background-repeat: no-repeat;\">\n <img\n style=\"max-height: 90px;max-width: 90px; border-radius: 100%; margin-top: 10px\"\n alt=\"Avatar\"\n src=\"<%= hostS3 %>users/<%= user.id %>/<%= user.avatar.token %>\"\n />\n </p>\n <% } else { %>\n <p style=\"padding: 20px;\">\n <img\n style=\"max-height: 90px;max-width: 90px; border-radius: 100%; margin-top: 10px\"\n alt=\"Avatar\"\n src=\"<%= hostS3 %>users/<%= user.id %>/<%= user.avatar.token %>\"\n />\n </p>\n <% } %>\n </td>\n <% } %>`;\n\nconst footer = `<% if(commercialName === 'Clementine') { %>\n <tr>\n <td\n style=\"clear:both; padding-top: 15px; font-size:17px; line-height:14px; color:#ADADAD; text-align: justify; font-family: Arial;\"\n colspan=\"4\">\n <table style=\"width: 100%\" width=\"100%\">\n <tr>\n <td colspan=\"7\" style=\"padding-bottom: 12px\">\n <span style=\"text-align: left; text-decoration: none; color: #A0A1A6; white-space: nowrap; float: left;\">\n Une question ? Découvrez votre <a href=\"https://www.clementine.fr/aide/\" style=\"color: #FF7E3C\">centre d'aide</a>\n </span>\n <span style=\"text-align: right; text-decoration: none; color: #A0A1A6; white-space: nowrap; float: right;\">\n Jusqu’à 500€ avec notre <a href=\"https://www.clementine.fr/parrainage/?utm_source=signature&utm_medium=email&utm_campaign=signature&utm_content=cta\" style=\"color: #FF7E3C\">programme de parrainage</a>\n </span>\n </td>\n </tr>\n <tr>\n <td style=\"padding:0 10px 0 0\" width=\"120\">\n <a href=\"https://app.clementine.fr/\" target=\"_blank\" style=\"text-decoration: none; color: #6E6E71; white-space: nowrap;\">\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_connect2.png\"\n style=\"vertical-align: text-top;\"\n width=\"20\"\n alt=\"Connexion\"> Connexion\n </a>\n </td>\n <td style=\"padding:0 10px 0 0\" width=\"170\">\n <!-- <a href=\"mailto:<%= supportMail %>\" target=\"_blank\" style=\"text-decoration: none; color: #6E6E71; white-space: nowrap;\">\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_support2.png\"\n style=\"vertical-align: text-top;\"\n width=\"17\"\n alt=\"Support technique\"> Support technique\n </a>-->\n </td>\n <td style=\"text-align: right; vertical-align: middle; color: #6E6E71\" width=\"430\">\n <!--<span>Télécharger l'app</span>\n <a href=\"https://apps.apple.com/fr/app/clementine/id1119493780\" target=\"_blank\" style=\"vertical-align: middle; margin-left: 10px\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_appstore.png\"\n alt=\"App Store\"\n style=\"width: 20px\"></a>\n <a href=\"https://play.google.com/store/apps/details?id=com.clementine.myclementine&hl=fr\" target=\"_blank\" style=\"vertical-align: middle; margin-left: 10px\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_playstore.png\"\n alt=\"Play Store\"\n style=\"width: 20px\"></a>-->\n </td>\n <td style=\"padding:0 5px 0 0\" width=\"24\">\n <a href=\"https://www.youtube.com/channel/UCVnCpcLdRwuYBLvAphHsvig/\" target=\"_blank\" style=\"vertical-align: middle;\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_youtube.png\"\n alt=\"YouTube\"\n style=\"width: 20px\"></a>\n </td>\n <td style=\"padding:0 5px 0 0\" width=\"24\">\n <a href=\"https://www.linkedin.com/company/compta-cl%C3%A9mentine/\" target=\"_blank\" style=\"vertical-align: middle;\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_linkedin.png\"\n alt=\"LinkedIn\"\n style=\"width: 20px\"></a>\n </td>\n <td style=\"padding:0 5px 0 0\" width=\"24\">\n <a href=\"https://www.instagram.com/comptaclementine/\" target=\"_blank\" style=\"vertical-align: middle;\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_instagram.png\"\n alt=\"Instagram\"\n style=\"width: 20px\"></a>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n <% } else if(commercialName === 'Pourcentage') { %>\n <tr>\n <td\n style=\"clear:both; padding-top: 15px; font-size:17px; line-height:14px; color:#ADADAD; text-align: justify; font-family: Arial;\"\n colspan=\"4\">\n <table style=\"width: 100%\" width=\"100%\">\n <tr>\n <td style=\"padding:0 10px 0 0\" width=\"120\">\n <a href=\"https://app.pourcentage.fr/\" target=\"_blank\" style=\"text-decoration: none; color: #6E6E71; white-space: nowrap;\">\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_connect2.png\"\n style=\"vertical-align: text-top;\"\n width=\"20\"\n alt=\"Connexion\"> Connexion\n </a>\n </td>\n <td style=\"text-align: right; vertical-align: middle; color: #6E6E71\" width=\"430\">\n <!-- <span>Télécharger l'app</span>\n <a href=\"https://apps.apple.com/fr/app/pourcentage-fr/id1631156043\" target=\"_blank\" style=\"vertical-align: middle; margin-left: 10px\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_appstore.png\"\n alt=\"App Store\"\n style=\"width: 20px\"></a>\n <a href=\"https://play.google.com/store/apps/details?id=com.clementine.pourcentage\" target=\"_blank\" style=\"vertical-align: middle; margin-left: 10px\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_playstore.png\"\n alt=\"Play Store\"\n style=\"width: 20px\"></a> -->\n </td>\n </tr>\n </table>\n </td>\n </tr>\n <% } %>\n`;\n\nexport const signatureTemplate = `${newIban}<table\nborder=\"0\"\ncellpadding=\"0\"\ncellspacing=\"0\"\nwidth=\"950\"\nclass=\"signatureClementine\">\n\n${logoClementine}\n\n<tr style=\"background: #F4F8FB\">\n ${avatar}\n <td\n class=\"infos\"\n style=\" padding: 20px 0 20px 30px;font-size: 17px; font-family: Arial; color:#000\"\n width=\"390\"\n colspan=\"2\">\n <table\n border=\"0\"\n cellpadding=\"0\"\n cellspacing=\"0\"\n width=\"390\">\n <tr>\n <td width=\"390\">\n <p style=\"font-size: 17px; margin:0px 0; padding:0\">\n <strong><span style=\"color:<%= primaryColor %>; font-weight: bold;\"><%= user?.firstname ?? '' %> <%= user?.lastname ?? '' %></span></strong>\n </p>\n\n <% if(roleSignature) { %>\n <p style=\"font-size: 17px; margin:0px 0; padding:0\">\n <span style=\"color: #6E6E71; font-weight: bold;\"><%= roleSignature %></span>\n </p>\n <% } %>\n </td>\n </tr>\n </table>\n <p style=\"margin:16px 0; color:#6E6E71; border-top: 2px solid #6E6E71; width: 100px; opacity: 0.2\"><!-- --></p>\n <p style=\"margin:0px 0; padding:0 0 4px; color:#6E6E71;\">\n Standard : <%- standardPhoneSignature %><br/>\n <% if(phoneSignature && phoneSignature !== standardPhoneSignature) { %>\n Ligne directe : <%- phoneSignature %><br/>\n <% } %>\n Nos horaires : <%= horaires %>\n\n <% if(['Pourcentage ECE - AMEX', 'Pourcentage ECF'].includes(brandName)) { %>\n <br/>Adresse : <%- brandPostalAddress %> - <%- brandCity %>\n <% } %>\n </p>\n\n </td>\n \n <td class=\"infos\" style=\"padding: 20px 20px 20px 0px; font-size: 17px; font-family: Arial; color:#000; <%= !user.calendlyUrl ? 'vertical-align: top;' : '' %>\"\n width=\"370\">\n <% if(['Clementine', 'Pourcentage', 'Comptalib'].includes(commercialName)) { %>\n <table\n border=\"0\"\n cellpadding=\"0\"\n cellspacing=\"0\"\n width=\"350\">\n <tr>\n <td width=\"230\">\n <!-- image Télécharger l'app mobile -->\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_download_app<%= commercialName === 'Pourcentage' ? '_pourcentage' : '' %><%= commercialName === 'Comptalib' ? '_comptalib' : '' %>.png\"\n alt=\"Télécharger l'application mobile\"\n style=\"width: 152px; float:right\">\n \n <p style=\"float:right; margin-right: 45px\">\n <span style=\"margin:0; padding:0 0 4px; color:#6E6E71;\">Disponible sur<br/></span>\n <a href=\"https://apps.apple.com/fr/app/clementine/id1119493780\" target=\"_blank\" style=\"vertical-align: middle;\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_appstore.png\"\n alt=\"App Store\"\n style=\"width: 20px\"></a>\n <a href=\"https://play.google.com/store/apps/details?id=com.clementine.myclementine&hl=fr\" target=\"_blank\" style=\"vertical-align: middle; margin-left: 10px\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_playstore.png\"\n alt=\"Play Store\"\n style=\"width: 20px\"></a>\n </p>\n </td>\n <td width=\"120\">\n <!-- QR Code -->\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_qrcode<%= commercialName === 'Pourcentage' ? '_pourcentage' : '' %><%= commercialName === 'Comptalib' ? '_comptalib' : '' %>.png\"\n style=\"width:128px\"\n alt=\"Prenez rendez-vous ici !\">\n </td>\n </tr>\n <tr>\n <td colspan=\"2\">\n <p style=\"margin:0; padding:0px 0 4px; color:#6E6E71; text-align: right\">\n <a href=\"https://www.smileyourpla.net/\" style=\"display: inline-block; color:#6E6E71;\" target=\"_blank\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_smileYourPlanet.png\"\n alt=\"Initiative Smile your planet\" height=\"36\"></a>\n <% if(user.calendlyUrl && !isDataOfficer) { %>\n <a href=\"<%= user.calendlyUrl %>\" style=\"display: inline-block; color:#6E6E71;\" target=\"_blank\">\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_rdv_tel<%= commercialName === 'Pourcentage' ? '_pourcentage' : '' %>.png\"\n alt=\"Demande de rdv téléphonique\">\n </a>\n <% } %>\n </p>\n </td>\n </tr>\n </table>\n <% } %>\n </td>\n </tr>\n \n ${footer}\n\n <tr>\n <td\n style=\"clear:both; padding-top: 20px; font-size:14px; line-height:18px; color:#ADADAD; text-align: justify; font-family: Arial;\"\n colspan=\"4\">\n Les informations contenues dans ce courrier électronique et ses pièces jointes sont confidentielles et couvertes par le secret professionnel. Si vous n'êtes pas le(s) destinataire(s) ou avez reçu ce courrier électronique par erreur, merci de bien vouloir supprimer l'email et d'en informer l'expéditeur dès que possible. Ce courrier électronique ne peut pas être divulgué, utilisé ou copié par quelqu'un d'autre que le(s) destinataire(s).\n </td>\n</tr>\n</table>`;"]}
1
+ {"version":3,"file":"signature.js","sourceRoot":"","sources":["../../../../../ts/utils/email/templates/signature.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,GAAG;;;;;;;;;GASb,CAAC;AAEJ,MAAM,cAAc,GAAG;;;;;;;;;;;;aAYV,CAAC;AAEd,MAAM,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;UAuBL,CAAC;AAEX,MAAM,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoGd,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,OAAO;;;;;;;EAOzC,cAAc;;;IAGZ,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAiGN,MAAM;;;;;;;;;SASD,CAAC","sourcesContent":["const newIban = `<% if (commercialName === 'Clementine' && isFacturation) { %>\n <p style=\"font-size: 15px; font-family: Arial; margin:0; padding:0px 0 4px; color:#6E6E71; margin-bottom: 10px; font-weight: bold;\">\n <span style=\"color: #A0A0A0\">Nos coordonnées bancaires </span>IBAN : <%= iban %> - BIC : <%= bic %>\n </p>\n <% }else if (commercialName === 'Pourcentage' && [5, 7].includes(idTypeBrand)) { %> \n <p style=\"font-size: 15px; font-family: Arial; margin:0; padding:0px 0 4px; color:#6E6E71; margin-bottom: 10px; font-weight: bold;\">\n <span style=\"color: #A0A0A0\">Attention changement de RIB </span>IBAN : <%= iban %> - BIC : <%= bic %>\n </p>\n<% } %>\n `;\n\nconst logoClementine = `<% if (commercialName === 'Clementine') { %><tr>\n<td\ncolspan=\"3\"\nclass=\"logo\"\nstyle=\"\"\nwidth=\"950\">\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/logo_2022.png\"\n alt=\"Logo\"\n height=\"32\"\n style=\"padding-bottom: 10px;\">\n</td>\n</tr><% } %>`;\n\nconst avatar = `<% if (!forceRole && user?.avatar?.token) { %>\n <td\n class=\"avatar\"\n style=\"text-align:center; padding: 20px 0 20px 20px; position: relative;\"\n width=\"100\">\n <% if(commercialName === 'Clementine') { %>\n <p style=\"padding: 20px;background-image: url('https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_quotes.png');background-size: 26%;background-position: 81% -3%;background-repeat: no-repeat;\">\n <img\n style=\"max-height: 90px;max-width: 90px; border-radius: 100%; margin-top: 10px\"\n alt=\"Avatar\"\n src=\"<%= hostS3 %>users/<%= user.id %>/<%= user.avatar.token %>\"\n />\n </p>\n <% } else { %>\n <p style=\"padding: 20px;\">\n <img\n style=\"max-height: 90px;max-width: 90px; border-radius: 100%; margin-top: 10px\"\n alt=\"Avatar\"\n src=\"<%= hostS3 %>users/<%= user.id %>/<%= user.avatar.token %>\"\n />\n </p>\n <% } %>\n </td>\n <% } %>`;\n\nconst footer = `<% if(commercialName === 'Clementine') { %>\n <tr>\n <td\n style=\"clear:both; padding-top: 15px; font-size:17px; line-height:14px; color:#ADADAD; text-align: justify; font-family: Arial;\"\n colspan=\"4\">\n <table style=\"width: 100%\" width=\"100%\">\n <tr>\n <td colspan=\"7\" style=\"padding-bottom: 12px\">\n <span style=\"text-align: left; text-decoration: none; color: #A0A1A6; white-space: nowrap; float: left;\">\n Une question ? Découvrez votre <a href=\"https://www.clementine.fr/aide/\" style=\"color: #FF7E3C\">centre d'aide</a>\n </span>\n <span style=\"text-align: right; text-decoration: none; color: #A0A1A6; white-space: nowrap; float: right;\">\n Jusqu’à 500€ avec notre <a href=\"https://www.clementine.fr/parrainage/?utm_source=signature&utm_medium=email&utm_campaign=signature&utm_content=cta\" style=\"color: #FF7E3C\">programme de parrainage</a>\n </span>\n </td>\n </tr>\n <tr>\n <td style=\"padding:0 10px 0 0\" width=\"120\">\n <a href=\"https://app.clementine.fr/\" target=\"_blank\" style=\"text-decoration: none; color: #6E6E71; white-space: nowrap;\">\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_connect2.png\"\n style=\"vertical-align: text-top;\"\n width=\"20\"\n alt=\"Connexion\"> Connexion\n </a>\n </td>\n <td style=\"padding:0 10px 0 0\" width=\"170\">\n <!-- <a href=\"mailto:<%= supportMail %>\" target=\"_blank\" style=\"text-decoration: none; color: #6E6E71; white-space: nowrap;\">\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_support2.png\"\n style=\"vertical-align: text-top;\"\n width=\"17\"\n alt=\"Support technique\"> Support technique\n </a>-->\n </td>\n <td style=\"text-align: right; vertical-align: middle; color: #6E6E71\" width=\"430\">\n <!--<span>Télécharger l'app</span>\n <a href=\"https://apps.apple.com/fr/app/clementine/id1119493780\" target=\"_blank\" style=\"vertical-align: middle; margin-left: 10px\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_appstore.png\"\n alt=\"App Store\"\n style=\"width: 20px\"></a>\n <a href=\"https://play.google.com/store/apps/details?id=com.clementine.myclementine&hl=fr\" target=\"_blank\" style=\"vertical-align: middle; margin-left: 10px\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_playstore.png\"\n alt=\"Play Store\"\n style=\"width: 20px\"></a>-->\n </td>\n <td style=\"padding:0 5px 0 0\" width=\"24\">\n <a href=\"https://www.youtube.com/channel/UCVnCpcLdRwuYBLvAphHsvig/\" target=\"_blank\" style=\"vertical-align: middle;\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_youtube.png\"\n alt=\"YouTube\"\n style=\"width: 20px\"></a>\n </td>\n <td style=\"padding:0 5px 0 0\" width=\"24\">\n <a href=\"https://www.linkedin.com/company/compta-cl%C3%A9mentine/\" target=\"_blank\" style=\"vertical-align: middle;\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_linkedin.png\"\n alt=\"LinkedIn\"\n style=\"width: 20px\"></a>\n </td>\n <td style=\"padding:0 5px 0 0\" width=\"24\">\n <a href=\"https://www.instagram.com/comptaclementine/\" target=\"_blank\" style=\"vertical-align: middle;\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_instagram.png\"\n alt=\"Instagram\"\n style=\"width: 20px\"></a>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n <% } else if(commercialName === 'Pourcentage') { %>\n <tr>\n <td\n style=\"clear:both; padding-top: 15px; font-size:17px; line-height:14px; color:#ADADAD; text-align: justify; font-family: Arial;\"\n colspan=\"4\">\n <table style=\"width: 100%\" width=\"100%\">\n <tr>\n <td style=\"padding:0 10px 0 0\" width=\"120\">\n <a href=\"https://app.pourcentage.fr/\" target=\"_blank\" style=\"text-decoration: none; color: #6E6E71; white-space: nowrap;\">\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_connect2.png\"\n style=\"vertical-align: text-top;\"\n width=\"20\"\n alt=\"Connexion\"> Connexion\n </a>\n </td>\n <td style=\"text-align: right; vertical-align: middle; color: #6E6E71\" width=\"430\">\n <!-- <span>Télécharger l'app</span>\n <a href=\"https://apps.apple.com/fr/app/pourcentage-fr/id1631156043\" target=\"_blank\" style=\"vertical-align: middle; margin-left: 10px\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_appstore.png\"\n alt=\"App Store\"\n style=\"width: 20px\"></a>\n <a href=\"https://play.google.com/store/apps/details?id=com.clementine.pourcentage\" target=\"_blank\" style=\"vertical-align: middle; margin-left: 10px\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_playstore.png\"\n alt=\"Play Store\"\n style=\"width: 20px\"></a> -->\n </td>\n </tr>\n </table>\n </td>\n </tr>\n <% } %>\n`;\n\nexport const signatureTemplate = `${newIban}<table\nborder=\"0\"\ncellpadding=\"0\"\ncellspacing=\"0\"\nwidth=\"950\"\nclass=\"signatureClementine\">\n\n${logoClementine}\n\n<tr style=\"background: #F4F8FB\">\n ${avatar}\n <td\n class=\"infos\"\n style=\" padding: 20px 0 20px 30px;font-size: 17px; font-family: Arial; color:#000\"\n width=\"390\"\n colspan=\"2\">\n <table\n border=\"0\"\n cellpadding=\"0\"\n cellspacing=\"0\"\n width=\"390\">\n <tr>\n <td width=\"390\">\n <p style=\"font-size: 17px; margin:0px 0; padding:0\">\n <strong><span style=\"color:<%= primaryColor %>; font-weight: bold;\"><%= user?.firstname ?? '' %> <%= user?.lastname ?? '' %></span></strong>\n </p>\n\n <% if(roleSignature) { %>\n <p style=\"font-size: 17px; margin:0px 0; padding:0\">\n <span style=\"color: #6E6E71; font-weight: bold;\"><%= roleSignature %></span>\n </p>\n <% } %>\n </td>\n </tr>\n </table>\n <p style=\"margin:16px 0; color:#6E6E71; border-top: 2px solid #6E6E71; width: 100px; opacity: 0.2\"><!-- --></p>\n <p style=\"margin:0px 0; padding:0 0 4px; color:#6E6E71;\">\n Standard : <%- standardPhoneSignature %><br/>\n <% if(phoneSignature && phoneSignature !== standardPhoneSignature) { %>\n Ligne directe : <%- phoneSignature %><br/>\n <% } %>\n Nos horaires : <%= horaires %>\n\n <% if(['Pourcentage ECE - AMEX', 'Pourcentage ECF'].includes(brandName)) { %>\n <br/>Adresse : 11, Boulevard Victor Hugo - Nice\n <% } %>\n </p>\n\n </td>\n \n <td class=\"infos\" style=\"padding: 20px 20px 20px 0px; font-size: 17px; font-family: Arial; color:#000; <%= !user.calendlyUrl ? 'vertical-align: top;' : '' %>\"\n width=\"370\">\n <% if(['Clementine', 'Pourcentage', 'Comptalib'].includes(commercialName)) { %>\n <table\n border=\"0\"\n cellpadding=\"0\"\n cellspacing=\"0\"\n width=\"350\">\n <tr>\n <td width=\"230\">\n <!-- image Télécharger l'app mobile -->\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_download_app<%= commercialName === 'Pourcentage' ? '_pourcentage' : '' %><%= commercialName === 'Comptalib' ? '_comptalib' : '' %>.png\"\n alt=\"Télécharger l'application mobile\"\n style=\"width: 152px; float:right\">\n \n <p style=\"float:right; margin-right: 45px\">\n <span style=\"margin:0; padding:0 0 4px; color:#6E6E71;\">Disponible sur<br/></span>\n <a href=\"https://apps.apple.com/fr/app/clementine/id1119493780\" target=\"_blank\" style=\"vertical-align: middle;\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_appstore.png\"\n alt=\"App Store\"\n style=\"width: 20px\"></a>\n <a href=\"https://play.google.com/store/apps/details?id=com.clementine.myclementine&hl=fr\" target=\"_blank\" style=\"vertical-align: middle; margin-left: 10px\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_playstore.png\"\n alt=\"Play Store\"\n style=\"width: 20px\"></a>\n </p>\n </td>\n <td width=\"120\">\n <!-- QR Code -->\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_qrcode<%= commercialName === 'Pourcentage' ? '_pourcentage' : '' %><%= commercialName === 'Comptalib' ? '_comptalib' : '' %>.png\"\n style=\"width:128px\"\n alt=\"Prenez rendez-vous ici !\">\n </td>\n </tr>\n <tr>\n <td colspan=\"2\">\n <p style=\"margin:0; padding:0px 0 4px; color:#6E6E71; text-align: right\">\n <a href=\"https://www.smileyourpla.net/\" style=\"display: inline-block; color:#6E6E71;\" target=\"_blank\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_smileYourPlanet.png\"\n alt=\"Initiative Smile your planet\" height=\"36\"></a>\n <% if(user.calendlyUrl && !isDataOfficer) { %>\n <a href=\"<%= user.calendlyUrl %>\" style=\"display: inline-block; color:#6E6E71;\" target=\"_blank\">\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_rdv_tel<%= commercialName === 'Pourcentage' ? '_pourcentage' : '' %>.png\"\n alt=\"Demande de rdv téléphonique\">\n </a>\n <% } %>\n </p>\n </td>\n </tr>\n </table>\n <% } %>\n </td>\n </tr>\n \n ${footer}\n\n <tr>\n <td\n style=\"clear:both; padding-top: 20px; font-size:14px; line-height:18px; color:#ADADAD; text-align: justify; font-family: Arial;\"\n colspan=\"4\">\n Les informations contenues dans ce courrier électronique et ses pièces jointes sont confidentielles et couvertes par le secret professionnel. Si vous n'êtes pas le(s) destinataire(s) ou avez reçu ce courrier électronique par erreur, merci de bien vouloir supprimer l'email et d'en informer l'expéditeur dès que possible. Ce courrier électronique ne peut pas être divulgué, utilisé ou copié par quelqu'un d'autre que le(s) destinataire(s).\n </td>\n</tr>\n</table>`;"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "1.1.252",
3
+ "version": "1.1.254",
4
4
  "description": "Silex Core perform HTTP Request and object binding. Silex core helps developers to retrieve and return formatted object",
5
5
  "homepage": "https://gitlab.compta-clementine.fr/dev/silex-api",
6
6
  "main": "dist/cjs/index.js",
@@ -1,5 +1,5 @@
1
1
  import { Resource } from '../Resource';
2
- import { CreateOrUpdateAccessToken, IAccessToken, ReadTemporaryCode, ReadUserConnection } from '../../types';
2
+ import { CreateOrUpdateAccessToken, DeleteBudgetInsightConnection, IAccessToken, ReadTemporaryCode, ReadUserConnection } from '../../types';
3
3
 
4
4
  export class BudgetInsight extends Resource {
5
5
  getTokens(): Promise<IAccessToken | null> {
@@ -21,4 +21,8 @@ export class BudgetInsight extends Resource {
21
21
  getAllConnections(): Promise<ReadUserConnection[]> {
22
22
  return this.axios.$get('/connectors/budget-insight/connections');
23
23
  }
24
+
25
+ deleteConnection(payload: DeleteBudgetInsightConnection): Promise<true> {
26
+ return this.axios.$delete('/connectors/budget-insight/connections', { params: payload });
27
+ }
24
28
  }
@@ -29,6 +29,17 @@ export class CalendarEvent extends Resource {
29
29
  return this.axios.$get('/calendar-events/calculate-realtime-event', { params });
30
30
  }
31
31
 
32
+ public exportCalendarEventCalendly(params: GetAllCalendarEvent): Promise<void> {
33
+ return this.axios.$get('/calendar-events/calendly', {
34
+ responseType: 'arraybuffer',
35
+ headers: {
36
+ Accept: 'application/csv',
37
+ },
38
+ params,
39
+ });
40
+
41
+ }
42
+
32
43
  update(id: number, payload: UpdateCalendarEvent): Promise<ICalendarEvent> {
33
44
  return this.axios.$put(`/calendar-events/${id}`, payload);
34
45
  }
@@ -1,4 +1,4 @@
1
- import { PrestationType, allPrestationsWithBrochure, PrestationDetail } from './PrestationType';
1
+ import { SalesContractClementine, SalesContractKlems } from './SalesContractBrandClementine';
2
2
 
3
3
  export const BrandClementine = [
4
4
  {
@@ -117,192 +117,7 @@ export const BrandClementine = [
117
117
  name: 'Télétravail',
118
118
  },
119
119
  },
120
- salesContractConfig: [
121
- // pour les pages statiques
122
- {
123
- label: 'Page d\'introduction',
124
- name: 'page_intro',
125
- needBgImage: true,
126
- versionable: false,
127
- idPrestationType: allPrestationsWithBrochure,
128
- },
129
- {
130
- label: 'Page chiffres',
131
- name: 'page_numbers',
132
- needBgImage: true,
133
- versionable: false,
134
- idPrestationType: allPrestationsWithBrochure,
135
- },
136
- {
137
- label: 'Page simplifié',
138
- name: 'page_simplified',
139
- needBgImage: true,
140
- versionable: false,
141
- idPrestationType: allPrestationsWithBrochure,
142
- },
143
- {
144
- label: 'Détail de la lettre de mission',
145
- name: 'page_detail_ldm',
146
- needBgImage: false,
147
- versionable: false,
148
- idPrestationType: Object.values(PrestationDetail).filter(p => !p.isBack && !p.hidden && allPrestationsWithBrochure.includes(p.id!)).map(({ id }) => id), // Prestations non express
149
- },
150
- {
151
- label: 'Détail de la lettre de mission (express)',
152
- name: 'page_detail_ldm_back',
153
- needBgImage: false,
154
- versionable: false,
155
- idPrestationType: Object.values(PrestationDetail).filter(p => p.isBack && !p.hidden && allPrestationsWithBrochure.includes(p.id!)).map(({ id }) => id), // Prestations express
156
- },
157
- // pour les pages dynamiques
158
- {
159
- label: 'Compta Pro',
160
- name: 'bloc_compta_pro',
161
- needBgImage: false,
162
- versionable: true,
163
- idPrestationType: [PrestationType.COMPTA_PRO, PrestationType.COMPTA_PRO_EXPRESS],
164
- keyName: 'isWithApplicationFees',
165
- },
166
- {
167
- label: 'Compta Entreprise',
168
- name: 'bloc_compta_entreprise',
169
- needBgImage: false,
170
- versionable: true,
171
- keyName: 'isWithApplicationFees',
172
- idPrestationType: [PrestationType.COMPTA_ENTREPRISE, PrestationType.COMPTA_ENTREPRISE_EXPRESS, PrestationType.COMPTA_STARTER_ENTREPRISE],
173
- condition: (turnover: number): boolean => turnover < 900000,
174
- },
175
- {
176
- label: 'Compta Entreprise sur mesure',
177
- name: 'bloc_compta_entreprise_sm',
178
- needBgImage: false,
179
- versionable: true,
180
- keyName: 'isWithApplicationFees',
181
- idPrestationType: [PrestationType.COMPTA_ENTREPRISE, PrestationType.COMPTA_ENTREPRISE_EXPRESS, PrestationType.COMPTA_STARTER_ENTREPRISE],
182
- condition: (turnover: number): boolean => turnover >= 900000,
183
- },
184
- {
185
- label: 'Compta Micro',
186
- name: 'bloc_compta_micro',
187
- needBgImage: false,
188
- versionable: true,
189
- idPrestationType: [PrestationType.COMPTA_MICRO, PrestationType.COMPTA_MICRO_EXPRESS],
190
- keyName: 'isWithApplicationFees',
191
- },
192
- {
193
- label: 'Compta SCI',
194
- name: 'bloc_compta_sci',
195
- needBgImage: false,
196
- versionable: true,
197
- idPrestationType: [PrestationType.COMPTA_SCI, PrestationType.COMPTA_SCI_EXPRESS],
198
- keyName: 'isWithApplicationFees',
199
- },
200
- {
201
- label: 'Forfait social',
202
- name: 'bloc_social',
203
- needBgImage: false,
204
- versionable: true,
205
- idPrestationType: allPrestationsWithBrochure.filter(p => p !== PrestationType.BILAN_PREVISIONNEL),
206
- keyName: 'idPrestationSocial',
207
- },
208
- {
209
- label: 'Forfait création société',
210
- name: 'bloc_creation',
211
- idPrestationType: allPrestationsWithBrochure.filter(p => p !== PrestationType.COMPTA_MICRO_EXPRESS && p !== PrestationType.COMPTA_MICRO && p !== PrestationType.BILAN_PREVISIONNEL),
212
- needBgImage: false,
213
- versionable: true,
214
- keyName: 'idPrestationCreation',
215
- },
216
- {
217
- label: 'Forfait création société (Création d\'entreprise gratuite)',
218
- name: 'bloc_creation_free',
219
- idPrestationType: [PrestationType.COMPTA_MICRO, PrestationType.COMPTA_MICRO_EXPRESS],
220
- needBgImage: false,
221
- versionable: true,
222
- keyName: 'idPrestationCreation',
223
- },
224
- {
225
- label: 'Forfait création Entreprise + accompagnement comptable',
226
- name: 'bloc_creation_enterprise_accompagnement',
227
- idPrestationType: [PrestationType.CREATION_SOCIETE],
228
- needBgImage: false,
229
- versionable: true,
230
- },
231
- {
232
- label: 'Forfait création Entreprise + bilan prévisionnel',
233
- name: 'bloc_creation_enterprise_bilan_previsionnel',
234
- idPrestationType: [],
235
- needBgImage: false,
236
- versionable: true,
237
- },
238
- {
239
- label: 'Forfait approbation des comptes annuels',
240
- name: 'bloc_annual_accounts',
241
- needBgImage: false,
242
- idPrestationType: allPrestationsWithBrochure.filter(p => p !== PrestationType.BILAN_PREVISIONNEL),
243
- versionable: true,
244
- keyName: 'idPrestationJuridique',
245
- },
246
- {
247
- label: 'Prise en charge de votre déclaration d\'impôts sur le revenu',
248
- name: 'bloc_tax_return',
249
- needBgImage: false,
250
- idPrestationType: [],
251
- versionable: true,
252
- keyName: 'idPrestationDeclarationIR',
253
- },
254
- {
255
- label: 'Accompagnement contrôle fiscal',
256
- name: 'bloc_tax_audit',
257
- needBgImage: false,
258
- idPrestationType: allPrestationsWithBrochure.filter(p => p !== PrestationType.BILAN_PREVISIONNEL),
259
- versionable: true,
260
- keyName: 'idPrestationControleFiscal',
261
- },
262
- {
263
- label: 'Bilan Prévisionnel',
264
- name: 'bloc_bilan_previsionnel',
265
- needBgImage: false,
266
- idPrestationType: [PrestationType.CREATION_SOCIETE, PrestationType.BILAN_PREVISIONNEL],
267
- versionable: true,
268
- keyName: 'prestationOptions',
269
- },
270
- {
271
- label: 'Signature',
272
- name: 'bloc_sign',
273
- needBgImage: false,
274
- idPrestationType: allPrestationsWithBrochure,
275
- versionable: false,
276
- },
277
- {
278
- label: 'Conditions Générals de Vente (CGV) 1/2',
279
- name: 'bloc_cgv_first',
280
- needBgImage: false,
281
- idPrestationType: allPrestationsWithBrochure,
282
- versionable: false,
283
- },
284
- {
285
- label: 'Conditions Générals de Vente (CGV) 2/2',
286
- name: 'bloc_cgv_second',
287
- needBgImage: false,
288
- idPrestationType: allPrestationsWithBrochure,
289
- versionable: false,
290
- },
291
- {
292
- label: 'Mandat de prélèvement SEPA',
293
- name: 'bloc_sepa',
294
- needBgImage: false,
295
- idPrestationType: allPrestationsWithBrochure,
296
- versionable: false,
297
- },
298
- {
299
- label: 'Pièces à nous envoyer',
300
- name: 'bloc_send_files',
301
- needBgImage: false,
302
- idPrestationType: allPrestationsWithBrochure,
303
- versionable: false,
304
- },
305
- ],
120
+ salesContractConfig: SalesContractClementine,
306
121
  },
307
122
  {
308
123
  idTypeBrand: 2,
@@ -510,155 +325,6 @@ export const BrandClementine = [
510
325
  vatIntracom: 'FR47752566687',
511
326
  email: 'facturation@compta-clementine.fr',
512
327
  },
513
- salesContractConfig: [
514
- // pour les pages statiques
515
- {
516
- label: 'Page d\'introduction',
517
- name: 'page_intro',
518
- needBgImage: true,
519
- versionable: false,
520
- idPrestationType: [PrestationType.SOCIAL, PrestationType.COMPTA_MICRO_KLEMS, PrestationType.COMPTA_EI_KLEMS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS, PrestationType.COMPTA_MICRO_KLEMS_EXPRESS, PrestationType.COMPTA_EI_KLEMS_EXPRESS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS_EXPRESS, PrestationType.BILAN_PREVISIONNEL],
521
- },
522
- {
523
- label: 'Page chiffres',
524
- name: 'page_numbers',
525
- needBgImage: true,
526
- versionable: false,
527
- idPrestationType: [PrestationType.SOCIAL, PrestationType.COMPTA_MICRO_KLEMS, PrestationType.COMPTA_EI_KLEMS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS, PrestationType.COMPTA_MICRO_KLEMS_EXPRESS, PrestationType.COMPTA_EI_KLEMS_EXPRESS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS_EXPRESS, PrestationType.BILAN_PREVISIONNEL],
528
- },
529
- {
530
- label: 'Page simplifié',
531
- name: 'page_simplified',
532
- needBgImage: true,
533
- versionable: false,
534
- idPrestationType: [PrestationType.SOCIAL, PrestationType.COMPTA_MICRO_KLEMS, PrestationType.COMPTA_EI_KLEMS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS, PrestationType.COMPTA_MICRO_KLEMS_EXPRESS, PrestationType.COMPTA_EI_KLEMS_EXPRESS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS_EXPRESS, PrestationType.BILAN_PREVISIONNEL],
535
- },
536
- {
537
- label: 'Détail de la lettre de mission',
538
- name: 'page_detail_ldm',
539
- needBgImage: false,
540
- versionable: false,
541
- idPrestationType: Object.values(PrestationDetail).filter(p => !p.isBack && !p.hidden && [PrestationType.SOCIAL, PrestationType.COMPTA_MICRO_KLEMS, PrestationType.COMPTA_EI_KLEMS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS, PrestationType.BILAN_PREVISIONNEL].includes(p.id!)).map(({ id }) => id), // Prestations non express
542
- },
543
- {
544
- label: 'Détail de la lettre de mission (express)',
545
- name: 'page_detail_ldm_back',
546
- needBgImage: false,
547
- versionable: false,
548
- idPrestationType: Object.values(PrestationDetail).filter(p => p.isBack && !p.hidden && [PrestationType.SOCIAL, PrestationType.COMPTA_MICRO_KLEMS_EXPRESS, PrestationType.COMPTA_EI_KLEMS_EXPRESS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS_EXPRESS].includes(p.id!)).map(({ id }) => id), // Prestations express
549
- },
550
- {
551
- label: 'Forfait Expertise Micro',
552
- name: 'bloc_compta_micro',
553
- needBgImage: false,
554
- versionable: false,
555
- idPrestationType: [PrestationType.COMPTA_MICRO_KLEMS, PrestationType.COMPTA_MICRO_KLEMS_EXPRESS],
556
- },
557
- {
558
- label: 'Forfait Expertise Entreprise individuelle',
559
- name: 'bloc_entreprise_individuelle',
560
- needBgImage: false,
561
- versionable: false,
562
- idPrestationType: [PrestationType.COMPTA_EI_KLEMS, PrestationType.COMPTA_EI_KLEMS_EXPRESS],
563
- },
564
- {
565
- label: 'Forfait Expertise Loueur meublé non pro',
566
- name: 'bloc_compta_loueur_meuble_non_pro',
567
- needBgImage: false,
568
- versionable: false,
569
- idPrestationType: [PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS_EXPRESS],
570
- },
571
- {
572
- label: 'Forfait social (TTC)',
573
- name: 'bloc_social_ttc',
574
- needBgImage: false,
575
- versionable: true,
576
- idPrestationType: [PrestationType.SOCIAL, PrestationType.COMPTA_MICRO_KLEMS, PrestationType.COMPTA_MICRO_KLEMS_EXPRESS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS_EXPRESS],
577
- keyName: 'idPrestationSocial',
578
- },
579
- {
580
- label: 'Forfait social (HT)',
581
- name: 'bloc_social_ht',
582
- needBgImage: false,
583
- versionable: true,
584
- idPrestationType: [PrestationType.COMPTA_EI_KLEMS, PrestationType.COMPTA_EI_KLEMS_EXPRESS],
585
- keyName: 'idPrestationSocial',
586
- },
587
- {
588
- label: 'Forfait Création d\'entreprise (TTC)',
589
- name: 'bloc_creation_entreprise_ttc',
590
- idPrestationType: [PrestationType.SOCIAL, PrestationType.COMPTA_MICRO_KLEMS, PrestationType.COMPTA_MICRO_KLEMS_EXPRESS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS_EXPRESS],
591
- needBgImage: false,
592
- versionable: true,
593
- keyName: 'idPrestationCreation',
594
- },
595
- {
596
- label: 'Forfait Création d\'entreprise (HT)',
597
- name: 'bloc_creation_entreprise_ht',
598
- idPrestationType:[PrestationType.COMPTA_EI_KLEMS, PrestationType.COMPTA_EI_KLEMS_EXPRESS],
599
- needBgImage: false,
600
- versionable: true,
601
- keyName: 'idPrestationCreation',
602
- },
603
- {
604
- label: 'Accompagnement contrôle fiscal (TTC)',
605
- name: 'bloc_tax_audit_ttc',
606
- needBgImage: false,
607
- versionable: true,
608
- idPrestationType: [PrestationType.SOCIAL, PrestationType.COMPTA_MICRO_KLEMS, PrestationType.COMPTA_MICRO_KLEMS_EXPRESS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS_EXPRESS],
609
- keyName: 'idPrestationControleFiscal',
610
- },
611
- {
612
- label: 'Accompagnement contrôle fiscal (HT)',
613
- name: 'bloc_tax_audit_ht',
614
- needBgImage: false,
615
- idPrestationType: [PrestationType.COMPTA_EI_KLEMS, PrestationType.COMPTA_EI_KLEMS_EXPRESS],
616
- versionable: true,
617
- keyName: 'idPrestationControleFiscal',
618
- },
619
- {
620
- label: 'Bilan Prévisionnel Klems',
621
- name: 'bloc_bilan_previsionnel',
622
- needBgImage: false,
623
- idPrestationType: [PrestationType.BILAN_PREVISIONNEL],
624
- versionable: true,
625
- keyName: 'prestationOptions',
626
- },
627
- {
628
- label: 'Signature',
629
- name: 'bloc_sign',
630
- needBgImage: false,
631
- idPrestationType: [PrestationType.SOCIAL, PrestationType.COMPTA_MICRO_KLEMS, PrestationType.COMPTA_EI_KLEMS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS, PrestationType.COMPTA_MICRO_KLEMS_EXPRESS, PrestationType.COMPTA_EI_KLEMS_EXPRESS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS_EXPRESS, PrestationType.BILAN_PREVISIONNEL],
632
- versionable: false,
633
- },
634
- {
635
- label: 'Conditions Générals de Vente (CGV) 1/2',
636
- name: 'bloc_cgv_first',
637
- needBgImage: false,
638
- idPrestationType: [PrestationType.SOCIAL, PrestationType.COMPTA_MICRO_KLEMS, PrestationType.COMPTA_EI_KLEMS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS, PrestationType.COMPTA_MICRO_KLEMS_EXPRESS, PrestationType.COMPTA_EI_KLEMS_EXPRESS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS_EXPRESS, PrestationType.BILAN_PREVISIONNEL],
639
- versionable: false,
640
- },
641
- {
642
- label: 'Conditions Générals de Vente (CGV) 2/2',
643
- name: 'bloc_cgv_second',
644
- needBgImage: false,
645
- idPrestationType: [PrestationType.SOCIAL, PrestationType.COMPTA_MICRO_KLEMS, PrestationType.COMPTA_EI_KLEMS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS, PrestationType.COMPTA_MICRO_KLEMS_EXPRESS, PrestationType.COMPTA_EI_KLEMS_EXPRESS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS_EXPRESS, PrestationType.BILAN_PREVISIONNEL],
646
- versionable: false,
647
- },
648
- {
649
- label: 'Mandat de prélèvement SEPA',
650
- name: 'bloc_sepa',
651
- needBgImage: false,
652
- idPrestationType: [PrestationType.SOCIAL, PrestationType.COMPTA_MICRO_KLEMS, PrestationType.COMPTA_EI_KLEMS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS, PrestationType.COMPTA_MICRO_KLEMS_EXPRESS, PrestationType.COMPTA_EI_KLEMS_EXPRESS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS_EXPRESS, PrestationType.BILAN_PREVISIONNEL],
653
- versionable: false,
654
- },
655
- {
656
- label: 'Pièces à nous envoyer',
657
- name: 'bloc_send_files',
658
- needBgImage: false,
659
- idPrestationType: [PrestationType.SOCIAL, PrestationType.COMPTA_MICRO_KLEMS, PrestationType.COMPTA_EI_KLEMS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS, PrestationType.COMPTA_MICRO_KLEMS_EXPRESS, PrestationType.COMPTA_EI_KLEMS_EXPRESS, PrestationType.COMPTA_LOUEUR_MEUBLE_NON_PRO_KLEMS_EXPRESS, PrestationType.BILAN_PREVISIONNEL],
660
- versionable: false,
661
- },
662
- ],
328
+ salesContractConfig: SalesContractKlems,
663
329
  },
664
330
  ];
@@ -1,4 +1,4 @@
1
- import { PrestationType } from './PrestationType';
1
+ import { SalesContractLegalstart } from './SalesContractBrandLegalstart';
2
2
 
3
3
  export const BrandLegalstart = [
4
4
  {
@@ -108,110 +108,6 @@ export const BrandLegalstart = [
108
108
  name: 'Télétravail',
109
109
  },
110
110
  },
111
- salesContractConfig: [
112
- // pour les pages statiques
113
- {
114
- label: 'Page d\'introduction',
115
- name: 'page_intro',
116
- needBgImage: true,
117
- versionable: false,
118
- idPrestationType: [PrestationType.COMPTA_PRO_COMPTASTART, PrestationType.COMPTA_PRO_COMPTASTART_EXPRESS],
119
- },
120
- {
121
- label: 'Page chiffres',
122
- name: 'page_numbers',
123
- needBgImage: true,
124
- versionable: false,
125
- idPrestationType: [PrestationType.COMPTA_PRO_COMPTASTART, PrestationType.COMPTA_PRO_COMPTASTART_EXPRESS],
126
- },
127
- {
128
- label: 'Page simplifié',
129
- name: 'page_simplified',
130
- needBgImage: true,
131
- versionable: false,
132
- idPrestationType: [PrestationType.COMPTA_PRO_COMPTASTART, PrestationType.COMPTA_PRO_COMPTASTART_EXPRESS],
133
- },
134
- {
135
- label: 'Détail de la lettre de mission',
136
- name: 'page_detail_ldm',
137
- needBgImage: false,
138
- versionable: false,
139
- idPrestationType: [PrestationType.COMPTA_PRO_COMPTASTART], // Prestations non express
140
- },
141
- {
142
- label: 'Détail de la lettre de mission (express)',
143
- name: 'page_detail_ldm_back',
144
- needBgImage: false,
145
- versionable: false,
146
- idPrestationType: [PrestationType.COMPTA_PRO_COMPTASTART_EXPRESS], // Prestations express
147
- },
148
- // pour les pages dynamiques
149
- {
150
- label: 'Compta Pro Comptastart',
151
- name: 'bloc_compta_pro',
152
- needBgImage: false,
153
- versionable: true,
154
- idPrestationType: [PrestationType.COMPTA_PRO_COMPTASTART, PrestationType.COMPTA_PRO_COMPTASTART_EXPRESS],
155
- keyName: 'isWithApplicationFees',
156
- },
157
- {
158
- label: 'Compta Pro Comptastart sur mesure',
159
- name: 'bloc_compta_pro_sm',
160
- needBgImage: false,
161
- versionable: false,
162
- idPrestationType: [],
163
- },
164
- {
165
- label: 'Prise en charge de votre déclaration d\'impôts sur le revenu',
166
- name: 'bloc_tax_return',
167
- needBgImage: false,
168
- idPrestationType: [],
169
- versionable: true,
170
- keyName: 'idPrestationDeclarationIR',
171
- },
172
- {
173
- label: 'Accompagnement contrôle fiscal',
174
- name: 'bloc_tax_audit',
175
- needBgImage: false,
176
- idPrestationType: [PrestationType.COMPTA_PRO_COMPTASTART, PrestationType.COMPTA_PRO_COMPTASTART_EXPRESS],
177
- versionable: true,
178
- keyName: 'idPrestationControleFiscal',
179
- },
180
- {
181
- label: 'Signature',
182
- name: 'bloc_sign',
183
- needBgImage: false,
184
- idPrestationType: [PrestationType.COMPTA_PRO_COMPTASTART, PrestationType.COMPTA_PRO_COMPTASTART_EXPRESS],
185
- versionable: false,
186
- },
187
- {
188
- label: 'Conditions Générals de Vente (CGV) 1/2',
189
- name: 'bloc_cgv_first',
190
- needBgImage: false,
191
- idPrestationType: [PrestationType.COMPTA_PRO_COMPTASTART, PrestationType.COMPTA_PRO_COMPTASTART_EXPRESS],
192
- versionable: false,
193
- },
194
- {
195
- label: 'Conditions Générals de Vente (CGV) 2/2',
196
- name: 'bloc_cgv_second',
197
- needBgImage: false,
198
- idPrestationType: [PrestationType.COMPTA_PRO_COMPTASTART, PrestationType.COMPTA_PRO_COMPTASTART_EXPRESS],
199
- versionable: false,
200
- },
201
- {
202
- label: 'Mandat de prélèvement SEPA',
203
- name: 'bloc_sepa',
204
- needBgImage: false,
205
- idPrestationType: [PrestationType.COMPTA_PRO_COMPTASTART, PrestationType.COMPTA_PRO_COMPTASTART_EXPRESS],
206
- versionable: false,
207
- },
208
- {
209
- label: 'Pièces à nous envoyer',
210
- name: 'bloc_send_files',
211
- needBgImage: false,
212
- idPrestationType: [PrestationType.COMPTA_PRO_COMPTASTART, PrestationType.COMPTA_PRO_COMPTASTART_EXPRESS],
213
- versionable: false,
214
- },
215
- ],
111
+ salesContractConfig: SalesContractLegalstart,
216
112
  },
217
113
  ];