@silexpert/core 1.0.189 → 1.0.191
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.
- package/es/api/resources/AccountingFiles.d.ts +1 -1
- package/es/api/resources/AccountingFiles.d.ts.map +1 -1
- package/es/api/resources/AccountingFiles.js.map +1 -1
- package/es/api/resources/CashAndExpense.d.ts +8 -0
- package/es/api/resources/CashAndExpense.d.ts.map +1 -0
- package/es/api/resources/CashAndExpense.js +27 -0
- package/es/api/resources/CashAndExpense.js.map +1 -0
- package/es/api/resources.d.ts +2 -0
- package/es/api/resources.d.ts.map +1 -1
- package/es/api/resources.js +2 -0
- package/es/api/resources.js.map +1 -1
- package/es/types/Enum/Account.d.ts +8 -0
- package/es/types/Enum/Account.d.ts.map +1 -1
- package/es/types/Enum/Account.js +8 -0
- package/es/types/Enum/Account.js.map +1 -1
- package/es/types/Enum/CashDeskTransactionType.d.ts +7 -0
- package/es/types/Enum/CashDeskTransactionType.d.ts.map +1 -0
- package/es/types/Enum/CashDeskTransactionType.js +8 -0
- package/es/types/Enum/CashDeskTransactionType.js.map +1 -0
- package/es/types/Enum/Log.d.ts +6 -1
- package/es/types/Enum/Log.d.ts.map +1 -1
- package/es/types/Enum/Log.js +5 -0
- package/es/types/Enum/Log.js.map +1 -1
- package/es/types/Enum/RoleDetail.js +2 -2
- package/es/types/Enum/RoleDetail.js.map +1 -1
- package/es/types/Enum/ThirdParty.d.ts +7 -0
- package/es/types/Enum/ThirdParty.d.ts.map +1 -0
- package/es/types/Enum/ThirdParty.js +7 -0
- package/es/types/Enum/ThirdParty.js.map +1 -0
- package/es/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts +1 -0
- package/es/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts.map +1 -1
- package/es/types/Interface/api/accountingFiles/queryAccountingFiles.js +5 -1
- package/es/types/Interface/api/accountingFiles/queryAccountingFiles.js.map +1 -1
- package/es/types/Interface/api/archive/ImportSocietyArchive.d.ts +1 -1
- package/es/types/Interface/api/archive/ImportSocietyArchive.d.ts.map +1 -1
- package/es/types/Interface/api/archive/ImportSocietyArchive.js +1 -1
- package/es/types/Interface/api/archive/ImportSocietyArchive.js.map +1 -1
- package/es/types/Interface/api/cashAndExpense/Create.d.ts +27 -0
- package/es/types/Interface/api/cashAndExpense/Create.d.ts.map +1 -0
- package/es/types/Interface/api/cashAndExpense/Create.js +91 -0
- package/es/types/Interface/api/cashAndExpense/Create.js.map +1 -0
- package/es/types/Interface/models/IApiError.d.ts +2 -1
- package/es/types/Interface/models/IApiError.d.ts.map +1 -1
- package/es/types/Interface/models/IApiError.js +2 -0
- package/es/types/Interface/models/IApiError.js.map +1 -1
- package/es/types/Interface/models/IKilometricAllowanceScale.d.ts +1 -0
- package/es/types/Interface/models/IKilometricAllowanceScale.d.ts.map +1 -1
- package/es/types/Interface/models/IKilometricAllowanceScale.js.map +1 -1
- package/es/types/index.d.ts +3 -0
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +3 -0
- package/es/types/index.js.map +1 -1
- package/es/utils/email/templates/signature.d.ts.map +1 -1
- package/es/utils/email/templates/signature.js +2 -1
- package/es/utils/email/templates/signature.js.map +1 -1
- package/js/api/resources/AccountingFiles.js.map +1 -1
- package/js/api/resources/CashAndExpense.js +37 -0
- package/js/api/resources/CashAndExpense.js.map +1 -0
- package/js/api/resources.js +3 -1
- package/js/api/resources.js.map +1 -1
- package/js/types/Enum/Account.js +8 -0
- package/js/types/Enum/Account.js.map +1 -1
- package/js/types/Enum/CashDeskTransactionType.js +13 -0
- package/js/types/Enum/CashDeskTransactionType.js.map +1 -0
- package/js/types/Enum/Log.js +5 -0
- package/js/types/Enum/Log.js.map +1 -1
- package/js/types/Enum/RoleDetail.js +2 -2
- package/js/types/Enum/RoleDetail.js.map +1 -1
- package/js/types/Enum/ThirdParty.js +12 -0
- package/js/types/Enum/ThirdParty.js.map +1 -0
- package/js/types/Interface/api/accountingFiles/queryAccountingFiles.js +1 -0
- package/js/types/Interface/api/accountingFiles/queryAccountingFiles.js.map +1 -1
- package/js/types/Interface/api/archive/ImportSocietyArchive.js +1 -1
- package/js/types/Interface/api/archive/ImportSocietyArchive.js.map +1 -1
- package/js/types/Interface/api/cashAndExpense/Create.js +44 -0
- package/js/types/Interface/api/cashAndExpense/Create.js.map +1 -0
- package/js/types/Interface/models/IApiError.js +2 -0
- package/js/types/Interface/models/IApiError.js.map +1 -1
- package/js/types/Interface/models/IKilometricAllowanceScale.js.map +1 -1
- package/js/types/index.js +30 -0
- package/js/types/index.js.map +1 -1
- package/js/utils/email/templates/signature.js +2 -1
- package/js/utils/email/templates/signature.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/AccountingFiles.ts +1 -1
- package/ts/api/resources/CashAndExpense.ts +31 -0
- package/ts/api/resources.ts +2 -0
- package/ts/types/Enum/Account.ts +8 -0
- package/ts/types/Enum/CashDeskTransactionType.ts +6 -0
- package/ts/types/Enum/Log.ts +5 -0
- package/ts/types/Enum/RoleDetail.ts +2 -2
- package/ts/types/Enum/ThirdParty.ts +6 -0
- package/ts/types/Interface/api/accountingFiles/queryAccountingFiles.ts +4 -1
- package/ts/types/Interface/api/archive/ImportSocietyArchive.ts +1 -1
- package/ts/types/Interface/api/cashAndExpense/Create.ts +67 -0
- package/ts/types/Interface/models/IApiError.ts +3 -0
- package/ts/types/Interface/models/IKilometricAllowanceScale.ts +1 -0
- package/ts/types/index.ts +3 -0
- package/ts/utils/email/templates/signature.ts +2 -1
|
@@ -23,7 +23,8 @@ const avatar = `<% if (!forceRole && user?.avatar?.token) { %>
|
|
|
23
23
|
width="100">
|
|
24
24
|
<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;">
|
|
25
25
|
<img
|
|
26
|
-
style="max-height: 90px;max-width: 90px; border-radius: 100%; padding-top:
|
|
26
|
+
style="max-height: 90px;max-width: 90px; border-radius: 100%; padding-top: 10px"
|
|
27
|
+
alt="Avatar"
|
|
27
28
|
src="
|
|
28
29
|
<%= hostS3 %>users/<%= user.id %>/<%= user.avatar.token %>
|
|
29
30
|
"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signature.js","names":["logoClementine","avatar","footer","signatureTemplate","exports"],"sources":["../../../../ts/utils/email/templates/signature.ts"],"sourcesContent":["const logoClementine = `<% if (brandName === 'Clementine') { %><tr>\n<td\ncolspan=\"3\"\nclass=\"logo\"\nstyle=\"\"\nwidth=\"850\">\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 <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%; padding-top: 1Opx\"\n src=\"\n <%= hostS3 %>users/<%= user.id %>/<%= user.avatar.token %>\n \"\n />\n </p>\n </td>\n <% } %>`;\n\nconst footer = `<% if(brandName === 'Clementine') { %>\n <tr>\n <td\n style=\"clear:both; padding-top: 20px; 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.compta-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=\"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 <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 </tr>\n <tr>\n <td colspan=\"7\" style=\"padding-top: 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.compta-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.compta-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 </table>\n </td>\n </tr>\n <% } else if(brandName === 'Pourcentage') { %>\n <tr>\n <td\n style=\"clear:both; padding-top: 20px; 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 </table>\n </td>\n </tr>\n <% } %>\n`;\n\nexport const signatureTemplate = `<table\nborder=\"0\"\ncellpadding=\"0\"\ncellspacing=\"0\"\nwidth=\"850\"\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=\"290\"\n colspan=\"2\">\n <table\n border=\"0\"\n cellpadding=\"0\"\n cellspacing=\"0\"\n width=\"290\">\n <tr>\n <td width=\"290\">\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></p>\n </p>\n <% } %>\n </td>\n </tr>\n </table>\n\n <p style=\"margin:16px 0; color:#6E6E71; border-top: 2px solid #6E6E71; width: 100px; opacity: 0.2\"><!-- --></p><p style=\"margin:0; padding:0px 0 4px; color:#6E6E71;\"><%= (user.roles && user.roles.length && user.roles.map((r) => r.idRoles).includes(22)) || (user && user.isAll === true) ? 'Nos' : 'Mes' %> horaires :<br/><%= horaires %></p>\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 <p style=\"margin:0px 0; padding:2px 0; color:#6E6E71; padding-left: 10px\">\n <span style=\"float:right\">Standard : <%= standardPhoneSignature %></span><br/>\n <% if(phoneSignature && phoneSignature !== standardPhoneSignature) { %>\n <span style=\"float:right\">Ligne directe : <%- phoneSignature %></span><br/>\n <% } %>\n </p>\n \n <p style=\"margin:20px 60px 0 0; padding:0px 0 4px; color:#6E6E71; text-align: right; height: 54px;\">\n <% if(user.calendlyUrl) { %>\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_rightArrow.png\"\n alt=\"Prenez rendez-vous ici !\">\n <% } %>\n </p>\n \n <p style=\"margin:0; padding:0px 0 4px; color:#6E6E71; text-align: right\"><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) { %>\n <a href=\"<%= user.calendlyUrl %>\" style=\"display: inline-block; color:#6E6E71;\" target=\"_blank\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_rdv_tel.png\"\n alt=\"Demande de rdv téléphonique\"></a>\n <% } %>\n </p>\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>`;"],"mappings":";;;;;AAAA,MAAMA,cAAc,GAAG;;;;;;;;;;;;aAYV;AAEb,MAAMC,MAAM,GAAG;;;;;;;;;;;;;;UAcL;AAEV,MAAMC,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwFd;AAEM,MAAMC,iBAAiB,GAAAC,OAAA,CAAjBD,iBAAiB,GAAG;;;;;;;EAO/BH,cAAc;;;IAGZC,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA0DNC,MAAM;;;;;;;;;SASD"}
|
|
1
|
+
{"version":3,"file":"signature.js","names":["logoClementine","avatar","footer","signatureTemplate","exports"],"sources":["../../../../ts/utils/email/templates/signature.ts"],"sourcesContent":["const logoClementine = `<% if (brandName === 'Clementine') { %><tr>\n<td\ncolspan=\"3\"\nclass=\"logo\"\nstyle=\"\"\nwidth=\"850\">\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 <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%; padding-top: 10px\"\n alt=\"Avatar\"\n src=\"\n <%= hostS3 %>users/<%= user.id %>/<%= user.avatar.token %>\n \"\n />\n </p>\n </td>\n <% } %>`;\n\nconst footer = `<% if(brandName === 'Clementine') { %>\n <tr>\n <td\n style=\"clear:both; padding-top: 20px; 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.compta-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=\"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 <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 </tr>\n <tr>\n <td colspan=\"7\" style=\"padding-top: 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.compta-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.compta-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 </table>\n </td>\n </tr>\n <% } else if(brandName === 'Pourcentage') { %>\n <tr>\n <td\n style=\"clear:both; padding-top: 20px; 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 </table>\n </td>\n </tr>\n <% } %>\n`;\n\nexport const signatureTemplate = `<table\nborder=\"0\"\ncellpadding=\"0\"\ncellspacing=\"0\"\nwidth=\"850\"\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=\"290\"\n colspan=\"2\">\n <table\n border=\"0\"\n cellpadding=\"0\"\n cellspacing=\"0\"\n width=\"290\">\n <tr>\n <td width=\"290\">\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></p>\n </p>\n <% } %>\n </td>\n </tr>\n </table>\n\n <p style=\"margin:16px 0; color:#6E6E71; border-top: 2px solid #6E6E71; width: 100px; opacity: 0.2\"><!-- --></p><p style=\"margin:0; padding:0px 0 4px; color:#6E6E71;\"><%= (user.roles && user.roles.length && user.roles.map((r) => r.idRoles).includes(22)) || (user && user.isAll === true) ? 'Nos' : 'Mes' %> horaires :<br/><%= horaires %></p>\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 <p style=\"margin:0px 0; padding:2px 0; color:#6E6E71; padding-left: 10px\">\n <span style=\"float:right\">Standard : <%= standardPhoneSignature %></span><br/>\n <% if(phoneSignature && phoneSignature !== standardPhoneSignature) { %>\n <span style=\"float:right\">Ligne directe : <%- phoneSignature %></span><br/>\n <% } %>\n </p>\n \n <p style=\"margin:20px 60px 0 0; padding:0px 0 4px; color:#6E6E71; text-align: right; height: 54px;\">\n <% if(user.calendlyUrl) { %>\n <img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_rightArrow.png\"\n alt=\"Prenez rendez-vous ici !\">\n <% } %>\n </p>\n \n <p style=\"margin:0; padding:0px 0 4px; color:#6E6E71; text-align: right\"><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) { %>\n <a href=\"<%= user.calendlyUrl %>\" style=\"display: inline-block; color:#6E6E71;\" target=\"_blank\"><img\n src=\"https://clementine-website.s3.eu-west-3.amazonaws.com/signaturemail_rdv_tel.png\"\n alt=\"Demande de rdv téléphonique\"></a>\n <% } %>\n </p>\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>`;"],"mappings":";;;;;AAAA,MAAMA,cAAc,GAAG;;;;;;;;;;;;aAYV;AAEb,MAAMC,MAAM,GAAG;;;;;;;;;;;;;;;UAeL;AAEV,MAAMC,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwFd;AAEM,MAAMC,iBAAiB,GAAAC,OAAA,CAAjBD,iBAAiB,GAAG;;;;;;;EAO/BH,cAAc;;;IAGZC,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA0DNC,MAAM;;;;;;;;;SASD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.191",
|
|
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": "js/index.js",
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from '../../types';
|
|
5
5
|
|
|
6
6
|
export class AccountingFiles extends Resource {
|
|
7
|
-
accountingFile(params: QueryAccountingFiles): Promise<ReadFormattedAccountingTransaction[]> {
|
|
7
|
+
accountingFile(params: QueryAccountingFiles): Promise<ReadFormattedAccountingTransaction[] | IAccountingFile[] > {
|
|
8
8
|
const sendAccountingFiles = new FormData();
|
|
9
9
|
|
|
10
10
|
sendAccountingFiles.append('idAccountingType', params.idAccountingType.toString());
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { forEach } from 'lodash';
|
|
2
|
+
import {
|
|
3
|
+
CreateCashDesk, CreateCashAndExpenseTransaction, IBankAccount, IAccountingTransaction, CreateKilometricAllowance,
|
|
4
|
+
} from '../../types';
|
|
5
|
+
import { Resource } from '../Resource';
|
|
6
|
+
|
|
7
|
+
export class CashAndExpense extends Resource {
|
|
8
|
+
create(idSociety: number, payload: CreateCashDesk): Promise<IBankAccount> {
|
|
9
|
+
return this.axios.$post(`/societies/${idSociety}/bank-accounts/cash-desk`, payload);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
createTransaction(payload: CreateCashAndExpenseTransaction): Promise<IAccountingTransaction> {
|
|
13
|
+
const formData = new FormData();
|
|
14
|
+
forEach(payload, (value, key) => {
|
|
15
|
+
if (value) {
|
|
16
|
+
if (key === 'entries') {
|
|
17
|
+
formData.append(key, `${JSON.stringify(value)}`);
|
|
18
|
+
} else {
|
|
19
|
+
formData.append(key, `${value}`);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
formData.append('file', payload.file);
|
|
25
|
+
return this.axios.$post('/societies/cash-and-expense/transaction', formData, { headers: { 'Content-Type': 'multipart/form-data' } });
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
createKilometricAllowance(idSociety: number, payload: CreateKilometricAllowance): Promise<IAccountingTransaction> {
|
|
29
|
+
return this.axios.$post(`/societies/${idSociety}/kilometric-allowance`, payload);
|
|
30
|
+
}
|
|
31
|
+
}
|
package/ts/api/resources.ts
CHANGED
|
@@ -124,6 +124,7 @@ import { StatisticCustomerSuccess } from './resources/statistic/CustomerSuccess'
|
|
|
124
124
|
import { UnpaidCallHistory } from './resources/UnpaidCallHistory';
|
|
125
125
|
import { CommercialImport } from './resources/CommercialImport';
|
|
126
126
|
import { Team } from './resources/Team';
|
|
127
|
+
import { CashAndExpense } from './resources/CashAndExpense';
|
|
127
128
|
|
|
128
129
|
export const resources = {
|
|
129
130
|
simulation: Simulation,
|
|
@@ -252,4 +253,5 @@ export const resources = {
|
|
|
252
253
|
unpaidCallHistory: UnpaidCallHistory,
|
|
253
254
|
commercialImport: CommercialImport,
|
|
254
255
|
team: Team,
|
|
256
|
+
cashAndExpense: CashAndExpense,
|
|
255
257
|
};
|
package/ts/types/Enum/Account.ts
CHANGED
package/ts/types/Enum/Log.ts
CHANGED
|
@@ -33,7 +33,12 @@ export enum LogType {
|
|
|
33
33
|
UNPAID = 21,
|
|
34
34
|
DELETE = 22,
|
|
35
35
|
REGULATION_DELETE = 23,
|
|
36
|
+
CHECKLIST = 25,
|
|
36
37
|
TRANSACTION_DELETE = 26,
|
|
37
38
|
INPI_DELETE = 27,
|
|
38
39
|
VALIDATE_CALENDAR = 28,
|
|
40
|
+
INACTIVITY = 29,
|
|
41
|
+
SOCIAL = 30,
|
|
42
|
+
CONSTITUTION = 31,
|
|
43
|
+
APPROBATION = 32,
|
|
39
44
|
}
|
|
@@ -297,13 +297,13 @@ export const RoleDetail = {
|
|
|
297
297
|
name: 'Référent litige',
|
|
298
298
|
colorPrimary: '#FFF',
|
|
299
299
|
colorSecondary: '#FFF',
|
|
300
|
-
subRole:
|
|
300
|
+
subRole: false,
|
|
301
301
|
},
|
|
302
302
|
REFERENT_CLIENT: {
|
|
303
303
|
id: 48,
|
|
304
304
|
name: 'Référent client',
|
|
305
305
|
colorPrimary: '#FFF',
|
|
306
306
|
colorSecondary: '#FFF',
|
|
307
|
-
subRole:
|
|
307
|
+
subRole: false,
|
|
308
308
|
},
|
|
309
309
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiProperty } from '../../../../utils';
|
|
1
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
2
2
|
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
3
3
|
|
|
4
4
|
export class QueryAccountingFiles {
|
|
@@ -19,4 +19,7 @@ export class QueryAccountingFiles {
|
|
|
19
19
|
|
|
20
20
|
@ApiProperty()
|
|
21
21
|
files: File[];
|
|
22
|
+
|
|
23
|
+
@ApiPropertyOptional()
|
|
24
|
+
emissionDate?: Date;
|
|
22
25
|
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { IsBoolean, IsOptional } from 'class-validator';
|
|
2
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
3
|
+
import { CashDeskTransactionType } from '../../../Enum/CashDeskTransactionType';
|
|
4
|
+
import { FormEntry } from '../accountingEntry/AnnotateAccountingTransaction';
|
|
5
|
+
import { TFile } from '../file/TFile';
|
|
6
|
+
import { AccountingJournal } from '../../../Enum/AccountingJournal';
|
|
7
|
+
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
8
|
+
|
|
9
|
+
export class CreateCashDesk {
|
|
10
|
+
@ApiProperty()
|
|
11
|
+
dateStart: Date;
|
|
12
|
+
|
|
13
|
+
@ApiProperty()
|
|
14
|
+
amountStart: number;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export class CreateCashAndExpenseTransaction {
|
|
18
|
+
@ApiProperty()
|
|
19
|
+
dateValue: string;
|
|
20
|
+
|
|
21
|
+
@ApiProperty()
|
|
22
|
+
idAccountingJournal: AccountingJournal;
|
|
23
|
+
|
|
24
|
+
@ApiProperty()
|
|
25
|
+
entries: FormEntry[];
|
|
26
|
+
|
|
27
|
+
@ApiPropertyOptional()
|
|
28
|
+
@IsOptional()
|
|
29
|
+
idSocietyPartner?: number;
|
|
30
|
+
|
|
31
|
+
@ApiPropertyOptional()
|
|
32
|
+
@IsOptional()
|
|
33
|
+
cashDeskTransactionType?: CashDeskTransactionType;
|
|
34
|
+
|
|
35
|
+
@ApiPropertyOptional()
|
|
36
|
+
@IsOptional()
|
|
37
|
+
@IsBoolean()
|
|
38
|
+
@ToBoolean()
|
|
39
|
+
bypassAmountLimit?: boolean;
|
|
40
|
+
|
|
41
|
+
@ApiPropertyOptional()
|
|
42
|
+
@IsOptional()
|
|
43
|
+
file?: TFile;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export class CreateKilometricAllowance {
|
|
47
|
+
@ApiProperty()
|
|
48
|
+
idSocietyVehicle: number;
|
|
49
|
+
|
|
50
|
+
@ApiProperty()
|
|
51
|
+
dateValue: Date;
|
|
52
|
+
|
|
53
|
+
@ApiProperty()
|
|
54
|
+
distance: number;
|
|
55
|
+
|
|
56
|
+
@ApiProperty()
|
|
57
|
+
reason: string;
|
|
58
|
+
|
|
59
|
+
@ApiProperty()
|
|
60
|
+
departureCity: string;
|
|
61
|
+
|
|
62
|
+
@ApiProperty()
|
|
63
|
+
arrivalCity: string;
|
|
64
|
+
|
|
65
|
+
@ApiProperty()
|
|
66
|
+
idSocietyPartner: number;
|
|
67
|
+
}
|
|
@@ -184,6 +184,9 @@ export enum Code {
|
|
|
184
184
|
CAN_NOT_DELETE_DOCUMENT = 'can_not_delete_document',
|
|
185
185
|
CAN_NOT_EDIT_INVOICE = 'can_not_edit_invoice',
|
|
186
186
|
INVALID_INVOICE_TYPE = 'invalid_invoice_type',
|
|
187
|
+
|
|
188
|
+
// Expense Notes
|
|
189
|
+
LIMIT_MONTH_REACHED = 'limit_month_reached',
|
|
187
190
|
}
|
|
188
191
|
|
|
189
192
|
export interface IApiError {
|
package/ts/types/index.ts
CHANGED
|
@@ -480,6 +480,8 @@ export * from './Enum/ReasonTerminationType';
|
|
|
480
480
|
export * from './Enum/RemoteType';
|
|
481
481
|
export * from './Enum/EntityType';
|
|
482
482
|
export * from './Enum/Compensation';
|
|
483
|
+
export * from './Enum/CashDeskTransactionType';
|
|
484
|
+
export * from './Enum/ThirdParty';
|
|
483
485
|
|
|
484
486
|
// Interfaces API
|
|
485
487
|
export * from './Interface/api/partnerTransactionType/ReadPartnerTransactionType';
|
|
@@ -903,6 +905,7 @@ export * from './Interface/api/prestations/QueryGetAllPrestations';
|
|
|
903
905
|
export * from './Interface/api/commercialImport/Read';
|
|
904
906
|
export * from './Interface/api/commercialImport/Query';
|
|
905
907
|
export * from './Interface/api/commercialImport/Create';
|
|
908
|
+
export * from './Interface/api/cashAndExpense/Create';
|
|
906
909
|
|
|
907
910
|
// Enums types
|
|
908
911
|
export * from './Interface/enum/Util';
|
|
@@ -19,7 +19,8 @@ const avatar = `<% if (!forceRole && user?.avatar?.token) { %>
|
|
|
19
19
|
width="100">
|
|
20
20
|
<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;">
|
|
21
21
|
<img
|
|
22
|
-
style="max-height: 90px;max-width: 90px; border-radius: 100%; padding-top:
|
|
22
|
+
style="max-height: 90px;max-width: 90px; border-radius: 100%; padding-top: 10px"
|
|
23
|
+
alt="Avatar"
|
|
23
24
|
src="
|
|
24
25
|
<%= hostS3 %>users/<%= user.id %>/<%= user.avatar.token %>
|
|
25
26
|
"
|