@silexpert/core 0.4.108 → 0.4.109
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/CHANGELOG.md +46 -0
- package/es/api/resources/InternalInvoicing.d.ts +6 -0
- package/es/api/resources/InternalInvoicing.d.ts.map +1 -0
- package/es/api/resources/InternalInvoicing.js +7 -0
- package/es/api/resources/InternalInvoicing.js.map +1 -0
- package/es/api/resources/Journal.d.ts +7 -0
- package/es/api/resources/Journal.d.ts.map +1 -0
- package/es/api/resources/Journal.js +10 -0
- package/es/api/resources/Journal.js.map +1 -0
- package/es/api/resources/Product.d.ts +3 -0
- package/es/api/resources/Product.d.ts.map +1 -1
- package/es/api/resources/Product.js +10 -0
- package/es/api/resources/Product.js.map +1 -1
- package/es/api/resources/Registration.d.ts +6 -0
- package/es/api/resources/Registration.d.ts.map +1 -0
- package/es/api/resources/Registration.js +7 -0
- package/es/api/resources/Registration.js.map +1 -0
- package/es/api/resources.d.ts +6 -0
- package/es/api/resources.d.ts.map +1 -1
- package/es/api/resources.js +6 -0
- package/es/api/resources.js.map +1 -1
- package/es/types/Enum/CerfaType.d.ts +14 -14
- package/es/types/Enum/CerfaType.d.ts.map +1 -1
- package/es/types/Enum/CerfaType.js +15 -14
- package/es/types/Enum/CerfaType.js.map +1 -1
- package/es/types/Enum/Ged.d.ts +1 -0
- package/es/types/Enum/Ged.d.ts.map +1 -1
- package/es/types/Enum/Ged.js +1 -1
- package/es/types/Enum/Ged.js.map +1 -1
- package/es/types/Enum/GlobalRegime.js +61 -61
- package/es/types/Enum/GlobalRegime.js.map +1 -1
- package/es/types/Enum/PaymentMethod.d.ts +63 -0
- package/es/types/Enum/PaymentMethod.d.ts.map +1 -0
- package/es/types/Enum/PaymentMethod.js +63 -0
- package/es/types/Enum/PaymentMethod.js.map +1 -0
- package/es/types/Enum/ProductType.d.ts +6 -4
- package/es/types/Enum/ProductType.d.ts.map +1 -1
- package/es/types/Enum/ProductType.js +14 -6
- package/es/types/Enum/ProductType.js.map +1 -1
- package/es/types/Interface/api/internalInvoicing/CreateInternalInvoicing.d.ts +5 -0
- package/es/types/Interface/api/internalInvoicing/CreateInternalInvoicing.d.ts.map +1 -0
- package/es/types/Interface/api/internalInvoicing/CreateInternalInvoicing.js +21 -0
- package/es/types/Interface/api/internalInvoicing/CreateInternalInvoicing.js.map +1 -0
- package/es/types/Interface/api/journal/Journals.d.ts +44 -0
- package/es/types/Interface/api/journal/Journals.d.ts.map +1 -0
- package/es/types/Interface/api/journal/Journals.js +13 -0
- package/es/types/Interface/api/journal/Journals.js.map +1 -0
- package/es/types/Interface/api/journal/QueryJournal.d.ts +6 -0
- package/es/types/Interface/api/journal/QueryJournal.d.ts.map +1 -0
- package/es/types/Interface/api/journal/QueryJournal.js +28 -0
- package/es/types/Interface/api/journal/QueryJournal.js.map +1 -0
- package/es/types/Interface/api/product/CreateProduct.d.ts.map +1 -1
- package/es/types/Interface/api/product/CreateProduct.js +3 -2
- package/es/types/Interface/api/product/CreateProduct.js.map +1 -1
- package/es/types/Interface/api/product/QueryProduct.d.ts.map +1 -1
- package/es/types/Interface/api/product/QueryProduct.js +4 -2
- package/es/types/Interface/api/product/QueryProduct.js.map +1 -1
- package/es/types/Interface/api/registration/CreateRegistration.d.ts +6 -0
- package/es/types/Interface/api/registration/CreateRegistration.d.ts.map +1 -0
- package/es/types/Interface/api/registration/CreateRegistration.js +25 -0
- package/es/types/Interface/api/registration/CreateRegistration.js.map +1 -0
- package/es/types/Interface/api/registration/ReadRegistration.d.ts +3 -0
- package/es/types/Interface/api/registration/ReadRegistration.d.ts.map +1 -0
- package/es/types/Interface/api/registration/ReadRegistration.js +2 -0
- package/es/types/Interface/api/registration/ReadRegistration.js.map +1 -0
- package/es/types/Interface/models/IGedFile.d.ts +10 -10
- package/es/types/Interface/models/IGedFile.d.ts.map +1 -1
- package/es/types/Interface/models/IGedFile.js.map +1 -1
- package/es/types/Interface/models/IPayment.d.ts +20 -15
- package/es/types/Interface/models/IPayment.d.ts.map +1 -1
- package/es/types/Interface/models/IPayment.js.map +1 -1
- package/es/types/Interface/models/IRegistration.d.ts +21 -0
- package/es/types/Interface/models/IRegistration.d.ts.map +1 -0
- package/es/types/Interface/models/IRegistration.js +2 -0
- package/es/types/Interface/models/IRegistration.js.map +1 -0
- package/es/types/Interface/models/ISociety.d.ts +1 -0
- package/es/types/Interface/models/ISociety.d.ts.map +1 -1
- package/es/types/Interface/models/ISociety.js.map +1 -1
- package/es/types/index.d.ts +6 -0
- package/es/types/index.d.ts.map +1 -1
- package/es/types/index.js +6 -0
- package/es/types/index.js.map +1 -1
- package/es/utils/validators/formattedDateString.validator.d.ts +3 -0
- package/es/utils/validators/formattedDateString.validator.d.ts.map +1 -0
- package/es/utils/validators/formattedDateString.validator.js +19 -0
- package/es/utils/validators/formattedDateString.validator.js.map +1 -0
- package/js/api/resources/InternalInvoicing.js +18 -0
- package/js/api/resources/InternalInvoicing.js.map +1 -0
- package/js/api/resources/Journal.js +21 -0
- package/js/api/resources/Journal.js.map +1 -0
- package/js/api/resources/Product.js +12 -0
- package/js/api/resources/Product.js.map +1 -1
- package/js/api/resources/Registration.js +18 -0
- package/js/api/resources/Registration.js.map +1 -0
- package/js/api/resources.js +10 -1
- package/js/api/resources.js.map +1 -1
- package/js/types/Enum/CerfaType.js +16 -14
- package/js/types/Enum/CerfaType.js.map +1 -1
- package/js/types/Enum/Ged.js +2 -2
- package/js/types/Enum/Ged.js.map +1 -1
- package/js/types/Enum/GlobalRegime.js +61 -61
- package/js/types/Enum/GlobalRegime.js.map +1 -1
- package/js/types/Enum/PaymentMethod.js +68 -0
- package/js/types/Enum/PaymentMethod.js.map +1 -0
- package/js/types/Enum/ProductType.js +14 -7
- package/js/types/Enum/ProductType.js.map +1 -1
- package/js/types/Interface/api/internalInvoicing/CreateInternalInvoicing.js +29 -0
- package/js/types/Interface/api/internalInvoicing/CreateInternalInvoicing.js.map +1 -0
- package/js/types/Interface/api/journal/Journals.js +30 -0
- package/js/types/Interface/api/journal/Journals.js.map +1 -0
- package/js/types/Interface/api/journal/QueryJournal.js +33 -0
- package/js/types/Interface/api/journal/QueryJournal.js.map +1 -0
- package/js/types/Interface/api/product/CreateProduct.js +1 -1
- package/js/types/Interface/api/product/CreateProduct.js.map +1 -1
- package/js/types/Interface/api/product/QueryProduct.js +3 -1
- package/js/types/Interface/api/product/QueryProduct.js.map +1 -1
- package/js/types/Interface/api/registration/CreateRegistration.js +35 -0
- package/js/types/Interface/api/registration/CreateRegistration.js.map +1 -0
- package/js/types/Interface/api/registration/ReadRegistration.js +6 -0
- package/js/types/Interface/api/registration/ReadRegistration.js.map +1 -0
- package/js/types/Interface/models/IRegistration.js +6 -0
- package/js/types/Interface/models/IRegistration.js.map +1 -0
- package/js/types/index.js +72 -0
- package/js/types/index.js.map +1 -1
- package/js/utils/validators/formattedDateString.validator.js +29 -0
- package/js/utils/validators/formattedDateString.validator.js.map +1 -0
- package/package.json +1 -1
- package/ts/api/resources/InternalInvoicing.ts +10 -0
- package/ts/api/resources/Journal.ts +11 -0
- package/ts/api/resources/Product.ts +12 -0
- package/ts/api/resources/Registration.ts +8 -0
- package/ts/api/resources.ts +6 -0
- package/ts/types/Enum/CerfaType.ts +14 -14
- package/ts/types/Enum/Ged.ts +1 -1
- package/ts/types/Enum/GlobalRegime.ts +61 -61
- package/ts/types/Enum/PaymentMethod.ts +62 -0
- package/ts/types/Enum/ProductType.ts +21 -5
- package/ts/types/Interface/api/internalInvoicing/CreateInternalInvoicing.ts +9 -0
- package/ts/types/Interface/api/journal/Journals.ts +48 -0
- package/ts/types/Interface/api/journal/QueryJournal.ts +15 -0
- package/ts/types/Interface/api/product/CreateProduct.ts +2 -2
- package/ts/types/Interface/api/product/QueryProduct.ts +6 -2
- package/ts/types/Interface/api/registration/CreateRegistration.ts +13 -0
- package/ts/types/Interface/api/registration/ReadRegistration.ts +3 -0
- package/ts/types/Interface/models/IGedFile.ts +10 -10
- package/ts/types/Interface/models/IPayment.ts +20 -15
- package/ts/types/Interface/models/IRegistration.ts +23 -0
- package/ts/types/Interface/models/ISociety.ts +1 -0
- package/ts/types/index.ts +7 -1
- package/ts/utils/validators/formattedDateString.validator.ts +24 -0
|
@@ -45,7 +45,7 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
45
45
|
idTaxSystem: TaxSystem.IR,
|
|
46
46
|
profitsType: ProfitsType.BIC,
|
|
47
47
|
idFiscalRegime: FiscalRegime.NA,
|
|
48
|
-
declaration: CerfaType
|
|
48
|
+
declaration: CerfaType.CERFA_2031,
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
name: 'Presta de services (BIC - IR - 2031)',
|
|
@@ -53,7 +53,7 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
53
53
|
idTaxSystem: TaxSystem.IR,
|
|
54
54
|
profitsType: ProfitsType.BIC,
|
|
55
55
|
idFiscalRegime: FiscalRegime.NA,
|
|
56
|
-
declaration: CerfaType
|
|
56
|
+
declaration: CerfaType.CERFA_2031,
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
59
|
name: 'Profession libérale (BNC - IR - 2035)',
|
|
@@ -61,7 +61,7 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
61
61
|
idTaxSystem: TaxSystem.IR,
|
|
62
62
|
profitsType: ProfitsType.BNC,
|
|
63
63
|
idFiscalRegime: FiscalRegime.NA,
|
|
64
|
-
declaration: CerfaType
|
|
64
|
+
declaration: CerfaType.CERFA_2035,
|
|
65
65
|
},
|
|
66
66
|
],
|
|
67
67
|
},
|
|
@@ -76,7 +76,7 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
76
76
|
idTaxSystem: TaxSystem.IR,
|
|
77
77
|
profitsType: ProfitsType.BIC,
|
|
78
78
|
idFiscalRegime: FiscalRegime.NA,
|
|
79
|
-
declaration: CerfaType
|
|
79
|
+
declaration: CerfaType.CERFA_2031,
|
|
80
80
|
},
|
|
81
81
|
{
|
|
82
82
|
name: 'Profession libérale (BNC - IR - 2035)',
|
|
@@ -84,7 +84,7 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
84
84
|
idTaxSystem: TaxSystem.IR,
|
|
85
85
|
profitsType: ProfitsType.BNC,
|
|
86
86
|
idFiscalRegime: FiscalRegime.NA,
|
|
87
|
-
declaration: CerfaType
|
|
87
|
+
declaration: CerfaType.CERFA_2035,
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
90
|
name: 'Artisan - commerçant (BIC - IS - Réel simplifié - 2065 & 2033)',
|
|
@@ -92,8 +92,8 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
92
92
|
idTaxSystem: TaxSystem.IS,
|
|
93
93
|
profitsType: ProfitsType.BIC,
|
|
94
94
|
idFiscalRegime: FiscalRegime.RS,
|
|
95
|
-
declaration: CerfaType
|
|
96
|
-
annexe: CerfaType
|
|
95
|
+
declaration: CerfaType.CERFA_2065,
|
|
96
|
+
annexe: CerfaType.CERFA_2033,
|
|
97
97
|
},
|
|
98
98
|
{
|
|
99
99
|
name: 'Artisan - commerçant (BIC - IS - Réel normal - 2065 & 2050)',
|
|
@@ -101,8 +101,8 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
101
101
|
idTaxSystem: TaxSystem.IS,
|
|
102
102
|
profitsType: ProfitsType.BIC,
|
|
103
103
|
idFiscalRegime: FiscalRegime.RN,
|
|
104
|
-
declaration: CerfaType
|
|
105
|
-
annexe: CerfaType
|
|
104
|
+
declaration: CerfaType.CERFA_2065,
|
|
105
|
+
annexe: CerfaType.CERFA_2050,
|
|
106
106
|
},
|
|
107
107
|
{
|
|
108
108
|
name: 'Profession libérale (BNC - IS - Réel simplifié - 2065 & 2033)',
|
|
@@ -110,8 +110,8 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
110
110
|
idTaxSystem: TaxSystem.IS,
|
|
111
111
|
profitsType: ProfitsType.BNC,
|
|
112
112
|
idFiscalRegime: FiscalRegime.RS,
|
|
113
|
-
declaration: CerfaType
|
|
114
|
-
annexe: CerfaType
|
|
113
|
+
declaration: CerfaType.CERFA_2065,
|
|
114
|
+
annexe: CerfaType.CERFA_2033,
|
|
115
115
|
},
|
|
116
116
|
{
|
|
117
117
|
name: 'Profession libérale (BNC - IS - 2065 & 2050)',
|
|
@@ -119,8 +119,8 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
119
119
|
idTaxSystem: TaxSystem.IS,
|
|
120
120
|
profitsType: ProfitsType.BNC,
|
|
121
121
|
idFiscalRegime: FiscalRegime.NA,
|
|
122
|
-
declaration: CerfaType
|
|
123
|
-
annexe: CerfaType
|
|
122
|
+
declaration: CerfaType.CERFA_2065,
|
|
123
|
+
annexe: CerfaType.CERFA_2050,
|
|
124
124
|
},
|
|
125
125
|
],
|
|
126
126
|
},
|
|
@@ -135,7 +135,7 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
135
135
|
idTaxSystem: TaxSystem.NA,
|
|
136
136
|
profitsType: ProfitsType.BIC,
|
|
137
137
|
idFiscalRegime: FiscalRegime.NA,
|
|
138
|
-
declaration: CerfaType
|
|
138
|
+
declaration: CerfaType.CERFA_2042_C_Pro,
|
|
139
139
|
},
|
|
140
140
|
{
|
|
141
141
|
name: 'Presta de services commerciales ou artisanales (Micro-BIC - 2042-C-Pro)',
|
|
@@ -143,7 +143,7 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
143
143
|
idTaxSystem: TaxSystem.NA,
|
|
144
144
|
profitsType: ProfitsType.BIC,
|
|
145
145
|
idFiscalRegime: FiscalRegime.NA,
|
|
146
|
-
declaration: CerfaType
|
|
146
|
+
declaration: CerfaType.CERFA_2042_C_Pro,
|
|
147
147
|
},
|
|
148
148
|
{
|
|
149
149
|
name: 'Profession libérale (Micro-BNC - 2042-C-Pro)',
|
|
@@ -151,7 +151,7 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
151
151
|
idTaxSystem: TaxSystem.NA,
|
|
152
152
|
profitsType: ProfitsType.BNC,
|
|
153
153
|
idFiscalRegime: FiscalRegime.NA,
|
|
154
|
-
declaration: CerfaType
|
|
154
|
+
declaration: CerfaType.CERFA_2042_C_Pro,
|
|
155
155
|
},
|
|
156
156
|
],
|
|
157
157
|
},
|
|
@@ -165,7 +165,7 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
165
165
|
idActivity: Activity.AUTRES,
|
|
166
166
|
idTaxSystem: TaxSystem.IS,
|
|
167
167
|
idFiscalRegime: FiscalRegime.NA,
|
|
168
|
-
declaration: CerfaType
|
|
168
|
+
declaration: CerfaType.CERFA_2070,
|
|
169
169
|
},
|
|
170
170
|
{
|
|
171
171
|
name: 'Fiscalisée (BIC - IS - Réel simplifié - 2065 & 2033)',
|
|
@@ -173,8 +173,8 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
173
173
|
idTaxSystem: TaxSystem.IS,
|
|
174
174
|
profitsType: ProfitsType.BIC,
|
|
175
175
|
idFiscalRegime: FiscalRegime.RS,
|
|
176
|
-
declaration: CerfaType
|
|
177
|
-
annexe: CerfaType
|
|
176
|
+
declaration: CerfaType.CERFA_2065,
|
|
177
|
+
annexe: CerfaType.CERFA_2033,
|
|
178
178
|
},
|
|
179
179
|
{
|
|
180
180
|
name: 'Fiscalisée (BIC - IS - Réel normal - 2065 & 2050)',
|
|
@@ -182,8 +182,8 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
182
182
|
idTaxSystem: TaxSystem.IS,
|
|
183
183
|
profitsType: ProfitsType.BIC,
|
|
184
184
|
idFiscalRegime: FiscalRegime.RN,
|
|
185
|
-
declaration: CerfaType
|
|
186
|
-
annexe: CerfaType
|
|
185
|
+
declaration: CerfaType.CERFA_2065,
|
|
186
|
+
annexe: CerfaType.CERFA_2050,
|
|
187
187
|
},
|
|
188
188
|
],
|
|
189
189
|
},
|
|
@@ -198,7 +198,7 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
198
198
|
idTaxSystem: TaxSystem.IR,
|
|
199
199
|
profitsType: ProfitsType.BIC,
|
|
200
200
|
idFiscalRegime: FiscalRegime.NA,
|
|
201
|
-
declaration: CerfaType
|
|
201
|
+
declaration: CerfaType.CERFA_2031,
|
|
202
202
|
},
|
|
203
203
|
{
|
|
204
204
|
name: 'Artisan - commerçant (BIC - IS - Réel simplifié - 2065 && 2033)',
|
|
@@ -206,8 +206,8 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
206
206
|
idTaxSystem: TaxSystem.IS,
|
|
207
207
|
profitsType: ProfitsType.BIC,
|
|
208
208
|
idFiscalRegime: FiscalRegime.RS,
|
|
209
|
-
declaration: CerfaType
|
|
210
|
-
annexe: CerfaType
|
|
209
|
+
declaration: CerfaType.CERFA_2065,
|
|
210
|
+
annexe: CerfaType.CERFA_2033,
|
|
211
211
|
},
|
|
212
212
|
{
|
|
213
213
|
name: 'Artisan - commerçant (BIC - IS - Réel normal - 2065 & 2050)',
|
|
@@ -215,8 +215,8 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
215
215
|
idTaxSystem: TaxSystem.IS,
|
|
216
216
|
profitsType: ProfitsType.BIC,
|
|
217
217
|
idFiscalRegime: FiscalRegime.RN,
|
|
218
|
-
declaration: CerfaType
|
|
219
|
-
annexe: CerfaType
|
|
218
|
+
declaration: CerfaType.CERFA_2065,
|
|
219
|
+
annexe: CerfaType.CERFA_2050,
|
|
220
220
|
},
|
|
221
221
|
{
|
|
222
222
|
name: 'Presta de services (BIC - IR - 2031)',
|
|
@@ -224,7 +224,7 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
224
224
|
idTaxSystem: TaxSystem.IR,
|
|
225
225
|
profitsType: ProfitsType.BIC,
|
|
226
226
|
idFiscalRegime: FiscalRegime.NA,
|
|
227
|
-
declaration: CerfaType
|
|
227
|
+
declaration: CerfaType.CERFA_2031,
|
|
228
228
|
},
|
|
229
229
|
{
|
|
230
230
|
name: 'Presta de services (BIC - IS - Réel simplifié - 2065 & 2033)',
|
|
@@ -232,8 +232,8 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
232
232
|
idTaxSystem: TaxSystem.IS,
|
|
233
233
|
profitsType: ProfitsType.BIC,
|
|
234
234
|
idFiscalRegime: FiscalRegime.RS,
|
|
235
|
-
declaration: CerfaType
|
|
236
|
-
annexe: CerfaType
|
|
235
|
+
declaration: CerfaType.CERFA_2065,
|
|
236
|
+
annexe: CerfaType.CERFA_2033,
|
|
237
237
|
},
|
|
238
238
|
{
|
|
239
239
|
name: 'Presta de services (BIC - IS - Réel normal - 2065 & 2050)',
|
|
@@ -241,8 +241,8 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
241
241
|
idTaxSystem: TaxSystem.IS,
|
|
242
242
|
profitsType: ProfitsType.BIC,
|
|
243
243
|
idFiscalRegime: FiscalRegime.RN,
|
|
244
|
-
declaration: CerfaType
|
|
245
|
-
annexe: CerfaType
|
|
244
|
+
declaration: CerfaType.CERFA_2065,
|
|
245
|
+
annexe: CerfaType.CERFA_2050,
|
|
246
246
|
},
|
|
247
247
|
],
|
|
248
248
|
},
|
|
@@ -257,7 +257,7 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
257
257
|
idTaxSystem: TaxSystem.IR,
|
|
258
258
|
profitsType: ProfitsType.BIC,
|
|
259
259
|
idFiscalRegime: FiscalRegime.NA,
|
|
260
|
-
declaration: CerfaType
|
|
260
|
+
declaration: CerfaType.CERFA_2031,
|
|
261
261
|
},
|
|
262
262
|
{
|
|
263
263
|
name: 'Artisan - commerçant (BIC - IS - Réel simplifié - 2065 & 2033)',
|
|
@@ -265,8 +265,8 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
265
265
|
idTaxSystem: TaxSystem.IS,
|
|
266
266
|
profitsType: ProfitsType.BIC,
|
|
267
267
|
idFiscalRegime: FiscalRegime.RS,
|
|
268
|
-
declaration: CerfaType
|
|
269
|
-
annexe: CerfaType
|
|
268
|
+
declaration: CerfaType.CERFA_2065,
|
|
269
|
+
annexe: CerfaType.CERFA_2033,
|
|
270
270
|
},
|
|
271
271
|
{
|
|
272
272
|
name: 'Artisan - commerçant (BIC - IS - Réel normal - 2065 & 2050)',
|
|
@@ -274,8 +274,8 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
274
274
|
idTaxSystem: TaxSystem.IS,
|
|
275
275
|
profitsType: ProfitsType.BIC,
|
|
276
276
|
idFiscalRegime: FiscalRegime.RN,
|
|
277
|
-
declaration: CerfaType
|
|
278
|
-
annexe: CerfaType
|
|
277
|
+
declaration: CerfaType.CERFA_2065,
|
|
278
|
+
annexe: CerfaType.CERFA_2050,
|
|
279
279
|
},
|
|
280
280
|
{
|
|
281
281
|
name: 'Presta de services (BIC - IR - 2031)',
|
|
@@ -283,7 +283,7 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
283
283
|
idTaxSystem: TaxSystem.IR,
|
|
284
284
|
profitsType: ProfitsType.BIC,
|
|
285
285
|
idFiscalRegime: FiscalRegime.NA,
|
|
286
|
-
declaration: CerfaType
|
|
286
|
+
declaration: CerfaType.CERFA_2031,
|
|
287
287
|
},
|
|
288
288
|
{
|
|
289
289
|
name: 'Presta de services (BIC - IS - Réel simplifié - 2065 & 2033)',
|
|
@@ -291,8 +291,8 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
291
291
|
idTaxSystem: TaxSystem.IS,
|
|
292
292
|
profitsType: ProfitsType.BIC,
|
|
293
293
|
idFiscalRegime: FiscalRegime.RS,
|
|
294
|
-
declaration: CerfaType
|
|
295
|
-
annexe: CerfaType
|
|
294
|
+
declaration: CerfaType.CERFA_2065,
|
|
295
|
+
annexe: CerfaType.CERFA_2033,
|
|
296
296
|
},
|
|
297
297
|
{
|
|
298
298
|
name: 'Presta de services (BIC - IS - Réel normal - 2065 & 2050)',
|
|
@@ -300,8 +300,8 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
300
300
|
idTaxSystem: TaxSystem.IS,
|
|
301
301
|
profitsType: ProfitsType.BIC,
|
|
302
302
|
idFiscalRegime: FiscalRegime.RN,
|
|
303
|
-
declaration: CerfaType
|
|
304
|
-
annexe: CerfaType
|
|
303
|
+
declaration: CerfaType.CERFA_2065,
|
|
304
|
+
annexe: CerfaType.CERFA_2050,
|
|
305
305
|
},
|
|
306
306
|
],
|
|
307
307
|
},
|
|
@@ -316,8 +316,8 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
316
316
|
idTaxSystem: TaxSystem.IS,
|
|
317
317
|
profitsType: ProfitsType.BIC,
|
|
318
318
|
idFiscalRegime: FiscalRegime.RS,
|
|
319
|
-
declaration: CerfaType
|
|
320
|
-
annexe: CerfaType
|
|
319
|
+
declaration: CerfaType.CERFA_2065,
|
|
320
|
+
annexe: CerfaType.CERFA_2033,
|
|
321
321
|
},
|
|
322
322
|
{
|
|
323
323
|
name: 'Artisan - commerçant (BIC - IS - Réel normal - 2065 & 2050)',
|
|
@@ -325,8 +325,8 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
325
325
|
idTaxSystem: TaxSystem.IS,
|
|
326
326
|
profitsType: ProfitsType.BIC,
|
|
327
327
|
idFiscalRegime: FiscalRegime.RN,
|
|
328
|
-
declaration: CerfaType
|
|
329
|
-
annexe: CerfaType
|
|
328
|
+
declaration: CerfaType.CERFA_2065,
|
|
329
|
+
annexe: CerfaType.CERFA_2050,
|
|
330
330
|
},
|
|
331
331
|
{
|
|
332
332
|
name: 'Presta de services (BIC - IS - Réel simplifié - 2065 & 2033)',
|
|
@@ -334,8 +334,8 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
334
334
|
idTaxSystem: TaxSystem.IS,
|
|
335
335
|
profitsType: ProfitsType.BIC,
|
|
336
336
|
idFiscalRegime: FiscalRegime.RS,
|
|
337
|
-
declaration: CerfaType
|
|
338
|
-
annexe: CerfaType
|
|
337
|
+
declaration: CerfaType.CERFA_2065,
|
|
338
|
+
annexe: CerfaType.CERFA_2033,
|
|
339
339
|
|
|
340
340
|
},
|
|
341
341
|
{
|
|
@@ -344,8 +344,8 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
344
344
|
idTaxSystem: TaxSystem.IS,
|
|
345
345
|
profitsType: ProfitsType.BIC,
|
|
346
346
|
idFiscalRegime: FiscalRegime.RN,
|
|
347
|
-
declaration: CerfaType
|
|
348
|
-
annexe: CerfaType
|
|
347
|
+
declaration: CerfaType.CERFA_2065,
|
|
348
|
+
annexe: CerfaType.CERFA_2050,
|
|
349
349
|
},
|
|
350
350
|
],
|
|
351
351
|
},
|
|
@@ -360,7 +360,7 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
360
360
|
idTaxSystem: TaxSystem.IR,
|
|
361
361
|
profitsType: ProfitsType.BNC,
|
|
362
362
|
idFiscalRegime: FiscalRegime.NA,
|
|
363
|
-
declaration: CerfaType
|
|
363
|
+
declaration: CerfaType.CERFA_2044,
|
|
364
364
|
},
|
|
365
365
|
{
|
|
366
366
|
name: 'Presta de services (BNC - IS - 2072)',
|
|
@@ -368,7 +368,7 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
368
368
|
idTaxSystem: TaxSystem.IS,
|
|
369
369
|
profitsType: ProfitsType.BNC,
|
|
370
370
|
idFiscalRegime: FiscalRegime.NA,
|
|
371
|
-
declaration: CerfaType
|
|
371
|
+
declaration: CerfaType.CERFA_2072,
|
|
372
372
|
},
|
|
373
373
|
],
|
|
374
374
|
},
|
|
@@ -383,7 +383,7 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
383
383
|
idTaxSystem: TaxSystem.IR,
|
|
384
384
|
profitsType: ProfitsType.BNC,
|
|
385
385
|
idFiscalRegime: FiscalRegime.NA,
|
|
386
|
-
declaration: CerfaType
|
|
386
|
+
declaration: CerfaType.CERFA_2035,
|
|
387
387
|
},
|
|
388
388
|
{
|
|
389
389
|
name: 'Presta de services (BIC - IS - Réel simplifié - 2065 & 2033)',
|
|
@@ -391,8 +391,8 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
391
391
|
idTaxSystem: TaxSystem.IS,
|
|
392
392
|
profitsType: ProfitsType.BIC,
|
|
393
393
|
idFiscalRegime: FiscalRegime.RS,
|
|
394
|
-
declaration: CerfaType
|
|
395
|
-
annexe: CerfaType
|
|
394
|
+
declaration: CerfaType.CERFA_2065,
|
|
395
|
+
annexe: CerfaType.CERFA_2033,
|
|
396
396
|
},
|
|
397
397
|
{
|
|
398
398
|
name: 'Presta de services (BIC - IS - Réel normal - 2065 & 2050)',
|
|
@@ -400,8 +400,8 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
400
400
|
idTaxSystem: TaxSystem.IS,
|
|
401
401
|
profitsType: ProfitsType.BIC,
|
|
402
402
|
idFiscalRegime: FiscalRegime.RN,
|
|
403
|
-
declaration: CerfaType
|
|
404
|
-
annexe: CerfaType
|
|
403
|
+
declaration: CerfaType.CERFA_2065,
|
|
404
|
+
annexe: CerfaType.CERFA_2050,
|
|
405
405
|
},
|
|
406
406
|
],
|
|
407
407
|
},
|
|
@@ -416,7 +416,7 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
416
416
|
idTaxSystem: TaxSystem.IR,
|
|
417
417
|
profitsType: ProfitsType.BNC,
|
|
418
418
|
idFiscalRegime: FiscalRegime.NA,
|
|
419
|
-
declaration: CerfaType
|
|
419
|
+
declaration: CerfaType.CERFA_2035,
|
|
420
420
|
},
|
|
421
421
|
{
|
|
422
422
|
name: 'Profession libérale (BIC - IS - Réel simplifié - 2065 & 2033)',
|
|
@@ -424,8 +424,8 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
424
424
|
idTaxSystem: TaxSystem.IS,
|
|
425
425
|
profitsType: ProfitsType.BIC,
|
|
426
426
|
idFiscalRegime: FiscalRegime.RS,
|
|
427
|
-
declaration: CerfaType
|
|
428
|
-
annexe: CerfaType
|
|
427
|
+
declaration: CerfaType.CERFA_2065,
|
|
428
|
+
annexe: CerfaType.CERFA_2033,
|
|
429
429
|
},
|
|
430
430
|
{
|
|
431
431
|
name: 'Profession libérale (BIC - IS - Réel normal - 2065 & 2050)',
|
|
@@ -433,8 +433,8 @@ export const GlobalRegime: GlobalRegimeType = {
|
|
|
433
433
|
idTaxSystem: TaxSystem.IS,
|
|
434
434
|
profitsType: ProfitsType.BIC,
|
|
435
435
|
idFiscalRegime: FiscalRegime.RN,
|
|
436
|
-
declaration: CerfaType
|
|
437
|
-
annexe: CerfaType
|
|
436
|
+
declaration: CerfaType.CERFA_2065,
|
|
437
|
+
annexe: CerfaType.CERFA_2050,
|
|
438
438
|
},
|
|
439
439
|
],
|
|
440
440
|
},
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export const PaymentMethod = {
|
|
2
|
+
DIRECT_DEBIT: {
|
|
3
|
+
id: 1,
|
|
4
|
+
name: 'Prélèvement',
|
|
5
|
+
isSpecial: 0,
|
|
6
|
+
isOverdue: 0,
|
|
7
|
+
},
|
|
8
|
+
BANK_TRANSFER: {
|
|
9
|
+
id: 2,
|
|
10
|
+
name: 'Virement',
|
|
11
|
+
isSpecial: 0,
|
|
12
|
+
isOverdue: 0,
|
|
13
|
+
},
|
|
14
|
+
BANK_CARD: {
|
|
15
|
+
id: 3,
|
|
16
|
+
name: 'CB',
|
|
17
|
+
isSpecial: 0,
|
|
18
|
+
isOverdue: 0,
|
|
19
|
+
},
|
|
20
|
+
BANK_CHECK: {
|
|
21
|
+
id: 4,
|
|
22
|
+
name: 'Chèque',
|
|
23
|
+
isSpecial: 0,
|
|
24
|
+
isOverdue: 0,
|
|
25
|
+
},
|
|
26
|
+
DIRECT_DEBIT_REJECTION_1: {
|
|
27
|
+
id: 5,
|
|
28
|
+
name: 'Rejet de prélèvement 1',
|
|
29
|
+
isSpecial: 1,
|
|
30
|
+
isOverdue: 1,
|
|
31
|
+
},
|
|
32
|
+
DIRECT_DEBIT_REJECTION_2: {
|
|
33
|
+
id: 6,
|
|
34
|
+
name: 'Rejet de prélèvement 2',
|
|
35
|
+
isSpecial: 1,
|
|
36
|
+
isOverdue: 1,
|
|
37
|
+
},
|
|
38
|
+
VARIOUS_UNPAID: {
|
|
39
|
+
id: 7,
|
|
40
|
+
name: 'Impayés divers',
|
|
41
|
+
isSpecial: 1,
|
|
42
|
+
isOverdue: 1,
|
|
43
|
+
},
|
|
44
|
+
STRIPE_ECB: {
|
|
45
|
+
id: 8,
|
|
46
|
+
name: 'Stripe (ECB)',
|
|
47
|
+
isSpecial: 0,
|
|
48
|
+
isOverdue: 0,
|
|
49
|
+
},
|
|
50
|
+
STRIPE_WI: {
|
|
51
|
+
id: 9,
|
|
52
|
+
name: 'Stripe (WI)',
|
|
53
|
+
isSpecial: 0,
|
|
54
|
+
isOverdue: 0,
|
|
55
|
+
},
|
|
56
|
+
CASH: {
|
|
57
|
+
id: 10,
|
|
58
|
+
name: 'Espèces',
|
|
59
|
+
isSpecial: 0,
|
|
60
|
+
isOverdue: 0,
|
|
61
|
+
},
|
|
62
|
+
};
|
|
@@ -1,5 +1,21 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
1
|
+
export interface IProductType {
|
|
2
|
+
[key: string]: {
|
|
3
|
+
id: number,
|
|
4
|
+
name: string,
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export const ProductType: IProductType = {
|
|
9
|
+
PRODUCT: {
|
|
10
|
+
id: 1,
|
|
11
|
+
name: 'Produit',
|
|
12
|
+
},
|
|
13
|
+
SERVICE: {
|
|
14
|
+
id: 2,
|
|
15
|
+
name: 'Service',
|
|
16
|
+
},
|
|
17
|
+
GOODS: {
|
|
18
|
+
id: 3,
|
|
19
|
+
name: 'Marchandise',
|
|
20
|
+
},
|
|
21
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export class JournalDebitCredit {
|
|
2
|
+
debit?: number;
|
|
3
|
+
credit?: number;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export class PeriodDatum extends JournalDebitCredit {
|
|
7
|
+
dateValue: string | Date;
|
|
8
|
+
invoiceNumber: string;
|
|
9
|
+
designation: string;
|
|
10
|
+
account: number;
|
|
11
|
+
accountName: string;
|
|
12
|
+
master: boolean;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class IPeriodsCentralisation {
|
|
16
|
+
[index: string]: {
|
|
17
|
+
account: number;
|
|
18
|
+
accountName: string;
|
|
19
|
+
} & JournalDebitCredit;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export class IPeriods {
|
|
23
|
+
[index: string]: {
|
|
24
|
+
monthYearPeriods: string;
|
|
25
|
+
data?: PeriodDatum[];
|
|
26
|
+
dataCentralisation?: IPeriodsCentralisation;
|
|
27
|
+
total: {
|
|
28
|
+
accumulated: JournalDebitCredit;
|
|
29
|
+
month: JournalDebitCredit;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export class Journals {
|
|
34
|
+
[index: string]: {
|
|
35
|
+
idJournal: number;
|
|
36
|
+
// eslint-disable-next-line no-restricted-globals
|
|
37
|
+
name: string;
|
|
38
|
+
fullName: string;
|
|
39
|
+
periods?: IPeriods;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export class JsonExportJournal {
|
|
44
|
+
idSociety: number;
|
|
45
|
+
startDate: string;
|
|
46
|
+
endDate: string;
|
|
47
|
+
data: Journals;
|
|
48
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
|
|
2
|
+
import { IsFormattedDateString } from '../../../../utils/validators/formattedDateString.validator';
|
|
3
|
+
|
|
4
|
+
export class QueryJournal {
|
|
5
|
+
@ApiProperty()
|
|
6
|
+
@IsFormattedDateString()
|
|
7
|
+
startDate: string;
|
|
8
|
+
|
|
9
|
+
@ApiProperty()
|
|
10
|
+
@IsFormattedDateString()
|
|
11
|
+
endDate: string;
|
|
12
|
+
|
|
13
|
+
@ApiPropertyOptional()
|
|
14
|
+
accountingJournalIds?: number[];
|
|
15
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import {
|
|
2
|
-
IsEnum,
|
|
3
2
|
IsNumber, IsOptional, IsString, Min,
|
|
4
3
|
} from 'class-validator';
|
|
5
4
|
import { ProductType, Unit, Vat } from '../../..';
|
|
@@ -33,7 +32,8 @@ export class CreateProduct {
|
|
|
33
32
|
unit: number;
|
|
34
33
|
|
|
35
34
|
@ApiProperty()
|
|
36
|
-
@
|
|
35
|
+
@IsNumber()
|
|
36
|
+
@IsObjectId(ProductType)
|
|
37
37
|
type: number;
|
|
38
38
|
|
|
39
39
|
@ApiPropertyOptional()
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
IsNumber, IsOptional, IsString,
|
|
3
|
+
} from 'class-validator';
|
|
2
4
|
import { ProductType } from '../../..';
|
|
3
5
|
import { ApiPropertyOptional } from '../../../..';
|
|
6
|
+
import { IsObjectId } from '../../../../utils/validators/objectId.validator';
|
|
4
7
|
|
|
5
8
|
export class QueryProduct {
|
|
6
9
|
@ApiPropertyOptional()
|
|
@@ -10,6 +13,7 @@ export class QueryProduct {
|
|
|
10
13
|
|
|
11
14
|
@ApiPropertyOptional()
|
|
12
15
|
@IsOptional()
|
|
13
|
-
@
|
|
16
|
+
@IsNumber()
|
|
17
|
+
@IsObjectId(ProductType)
|
|
14
18
|
type?: number;
|
|
15
19
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IsEnum } from 'class-validator';
|
|
2
|
+
import { ApiProperty } from '../../../../utils';
|
|
3
|
+
import { CerfaType } from '../../../Enum/CerfaType';
|
|
4
|
+
import { ParamsGenerate2035 } from '../cerfa/CreateCerfa';
|
|
5
|
+
|
|
6
|
+
export class CreateRegistration {
|
|
7
|
+
@ApiProperty()
|
|
8
|
+
payload: ParamsGenerate2035;
|
|
9
|
+
|
|
10
|
+
@ApiProperty()
|
|
11
|
+
@IsEnum(CerfaType)
|
|
12
|
+
idCerfaType: number;
|
|
13
|
+
}
|
|
@@ -7,21 +7,21 @@ import { IGedFolder } from './IGedFolder';
|
|
|
7
7
|
// gedFile
|
|
8
8
|
export interface IGedFile {
|
|
9
9
|
id?: number;
|
|
10
|
-
emissionDate
|
|
11
|
-
statutFile
|
|
12
|
-
idTypeGedFile
|
|
13
|
-
idUser
|
|
10
|
+
emissionDate?: Date | null;
|
|
11
|
+
statutFile?: number | null;
|
|
12
|
+
idTypeGedFile?: number | null;
|
|
13
|
+
idUser?: number | null;
|
|
14
14
|
idGedFolder: number;
|
|
15
15
|
idSociety: number;
|
|
16
16
|
idFile: number;
|
|
17
|
-
idExercice
|
|
17
|
+
idExercice?: number | null;
|
|
18
18
|
createdAt?: Date | null;
|
|
19
19
|
updatedAt?: Date | null;
|
|
20
20
|
|
|
21
21
|
// Associations
|
|
22
|
-
fileFromGed
|
|
23
|
-
society
|
|
24
|
-
exercice
|
|
25
|
-
typeGedFile
|
|
26
|
-
gedFolder
|
|
22
|
+
fileFromGed?: IFile;
|
|
23
|
+
society?: ISociety;
|
|
24
|
+
exercice?: IExercice;
|
|
25
|
+
typeGedFile?: IGedFileType;
|
|
26
|
+
gedFolder?: IGedFolder;
|
|
27
27
|
}
|
|
@@ -2,32 +2,37 @@ import { IPrestation } from './IPrestation';
|
|
|
2
2
|
import { IPaymentMethod } from './IPaymentMethod';
|
|
3
3
|
import { IUser } from './IUser';
|
|
4
4
|
import { IExercice } from './IExercice';
|
|
5
|
+
import { IFile } from './IFile';
|
|
5
6
|
|
|
6
7
|
// payments
|
|
7
8
|
export interface IPayment {
|
|
8
9
|
id?: number;
|
|
9
10
|
amount: number;
|
|
10
|
-
amountPayed
|
|
11
|
-
isLate
|
|
12
|
-
isOverdue
|
|
11
|
+
amountPayed?: number;
|
|
12
|
+
isLate?: boolean;
|
|
13
|
+
isOverdue?: boolean;
|
|
13
14
|
isOverpaid?: boolean;
|
|
14
|
-
isFirst
|
|
15
|
-
toCollect
|
|
16
|
-
isAsset
|
|
17
|
-
isFree
|
|
18
|
-
dateOverdue
|
|
15
|
+
isFirst?: boolean;
|
|
16
|
+
toCollect?: boolean;
|
|
17
|
+
isAsset?: boolean;
|
|
18
|
+
isFree?: boolean;
|
|
19
|
+
dateOverdue?: Date | null;
|
|
19
20
|
datePayment: Date;
|
|
20
|
-
|
|
21
|
+
done?: boolean | null;
|
|
22
|
+
refInternalInvoicing?: number;
|
|
21
23
|
idPrestation: number;
|
|
22
|
-
idExercice
|
|
23
|
-
idUser
|
|
24
|
+
idExercice?: number | null;
|
|
25
|
+
idUser?: number | null;
|
|
24
26
|
idPaymentMethod: number;
|
|
27
|
+
idFile?: number | null;
|
|
28
|
+
idSociety: number;
|
|
25
29
|
createdAt?: Date | null;
|
|
26
30
|
updatedAt?: Date | null;
|
|
27
31
|
|
|
28
32
|
// Associations
|
|
29
|
-
paymentsPrestations
|
|
30
|
-
paymentsMethod
|
|
31
|
-
user
|
|
32
|
-
exercice
|
|
33
|
+
paymentsPrestations?: IPrestation;
|
|
34
|
+
paymentsMethod?: IPaymentMethod;
|
|
35
|
+
user?: IUser;
|
|
36
|
+
exercice?: IExercice;
|
|
37
|
+
files?: IFile;
|
|
33
38
|
}
|