@silexpert/core 1.3.30-1 → 1.3.30-3

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 (142) hide show
  1. package/dist/cjs/api/resources/Authenticate.d.ts +6 -0
  2. package/dist/cjs/api/resources/Authenticate.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/Authenticate.js +8 -0
  4. package/dist/cjs/api/resources/Authenticate.js.map +1 -1
  5. package/dist/cjs/api/resources/FIle.d.ts +1 -0
  6. package/dist/cjs/api/resources/FIle.d.ts.map +1 -1
  7. package/dist/cjs/api/resources/FIle.js +3 -0
  8. package/dist/cjs/api/resources/FIle.js.map +1 -1
  9. package/dist/cjs/api/resources/prestation.d.ts +3 -1
  10. package/dist/cjs/api/resources/prestation.d.ts.map +1 -1
  11. package/dist/cjs/api/resources/prestation.js.map +1 -1
  12. package/dist/cjs/types/Enum/Account.d.ts +4 -0
  13. package/dist/cjs/types/Enum/Account.d.ts.map +1 -1
  14. package/dist/cjs/types/Enum/Account.js +4 -0
  15. package/dist/cjs/types/Enum/Account.js.map +1 -1
  16. package/dist/cjs/types/Enum/Feature.d.ts +39 -0
  17. package/dist/cjs/types/Enum/Feature.d.ts.map +1 -0
  18. package/dist/cjs/types/Enum/Feature.js +63 -0
  19. package/dist/cjs/types/Enum/Feature.js.map +1 -0
  20. package/dist/cjs/types/Enum/JobTitle.d.ts +3 -1
  21. package/dist/cjs/types/Enum/JobTitle.d.ts.map +1 -1
  22. package/dist/cjs/types/Enum/JobTitle.js +12 -0
  23. package/dist/cjs/types/Enum/JobTitle.js.map +1 -1
  24. package/dist/cjs/types/Enum/StatusRating.d.ts.map +1 -1
  25. package/dist/cjs/types/Enum/StatusRating.js +1 -0
  26. package/dist/cjs/types/Enum/StatusRating.js.map +1 -1
  27. package/dist/cjs/types/Interface/api/mobile/UpdateMobile.d.ts +5 -0
  28. package/dist/cjs/types/Interface/api/mobile/UpdateMobile.d.ts.map +1 -1
  29. package/dist/cjs/types/Interface/api/mobile/UpdateMobile.js +33 -0
  30. package/dist/cjs/types/Interface/api/mobile/UpdateMobile.js.map +1 -1
  31. package/dist/cjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.d.ts +1 -0
  32. package/dist/cjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.d.ts.map +1 -1
  33. package/dist/cjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.js +9 -3
  34. package/dist/cjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.js.map +1 -1
  35. package/dist/cjs/types/Interface/api/stripe/Create.d.ts +8 -0
  36. package/dist/cjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
  37. package/dist/cjs/types/Interface/api/stripe/Create.js +29 -1
  38. package/dist/cjs/types/Interface/api/stripe/Create.js.map +1 -1
  39. package/dist/cjs/types/Interface/api/taxDeadline/ReadTaxDeadline.d.ts +1 -0
  40. package/dist/cjs/types/Interface/api/taxDeadline/ReadTaxDeadline.d.ts.map +1 -1
  41. package/dist/cjs/types/Interface/api/taxDeadline/ReadTaxDeadline.js.map +1 -1
  42. package/dist/cjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.js +3 -2
  43. package/dist/cjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.js.map +1 -1
  44. package/dist/cjs/types/Interface/models/IMobile.d.ts +5 -0
  45. package/dist/cjs/types/Interface/models/IMobile.d.ts.map +1 -1
  46. package/dist/cjs/types/Interface/models/IMobile.js.map +1 -1
  47. package/dist/cjs/types/Interface/models/IPayment.d.ts +2 -0
  48. package/dist/cjs/types/Interface/models/IPayment.d.ts.map +1 -1
  49. package/dist/cjs/types/Interface/models/IPayment.js.map +1 -1
  50. package/dist/cjs/types/Interface/models/IPaymentExpectation.d.ts +1 -0
  51. package/dist/cjs/types/Interface/models/IPaymentExpectation.d.ts.map +1 -1
  52. package/dist/cjs/types/Interface/models/IPaymentExpectation.js.map +1 -1
  53. package/dist/cjs/types/Interface/models/IUser.d.ts +2 -0
  54. package/dist/cjs/types/Interface/models/IUser.d.ts.map +1 -1
  55. package/dist/cjs/types/Interface/models/IUser.js.map +1 -1
  56. package/dist/cjs/types/index.d.ts +1 -0
  57. package/dist/cjs/types/index.d.ts.map +1 -1
  58. package/dist/cjs/types/index.js +1 -0
  59. package/dist/cjs/types/index.js.map +1 -1
  60. package/dist/cjs/utils/commercialManagement/templates/body.js +1 -1
  61. package/dist/cjs/utils/commercialManagement/templates/body.js.map +1 -1
  62. package/dist/mjs/api/resources/Authenticate.d.ts +6 -0
  63. package/dist/mjs/api/resources/Authenticate.d.ts.map +1 -1
  64. package/dist/mjs/api/resources/Authenticate.js +6 -0
  65. package/dist/mjs/api/resources/Authenticate.js.map +1 -1
  66. package/dist/mjs/api/resources/FIle.d.ts +1 -0
  67. package/dist/mjs/api/resources/FIle.d.ts.map +1 -1
  68. package/dist/mjs/api/resources/FIle.js +3 -0
  69. package/dist/mjs/api/resources/FIle.js.map +1 -1
  70. package/dist/mjs/api/resources/prestation.d.ts +3 -1
  71. package/dist/mjs/api/resources/prestation.d.ts.map +1 -1
  72. package/dist/mjs/api/resources/prestation.js.map +1 -1
  73. package/dist/mjs/types/Enum/Account.d.ts +4 -0
  74. package/dist/mjs/types/Enum/Account.d.ts.map +1 -1
  75. package/dist/mjs/types/Enum/Account.js +4 -0
  76. package/dist/mjs/types/Enum/Account.js.map +1 -1
  77. package/dist/mjs/types/Enum/Feature.d.ts +39 -0
  78. package/dist/mjs/types/Enum/Feature.d.ts.map +1 -0
  79. package/dist/mjs/types/Enum/Feature.js +60 -0
  80. package/dist/mjs/types/Enum/Feature.js.map +1 -0
  81. package/dist/mjs/types/Enum/JobTitle.d.ts +3 -1
  82. package/dist/mjs/types/Enum/JobTitle.d.ts.map +1 -1
  83. package/dist/mjs/types/Enum/JobTitle.js +12 -0
  84. package/dist/mjs/types/Enum/JobTitle.js.map +1 -1
  85. package/dist/mjs/types/Enum/StatusRating.d.ts.map +1 -1
  86. package/dist/mjs/types/Enum/StatusRating.js +1 -0
  87. package/dist/mjs/types/Enum/StatusRating.js.map +1 -1
  88. package/dist/mjs/types/Interface/api/mobile/UpdateMobile.d.ts +5 -0
  89. package/dist/mjs/types/Interface/api/mobile/UpdateMobile.d.ts.map +1 -1
  90. package/dist/mjs/types/Interface/api/mobile/UpdateMobile.js +38 -0
  91. package/dist/mjs/types/Interface/api/mobile/UpdateMobile.js.map +1 -1
  92. package/dist/mjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.d.ts +1 -0
  93. package/dist/mjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.d.ts.map +1 -1
  94. package/dist/mjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.js +11 -4
  95. package/dist/mjs/types/Interface/api/paymentExpectation/CreatePaymentExpecation.js.map +1 -1
  96. package/dist/mjs/types/Interface/api/stripe/Create.d.ts +8 -0
  97. package/dist/mjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
  98. package/dist/mjs/types/Interface/api/stripe/Create.js +32 -0
  99. package/dist/mjs/types/Interface/api/stripe/Create.js.map +1 -1
  100. package/dist/mjs/types/Interface/api/taxDeadline/ReadTaxDeadline.d.ts +1 -0
  101. package/dist/mjs/types/Interface/api/taxDeadline/ReadTaxDeadline.d.ts.map +1 -1
  102. package/dist/mjs/types/Interface/api/taxDeadline/ReadTaxDeadline.js +1 -0
  103. package/dist/mjs/types/Interface/api/taxDeadline/ReadTaxDeadline.js.map +1 -1
  104. package/dist/mjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.js +4 -3
  105. package/dist/mjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.js.map +1 -1
  106. package/dist/mjs/types/Interface/models/IMobile.d.ts +5 -0
  107. package/dist/mjs/types/Interface/models/IMobile.d.ts.map +1 -1
  108. package/dist/mjs/types/Interface/models/IMobile.js.map +1 -1
  109. package/dist/mjs/types/Interface/models/IPayment.d.ts +2 -0
  110. package/dist/mjs/types/Interface/models/IPayment.d.ts.map +1 -1
  111. package/dist/mjs/types/Interface/models/IPayment.js.map +1 -1
  112. package/dist/mjs/types/Interface/models/IPaymentExpectation.d.ts +1 -0
  113. package/dist/mjs/types/Interface/models/IPaymentExpectation.d.ts.map +1 -1
  114. package/dist/mjs/types/Interface/models/IPaymentExpectation.js.map +1 -1
  115. package/dist/mjs/types/Interface/models/IUser.d.ts +2 -0
  116. package/dist/mjs/types/Interface/models/IUser.d.ts.map +1 -1
  117. package/dist/mjs/types/Interface/models/IUser.js.map +1 -1
  118. package/dist/mjs/types/index.d.ts +1 -0
  119. package/dist/mjs/types/index.d.ts.map +1 -1
  120. package/dist/mjs/types/index.js +1 -0
  121. package/dist/mjs/types/index.js.map +1 -1
  122. package/dist/mjs/utils/commercialManagement/templates/body.js +1 -1
  123. package/dist/mjs/utils/commercialManagement/templates/body.js.map +1 -1
  124. package/package.json +1 -1
  125. package/ts/api/resources/Authenticate.ts +7 -0
  126. package/ts/api/resources/FIle.ts +4 -0
  127. package/ts/api/resources/prestation.ts +1 -1
  128. package/ts/types/Enum/Account.ts +4 -0
  129. package/ts/types/Enum/Feature.ts +65 -0
  130. package/ts/types/Enum/JobTitle.ts +12 -0
  131. package/ts/types/Enum/StatusRating.ts +1 -0
  132. package/ts/types/Interface/api/mobile/UpdateMobile.ts +28 -0
  133. package/ts/types/Interface/api/paymentExpectation/CreatePaymentExpecation.ts +9 -4
  134. package/ts/types/Interface/api/stripe/Create.ts +22 -0
  135. package/ts/types/Interface/api/taxDeadline/ReadTaxDeadline.ts +1 -0
  136. package/ts/types/Interface/api/vatDeclaration/QueryVatDeclaration.ts +2 -2
  137. package/ts/types/Interface/models/IMobile.ts +5 -0
  138. package/ts/types/Interface/models/IPayment.ts +2 -0
  139. package/ts/types/Interface/models/IPaymentExpectation.ts +1 -0
  140. package/ts/types/Interface/models/IUser.ts +2 -0
  141. package/ts/types/index.ts +1 -0
  142. package/ts/utils/commercialManagement/templates/body.ts +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"body.js","sourceRoot":"","sources":["../../../../../ts/utils/commercialManagement/templates/body.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC1E,OAAO,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAC;AAExD,MAAM,cAAc,GAAG,IAAI,4BAA4B,EAAE,CAAC;AAE1D,MAAM,cAAc,GAAG;;;YAGX,cAAc,CAAC,IAAI;YACnB,cAAc,CAAC,OAAO;;;4CAGU,cAAc,CAAC,OAAO;UACxD,cAAc,CAAC,IAAI;;;;;;;yCAOY,mBAAmB,CAAC,GAAG;;gDAEhB,mBAAmB,CAAC,KAAK;;gDAEzB,mBAAmB,CAAC,OAAO;;gDAE3B,mBAAmB,CAAC,KAAK;;gDAEzB,mBAAmB,CAAC,KAAK;;gDAEzB,mBAAmB,CAAC,OAAO;;;;;mDAKxB,mBAAmB,CAAC,OAAO;;oBAE1D,mBAAmB,CAAC,GAAG,KAAK,mBAAmB,CAAC,KAAK;;;;;;;2DAOd,mBAAmB,CAAC,OAAO;;;;kDAIpC,mBAAmB,CAAC,GAAG,KAAK,mBAAmB,CAAC,KAAK;;;;;;;;;;;;;;;;;SAiB9F,CAAC;AAEV,MAAM,CAAC,MAAM,YAAY,GAAG;;;;IAIxB,cAAc;;;;;;6BAMW,cAAc,CAAC,QAAQ;;;;;YAKxC,cAAc,CAAC,iBAAiB;;;;;;;;;;UAUlC,cAAc,CAAC,oBAAoB;;sCAEP,mBAAmB,CAAC,GAAG,KAAK,mBAAmB,CAAC,KAAK;8DAC7B,cAAc,CAAC,aAAa;;;;;;;;;;;;;;;;;;wEAkBlB,mBAAmB,CAAC,KAAK,iCAAiC,mBAAmB,CAAC,GAAG;;;;;;;;;;;QAWjJ,cAAc,CAAC,KAAK;;;QAGpB,cAAc,CAAC,YAAY;;QAE3B,CAAC","sourcesContent":["import { EstimateInvoiceType } from '../../../types/Enum/EstimateInvoice';\nimport { CommercialDocumentCommonHTML } from './common';\n\nconst commonTemplate = new CommercialDocumentCommonHTML();\n\nconst headOfDocument = `<div class=\"row space-between\">\n <% if (settings && settings.logoAlignment === 'left') { %>\n <div class=\"society-informations\">\n ${commonTemplate.logo}\n ${commonTemplate.company}\n </div>\n <% } else { %>\n <div class=\"society-informations\">${commonTemplate.company}</div>\n ${commonTemplate.logo}\n <% } %>\n </div>\n\n <div class=\"row space-between items-end\" style=\"margin-top: 10px\">\n <div style=\"width: 45%; margin-top: auto;\">\n <span class=\"document-reference\">\n <% if (idEstimateInvoiceType === ${EstimateInvoiceType.BON}) { %>\n <%= languageTemplate.template.orderForm.headers.title %>\n <% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.DEVIS}) { %>\n <%= languageTemplate.template.estimate.headers.title %>\n <% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.FACTURE}) { %>\n <%= languageTemplate.template.invoice.headers.title %>\n <% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.AVOIR}) { %>\n <%= languageTemplate.template.asset.headers.title %>\n <% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.RESTE}) { %>\n <%= languageTemplate.template.remainder.headers.title %>\n <% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.ACOMPTE}) { %>\n <%= languageTemplate.template.deposit.headers.title %>\n <% } %>\n <%= reference %></span><br/>\n <% if(emissionDate) {%><span class=\"document-emission-date\"> <%= languageTemplate.template.common.headers.emissionDate %> : <%= emissionDateFormatted %></span><br/><% } %>\n <% if(dueDate && idEstimateInvoiceType !== ${EstimateInvoiceType.ACOMPTE}) {%>\n <span class=\"document-due-date\">\n <% if ([${EstimateInvoiceType.BON}, ${EstimateInvoiceType.DEVIS}].includes(idEstimateInvoiceType)) {%>\n <%= languageTemplate.template.estimate.headers.dueDate %> :\n <% } else { %>\n <%= languageTemplate.template.invoice.headers.dueDate %> :\n <% } %>\n <%= dueDateFormatted %></span>\n <% } %>\n <% if (expirationDate && idEstimateInvoiceType === ${EstimateInvoiceType.ACOMPTE}) {%>\n <span class=\"document-due-date\"><%= languageTemplate.template.deposit.headers.expirationDate %> : : <%= expirationDateFormatted %></span>\n <% } %>\n <% if(termsOfPayment) { %>\n <br/><p style=\"margin-bottom: 0px;\"><%= [${EstimateInvoiceType.BON}, ${EstimateInvoiceType.DEVIS}].includes(idEstimateInvoiceType) ? languageTemplate.template.estimate.headers.termsOfPayment : languageTemplate.template.invoice.headers.termsOfPayment %> : <%= termsOfPayment %></p>\n <% } %>\n </div>\n <div style=\"width: 40%; margin-top: auto;\">\n <p></p>\n <% if (thirdParty) { %>\n <div class=\"<%= settings && settings.isCoordinatesFrameDisplayed ? 'customer-border' : '' %>\">\n <% if(thirdParty.company) {%><b><%= thirdParty.company %></b><br/><% } %>\n <% if(thirdParty.fullname) {%><%= thirdParty.fullname %><br/><% } %>\n <% if(thirdParty.address) {%><%= thirdParty.address %><br/><% } %>\n <% if(thirdParty.zipCode) {%><%= thirdParty.zipCode + ' ' %><% } %><%= thirdParty.city %> <%= thirdParty.country %><br/>\n <% if(thirdParty.deliveryAddress && thirdParty.deliveryCity && thirdParty.deliveryZipCode) {%>Adresse de livraison : <%= thirdParty.deliveryAddress %> <%= thirdParty.deliveryZipCode %> <%= thirdParty.deliveryCity %> <%= thirdParty.deliveryCountry %><br/><% } %>\n <% if(thirdParty.nSiret) {%>SIRET : <%= thirdParty.nSiret %><br/><% } %>\n <% if(thirdParty.nTva) {%>N° TVA : <%= thirdParty.nTva %><% } %>\n </div>\n <% } %>\n </div>\n </div>`;\n\nexport const bodyTemplate = `<html class=\"pdf-content\">\n\n <body>\n\n ${headOfDocument}\n\n <div class=\"row mt-25\">\n <% if (title) { %><%=languageTemplate.template.common.headers.title %> : <%= title %><% } %>\n </div>\n\n <div class=\"row mt-10\">${commonTemplate.products}</div>\n\n <div class=\"row space-between mt-20\">\n <div style=\"width: 55%;\">\n <% if (disableVat !== true && vats.length) { %>\n ${commonTemplate.vatRecapitulation}\n <% } %>\n <% if (vatMention) { %><div class=\"vat-mention <%= disableVat !== true ? 'mt-20' : ''%>\"><%= vatMention %></div><% } %>\n <% if (comment) { %>\n <p class=\"mt-20\"><%= languageTemplate.template.common.options.comment %> :<br/>\n <%- comment %>\n <% } %>\n </div>\n\n <div>\n ${commonTemplate.amountRecapitulation}\n\n <% if (isStripeAllowed && ![${EstimateInvoiceType.BON}, ${EstimateInvoiceType.DEVIS}].includes(idEstimateInvoiceType)) { %>\n <div style=\"text-align: right; margin-top: 30px;\">${commonTemplate.paymentButton}</div>\n <% } %>\n </div>\n \n </div>\n\n <% if ((settings && (settings.iban || settings.bic || settings.bank)) || paymentType) { %>\n <div class=\"row mt-30 space-between\" style=\"page-break-inside: avoid !important;\">\n <div>\n <% if ((settings && (settings.iban || settings.bic || settings.bank)) || paymentType) { %>\n <% if(paymentType) { %><%= languageTemplate.template.common.options.paymentType %> : <%= paymentType %><br/><% } %>\n <% if(settings.bank) { %><%= languageTemplate.template.common.options.bank %> : <%= settings.bank %><br/><% } %>\n <% if(settings.iban) { %>IBAN : <%= settings.iban %><br/><% } %>\n <% if(settings.bic) { %>BIC : <%= settings.bic %><% } %>\n <% } %>\n </div>\n </div>\n <% } %>\n <% if (settings && settings.bonPour && (idEstimateInvoiceType === ${EstimateInvoiceType.DEVIS} || idEstimateInvoiceType === ${EstimateInvoiceType.BON})) { %>\n <br/><%= languageTemplate.template.common.options.approval %> : <br/><br/><br/><br/>\n <% } %>\n\n <% if (cgv && (settings && settings.invoiceCgv)) { %>\n <br><div style=\"page-break-after:always;\"></div>\n <div id=\"WYSIWYG\"><%- cgv %></div>\n <% } %>\n </body>\n\n <style>\n ${commonTemplate.style}\n </style>\n <style>\n ${commonTemplate.styleWYSIWYG}\n </style>\n</html>`;\n"]}
