@silexpert/core 2.0.99 → 2.0.101
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/api/resources/Search.d.ts +2 -1
- package/dist/api/resources/Search.d.ts.map +1 -1
- package/dist/api/resources/Search.js +3 -0
- package/dist/api/resources/Search.js.map +1 -1
- package/dist/api/resources/SocietyCreationCheckout.d.ts +7 -0
- package/dist/api/resources/SocietyCreationCheckout.d.ts.map +1 -0
- package/dist/api/resources/SocietyCreationCheckout.js +10 -0
- package/dist/api/resources/SocietyCreationCheckout.js.map +1 -0
- package/dist/api/resources.d.ts +2 -0
- package/dist/api/resources.d.ts.map +1 -1
- package/dist/api/resources.js +2 -0
- package/dist/api/resources.js.map +1 -1
- package/dist/types/Enum/Constants.d.ts +2 -0
- package/dist/types/Enum/Constants.d.ts.map +1 -1
- package/dist/types/Enum/Constants.js +2 -0
- package/dist/types/Enum/Constants.js.map +1 -1
- package/dist/types/Enum/MailAuto.d.ts +2 -1
- package/dist/types/Enum/MailAuto.d.ts.map +1 -1
- package/dist/types/Enum/MailAuto.js +1 -0
- package/dist/types/Enum/MailAuto.js.map +1 -1
- package/dist/types/Enum/SocietyApproval.js +12 -12
- package/dist/types/Enum/SocietyApproval.js.map +1 -1
- package/dist/types/Enum/SocietyCreationCheckoutStatus.d.ts +9 -0
- package/dist/types/Enum/SocietyCreationCheckoutStatus.d.ts.map +1 -0
- package/dist/types/Enum/SocietyCreationCheckoutStatus.js +10 -0
- package/dist/types/Enum/SocietyCreationCheckoutStatus.js.map +1 -0
- package/dist/types/Enum/Zendesk.d.ts +26 -0
- package/dist/types/Enum/Zendesk.d.ts.map +1 -1
- package/dist/types/Enum/Zendesk.js +49 -0
- package/dist/types/Enum/Zendesk.js.map +1 -1
- package/dist/types/Interface/api/kyc/Read.d.ts +2 -2
- package/dist/types/Interface/api/kyc/Read.d.ts.map +1 -1
- package/dist/types/Interface/api/kyc/Read.js.map +1 -1
- package/dist/types/Interface/api/pappers/ReadPappers.d.ts +1 -0
- package/dist/types/Interface/api/pappers/ReadPappers.d.ts.map +1 -1
- package/dist/types/Interface/api/pappers/ReadPappers.js +1 -0
- package/dist/types/Interface/api/pappers/ReadPappers.js.map +1 -1
- package/dist/types/Interface/api/society/CreateSociety.d.ts +1 -0
- package/dist/types/Interface/api/society/CreateSociety.d.ts.map +1 -1
- package/dist/types/Interface/api/society/CreateSociety.js +5 -0
- package/dist/types/Interface/api/society/CreateSociety.js.map +1 -1
- package/dist/types/Interface/api/societyCreationCheckout/SocietyCreationCheckout.d.ts +32 -0
- package/dist/types/Interface/api/societyCreationCheckout/SocietyCreationCheckout.d.ts.map +1 -0
- package/dist/types/Interface/api/societyCreationCheckout/SocietyCreationCheckout.js +83 -0
- package/dist/types/Interface/api/societyCreationCheckout/SocietyCreationCheckout.js.map +1 -0
- package/dist/types/Interface/api/stripe/Create.d.ts +1 -0
- package/dist/types/Interface/api/stripe/Create.d.ts.map +1 -1
- package/dist/types/Interface/api/stripe/Create.js +7 -0
- package/dist/types/Interface/api/stripe/Create.js.map +1 -1
- package/dist/types/Interface/api/zendesk/QueryTicket.d.ts +3 -1
- package/dist/types/Interface/api/zendesk/QueryTicket.d.ts.map +1 -1
- package/dist/types/Interface/api/zendesk/QueryTicket.js +15 -1
- package/dist/types/Interface/api/zendesk/QueryTicket.js.map +1 -1
- package/dist/types/Interface/models/IEInvoicingKycAndMandate.d.ts +1 -0
- package/dist/types/Interface/models/IEInvoicingKycAndMandate.d.ts.map +1 -1
- package/dist/types/Interface/models/IEInvoicingKycAndMandate.js +1 -0
- package/dist/types/Interface/models/IEInvoicingKycAndMandate.js.map +1 -1
- package/dist/types/Interface/models/ISocietyCreationCheckout.d.ts +23 -0
- package/dist/types/Interface/models/ISocietyCreationCheckout.d.ts.map +1 -0
- package/dist/types/Interface/models/ISocietyCreationCheckout.js +2 -0
- package/dist/types/Interface/models/ISocietyCreationCheckout.js.map +1 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +3 -0
- package/dist/types/index.js.map +1 -1
- package/dist/utils/commercialManagement/document.d.ts.map +1 -1
- package/dist/utils/commercialManagement/document.js +1 -1
- package/dist/utils/commercialManagement/document.js.map +1 -1
- package/dist/utils/societyApproval.d.ts.map +1 -1
- package/dist/utils/societyApproval.js +5 -4
- package/dist/utils/societyApproval.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Search.ts +9 -1
- package/ts/api/resources/SocietyCreationCheckout.ts +16 -0
- package/ts/api/resources.ts +2 -0
- package/ts/types/Enum/Constants.ts +3 -0
- package/ts/types/Enum/MailAuto.ts +1 -0
- package/ts/types/Enum/SocietyApproval.ts +12 -12
- package/ts/types/Enum/SocietyCreationCheckoutStatus.ts +8 -0
- package/ts/types/Enum/Zendesk.ts +71 -0
- package/ts/types/Interface/api/kyc/Read.ts +2 -2
- package/ts/types/Interface/api/pappers/ReadPappers.ts +1 -0
- package/ts/types/Interface/api/society/CreateSociety.ts +3 -0
- package/ts/types/Interface/api/societyCreationCheckout/SocietyCreationCheckout.ts +66 -0
- package/ts/types/Interface/api/stripe/Create.ts +5 -0
- package/ts/types/Interface/api/zendesk/QueryTicket.ts +12 -0
- package/ts/types/Interface/models/IEInvoicingKycAndMandate.ts +1 -0
- package/ts/types/Interface/models/ISocietyCreationCheckout.ts +23 -0
- package/ts/types/index.ts +3 -0
- package/ts/utils/commercialManagement/document.ts +3 -1
- package/ts/utils/societyApproval.ts +7 -3
package/ts/types/index.ts
CHANGED
|
@@ -4,6 +4,7 @@ export * from './Interface/models/IBusinessLineUser.js';
|
|
|
4
4
|
export * from './Interface/models/IVisualizedInformation.js';
|
|
5
5
|
export * from './Interface/models/IApiError.js';
|
|
6
6
|
export * from './Interface/models/ILoginApproval.js';
|
|
7
|
+
export * from './Interface/models/ISocietyCreationCheckout.js';
|
|
7
8
|
export * from './Interface/models/ISms.js';
|
|
8
9
|
export * from './Interface/models/IAccessToken.js';
|
|
9
10
|
export * from './Interface/models/IAccountDetail.js';
|
|
@@ -311,6 +312,7 @@ export * from './Enum/AutomaticRegistration.js';
|
|
|
311
312
|
export * from './Enum/IntermediateManagementRebate.js';
|
|
312
313
|
export * from './Enum/Das.js';
|
|
313
314
|
export * from './Enum/LoginApprovalStatus.js';
|
|
315
|
+
export * from './Enum/SocietyCreationCheckoutStatus.js';
|
|
314
316
|
export * from './Enum/MfaMode.js';
|
|
315
317
|
export * from './Enum/ChangeLog.js';
|
|
316
318
|
export * from './Enum/VisualizedInformation.js';
|
|
@@ -993,6 +995,7 @@ export * from './Interface/api/qonto/Query.js';
|
|
|
993
995
|
export * from './Interface/api/qonto/Create.js';
|
|
994
996
|
export * from './Interface/api/stripe/Create.js';
|
|
995
997
|
export * from './Interface/api/stripe/Update.js';
|
|
998
|
+
export * from './Interface/api/societyCreationCheckout/SocietyCreationCheckout.js';
|
|
996
999
|
export * from './Interface/api/qonto/UpdateConnection.js';
|
|
997
1000
|
export * from './Interface/api/qonto/GetConnectionInformation.js';
|
|
998
1001
|
export * from './Interface/api/qonto/Read.js';
|
|
@@ -350,7 +350,9 @@ export function checkCommercialDocumentInformation(payload: CreateInvoiceDocumen
|
|
|
350
350
|
if (['margin', 'autoliquidation', 'export', 'exempt'].includes(vatType)) {
|
|
351
351
|
for (const product of products) {
|
|
352
352
|
if (getById(product.idVat)?.value !== 0) {
|
|
353
|
-
errors.push(
|
|
353
|
+
errors.push(
|
|
354
|
+
`L'article "${product.itemSaleName}" a une TVA non nulle alors que la mention légale de TVA est définie comme "${vatType}".`,
|
|
355
|
+
);
|
|
354
356
|
}
|
|
355
357
|
}
|
|
356
358
|
}
|
|
@@ -59,13 +59,15 @@ export function getApprovalDocumentInfos(
|
|
|
59
59
|
return config?.documents.find((doc) => doc.idDocumentType === idDocumentType);
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
function createApprovalDecisionTitleGenerator(): () => string {
|
|
62
|
+
function createApprovalDecisionTitleGenerator(idLegalForm?: LegalFormTypeEnum): () => string {
|
|
63
63
|
const decisionOrdinals = ['PREMIERE', 'DEUXIEME', 'TROISIEME', 'QUATRIEME', 'CINQUIEME', 'SIXIEME'];
|
|
64
|
+
const decisionLabel =
|
|
65
|
+
idLegalForm === LegalFormTypeEnum.SARL || idLegalForm === LegalFormTypeEnum.SAS ? 'RESOLUTION' : 'DECISION';
|
|
64
66
|
let decisionNumber = 0;
|
|
65
67
|
|
|
66
68
|
return () => {
|
|
67
69
|
decisionNumber += 1;
|
|
68
|
-
return `${decisionOrdinals[decisionNumber - 1] ?? `${decisionNumber}EME`}
|
|
70
|
+
return `${decisionOrdinals[decisionNumber - 1] ?? `${decisionNumber}EME`} ${decisionLabel}`;
|
|
69
71
|
};
|
|
70
72
|
}
|
|
71
73
|
|
|
@@ -92,7 +94,9 @@ export function buildApprovalTemplateData(existingApproval: ISocietyApproval, st
|
|
|
92
94
|
return {
|
|
93
95
|
// Variables globales
|
|
94
96
|
AdditionalMentionType,
|
|
95
|
-
nextDecisionTitle: createApprovalDecisionTitleGenerator(
|
|
97
|
+
nextDecisionTitle: createApprovalDecisionTitleGenerator(
|
|
98
|
+
existingApproval?.exercice?.society?.idLegalForm ?? undefined,
|
|
99
|
+
),
|
|
96
100
|
rates: {
|
|
97
101
|
flatTax: 0.314,
|
|
98
102
|
flatLevy: 0.128, //prelevement forfaitaire
|