@silexpert/core 1.3.4 → 1.3.6

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 (132) hide show
  1. package/dist/cjs/api/resources/Account.d.ts +3 -4
  2. package/dist/cjs/api/resources/Account.d.ts.map +1 -1
  3. package/dist/cjs/api/resources/Account.js.map +1 -1
  4. package/dist/cjs/types/Enum/Aspone.d.ts +22 -4
  5. package/dist/cjs/types/Enum/Aspone.d.ts.map +1 -1
  6. package/dist/cjs/types/Enum/Aspone.js +23 -47
  7. package/dist/cjs/types/Enum/Aspone.js.map +1 -1
  8. package/dist/cjs/types/Enum/BalanceSheetQuestion.d.ts +1 -0
  9. package/dist/cjs/types/Enum/BalanceSheetQuestion.d.ts.map +1 -1
  10. package/dist/cjs/types/Enum/BalanceSheetQuestion.js +1 -0
  11. package/dist/cjs/types/Enum/BalanceSheetQuestion.js.map +1 -1
  12. package/dist/cjs/types/Enum/BalanceSheetQuestionWording.d.ts +1 -0
  13. package/dist/cjs/types/Enum/BalanceSheetQuestionWording.d.ts.map +1 -1
  14. package/dist/cjs/types/Enum/BalanceSheetQuestionWording.js +1 -0
  15. package/dist/cjs/types/Enum/BalanceSheetQuestionWording.js.map +1 -1
  16. package/dist/cjs/types/Interface/api/cerfa/2031.d.ts +186 -0
  17. package/dist/cjs/types/Interface/api/cerfa/2031.d.ts.map +1 -1
  18. package/dist/cjs/types/Interface/api/cerfa/2031.js.map +1 -1
  19. package/dist/cjs/types/Interface/api/cerfa/2033.d.ts +112 -16
  20. package/dist/cjs/types/Interface/api/cerfa/2033.d.ts.map +1 -1
  21. package/dist/cjs/types/Interface/api/cerfa/2033.js +4 -1
  22. package/dist/cjs/types/Interface/api/cerfa/2033.js.map +1 -1
  23. package/dist/cjs/types/Interface/api/cerfa/2035.d.ts +216 -1
  24. package/dist/cjs/types/Interface/api/cerfa/2035.d.ts.map +1 -1
  25. package/dist/cjs/types/Interface/api/cerfa/2035.js.map +1 -1
  26. package/dist/cjs/types/Interface/api/cerfa/2065.d.ts +114 -1
  27. package/dist/cjs/types/Interface/api/cerfa/2065.d.ts.map +1 -1
  28. package/dist/cjs/types/Interface/api/cerfa/2065.js.map +1 -1
  29. package/dist/cjs/types/Interface/api/cerfa/2069RCI.d.ts +86 -6
  30. package/dist/cjs/types/Interface/api/cerfa/2069RCI.d.ts.map +1 -1
  31. package/dist/cjs/types/Interface/api/cerfa/2069RCI.js.map +1 -1
  32. package/dist/cjs/types/Interface/api/cerfa/3310.d.ts +15 -4
  33. package/dist/cjs/types/Interface/api/cerfa/3310.d.ts.map +1 -1
  34. package/dist/cjs/types/Interface/api/cerfa/3310.js.map +1 -1
  35. package/dist/cjs/types/Interface/api/cerfa/ReadCerfa.d.ts +5 -5
  36. package/dist/cjs/types/Interface/api/cerfa/ReadCerfa.d.ts.map +1 -1
  37. package/dist/cjs/types/Interface/api/cerfa/ReadCerfa.js.map +1 -1
  38. package/dist/cjs/types/Interface/models/IAccount.d.ts +1 -1
  39. package/dist/cjs/types/Interface/models/IAccount.d.ts.map +1 -1
  40. package/dist/cjs/types/Interface/models/IAccount.js.map +1 -1
  41. package/dist/cjs/types/index.d.ts +0 -1
  42. package/dist/cjs/types/index.d.ts.map +1 -1
  43. package/dist/cjs/types/index.js +0 -1
  44. package/dist/cjs/types/index.js.map +1 -1
  45. package/dist/cjs/utils/cerfa.js +1 -1
  46. package/dist/cjs/utils/cerfa.js.map +1 -1
  47. package/dist/cjs/utils/vat/3310/century25.d.ts +8 -0
  48. package/dist/cjs/utils/vat/3310/century25.d.ts.map +1 -0
  49. package/dist/cjs/utils/vat/3310/century25.js +1718 -0
  50. package/dist/cjs/utils/vat/3310/century25.js.map +1 -0
  51. package/dist/cjs/utils/vat/centuries.d.ts.map +1 -1
  52. package/dist/cjs/utils/vat/centuries.js +21 -1
  53. package/dist/cjs/utils/vat/centuries.js.map +1 -1
  54. package/dist/mjs/api/resources/Account.d.ts +3 -4
  55. package/dist/mjs/api/resources/Account.d.ts.map +1 -1
  56. package/dist/mjs/api/resources/Account.js.map +1 -1
  57. package/dist/mjs/types/Enum/Aspone.d.ts +22 -4
  58. package/dist/mjs/types/Enum/Aspone.d.ts.map +1 -1
  59. package/dist/mjs/types/Enum/Aspone.js +22 -46
  60. package/dist/mjs/types/Enum/Aspone.js.map +1 -1
  61. package/dist/mjs/types/Enum/BalanceSheetQuestion.d.ts +1 -0
  62. package/dist/mjs/types/Enum/BalanceSheetQuestion.d.ts.map +1 -1
  63. package/dist/mjs/types/Enum/BalanceSheetQuestion.js +1 -0
  64. package/dist/mjs/types/Enum/BalanceSheetQuestion.js.map +1 -1
  65. package/dist/mjs/types/Enum/BalanceSheetQuestionWording.d.ts +1 -0
  66. package/dist/mjs/types/Enum/BalanceSheetQuestionWording.d.ts.map +1 -1
  67. package/dist/mjs/types/Enum/BalanceSheetQuestionWording.js +1 -0
  68. package/dist/mjs/types/Enum/BalanceSheetQuestionWording.js.map +1 -1
  69. package/dist/mjs/types/Interface/api/cerfa/2031.d.ts +186 -0
  70. package/dist/mjs/types/Interface/api/cerfa/2031.d.ts.map +1 -1
  71. package/dist/mjs/types/Interface/api/cerfa/2031.js.map +1 -1
  72. package/dist/mjs/types/Interface/api/cerfa/2033.d.ts +112 -16
  73. package/dist/mjs/types/Interface/api/cerfa/2033.d.ts.map +1 -1
  74. package/dist/mjs/types/Interface/api/cerfa/2033.js +4 -0
  75. package/dist/mjs/types/Interface/api/cerfa/2033.js.map +1 -1
  76. package/dist/mjs/types/Interface/api/cerfa/2035.d.ts +216 -1
  77. package/dist/mjs/types/Interface/api/cerfa/2035.d.ts.map +1 -1
  78. package/dist/mjs/types/Interface/api/cerfa/2035.js.map +1 -1
  79. package/dist/mjs/types/Interface/api/cerfa/2065.d.ts +114 -1
  80. package/dist/mjs/types/Interface/api/cerfa/2065.d.ts.map +1 -1
  81. package/dist/mjs/types/Interface/api/cerfa/2065.js.map +1 -1
  82. package/dist/mjs/types/Interface/api/cerfa/2069RCI.d.ts +86 -6
  83. package/dist/mjs/types/Interface/api/cerfa/2069RCI.d.ts.map +1 -1
  84. package/dist/mjs/types/Interface/api/cerfa/2069RCI.js.map +1 -1
  85. package/dist/mjs/types/Interface/api/cerfa/3310.d.ts +15 -4
  86. package/dist/mjs/types/Interface/api/cerfa/3310.d.ts.map +1 -1
  87. package/dist/mjs/types/Interface/api/cerfa/3310.js.map +1 -1
  88. package/dist/mjs/types/Interface/api/cerfa/ReadCerfa.d.ts +5 -5
  89. package/dist/mjs/types/Interface/api/cerfa/ReadCerfa.d.ts.map +1 -1
  90. package/dist/mjs/types/Interface/api/cerfa/ReadCerfa.js.map +1 -1
  91. package/dist/mjs/types/Interface/models/IAccount.d.ts +1 -1
  92. package/dist/mjs/types/Interface/models/IAccount.d.ts.map +1 -1
  93. package/dist/mjs/types/Interface/models/IAccount.js.map +1 -1
  94. package/dist/mjs/types/index.d.ts +0 -1
  95. package/dist/mjs/types/index.d.ts.map +1 -1
  96. package/dist/mjs/types/index.js +0 -1
  97. package/dist/mjs/types/index.js.map +1 -1
  98. package/dist/mjs/utils/cerfa.js +1 -1
  99. package/dist/mjs/utils/cerfa.js.map +1 -1
  100. package/dist/mjs/utils/vat/3310/century25.d.ts +8 -0
  101. package/dist/mjs/utils/vat/3310/century25.d.ts.map +1 -0
  102. package/dist/mjs/utils/vat/3310/century25.js +1711 -0
  103. package/dist/mjs/utils/vat/3310/century25.js.map +1 -0
  104. package/dist/mjs/utils/vat/centuries.d.ts.map +1 -1
  105. package/dist/mjs/utils/vat/centuries.js +21 -1
  106. package/dist/mjs/utils/vat/centuries.js.map +1 -1
  107. package/package.json +1 -1
  108. package/ts/api/resources/Account.ts +3 -4
  109. package/ts/types/Enum/Aspone.ts +24 -47
  110. package/ts/types/Enum/BalanceSheetQuestion.ts +1 -0
  111. package/ts/types/Enum/BalanceSheetQuestionWording.ts +1 -0
  112. package/ts/types/Interface/api/cerfa/2031.ts +179 -0
  113. package/ts/types/Interface/api/cerfa/2033.ts +107 -16
  114. package/ts/types/Interface/api/cerfa/2035.ts +199 -1
  115. package/ts/types/Interface/api/cerfa/2065.ts +101 -1
  116. package/ts/types/Interface/api/cerfa/2069RCI.ts +86 -6
  117. package/ts/types/Interface/api/cerfa/3310.ts +16 -4
  118. package/ts/types/Interface/api/cerfa/ReadCerfa.ts +7 -10
  119. package/ts/types/Interface/models/IAccount.ts +1 -1
  120. package/ts/types/index.ts +0 -1
  121. package/ts/utils/cerfa.ts +1 -1
  122. package/ts/utils/vat/3310/century25.ts +2038 -0
  123. package/ts/utils/vat/centuries.ts +31 -1
  124. package/dist/cjs/types/Interface/models/IAccountExtend.d.ts +0 -6
  125. package/dist/cjs/types/Interface/models/IAccountExtend.d.ts.map +0 -1
  126. package/dist/cjs/types/Interface/models/IAccountExtend.js +0 -3
  127. package/dist/cjs/types/Interface/models/IAccountExtend.js.map +0 -1
  128. package/dist/mjs/types/Interface/models/IAccountExtend.d.ts +0 -6
  129. package/dist/mjs/types/Interface/models/IAccountExtend.d.ts.map +0 -1
  130. package/dist/mjs/types/Interface/models/IAccountExtend.js +0 -2
  131. package/dist/mjs/types/Interface/models/IAccountExtend.js.map +0 -1
  132. package/ts/types/Interface/models/IAccountExtend.ts +0 -6
