@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.
Files changed (142) hide show
  1. package/dist/cjs/api/resources/AccountingFiles.d.ts.map +1 -1
  2. package/dist/cjs/api/resources/AccountingFiles.js +3 -0
  3. package/dist/cjs/api/resources/AccountingFiles.js.map +1 -1
  4. package/dist/cjs/api/resources/CompanyCreationForm.d.ts +10 -0
  5. package/dist/cjs/api/resources/CompanyCreationForm.d.ts.map +1 -0
  6. package/dist/cjs/api/resources/CompanyCreationForm.js +23 -0
  7. package/dist/cjs/api/resources/CompanyCreationForm.js.map +1 -0
  8. package/dist/cjs/api/resources/SalariesFile.d.ts +1 -1
  9. package/dist/cjs/api/resources/SalariesFile.d.ts.map +1 -1
  10. package/dist/cjs/api/resources/SalariesFile.js.map +1 -1
  11. package/dist/cjs/api/resources.d.ts +2 -0
  12. package/dist/cjs/api/resources.d.ts.map +1 -1
  13. package/dist/cjs/api/resources.js +2 -0
  14. package/dist/cjs/api/resources.js.map +1 -1
  15. package/dist/cjs/types/Enum/FiscalRegime.d.ts +5 -0
  16. package/dist/cjs/types/Enum/FiscalRegime.d.ts.map +1 -1
  17. package/dist/cjs/types/Enum/FiscalRegime.js +28 -1
  18. package/dist/cjs/types/Enum/FiscalRegime.js.map +1 -1
  19. package/dist/cjs/types/Enum/LegalForm.d.ts +2 -1
  20. package/dist/cjs/types/Enum/LegalForm.d.ts.map +1 -1
  21. package/dist/cjs/types/Enum/LegalForm.js +10 -0
  22. package/dist/cjs/types/Enum/LegalForm.js.map +1 -1
  23. package/dist/cjs/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts +1 -0
  24. package/dist/cjs/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts.map +1 -1
  25. package/dist/cjs/types/Interface/api/accountingFiles/queryAccountingFiles.js +7 -0
  26. package/dist/cjs/types/Interface/api/accountingFiles/queryAccountingFiles.js.map +1 -1
  27. package/dist/cjs/types/Interface/api/companyCreationForm/CompanyCreationFormPayload.d.ts +107 -0
  28. package/dist/cjs/types/Interface/api/companyCreationForm/CompanyCreationFormPayload.d.ts.map +1 -0
  29. package/dist/cjs/types/Interface/api/companyCreationForm/CompanyCreationFormPayload.js +3 -0
  30. package/dist/cjs/types/Interface/api/companyCreationForm/CompanyCreationFormPayload.js.map +1 -0
  31. package/dist/cjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.d.ts +196 -0
  32. package/dist/cjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.d.ts.map +1 -0
  33. package/dist/cjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.js +737 -0
  34. package/dist/cjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.js.map +1 -0
  35. package/dist/cjs/types/Interface/api/companyCreationForm/UpdateCompanyCreationForm.d.ts +6 -0
  36. package/dist/cjs/types/Interface/api/companyCreationForm/UpdateCompanyCreationForm.d.ts.map +1 -0
  37. package/dist/cjs/types/Interface/api/companyCreationForm/UpdateCompanyCreationForm.js +24 -0
  38. package/dist/cjs/types/Interface/api/companyCreationForm/UpdateCompanyCreationForm.js.map +1 -0
  39. package/dist/cjs/types/Interface/api/societyConfig/update.d.ts +1 -0
  40. package/dist/cjs/types/Interface/api/societyConfig/update.d.ts.map +1 -1
  41. package/dist/cjs/types/Interface/api/societyConfig/update.js +7 -0
  42. package/dist/cjs/types/Interface/api/societyConfig/update.js.map +1 -1
  43. package/dist/cjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.d.ts +1 -1
  44. package/dist/cjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.d.ts.map +1 -1
  45. package/dist/cjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.js +1 -0
  46. package/dist/cjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.js.map +1 -1
  47. package/dist/cjs/types/Interface/api/vatDeclaration/ReadVatDeclaration.d.ts +18 -0
  48. package/dist/cjs/types/Interface/api/vatDeclaration/ReadVatDeclaration.d.ts.map +1 -1
  49. package/dist/cjs/types/Interface/api/vatDeclaration/ReadVatDeclaration.js +4 -1
  50. package/dist/cjs/types/Interface/api/vatDeclaration/ReadVatDeclaration.js.map +1 -1
  51. package/dist/cjs/types/Interface/models/ICompanyCreationForm.d.ts +12 -0
  52. package/dist/cjs/types/Interface/models/ICompanyCreationForm.d.ts.map +1 -0
  53. package/dist/cjs/types/Interface/models/ICompanyCreationForm.js +3 -0
  54. package/dist/cjs/types/Interface/models/ICompanyCreationForm.js.map +1 -0
  55. package/dist/cjs/types/Interface/models/ISocietyConfig.d.ts +1 -0
  56. package/dist/cjs/types/Interface/models/ISocietyConfig.d.ts.map +1 -1
  57. package/dist/cjs/types/Interface/models/ISocietyConfig.js.map +1 -1
  58. package/dist/cjs/types/index.d.ts +4 -0
  59. package/dist/cjs/types/index.d.ts.map +1 -1
  60. package/dist/cjs/types/index.js +4 -0
  61. package/dist/cjs/types/index.js.map +1 -1
  62. package/dist/cjs/utils/vat/3310/century23.js.map +1 -1
  63. package/dist/mjs/api/resources/AccountingFiles.d.ts.map +1 -1
  64. package/dist/mjs/api/resources/AccountingFiles.js +3 -0
  65. package/dist/mjs/api/resources/AccountingFiles.js.map +1 -1
  66. package/dist/mjs/api/resources/CompanyCreationForm.d.ts +10 -0
  67. package/dist/mjs/api/resources/CompanyCreationForm.d.ts.map +1 -0
  68. package/dist/mjs/api/resources/CompanyCreationForm.js +23 -0
  69. package/dist/mjs/api/resources/CompanyCreationForm.js.map +1 -0
  70. package/dist/mjs/api/resources/SalariesFile.d.ts +1 -1
  71. package/dist/mjs/api/resources/SalariesFile.d.ts.map +1 -1
  72. package/dist/mjs/api/resources/SalariesFile.js.map +1 -1
  73. package/dist/mjs/api/resources.d.ts +2 -0
  74. package/dist/mjs/api/resources.d.ts.map +1 -1
  75. package/dist/mjs/api/resources.js +2 -0
  76. package/dist/mjs/api/resources.js.map +1 -1
  77. package/dist/mjs/types/Enum/FiscalRegime.d.ts +5 -0
  78. package/dist/mjs/types/Enum/FiscalRegime.d.ts.map +1 -1
  79. package/dist/mjs/types/Enum/FiscalRegime.js +27 -0
  80. package/dist/mjs/types/Enum/FiscalRegime.js.map +1 -1
  81. package/dist/mjs/types/Enum/LegalForm.d.ts +2 -1
  82. package/dist/mjs/types/Enum/LegalForm.d.ts.map +1 -1
  83. package/dist/mjs/types/Enum/LegalForm.js +10 -0
  84. package/dist/mjs/types/Enum/LegalForm.js.map +1 -1
  85. package/dist/mjs/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts +1 -0
  86. package/dist/mjs/types/Interface/api/accountingFiles/queryAccountingFiles.d.ts.map +1 -1
  87. package/dist/mjs/types/Interface/api/accountingFiles/queryAccountingFiles.js +9 -1
  88. package/dist/mjs/types/Interface/api/accountingFiles/queryAccountingFiles.js.map +1 -1
  89. package/dist/mjs/types/Interface/api/companyCreationForm/CompanyCreationFormPayload.d.ts +107 -0
  90. package/dist/mjs/types/Interface/api/companyCreationForm/CompanyCreationFormPayload.d.ts.map +1 -0
  91. package/dist/mjs/types/Interface/api/companyCreationForm/CompanyCreationFormPayload.js +2 -0
  92. package/dist/mjs/types/Interface/api/companyCreationForm/CompanyCreationFormPayload.js.map +1 -0
  93. package/dist/mjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.d.ts +196 -0
  94. package/dist/mjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.d.ts.map +1 -0
  95. package/dist/mjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.js +897 -0
  96. package/dist/mjs/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.js.map +1 -0
  97. package/dist/mjs/types/Interface/api/companyCreationForm/UpdateCompanyCreationForm.d.ts +6 -0
  98. package/dist/mjs/types/Interface/api/companyCreationForm/UpdateCompanyCreationForm.d.ts.map +1 -0
  99. package/dist/mjs/types/Interface/api/companyCreationForm/UpdateCompanyCreationForm.js +21 -0
  100. package/dist/mjs/types/Interface/api/companyCreationForm/UpdateCompanyCreationForm.js.map +1 -0
  101. package/dist/mjs/types/Interface/api/societyConfig/update.d.ts +1 -0
  102. package/dist/mjs/types/Interface/api/societyConfig/update.d.ts.map +1 -1
  103. package/dist/mjs/types/Interface/api/societyConfig/update.js +8 -0
  104. package/dist/mjs/types/Interface/api/societyConfig/update.js.map +1 -1
  105. package/dist/mjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.d.ts +1 -1
  106. package/dist/mjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.d.ts.map +1 -1
  107. package/dist/mjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.js +1 -0
  108. package/dist/mjs/types/Interface/api/vatDeclaration/QueryVatDeclaration.js.map +1 -1
  109. package/dist/mjs/types/Interface/api/vatDeclaration/ReadVatDeclaration.d.ts +18 -0
  110. package/dist/mjs/types/Interface/api/vatDeclaration/ReadVatDeclaration.d.ts.map +1 -1
  111. package/dist/mjs/types/Interface/api/vatDeclaration/ReadVatDeclaration.js +4 -0
  112. package/dist/mjs/types/Interface/api/vatDeclaration/ReadVatDeclaration.js.map +1 -1
  113. package/dist/mjs/types/Interface/models/ICompanyCreationForm.d.ts +12 -0
  114. package/dist/mjs/types/Interface/models/ICompanyCreationForm.d.ts.map +1 -0
  115. package/dist/mjs/types/Interface/models/ICompanyCreationForm.js +2 -0
  116. package/dist/mjs/types/Interface/models/ICompanyCreationForm.js.map +1 -0
  117. package/dist/mjs/types/Interface/models/ISocietyConfig.d.ts +1 -0
  118. package/dist/mjs/types/Interface/models/ISocietyConfig.d.ts.map +1 -1
  119. package/dist/mjs/types/Interface/models/ISocietyConfig.js.map +1 -1
  120. package/dist/mjs/types/index.d.ts +4 -0
  121. package/dist/mjs/types/index.d.ts.map +1 -1
  122. package/dist/mjs/types/index.js +4 -0
  123. package/dist/mjs/types/index.js.map +1 -1
  124. package/dist/mjs/utils/vat/3310/century23.js.map +1 -1
  125. package/package.json +1 -1
  126. package/ts/api/resources/AccountingFiles.ts +5 -0
  127. package/ts/api/resources/CompanyCreationForm.ts +29 -0
  128. package/ts/api/resources/SalariesFile.ts +1 -1
  129. package/ts/api/resources.ts +2 -0
  130. package/ts/types/Enum/FiscalRegime.ts +28 -0
  131. package/ts/types/Enum/LegalForm.ts +10 -0
  132. package/ts/types/Interface/api/accountingFiles/queryAccountingFiles.ts +9 -1
  133. package/ts/types/Interface/api/companyCreationForm/CompanyCreationFormPayload.ts +110 -0
  134. package/ts/types/Interface/api/companyCreationForm/CreateCompanyCreationForm.ts +646 -0
  135. package/ts/types/Interface/api/companyCreationForm/UpdateCompanyCreationForm.ts +10 -0
  136. package/ts/types/Interface/api/societyConfig/update.ts +5 -0
  137. package/ts/types/Interface/api/vatDeclaration/QueryVatDeclaration.ts +2 -1
  138. package/ts/types/Interface/api/vatDeclaration/ReadVatDeclaration.ts +11 -0
  139. package/ts/types/Interface/models/ICompanyCreationForm.ts +13 -0
  140. package/ts/types/Interface/models/ISocietyConfig.ts +1 -0
  141. package/ts/types/index.ts +4 -0
  142. 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;