@silexpert/core 1.3.30-1 → 1.3.30-2
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/dist/cjs/api/resources/prestation.d.ts +3 -1
- package/dist/cjs/api/resources/prestation.d.ts.map +1 -1
- package/dist/cjs/api/resources/prestation.js.map +1 -1
- package/dist/cjs/types/Enum/Feature.d.ts +38 -0
- package/dist/cjs/types/Enum/Feature.d.ts.map +1 -0
- package/dist/cjs/types/Enum/Feature.js +61 -0
- package/dist/cjs/types/Enum/Feature.js.map +1 -0
- package/dist/cjs/types/Enum/StatusRating.d.ts.map +1 -1
- package/dist/cjs/types/Enum/StatusRating.js +1 -0
- package/dist/cjs/types/Enum/StatusRating.js.map +1 -1
- package/dist/cjs/types/Interface/api/mobile/UpdateMobile.d.ts +5 -0
- package/dist/cjs/types/Interface/api/mobile/UpdateMobile.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/mobile/UpdateMobile.js +33 -0
- package/dist/cjs/types/Interface/api/mobile/UpdateMobile.js.map +1 -1
- package/dist/cjs/types/Interface/api/taxDeadline/ReadTaxDeadline.d.ts +1 -0
- package/dist/cjs/types/Interface/api/taxDeadline/ReadTaxDeadline.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/taxDeadline/ReadTaxDeadline.js.map +1 -1
- package/dist/cjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.js +3 -2
- package/dist/cjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.js.map +1 -1
- package/dist/cjs/types/Interface/models/IMobile.d.ts +5 -0
- package/dist/cjs/types/Interface/models/IMobile.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IMobile.js.map +1 -1
- package/dist/cjs/types/index.d.ts +1 -0
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +1 -0
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/cjs/utils/commercialManagement/templates/body.js +1 -1
- package/dist/cjs/utils/commercialManagement/templates/body.js.map +1 -1
- package/dist/mjs/api/resources/prestation.d.ts +3 -1
- package/dist/mjs/api/resources/prestation.d.ts.map +1 -1
- package/dist/mjs/api/resources/prestation.js.map +1 -1
- package/dist/mjs/types/Enum/Feature.d.ts +38 -0
- package/dist/mjs/types/Enum/Feature.d.ts.map +1 -0
- package/dist/mjs/types/Enum/Feature.js +58 -0
- package/dist/mjs/types/Enum/Feature.js.map +1 -0
- package/dist/mjs/types/Enum/StatusRating.d.ts.map +1 -1
- package/dist/mjs/types/Enum/StatusRating.js +1 -0
- package/dist/mjs/types/Enum/StatusRating.js.map +1 -1
- package/dist/mjs/types/Interface/api/mobile/UpdateMobile.d.ts +5 -0
- package/dist/mjs/types/Interface/api/mobile/UpdateMobile.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/mobile/UpdateMobile.js +38 -0
- package/dist/mjs/types/Interface/api/mobile/UpdateMobile.js.map +1 -1
- package/dist/mjs/types/Interface/api/taxDeadline/ReadTaxDeadline.d.ts +1 -0
- package/dist/mjs/types/Interface/api/taxDeadline/ReadTaxDeadline.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/taxDeadline/ReadTaxDeadline.js +1 -0
- package/dist/mjs/types/Interface/api/taxDeadline/ReadTaxDeadline.js.map +1 -1
- package/dist/mjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.js +4 -3
- package/dist/mjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.js.map +1 -1
- package/dist/mjs/types/Interface/models/IMobile.d.ts +5 -0
- package/dist/mjs/types/Interface/models/IMobile.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IMobile.js.map +1 -1
- package/dist/mjs/types/index.d.ts +1 -0
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +1 -0
- package/dist/mjs/types/index.js.map +1 -1
- package/dist/mjs/utils/commercialManagement/templates/body.js +1 -1
- package/dist/mjs/utils/commercialManagement/templates/body.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/prestation.ts +1 -1
- package/ts/types/Enum/Feature.ts +62 -0
- package/ts/types/Enum/StatusRating.ts +1 -0
- package/ts/types/Interface/api/mobile/UpdateMobile.ts +28 -0
- package/ts/types/Interface/api/taxDeadline/ReadTaxDeadline.ts +1 -0
- package/ts/types/Interface/api/vatDeclaration/QueryVatDeclaration.ts +2 -2
- package/ts/types/Interface/models/IMobile.ts +5 -0
- package/ts/types/index.ts +1 -0
- 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-
|
|
3
|
+
"version": "1.3.30-2",
|
|
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",
|
|
@@ -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 } : {}),
|
|
@@ -0,0 +1,62 @@
|
|
|
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
|
+
/** Configuration */
|
|
51
|
+
SETTING = 'setting',
|
|
52
|
+
SETTING_INFORMATION = 'information',
|
|
53
|
+
SETTING_BANK = 'setting_bank',
|
|
54
|
+
SETTING_ANNOTATION = 'setting_annotation',
|
|
55
|
+
SETTING_PURCHASE = 'setting_purchase',
|
|
56
|
+
SETTING_SALE = 'setting_sale',
|
|
57
|
+
SETTING_CONNECTOR = 'setting_connector',
|
|
58
|
+
SETTING_ACCOUNTANCY_ACCOUNT = 'setting_accountancy_account',
|
|
59
|
+
SETTING_SUBSCRIPTION = 'setting_subscription',
|
|
60
|
+
SETTING_ACCESS = 'setting_access',
|
|
61
|
+
CUSTOMISATION = 'customisation',
|
|
62
|
+
}
|
|
@@ -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 { IsDate, IsDateString, IsEnum,
|
|
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;
|
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 %>
|