@@ -1,7 +1,7 @@
1
- import { AsponeCR5_2024, AsponeCR6_2024 } from '../../../Enum/Aspone';
1
+ import { AnyAsponeCR5_Century, AsponeCR5_2024, AsponeCR5_2025, AsponeCR6_2024 } from '../../../Enum/Aspone';
2
2
  import { CerfaAddress } from './ReadCerfa';
3
3
 
4
- export type Cerfa2069RCI_2024 = {
4
+ export interface Cerfa2069RCI_2024 {
5
5
  credits: {
6
6
  withoutRegistration: {
7
7
  '2LI': number | null;
@@ -72,9 +72,85 @@ export type Cerfa2069RCI_2024 = {
72
72
  isNil: boolean;
73
73
  isPME: boolean;
74
74
  isParentSociety: boolean;
75
- };
75
+ }
76
76
 
77
- export type Cerfa2069RCI_2024_Payload = {
77
+ export interface Cerfa2069RCI_2025 {
78
+ credits: {
79
+ withoutRegistration: {
80
+ '2LI': number | null;
81
+ '3IV': number | null;
82
+ AUD: number | null;
83
+ CCI: number | null;
84
+ CIC: {
85
+ prePay: number | null;
86
+ total: number | null;
87
+ };
88
+ CIN: number | null;
89
+ COM: number | null;
90
+ CPG: number | null;
91
+ CSV: number | null;
92
+ PAM: number | null;
93
+ FOR: number | null;
94
+ HVE: number | null;
95
+ MEC: {
96
+ donation: number | null;
97
+ federations: number | null;
98
+ notreDameDeParis: number | null;
99
+ total: number | null;
100
+ };
101
+ PRE: number | null;
102
+ RAC: number | null;
103
+ REB: number | null;
104
+ RTD: number | null;
105
+ VLO: number | null;
106
+ onParticipation: number | null;
107
+ remunerations: {
108
+ mandatory: number | null;
109
+ smic: number | null;
110
+ };
111
+ };
112
+ withRegistration: {
113
+ PVM: number | null;
114
+ COR: number | null;
115
+ CIR: {
116
+ exposedInDOM: number | null;
117
+ total: number | null;
118
+ };
119
+ CRC: number | null;
120
+ FAM: number | null;
121
+ TZM: number | null;
122
+ BIO: number | null;
123
+ PHO: number | null;
124
+ ART: number | null;
125
+ CJV: number | null;
126
+ EOM: number | null;
127
+ CPE: number | null;
128
+ PTR: number | null;
129
+ RTA: number | null;
130
+ CIO: number | null;
131
+ COL: number | null;
132
+ };
133
+ };
134
+ declaration: {
135
+ period: {
136
+ startDate: string;
137
+ endDate: string;
138
+ };
139
+ societyInGroup: null | {
140
+ siren: string;
141
+ address: CerfaAddress;
142
+ name: string;
143
+ };
144
+ siren: string | null;
145
+ };
146
+ isNil: boolean;
147
+ isPME: boolean;
148
+ isParentSociety: boolean;
149
+ }
150
+
151
+ export type AnyCerfa2069RCICentury = Cerfa2069RCI_2024 | Cerfa2069RCI_2025;
152
+
153
+ export interface Cerfa2069RCI_2024_Payload {
78
154
  isParentSociety: boolean;
79
155
  parentSociety: null | {
80
156
  siren: string;
@@ -91,11 +167,15 @@ export type Cerfa2069RCI_2024_Payload = {
91
167
  creditsWithRegistration: Array<{ id: AsponeCR6_2024; amount: number }>;
92
168
  isNil: boolean;
93
169
  isPME: boolean;
94
- };
170
+ }
171
+
172
+ export interface Cerfa2069RCI_2025_Payload extends Omit<Cerfa2069RCI_2024_Payload, 'creditsWithoutRegistration'> {
173
+ creditsWithoutRegistration: Array<{ id: AsponeCR5_2025; amount: number }>;
174
+ }
95
175
 
96
176
  export type ReadCerfa2069RCIInputs = {
97
177
  withoutRegistrationMandatory: Array<{
98
- id: AsponeCR5_2024;
178
+ id: AnyAsponeCR5_Century;
99
179
  label: string;
100
180
  defaultValue?: number | null;
101
181
  }>;
@@ -14,7 +14,7 @@ type Tic = {
14
14
  tax?: number;
15
15
  };
16
16
 
17
- export interface Cerfa3310_2023 {
17
+ export type Cerfa3310_2023 = {
18
18
  declaration: {
19
19
  recipient: {
20
20
  name?: string | null;
@@ -176,9 +176,9 @@ export interface Cerfa3310_2023 {
176
176
  ticc?: Tic;
177
177
  total?: Tic;
178
178
  };
179
- }
179
+ };
180
180
 
181
- export interface Cerfa3310_2024 {
181
+ export type Cerfa3310_2024 = {
182
182
  declaration: {
183
183
  recipient: {
184
184
  name?: string | null;
@@ -341,7 +341,7 @@ export interface Cerfa3310_2024 {
341
341
  ticc?: Tic;
342
342
  total?: Tic;
343
343
  };
344
- }
344
+ };
345
345
 
346
346
  export type PayloadCerfa3310_2023 = {
347
347
  isHolidayDeposit: boolean;
@@ -578,3 +578,15 @@ export type PayloadCerfa3310_2024 = {
578
578
  acquittedBySocietyHeadOfGroup?: number;
579
579
  };
580
580
  };
581
+
582
+ export type PayloadCerfa3310_2025 = PayloadCerfa3310_2024;
583
+
584
+ export type Cerfa3310_2025 = Cerfa3310_2024 & {
585
+ tic?: {
586
+ other?: Omit<Tic, 'tax'>;
587
+ gasoline?: { tax: number };
588
+ };
589
+ };
590
+
591
+ export type AnyCerfa3310_Century = Cerfa3310_2023 | Cerfa3310_2024 | Cerfa3310_2025;
592
+ export type AnyPayloadCerfa3310_Century = PayloadCerfa3310_2023 | PayloadCerfa3310_2024;
@@ -1,19 +1,16 @@
1
1
  import { CerfaType } from '../../../Enum/CerfaType';
2
2
  import {
3
+ AnyCerfa2031Century,
3
4
  AnyCerfa2033Century,
5
+ AnyCerfa2035Century,
6
+ AnyCerfa2065Century,
4
7
  AnyCerfa2572Century,
5
- Cerfa2031,
6
- Cerfa2031_2024,
7
- Cerfa2065,
8
- Cerfa2065_2024,
9
8
  Cerfa2069RCI_2024,
10
9
  Cerfa2571_2023,
11
10
  Cerfa2571_2024,
12
11
  Cerfa2573_2024,
13
12
  Cerfa3519_2017,
14
13
  FieldForGeneration,
15
- FullCerfa2035,
16
- FullCerfa2035_2024,
17
14
  PayloadCerfa3519_2017,
18
15
  QuestionWording,
19
16
  } from '../../..';
@@ -59,7 +56,7 @@ export type VatDocument = {
59
56
  payload: (...args: any[]) => any;
60
57
  asponePayload: (...args: any[]) => any;
61
58
  fields: Array<CerfaPayloadForm>;
62
- fileName: '3310-2023' | '3514-2022' | '3517-2023' | '3310-2024' | '3517-2025';
59
+ fileName: '3310-2023' | '3514-2022' | '3517-2023' | '3310-2024' | '3517-2025' | '3310-2025';
63
60
  annex?: AnnexVatDocument;
64
61
  annexFields?: (data: any) => AsponeFormFields;
65
62
  };
@@ -123,10 +120,10 @@ export interface RegistrationPayload {
123
120
  cerfa2573?: Cerfa2573_2024;
124
121
  cerfa2572?: AnyCerfa2572Century;
125
122
  cerfa2571?: Cerfa2571_2023 | Cerfa2571_2024;
126
- cerfa2031?: Cerfa2031 | Cerfa2031_2024;
123
+ cerfa2031?: AnyCerfa2031Century;
127
124
  cerfa2033?: AnyCerfa2033Century;
128
- cerfa2065?: Cerfa2065 | Cerfa2065_2024;
129
- cerfa2035?: FullCerfa2035 | FullCerfa2035_2024;
125
+ cerfa2065?: AnyCerfa2065Century;
126
+ cerfa2035?: AnyCerfa2035Century;
130
127
  cerfa2069RCI?: Cerfa2069RCI_2024;
131
128
  }
132
129
 
@@ -51,7 +51,7 @@ export interface IAccount {
51
51
  registerCategorie?: IRegisterCategory;
52
52
  accountHelp?: IAccountHelp;
53
53
  accountDetails?: IAccountDetail[];
54
- accountsSocieties?: IAccountsSocieties[] | IAccountsSocieties;
54
+ accountsSocieties?: IAccountsSocieties[];
55
55
  societies?: ISociety[];
56
56
  machineLearningResults?: IMachineLearningResult[];
57
57
  parentAccount?: IAccount;
package/ts/types/index.ts CHANGED
@@ -14,7 +14,6 @@ export * from './Interface/models/IAccountingStateType';
14
14
  export * from './Interface/models/IAccountingState';
15
15
  export * from './Interface/models/IAccountingTransaction';
16
16
  export * from './Interface/models/IAccount';
17
- export * from './Interface/models/IAccountExtend';
18
17
  export * from './Interface/models/IAccountsSocieties';
19
18
  export * from './Interface/models/IActivity';
20
19
  export * from './Interface/models/IAdditionalBalance';
package/ts/utils/cerfa.ts CHANGED
@@ -42,7 +42,7 @@ export function retrieveCerfaFromSocietyInformations(
42
42
  if (!isDefined(idFiscalRegime)) missingData.push('Régime de droit commun');
43
43
  if (!isDefined(profitsType)) missingData.push("Régime d'imposition");
44
44
  if (!isDefined(idTaxSystem)) missingData.push('Activité (BNC, BIC)');
45
- const errorMEssage = `Les informations suivantes sont manquantes pour déterminer votre régime ficscal: ${missingData.join(', ')}`;
45
+ const errorMEssage = `Les informations suivantes sont manquantes pour déterminer votre régime fiscal: ${missingData.join(', ')}`;
46
46
  throw new ServiceException({ code: Code.validationError, type: ErrorType.resourceError, message: errorMEssage });
47
47
  }
48
48