@silexpert/core 1.1.331 → 1.1.333
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/AccountingFiles.d.ts.map +1 -1
- package/dist/cjs/api/resources/AccountingFiles.js +3 -0
- package/dist/cjs/api/resources/AccountingFiles.js.map +1 -1
- package/dist/cjs/api/resources/CompanyCreationForm.d.ts +10 -0
- package/dist/cjs/api/resources/CompanyCreationForm.d.ts.map +1 -0
- package/dist/cjs/api/resources/CompanyCreationForm.js +23 -0
- package/dist/cjs/api/resources/CompanyCreationForm.js.map +1 -0
- package/dist/cjs/api/resources/SalariesFile.d.ts +1 -1
- package/dist/cjs/api/resources/SalariesFile.d.ts.map +1 -1
- package/dist/cjs/api/resources/SalariesFile.js.map +1 -1
- package/dist/cjs/api/resources.d.ts +2 -0
- package/dist/cjs/api/resources.d.ts.map +1 -1
- package/dist/cjs/api/resources.js +2 -0
- package/dist/cjs/api/resources.js.map +1 -1
- package/dist/cjs/types/Enum/FiscalRegime.d.ts +5 -0
- package/dist/cjs/types/Enum/FiscalRegime.d.ts.map +1 -1
- package/dist/cjs/types/Enum/FiscalRegime.js +28 -1
- package/dist/cjs/types/Enum/FiscalRegime.js.map +1 -1
- package/dist/cjs/types/Enum/LegalForm.d.ts +2 -1
- package/dist/cjs/types/Enum/LegalForm.d.ts.map +1 -1
- package/dist/cjs/types/Enum/LegalForm.js +10 -0
- package/dist/cjs/types/Enum/LegalForm.js.map +1 -1
- package/dist/cjs/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts +1 -0
- package/dist/cjs/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/accountingFiles/queryAccountingFiles.js +7 -0
- package/dist/cjs/types/Interface/api/accountingFiles/queryAccountingFiles.js.map +1 -1
- package/dist/cjs/types/Interface/api/companyCreationForm/CompanyCreationFormPayload.d.ts +107 -0
- package/dist/cjs/types/Interface/api/companyCreationForm/CompanyCreationFormPayload.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/companyCreationForm/CompanyCreationFormPayload.js +3 -0
- package/dist/cjs/types/Interface/api/companyCreationForm/CompanyCreationFormPayload.js.map +1 -0
- package/dist/cjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.d.ts +196 -0
- package/dist/cjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.js +737 -0
- package/dist/cjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.js.map +1 -0
- package/dist/cjs/types/Interface/api/companyCreationForm/UpdateCompanyCreationForm.d.ts +6 -0
- package/dist/cjs/types/Interface/api/companyCreationForm/UpdateCompanyCreationForm.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/companyCreationForm/UpdateCompanyCreationForm.js +24 -0
- package/dist/cjs/types/Interface/api/companyCreationForm/UpdateCompanyCreationForm.js.map +1 -0
- package/dist/cjs/types/Interface/api/societyConfig/update.d.ts +1 -0
- package/dist/cjs/types/Interface/api/societyConfig/update.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/societyConfig/update.js +7 -0
- package/dist/cjs/types/Interface/api/societyConfig/update.js.map +1 -1
- package/dist/cjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.d.ts +1 -1
- package/dist/cjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.js +1 -0
- package/dist/cjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.js.map +1 -1
- package/dist/cjs/types/Interface/api/vatDeclaration/ReadVatDeclaration.d.ts +18 -0
- package/dist/cjs/types/Interface/api/vatDeclaration/ReadVatDeclaration.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/vatDeclaration/ReadVatDeclaration.js +4 -1
- package/dist/cjs/types/Interface/api/vatDeclaration/ReadVatDeclaration.js.map +1 -1
- package/dist/cjs/types/Interface/models/ICompanyCreationForm.d.ts +12 -0
- package/dist/cjs/types/Interface/models/ICompanyCreationForm.d.ts.map +1 -0
- package/dist/cjs/types/Interface/models/ICompanyCreationForm.js +3 -0
- package/dist/cjs/types/Interface/models/ICompanyCreationForm.js.map +1 -0
- package/dist/cjs/types/Interface/models/ISocietyConfig.d.ts +1 -0
- package/dist/cjs/types/Interface/models/ISocietyConfig.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/ISocietyConfig.js.map +1 -1
- package/dist/cjs/types/index.d.ts +4 -0
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +4 -0
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/cjs/utils/vat/3310/century23.js.map +1 -1
- package/dist/mjs/api/resources/AccountingFiles.d.ts.map +1 -1
- package/dist/mjs/api/resources/AccountingFiles.js +3 -0
- package/dist/mjs/api/resources/AccountingFiles.js.map +1 -1
- package/dist/mjs/api/resources/CompanyCreationForm.d.ts +10 -0
- package/dist/mjs/api/resources/CompanyCreationForm.d.ts.map +1 -0
- package/dist/mjs/api/resources/CompanyCreationForm.js +23 -0
- package/dist/mjs/api/resources/CompanyCreationForm.js.map +1 -0
- package/dist/mjs/api/resources/SalariesFile.d.ts +1 -1
- package/dist/mjs/api/resources/SalariesFile.d.ts.map +1 -1
- package/dist/mjs/api/resources/SalariesFile.js.map +1 -1
- package/dist/mjs/api/resources.d.ts +2 -0
- package/dist/mjs/api/resources.d.ts.map +1 -1
- package/dist/mjs/api/resources.js +2 -0
- package/dist/mjs/api/resources.js.map +1 -1
- package/dist/mjs/types/Enum/FiscalRegime.d.ts +5 -0
- package/dist/mjs/types/Enum/FiscalRegime.d.ts.map +1 -1
- package/dist/mjs/types/Enum/FiscalRegime.js +27 -0
- package/dist/mjs/types/Enum/FiscalRegime.js.map +1 -1
- package/dist/mjs/types/Enum/LegalForm.d.ts +2 -1
- package/dist/mjs/types/Enum/LegalForm.d.ts.map +1 -1
- package/dist/mjs/types/Enum/LegalForm.js +10 -0
- package/dist/mjs/types/Enum/LegalForm.js.map +1 -1
- package/dist/mjs/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts +1 -0
- package/dist/mjs/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/accountingFiles/queryAccountingFiles.js +9 -1
- package/dist/mjs/types/Interface/api/accountingFiles/queryAccountingFiles.js.map +1 -1
- package/dist/mjs/types/Interface/api/companyCreationForm/CompanyCreationFormPayload.d.ts +107 -0
- package/dist/mjs/types/Interface/api/companyCreationForm/CompanyCreationFormPayload.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/companyCreationForm/CompanyCreationFormPayload.js +2 -0
- package/dist/mjs/types/Interface/api/companyCreationForm/CompanyCreationFormPayload.js.map +1 -0
- package/dist/mjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.d.ts +196 -0
- package/dist/mjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.js +897 -0
- package/dist/mjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.js.map +1 -0
- package/dist/mjs/types/Interface/api/companyCreationForm/UpdateCompanyCreationForm.d.ts +6 -0
- package/dist/mjs/types/Interface/api/companyCreationForm/UpdateCompanyCreationForm.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/companyCreationForm/UpdateCompanyCreationForm.js +21 -0
- package/dist/mjs/types/Interface/api/companyCreationForm/UpdateCompanyCreationForm.js.map +1 -0
- package/dist/mjs/types/Interface/api/societyConfig/update.d.ts +1 -0
- package/dist/mjs/types/Interface/api/societyConfig/update.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/societyConfig/update.js +8 -0
- package/dist/mjs/types/Interface/api/societyConfig/update.js.map +1 -1
- package/dist/mjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.d.ts +1 -1
- package/dist/mjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.js +1 -0
- package/dist/mjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.js.map +1 -1
- package/dist/mjs/types/Interface/api/vatDeclaration/ReadVatDeclaration.d.ts +18 -0
- package/dist/mjs/types/Interface/api/vatDeclaration/ReadVatDeclaration.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/vatDeclaration/ReadVatDeclaration.js +4 -0
- package/dist/mjs/types/Interface/api/vatDeclaration/ReadVatDeclaration.js.map +1 -1
- package/dist/mjs/types/Interface/models/ICompanyCreationForm.d.ts +12 -0
- package/dist/mjs/types/Interface/models/ICompanyCreationForm.d.ts.map +1 -0
- package/dist/mjs/types/Interface/models/ICompanyCreationForm.js +2 -0
- package/dist/mjs/types/Interface/models/ICompanyCreationForm.js.map +1 -0
- package/dist/mjs/types/Interface/models/ISocietyConfig.d.ts +1 -0
- package/dist/mjs/types/Interface/models/ISocietyConfig.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/ISocietyConfig.js.map +1 -1
- package/dist/mjs/types/index.d.ts +4 -0
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +4 -0
- package/dist/mjs/types/index.js.map +1 -1
- package/dist/mjs/utils/vat/3310/century23.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/AccountingFiles.ts +5 -0
- package/ts/api/resources/CompanyCreationForm.ts +29 -0
- package/ts/api/resources/SalariesFile.ts +1 -1
- package/ts/api/resources.ts +2 -0
- package/ts/types/Enum/FiscalRegime.ts +28 -0
- package/ts/types/Enum/LegalForm.ts +10 -0
- package/ts/types/Interface/api/accountingFiles/queryAccountingFiles.ts +9 -1
- package/ts/types/Interface/api/companyCreationForm/CompanyCreationFormPayload.ts +110 -0
- package/ts/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.ts +646 -0
- package/ts/types/Interface/api/companyCreationForm/UpdateCompanyCreationForm.ts +10 -0
- package/ts/types/Interface/api/societyConfig/update.ts +5 -0
- package/ts/types/Interface/api/vatDeclaration/QueryVatDeclaration.ts +2 -1
- package/ts/types/Interface/api/vatDeclaration/ReadVatDeclaration.ts +11 -0
- package/ts/types/Interface/models/ICompanyCreationForm.ts +13 -0
- package/ts/types/Interface/models/ISocietyConfig.ts +1 -0
- package/ts/types/index.ts +4 -0
- package/ts/utils/vat/3310/century23.ts +1 -1
package/ts/types/index.ts
CHANGED
|
@@ -331,6 +331,7 @@ export * from './Interface/models/IUserSpecialDay';
|
|
|
331
331
|
export * from './Interface/models/ICollaboraterDetail';
|
|
332
332
|
export * from './Interface/models/IExpertAnnuary';
|
|
333
333
|
export * from './Interface/models/IUserTimeSlot';
|
|
334
|
+
export * from './Interface/models/ICompanyCreationForm';
|
|
334
335
|
export * from './Interface/models/IAnnotation';
|
|
335
336
|
|
|
336
337
|
|
|
@@ -1071,6 +1072,9 @@ export * from './Interface/api/userSocietyPermission/CreateSocietyPermissionForE
|
|
|
1071
1072
|
export * from './Interface/api/userSocietyPermission/GetAllSocietyPermission';
|
|
1072
1073
|
export * from './Interface/api/userSocietyPermission/GetPaginatedUserSocietyPermission';
|
|
1073
1074
|
export * from './Interface/api/userSocietyPermission/QueryDeleteSocietyPermission';
|
|
1075
|
+
export * from './Interface/api/companyCreationForm/CreateCompanyCreationForm';
|
|
1076
|
+
export * from './Interface/api/companyCreationForm/UpdateCompanyCreationForm';
|
|
1077
|
+
export * from './Interface/api/companyCreationForm/CompanyCreationFormPayload';
|
|
1074
1078
|
|
|
1075
1079
|
|
|
1076
1080
|
// Enums types
|
|
@@ -110,8 +110,8 @@ export function getCerfa3310Century23Payload(accountingEntries: IAccountingEntry
|
|
|
110
110
|
const immobilizationTax = setZeroIfIsNegative(getTaxAmountByAccountNumber(vatEntries, ['2'])) + (payload?.vatControl?.deducted?.immobilization ?? 0);
|
|
111
111
|
const otherGoodsAndServices = setZeroIfIsNegative(getTaxAmountByAccountNumber(vatEntries.filter((e) => vats.filter((v) => !v.isVatImportation).map((v) => v.id).includes(e.idVat)), ['6'])) + (payload?.vatControl?.deducted?.abs ?? 0);
|
|
112
112
|
const otherDeductibles = setZeroIfIsNegative(getTaxAmountByAccountNumber(vatEntries.filter((e) => vats.filter((v) => v.isVatImportation).map((v) => v.id).includes(e.idVat)), ['6'])) + (payload?.vatControl?.deducted?.other ?? 0);
|
|
113
|
+
|
|
113
114
|
const report = (payload.vat?.deductible?.toReport && payload.vat?.deductible?.toReport > 0 ? _round(payload.vat?.deductible?.toReport ?? 0) : payload.previousVatDeclaration?.credit?.toReport ?? 0) + (payload?.vatControl?.deducted?.reported ?? 0);
|
|
114
|
-
|
|
115
115
|
const coefficient = _round(payload.vat?.deductible?.coefficient ?? 100, 2);
|
|
116
116
|
const isNil = payload.isNil === true;
|
|
117
117
|
const isHolidayDeposit = payload.isHolidayDeposit === true;
|