1
+ {"version":3,"file":"body.js","sourceRoot":"","sources":["../../../../../ts/utils/commercialManagement/templates/body.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC1E,OAAO,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAC;AAExD,MAAM,cAAc,GAAG,IAAI,4BAA4B,EAAE,CAAC;AAE1D,MAAM,cAAc,GAAG;;;YAGX,cAAc,CAAC,IAAI;YACnB,cAAc,CAAC,OAAO;;;4CAGU,cAAc,CAAC,OAAO;UACxD,cAAc,CAAC,IAAI;;;;;;;yCAOY,mBAAmB,CAAC,GAAG;;gDAEhB,mBAAmB,CAAC,KAAK;;gDAEzB,mBAAmB,CAAC,OAAO;;gDAE3B,mBAAmB,CAAC,KAAK;;gDAEzB,mBAAmB,CAAC,KAAK;;gDAEzB,mBAAmB,CAAC,OAAO;;;;;mDAKxB,mBAAmB,CAAC,OAAO;;oBAE1D,mBAAmB,CAAC,GAAG,KAAK,mBAAmB,CAAC,KAAK;;;;;;;2DAOd,mBAAmB,CAAC,OAAO;;;;kDAIpC,mBAAmB,CAAC,GAAG,KAAK,mBAAmB,CAAC,KAAK;;;;;;;;;;;;;;;;;SAiB9F,CAAC;AAEV,MAAM,CAAC,MAAM,YAAY,GAAG;;;;IAIxB,cAAc;;;;;;6BAMW,cAAc,CAAC,QAAQ;;;;;YAKxC,cAAc,CAAC,iBAAiB;;;;;;;;;;UAUlC,cAAc,CAAC,oBAAoB;;sCAEP,mBAAmB,CAAC,GAAG,KAAK,mBAAmB,CAAC,KAAK;8DAC7B,cAAc,CAAC,aAAa;;;;;;;;;;;;;;;;;;wEAkBlB,mBAAmB,CAAC,KAAK,iCAAiC,mBAAmB,CAAC,GAAG;;;;;;;;;;;QAWjJ,cAAc,CAAC,KAAK;;;QAGpB,cAAc,CAAC,YAAY;;QAE3B,CAAC","sourcesContent":["import { EstimateInvoiceType } from '../../../types/Enum/EstimateInvoice';\nimport { CommercialDocumentCommonHTML } from './common';\n\nconst commonTemplate = new CommercialDocumentCommonHTML();\n\nconst headOfDocument = `<div class=\"row space-between\">\n <% if (settings && settings.logoAlignment === 'left') { %>\n <div class=\"society-informations\">\n ${commonTemplate.logo}\n ${commonTemplate.company}\n </div>\n <% } else { %>\n <div class=\"society-informations\">${commonTemplate.company}</div>\n ${commonTemplate.logo}\n <% } %>\n </div>\n\n <div class=\"row space-between items-end\" style=\"margin-top: 10px\">\n <div style=\"width: 45%; margin-top: auto;\">\n <span class=\"document-reference\">\n <% if (idEstimateInvoiceType === ${EstimateInvoiceType.BON}) { %>\n <%= languageTemplate.template.orderForm.headers.title %>\n <% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.DEVIS}) { %>\n <%= languageTemplate.template.estimate.headers.title %>\n <% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.FACTURE}) { %>\n <%= languageTemplate.template.invoice.headers.title %>\n <% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.AVOIR}) { %>\n <%= languageTemplate.template.asset.headers.title %>\n <% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.RESTE}) { %>\n <%= languageTemplate.template.remainder.headers.title %>\n <% } else if (idEstimateInvoiceType === ${EstimateInvoiceType.ACOMPTE}) { %>\n <%= languageTemplate.template.deposit.headers.title %>\n <% } %>\n <%= reference %></span><br/>\n <% if(emissionDate) {%><span class=\"document-emission-date\"> <%= languageTemplate.template.common.headers.emissionDate %> : <%= emissionDateFormatted %></span><br/><% } %>\n <% if(dueDate && idEstimateInvoiceType !== ${EstimateInvoiceType.ACOMPTE}) {%>\n <span class=\"document-due-date\">\n <% if ([${EstimateInvoiceType.BON}, ${EstimateInvoiceType.DEVIS}].includes(idEstimateInvoiceType)) {%>\n <%= languageTemplate.template.estimate.headers.dueDate %> :\n <% } else { %>\n <%= languageTemplate.template.invoice.headers.dueDate %> :\n <% } %>\n <%= dueDateFormatted %></span>\n <% } %>\n <% if (expirationDate && idEstimateInvoiceType === ${EstimateInvoiceType.ACOMPTE}) {%>\n <span class=\"document-due-date\"><%= languageTemplate.template.deposit.headers.expirationDate %> : : <%= expirationDateFormatted %></span>\n <% } %>\n <% if(termsOfPayment) { %>\n <br/><p style=\"margin-bottom: 0px;\"><%= [${EstimateInvoiceType.BON}, ${EstimateInvoiceType.DEVIS}].includes(idEstimateInvoiceType) ? languageTemplate.template.estimate.headers.termsOfPayment : languageTemplate.template.invoice.headers.termsOfPayment %> : <%= termsOfPayment %></p>\n <% } %>\n </div>\n <div style=\"width: 40%; margin-top: auto;\">\n <p></p>\n <% if (thirdParty) { %>\n <div class=\"<%= settings && settings.isCoordinatesFrameDisplayed ? 'customer-border' : '' %>\">\n <% if(thirdParty.company) {%><b><%= thirdParty.company %></b><br/><% } %>\n <% if(thirdParty.fullname) {%><%= thirdParty.fullname %><br/><% } %>\n <% if(thirdParty.address) {%><%= thirdParty.address %><br/><% } %>\n <% if(thirdParty.zipCode) {%><%= thirdParty.zipCode + ' ' %><% } %><%= thirdParty.city %> <%= thirdParty.country %><br/>\n <% if(thirdParty.deliveryAddress && thirdParty.deliveryCity && thirdParty.deliveryZipCode) {%>Adresse de livraison : <%= thirdParty.deliveryAddress %> <%= thirdParty.deliveryZipCode %> <%= thirdParty.deliveryCity %> <%= thirdParty.deliveryCountry %><br/><% } %>\n <% if(thirdParty.nSiret) {%>SIRET : <%= thirdParty.nSiret %><br/><% } %>\n <% if(thirdParty.nTva) {%>N° TVA : <%= thirdParty.nTva %><% } %>\n </div>\n <% } %>\n </div>\n </div>`;\n\nexport const bodyTemplate = `<html class=\"pdf-content\">\n\n <body>\n\n ${headOfDocument}\n\n <div class=\"row mt-25\">\n <% if (title) { %><%=languageTemplate.template.common.headers.title %> : <%= title %><% } %>\n </div>\n\n <div class=\"row mt-10\">${commonTemplate.products}</div>\n\n <div class=\"row space-between mt-20\">\n <div style=\"width: 55%;\">\n <% if (disableVat !== true && vats.length) { %>\n ${commonTemplate.vatRecapitulation}\n <% } %>\n <% if (vatMention && vatMention !== 'TVA: Non concerné') { %><div class=\"vat-mention <%= disableVat !== true ? 'mt-20' : ''%>\"><%= vatMention %></div><% } %>\n <% if (comment) { %>\n <p class=\"mt-20\"><%= languageTemplate.template.common.options.comment %> :<br/>\n <%- comment %>\n <% } %>\n </div>\n\n <div>\n ${commonTemplate.amountRecapitulation}\n\n <% if (isStripeAllowed && ![${EstimateInvoiceType.BON}, ${EstimateInvoiceType.DEVIS}].includes(idEstimateInvoiceType)) { %>\n <div style=\"text-align: right; margin-top: 30px;\">${commonTemplate.paymentButton}</div>\n <% } %>\n </div>\n \n </div>\n\n <% if ((settings && (settings.iban || settings.bic || settings.bank)) || paymentType) { %>\n <div class=\"row mt-30 space-between\" style=\"page-break-inside: avoid !important;\">\n <div>\n <% if ((settings && (settings.iban || settings.bic || settings.bank)) || paymentType) { %>\n <% if(paymentType) { %><%= languageTemplate.template.common.options.paymentType %> : <%= paymentType %><br/><% } %>\n <% if(settings.bank) { %><%= languageTemplate.template.common.options.bank %> : <%= settings.bank %><br/><% } %>\n <% if(settings.iban) { %>IBAN : <%= settings.iban %><br/><% } %>\n <% if(settings.bic) { %>BIC : <%= settings.bic %><% } %>\n <% } %>\n </div>\n </div>\n <% } %>\n <% if (settings && settings.bonPour && (idEstimateInvoiceType === ${EstimateInvoiceType.DEVIS} || idEstimateInvoiceType === ${EstimateInvoiceType.BON})) { %>\n <br/><%= languageTemplate.template.common.options.approval %> : <br/><br/><br/><br/>\n <% } %>\n\n <% if (cgv && (settings && settings.invoiceCgv)) { %>\n <br><div style=\"page-break-after:always;\"></div>\n <div id=\"WYSIWYG\"><%- cgv %></div>\n <% } %>\n </body>\n\n <style>\n ${commonTemplate.style}\n </style>\n <style>\n ${commonTemplate.styleWYSIWYG}\n </style>\n</html>`;\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "1.3.30-1",
3
+ "version": "1.3.30-3",
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",
@@ -18,6 +18,13 @@ export class Authenticate extends Resource {
18
18
  return this.axios.$post('/authenticate', payload);
19
19
  }
20
20
 
21
+ /**
22
+ * Rafraichi le token, il est nécessaire d'être connecté et d'avoir un "current society"
23
+ */
24
+ async refresh(): Promise<{ token: string }> {
25
+ return this.axios.$post('/authenticate/refresh');
26
+ }
27
+
21
28
  async connectAsCollaborater(idCollaborater: number): Promise<{ token: string }> {
22
29
  return this.axios.$post(`/authenticate/collaborater/${idCollaborater}`);
23
30
  }
@@ -46,6 +46,10 @@ export class File extends Resource {
46
46
  return this.axios.$patch(`files/${id}`, payload);
47
47
  }
48
48
 
49
+ updateName(id: number, name: string): Promise<IFile> {
50
+ return this.axios.$patch(`files/${id}/name`, { name });
51
+ }
52
+
49
53
  delete(id: number): Promise<true> {
50
54
  return this.axios.$delete(`files/${id}`);
51
55
  }
@@ -52,7 +52,7 @@ export class Prestation extends Resource {
52
52
  params?: QueryPrestation,
53
53
  cancelToken?: CancelToken,
54
54
  signal?: AbortSignal,
55
- ): Promise<IPrestation[]> {
55
+ ): Promise<Array<IPrestation & { isActive: boolean }>> {
56
56
  return this.axios.$get(`/societies/${id}/prestations`, {
57
57
  ...(cancelToken ? { cancelToken } : {}),
58
58
  ...(signal ? { signal } : {}),
@@ -11,6 +11,10 @@ export const Account = {
11
11
  id: 27,
12
12
  number: 607000,
13
13
  },
14
+ MERCHANDISE_CREDIT: {
15
+ id: 227,
16
+ number: 607190,
17
+ },
14
18
  RESULT_BENEFIT: {
15
19
  id: 91,
16
20
  number: 120000,
@@ -0,0 +1,65 @@
1
+ export enum Feature {
2
+ // Tableau de bord
3
+ DASHBOARD = 'dashboard',
4
+ // Relevés bancaires / Espèces
5
+ BANK = 'bank',
6
+ // Liens de paiement
7
+ PAYMENT_LINK = 'payment_link',
8
+ // Recouvrement
9
+ PAYMENT_RECOVERY = 'payment_recovery',
10
+ // Juridique
11
+ JURIDIC = 'juridic',
12
+
13
+ /** ACHATS */
14
+ // Factures d'achat / Notes de frais / Fournisseurs
15
+ PURCHASE = 'purchase_invoice',
16
+ // Grand-Livre d'achat
17
+ PURCHASE_GENERAL_LEDGER = 'purchase_general_ledger',
18
+
19
+ /** Facturation */
20
+ // Factures, devis, brouillons, articles, clients, ticketsZ
21
+ SALE = 'sale',
22
+ // Grand-Livre de vente
23
+ SALE_GENERAL_LEDGER = 'sale_general_ledger',
24
+
25
+ /** Comptabilité */
26
+ // TVA
27
+ VAT = 'vat',
28
+ // DAS2
29
+ DAS2 = 'das2',
30
+ // Documents annexes
31
+ OTHER_REGISTRATION_DOCUMENTS = 'other_registration_documents',
32
+ // Bilan comptable - comptalib - ORI
33
+ BALANCESHEET_ACCOUNTANT = 'balancesheet_accountant',
34
+ // Bilan (version client - certifié par un Expert-Comptable)
35
+ BALANCESHEET_CUSTOMER = 'balancesheet_customer',
36
+ // Bilan (freemium)
37
+ BALANCESHEET_FREEMIUM = 'balancesheet_freemium',
38
+
39
+ /** Salariés */
40
+ // Salariés Freemium
41
+ SOCIAL_FREEMIUM = 'social_freemium',
42
+ // Salariés / Elements de paie
43
+ SOCIAL = 'social',
44
+
45
+ // Bibliothèque
46
+ LIBRARY = 'library',
47
+ // Expert-Comptable
48
+ EXPERT_ACCOUNTANT = 'expert_accountant',
49
+
50
+ // Chat Crisp
51
+ CHAT = 'chat',
52
+
53
+ /** Configuration */
54
+ SETTING = 'setting',
55
+ SETTING_INFORMATION = 'information',
56
+ SETTING_BANK = 'setting_bank',
57
+ SETTING_ANNOTATION = 'setting_annotation',
58
+ SETTING_PURCHASE = 'setting_purchase',
59
+ SETTING_SALE = 'setting_sale',
60
+ SETTING_CONNECTOR = 'setting_connector',
61
+ SETTING_ACCOUNTANCY_ACCOUNT = 'setting_accountancy_account',
62
+ SETTING_SUBSCRIPTION = 'setting_subscription',
63
+ SETTING_ACCESS = 'setting_access',
64
+ CUSTOMISATION = 'customisation',
65
+ }
@@ -39,6 +39,8 @@ export enum JobTitle {
39
39
  RECRUITMENT_OFFICER = 38,
40
40
  HUMAN_RESOURCES_ASSISTANT = 39,
41
41
  HUMAN_RESOURCES = 40,
42
+ DEVELOPER = 41,
43
+ CAMERA_EDITOR = 42,
42
44
  }
43
45
 
44
46
  export const JobTitleList: Array<{ id: JobTitle; menText: string; womenText: string }> = [
@@ -242,4 +244,14 @@ export const JobTitleList: Array<{ id: JobTitle; menText: string; womenText: str
242
244
  menText: 'Responsable Ressources Humaines',
243
245
  womenText: 'Responsable Ressources Humaines',
244
246
  },
247
+ {
248
+ id: JobTitle.DEVELOPER,
249
+ menText: 'Développeur web',
250
+ womenText: 'Développeur web',
251
+ },
252
+ {
253
+ id: JobTitle.CAMERA_EDITOR,
254
+ menText: 'Monteur / Cadreur',
255
+ womenText: 'Monteur / Cadreur',
256
+ },
245
257
  ];
@@ -6,4 +6,5 @@ export const StatusRating = [
6
6
  { value: 4, text: 'Non concerné', color: 'skyblue' },
7
7
  { value: 5, text: 'Résolu', color: 'green' },
8
8
  { value: 6, text: 'En cours', color: 'orange' },
9
+ { value: 7, text: 'Sans solution', color: 'red' },
9
10
  ];
@@ -1,6 +1,34 @@
1
+ import { IsOptional, IsString } from 'class-validator';
1
2
  import { ApiPropertyOptional } from '../../../../utils';
2
3
 
3
4
  export class UpdateMobileForm {
4
5
  @ApiPropertyOptional()
6
+ @IsString()
7
+ @IsOptional()
5
8
  token?: string;
9
+
10
+ @ApiPropertyOptional()
11
+ @IsString()
12
+ @IsOptional()
13
+ appVersion?: string;
14
+
15
+ @ApiPropertyOptional()
16
+ @IsString()
17
+ @IsOptional()
18
+ appBuildNumber?: string;
19
+
20
+ @ApiPropertyOptional()
21
+ @IsString()
22
+ @IsOptional()
23
+ deviceBrand?: string;
24
+
25
+ @ApiPropertyOptional()
26
+ @IsString()
27
+ @IsOptional()
28
+ deviceSystemVersion?: string;
29
+
30
+ @ApiPropertyOptional()
31
+ @IsString()
32
+ @IsOptional()
33
+ deviceId?: string;
6
34
  }
@@ -1,4 +1,4 @@
1
- import { IsNumber, IsOptional, IsString } from 'class-validator';
1
+ import { IsInt, IsNumber, IsOptional, IsString } from 'class-validator';
2
2
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
3
  import { PaymentReason } from '../../../Enum/PaymentReason';
4
4
 
@@ -17,16 +17,16 @@ export class CreatePaymentExpecation {
17
17
  payload?: string | null;
18
18
 
19
19
  @ApiProperty()
20
- @IsNumber()
20
+ @IsInt()
21
21
  idReason: PaymentReason;
22
22
 
23
23
  @ApiPropertyOptional()
24
- @IsNumber()
24
+ @IsInt()
25
25
  @IsOptional()
26
26
  idPrestation?: number | null;
27
27
 
28
28
  @ApiPropertyOptional()
29
- @IsNumber()
29
+ @IsInt()
30
30
  @IsOptional()
31
31
  idRegulation?: number | null;
32
32
 
@@ -34,4 +34,9 @@ export class CreatePaymentExpecation {
34
34
  @IsString()
35
35
  @IsOptional()
36
36
  ref?: string | null;
37
+
38
+ @ApiPropertyOptional()
39
+ @IsInt()
40
+ @IsOptional()
41
+ idUserNotifyPaiementProceed?: number | null;
37
42
  }
@@ -1,5 +1,6 @@
1
1
  import { IsDate, IsInt, IsOptional, IsString } from 'class-validator';
2
2
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
3
+ import Stripe from 'stripe';
3
4
 
4
5
  export class CreateStripeConnection {
5
6
  @ApiProperty()
@@ -13,6 +14,24 @@ export class CreateStripePortals {
13
14
  stripeCustomerId: string;
14
15
  }
15
16
 
17
+ export class CreateCustomer {
18
+ @ApiProperty()
19
+ @IsInt()
20
+ id: number;
21
+
22
+ @ApiProperty()
23
+ @IsString()
24
+ email: string;
25
+
26
+ @ApiPropertyOptional()
27
+ @IsString()
28
+ lastname?: string;
29
+
30
+ @ApiPropertyOptional()
31
+ @IsString()
32
+ firstname?: string;
33
+ }
34
+
16
35
  export class CreateImportTransactionForSociety {
17
36
  @ApiPropertyOptional()
18
37
  @IsDate()
@@ -49,4 +68,7 @@ export class CreatePaymentIntent {
49
68
  @ApiProperty()
50
69
  @IsInt()
51
70
  amountInCents: number;
71
+
72
+ @ApiPropertyOptional()
73
+ metadata?: Stripe.MetadataParam;
52
74
  }
@@ -64,6 +64,7 @@ export class ComplementaryPrestationTaxDeadline {
64
64
  paid: boolean;
65
65
  name: string;
66
66
  isBack: boolean;
67
+ idPrestationList: number;
67
68
  }
68
69
 
69
70
  export class PrestationTaxDeadline {
@@ -1,4 +1,4 @@
1
- import { IsDate, IsDateString, IsEnum, IsIn, IsNumber, IsOptional, IsString } from 'class-validator';
1
+ import { IsDate, IsDateString, IsEnum, IsNumber, IsOptional, IsString } from 'class-validator';
2
2
  import { CerfaType } from '../../../Enum/CerfaType';
3
3
  import { ApiProperty, ApiPropertyOptional } from '../../../../utils/decorators';
4
4
 
@@ -55,7 +55,7 @@ export class QueryVatEntry {
55
55
 
56
56
  // TODO: Passer le paramètre en requis une fois le front mis à jour
57
57
  @ApiPropertyOptional()
58
- @IsIn(Object.values(CerfaType))
58
+ // @IsIn(Object.values(CerfaType))
59
59
  @IsOptional()
60
60
  idCerfaType?: CerfaType;
61
61
  }
@@ -5,6 +5,11 @@ export interface IMobile {
5
5
  lastConnection: Date | null;
6
6
  firstConnection: Date | null;
7
7
  token: string | null;
8
+ appVersion: string | null;
9
+ appBuildNumber: string | null;
10
+ deviceBrand: string | null;
11
+ deviceSystemVersion: string | null;
12
+ deviceId: string | null;
8
13
  idUser: number;
9
14
  createdAt?: Date | null;
10
15
  updatedAt?: Date | null;
@@ -3,6 +3,7 @@ import { IPaymentMethod } from './IPaymentMethod';
3
3
  import { IUser } from './IUser';
4
4
  import { IExercice } from './IExercice';
5
5
  import { IFile } from './IFile';
6
+ import { IPaymentExpectation } from './IPaymentExpectation';
6
7
 
7
8
  // payments
8
9
  export interface IPayment {
@@ -39,6 +40,7 @@ export interface IPayment {
39
40
  // Associations
40
41
  paymentsPrestations?: IPrestation;
41
42
  paymentsMethod?: IPaymentMethod;
43
+ paymentExpectations?: IPaymentExpectation[];
42
44
  user?: IUser;
43
45
  exercice?: IExercice;
44
46
  files?: IFile;
@@ -15,6 +15,7 @@ export interface IPaymentExpectation {
15
15
  idSociety: number;
16
16
  idRegulation: number | null;
17
17
  idPrestation: number | null;
18
+ idPayment: number | null;
18
19
  idUserNotifyPaiementProceed?: number | null;
19
20
  idUserTaskPaiementProceed?: number | null;
20
21
  createdAt?: Date | null;
@@ -33,11 +33,13 @@ export interface IUser {
33
33
  firstname?: string | null;
34
34
  lastname?: string | null;
35
35
  fullname?: string | null;
36
+ avatarLink?: string;
36
37
  email?: string | null;
37
38
  email2?: string | null;
38
39
  isMigrated?: boolean;
39
40
  username?: string | null;
40
41
  stripeCustomerId?: string | null;
42
+ stripeCustomerIdErp?: string | null;
41
43
  positionLabel?: string | null;
42
44
  sha?: string | null;
43
45
  hash?: string | null;
package/ts/types/index.ts CHANGED
@@ -336,6 +336,7 @@ export * from './Form/FormAuthenticate';
336
336
  export * from './Form/FormConnector';
337
337
 
338
338
  // Enums
339
+ export * from './Enum/Feature';
339
340
  export * from './Enum/AutomaticRegistration';
340
341
  export * from './Enum/IntermediateManagementRebate';
341
342
  export * from './Enum/Das';
@@ -82,7 +82,7 @@ export const bodyTemplate = `<html class="pdf-content">
82
82
  <% if (disableVat !== true && vats.length) { %>
83
83
  ${commonTemplate.vatRecapitulation}
84
84
  <% } %>
85
- <% if (vatMention) { %><div class="vat-mention <%= disableVat !== true ? 'mt-20' : ''%>"><%= vatMention %></div><% } %>
85
+ <% if (vatMention && vatMention !== 'TVA: Non concerné') { %><div class="vat-mention <%= disableVat !== true ? 'mt-20' : ''%>"><%= vatMention %></div><% } %>
86
86
  <% if (comment) { %>
87
87
  <p class="mt-20"><%= languageTemplate.template.common.options.comment %> :<br/>
88
88
  <%- comment %>