@silexpert/core 1.1.383 → 1.1.385
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/BankAccount.js +1 -1
- package/dist/cjs/api/resources/BankAccount.js.map +1 -1
- package/dist/cjs/api/resources/ToDoExpress.d.ts +29 -0
- package/dist/cjs/api/resources/ToDoExpress.d.ts.map +1 -0
- package/dist/cjs/api/resources/ToDoExpress.js +36 -0
- package/dist/cjs/api/resources/ToDoExpress.js.map +1 -0
- package/dist/cjs/api/resources.d.ts +2 -2
- package/dist/cjs/api/resources.d.ts.map +1 -1
- package/dist/cjs/api/resources.js +2 -2
- package/dist/cjs/api/resources.js.map +1 -1
- package/dist/cjs/types/Enum/Aspone.d.ts +6 -0
- package/dist/cjs/types/Enum/Aspone.d.ts.map +1 -1
- package/dist/cjs/types/Enum/Aspone.js +8 -1
- package/dist/cjs/types/Enum/Aspone.js.map +1 -1
- package/dist/cjs/types/Enum/FuelType.d.ts +2 -0
- package/dist/cjs/types/Enum/FuelType.d.ts.map +1 -1
- package/dist/cjs/types/Enum/FuelType.js +15 -14
- package/dist/cjs/types/Enum/FuelType.js.map +1 -1
- package/dist/cjs/types/Interface/api/OnBoarding.d.ts +1 -1
- package/dist/cjs/types/Interface/api/OnBoarding.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/OnBoarding.js +2 -2
- package/dist/cjs/types/Interface/api/OnBoarding.js.map +1 -1
- package/dist/cjs/types/Interface/api/aspone/ReadInterchange.d.ts +2 -1
- package/dist/cjs/types/Interface/api/aspone/ReadInterchange.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/aspone/ReadInterchange.js.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2031.d.ts +9 -1
- package/dist/cjs/types/Interface/api/cerfa/2031.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2031.js.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2035.d.ts +5 -0
- package/dist/cjs/types/Interface/api/cerfa/2035.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2035.js.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2065.d.ts +9 -0
- package/dist/cjs/types/Interface/api/cerfa/2065.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2065.js.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2571.d.ts +1 -3
- package/dist/cjs/types/Interface/api/cerfa/2571.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2571.js.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2572.d.ts +1 -3
- package/dist/cjs/types/Interface/api/cerfa/2572.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/2572.js.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/ReadCerfa.d.ts +23 -1
- package/dist/cjs/types/Interface/api/cerfa/ReadCerfa.d.ts.map +1 -1
- package/dist/cjs/types/Interface/api/cerfa/ReadCerfa.js.map +1 -1
- package/dist/cjs/types/Interface/api/toDoExpress/Query.d.ts +32 -0
- package/dist/cjs/types/Interface/api/toDoExpress/Query.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/toDoExpress/Query.js +185 -0
- package/dist/cjs/types/Interface/api/toDoExpress/Query.js.map +1 -0
- package/dist/cjs/types/Interface/api/toDoExpress/Read.d.ts +18 -0
- package/dist/cjs/types/Interface/api/toDoExpress/Read.d.ts.map +1 -0
- package/dist/cjs/types/Interface/api/toDoExpress/Read.js +3 -0
- package/dist/cjs/types/Interface/api/toDoExpress/Read.js.map +1 -0
- package/dist/cjs/types/Interface/models/IChecklist.d.ts +3 -0
- package/dist/cjs/types/Interface/models/IChecklist.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IChecklist.js.map +1 -1
- package/dist/cjs/types/Interface/models/IExercice.d.ts +2 -0
- package/dist/cjs/types/Interface/models/IExercice.d.ts.map +1 -1
- package/dist/cjs/types/Interface/models/IExercice.js.map +1 -1
- package/dist/cjs/types/index.d.ts +2 -0
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +2 -0
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/mjs/api/resources/BankAccount.js +1 -1
- package/dist/mjs/api/resources/BankAccount.js.map +1 -1
- package/dist/mjs/api/resources/ToDoExpress.d.ts +29 -0
- package/dist/mjs/api/resources/ToDoExpress.d.ts.map +1 -0
- package/dist/mjs/api/resources/ToDoExpress.js +40 -0
- package/dist/mjs/api/resources/ToDoExpress.js.map +1 -0
- package/dist/mjs/api/resources.d.ts +2 -2
- package/dist/mjs/api/resources.d.ts.map +1 -1
- package/dist/mjs/api/resources.js +2 -2
- package/dist/mjs/api/resources.js.map +1 -1
- package/dist/mjs/types/Enum/Aspone.d.ts +6 -0
- package/dist/mjs/types/Enum/Aspone.d.ts.map +1 -1
- package/dist/mjs/types/Enum/Aspone.js +7 -0
- package/dist/mjs/types/Enum/Aspone.js.map +1 -1
- package/dist/mjs/types/Enum/FuelType.d.ts +2 -0
- package/dist/mjs/types/Enum/FuelType.d.ts.map +1 -1
- package/dist/mjs/types/Enum/FuelType.js +15 -14
- package/dist/mjs/types/Enum/FuelType.js.map +1 -1
- package/dist/mjs/types/Interface/api/OnBoarding.d.ts +1 -1
- package/dist/mjs/types/Interface/api/OnBoarding.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/OnBoarding.js +2 -2
- package/dist/mjs/types/Interface/api/OnBoarding.js.map +1 -1
- package/dist/mjs/types/Interface/api/aspone/ReadInterchange.d.ts +2 -1
- package/dist/mjs/types/Interface/api/aspone/ReadInterchange.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/aspone/ReadInterchange.js.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2031.d.ts +9 -1
- package/dist/mjs/types/Interface/api/cerfa/2031.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2031.js.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2035.d.ts +5 -0
- package/dist/mjs/types/Interface/api/cerfa/2035.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2035.js.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2065.d.ts +9 -0
- package/dist/mjs/types/Interface/api/cerfa/2065.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2065.js.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2571.d.ts +1 -3
- package/dist/mjs/types/Interface/api/cerfa/2571.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2571.js.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2572.d.ts +1 -3
- package/dist/mjs/types/Interface/api/cerfa/2572.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/2572.js.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/ReadCerfa.d.ts +23 -1
- package/dist/mjs/types/Interface/api/cerfa/ReadCerfa.d.ts.map +1 -1
- package/dist/mjs/types/Interface/api/cerfa/ReadCerfa.js.map +1 -1
- package/dist/mjs/types/Interface/api/toDoExpress/Query.d.ts +32 -0
- package/dist/mjs/types/Interface/api/toDoExpress/Query.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/toDoExpress/Query.js +206 -0
- package/dist/mjs/types/Interface/api/toDoExpress/Query.js.map +1 -0
- package/dist/mjs/types/Interface/api/toDoExpress/Read.d.ts +18 -0
- package/dist/mjs/types/Interface/api/toDoExpress/Read.d.ts.map +1 -0
- package/dist/mjs/types/Interface/api/toDoExpress/Read.js +2 -0
- package/dist/mjs/types/Interface/api/toDoExpress/Read.js.map +1 -0
- package/dist/mjs/types/Interface/models/IChecklist.d.ts +3 -0
- package/dist/mjs/types/Interface/models/IChecklist.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IChecklist.js.map +1 -1
- package/dist/mjs/types/Interface/models/IExercice.d.ts +2 -0
- package/dist/mjs/types/Interface/models/IExercice.d.ts.map +1 -1
- package/dist/mjs/types/Interface/models/IExercice.js.map +1 -1
- package/dist/mjs/types/index.d.ts +2 -0
- package/dist/mjs/types/index.d.ts.map +1 -1
- package/dist/mjs/types/index.js +2 -0
- package/dist/mjs/types/index.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/BankAccount.ts +1 -1
- package/ts/api/resources/ToDoExpress.ts +44 -0
- package/ts/api/resources.ts +2 -2
- package/ts/types/Enum/Aspone.ts +7 -0
- package/ts/types/Enum/FuelType.ts +18 -15
- package/ts/types/Interface/api/OnBoarding.ts +2 -2
- package/ts/types/Interface/api/aspone/ReadInterchange.ts +2 -1
- package/ts/types/Interface/api/cerfa/2031.ts +3 -1
- package/ts/types/Interface/api/cerfa/2035.ts +2 -0
- package/ts/types/Interface/api/cerfa/2065.ts +4 -2
- package/ts/types/Interface/api/cerfa/2571.ts +1 -3
- package/ts/types/Interface/api/cerfa/2572.ts +5 -2
- package/ts/types/Interface/api/cerfa/ReadCerfa.ts +30 -1
- package/ts/types/Interface/api/toDoExpress/Query.ts +144 -0
- package/ts/types/Interface/api/toDoExpress/Read.ts +11 -0
- package/ts/types/Interface/models/IChecklist.ts +3 -0
- package/ts/types/Interface/models/IExercice.ts +2 -0
- package/ts/types/index.ts +2 -0
- package/dist/cjs/api/resources/Cerfa.d.ts +0 -25
- package/dist/cjs/api/resources/Cerfa.d.ts.map +0 -1
- package/dist/cjs/api/resources/Cerfa.js +0 -37
- package/dist/cjs/api/resources/Cerfa.js.map +0 -1
- package/dist/mjs/api/resources/Cerfa.d.ts +0 -25
- package/dist/mjs/api/resources/Cerfa.d.ts.map +0 -1
- package/dist/mjs/api/resources/Cerfa.js +0 -33
- package/dist/mjs/api/resources/Cerfa.js.map +0 -1
- package/ts/api/resources/Cerfa.ts +0 -39
package/ts/api/resources.ts
CHANGED
|
@@ -18,7 +18,6 @@ import { FecFile } from './resources/FecFile';
|
|
|
18
18
|
import { IncomeStatement } from './resources/IncomeStatement';
|
|
19
19
|
import { BalanceSheet } from './resources/BalanceSheet';
|
|
20
20
|
import { BalanceSheetModule } from './resources/BalanceSheetModule';
|
|
21
|
-
import { Cerfa } from './resources/Cerfa';
|
|
22
21
|
import { Subscription } from './resources/Subscription';
|
|
23
22
|
import { Authenticate } from './resources/Authenticate';
|
|
24
23
|
import { Search } from './resources/Search';
|
|
@@ -165,6 +164,7 @@ import { UserSocietyPermission } from './resources/UserSocietyPermission';
|
|
|
165
164
|
import { BalanceSheetSupervision } from './resources/BalanceSheetSupervision';
|
|
166
165
|
import { CompanyCreationForm } from './resources/CompanyCreationForm';
|
|
167
166
|
import { BankConnection } from './resources/BankConnection';
|
|
167
|
+
import { ToDoExpress } from './resources/ToDoExpress';
|
|
168
168
|
|
|
169
169
|
export const resources = {
|
|
170
170
|
simulation: Simulation,
|
|
@@ -189,7 +189,6 @@ export const resources = {
|
|
|
189
189
|
internalInvoicing: InternalInvoicing,
|
|
190
190
|
balanceSheet: BalanceSheet,
|
|
191
191
|
balanceSheetModule: BalanceSheetModule,
|
|
192
|
-
cerfa: Cerfa,
|
|
193
192
|
authenticate: Authenticate,
|
|
194
193
|
search: Search,
|
|
195
194
|
subscription: Subscription,
|
|
@@ -334,4 +333,5 @@ export const resources = {
|
|
|
334
333
|
companyCreationForm: CompanyCreationForm,
|
|
335
334
|
project: Project,
|
|
336
335
|
bankConnection: BankConnection,
|
|
336
|
+
toDoExpress: ToDoExpress,
|
|
337
337
|
};
|
package/ts/types/Enum/Aspone.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { AsponeMotorType } from './Aspone';
|
|
2
|
+
|
|
1
3
|
export enum FuelType {
|
|
2
4
|
DIESEL = 1,
|
|
3
5
|
GASOLINE = 2,
|
|
@@ -35,25 +37,26 @@ export enum FuelType {
|
|
|
35
37
|
MONOFUEL_GPL_ELECTRIC_NOT_REFILLABLE = 34,
|
|
36
38
|
}
|
|
37
39
|
|
|
38
|
-
|
|
40
|
+
|
|
41
|
+
export type FuelTypeList = { text: string, value: FuelType, motor?: AsponeMotorType }[];
|
|
39
42
|
|
|
40
43
|
export const fuelTypeList: FuelTypeList = [
|
|
41
|
-
{ text: 'Gazole - GO', value: FuelType.DIESEL },
|
|
42
|
-
{ text: 'Essence - ES', value: FuelType.GASOLINE },
|
|
43
|
-
{ text: 'Electrique - EL', value: FuelType.ELECTRIC },
|
|
44
|
+
{ text: 'Gazole - GO', value: FuelType.DIESEL, motor: AsponeMotorType.THERMIQUE },
|
|
45
|
+
{ text: 'Essence - ES', value: FuelType.GASOLINE, motor: AsponeMotorType.THERMIQUE },
|
|
46
|
+
{ text: 'Electrique - EL', value: FuelType.ELECTRIC, motor: AsponeMotorType.ELECTRIQUE },
|
|
44
47
|
{ text: 'Air comprimé - AC', value: FuelType.PRESSURIED_AIR },
|
|
45
|
-
{ text: 'Bicarburation essence-GPL - EG', value: FuelType.BI_FUEL_GASOLINE_GPL },
|
|
46
|
-
{ text: 'Bicarburation essence-gaz naturel - EN', value: FuelType.BI_FUEL_GASOLINE_NATURAL_GAS },
|
|
48
|
+
{ text: 'Bicarburation essence-GPL - EG', value: FuelType.BI_FUEL_GASOLINE_GPL, motor: AsponeMotorType.HYBRIDE },
|
|
49
|
+
{ text: 'Bicarburation essence-gaz naturel - EN', value: FuelType.BI_FUEL_GASOLINE_NATURAL_GAS, motor: AsponeMotorType.HYBRIDE },
|
|
47
50
|
{ text: 'Essence électricité (hybride rechargeable) - EE', value: FuelType.ELECTRIC_GASOLINE_REFILLABLE },
|
|
48
|
-
{ text: 'Ethanol - ET', value: FuelType.ETHANOL },
|
|
51
|
+
{ text: 'Ethanol - ET', value: FuelType.ETHANOL, motor: AsponeMotorType.THERMIQUE },
|
|
49
52
|
{ text: 'Essence-électricité (hybride non rechargeable) - EH', value: FuelType.ELECTRIC_GASOLINE_NOT_REFILLABLE },
|
|
50
|
-
{ text: 'Bicarburation essence-gaz naturel et électricité (hybride rechargeable) - EM', value: FuelType.BI_FUEL_GASOLINE_NATURAL_GAS_ELECTRC_REFILLABLE },
|
|
51
|
-
{ text: 'Bicarburation essence-gaz naturel et électricité (hybride non rechargeable) - EP', value: FuelType.BI_FUEL_GASOLINE_NATURAL_GAS_ELECTRC_NOT_REFILLABLE },
|
|
52
|
-
{ text: 'Bicarburation essence-GPL et électricité (hybride rechargeable) - ER', value: FuelType.BI_FUEL_GASOLINE_GPL_ELECTRC_REFILLABLE },
|
|
53
|
-
{ text: 'Bicarburation essence-GPL et électricité (hybride non rechargeable) - EQ', value: FuelType.BI_FUEL_GASOLINE_GPL_ELECTRC_NOT_REFILLABLE },
|
|
54
|
-
{ text: 'Superéthanol - FE', value: FuelType.SUPER_ETHANOL },
|
|
55
|
-
{ text: 'Bicarburation superéthanol-GPL - FG', value: FuelType.BI_FUEL_SUPER_ETHANOL_GPL },
|
|
56
|
-
{ text: 'Bicarburation superéthanol-gaz naturel - FN', value: FuelType.BI_FUEL_SUPER_ETHANOL_NATURAL_GAS },
|
|
53
|
+
{ text: 'Bicarburation essence-gaz naturel et électricité (hybride rechargeable) - EM', value: FuelType.BI_FUEL_GASOLINE_NATURAL_GAS_ELECTRC_REFILLABLE, motor: AsponeMotorType.HYBRIDE },
|
|
54
|
+
{ text: 'Bicarburation essence-gaz naturel et électricité (hybride non rechargeable) - EP', value: FuelType.BI_FUEL_GASOLINE_NATURAL_GAS_ELECTRC_NOT_REFILLABLE, motor: AsponeMotorType.HYBRIDE },
|
|
55
|
+
{ text: 'Bicarburation essence-GPL et électricité (hybride rechargeable) - ER', value: FuelType.BI_FUEL_GASOLINE_GPL_ELECTRC_REFILLABLE, motor: AsponeMotorType.HYBRIDE },
|
|
56
|
+
{ text: 'Bicarburation essence-GPL et électricité (hybride non rechargeable) - EQ', value: FuelType.BI_FUEL_GASOLINE_GPL_ELECTRC_NOT_REFILLABLE, motor: AsponeMotorType.HYBRIDE },
|
|
57
|
+
{ text: 'Superéthanol - FE', value: FuelType.SUPER_ETHANOL, motor: AsponeMotorType.THERMIQUE },
|
|
58
|
+
{ text: 'Bicarburation superéthanol-GPL - FG', value: FuelType.BI_FUEL_SUPER_ETHANOL_GPL, motor: AsponeMotorType.HYBRIDE },
|
|
59
|
+
{ text: 'Bicarburation superéthanol-gaz naturel - FN', value: FuelType.BI_FUEL_SUPER_ETHANOL_NATURAL_GAS, motor: AsponeMotorType.HYBRIDE },
|
|
57
60
|
{ text: 'Superéthanol-électricité (hybride rechargeable) - FL', value: FuelType.SUPER_ETHANOL_ELETRIC_REFILLABLE },
|
|
58
61
|
{ text: 'Gazogène - GA', value: FuelType.GAZIFIER },
|
|
59
62
|
{ text: 'Gazole-électricité (hybride rechargeable) - GL', value: FuelType.DIESEL_ELECTRIC_REFILLABLE },
|
|
@@ -69,7 +72,7 @@ export const fuelTypeList: FuelTypeList = [
|
|
|
69
72
|
{ text: 'Hydrogène - H2', value: FuelType.HYDROGEN },
|
|
70
73
|
{ text: 'Gaz naturel-électricité (hybride rechargeable) - NE', value: FuelType.NATURAL_GAS_ELECTRIC_REFILLABLE },
|
|
71
74
|
{ text: 'Gaz naturel-électricité (hybride non rechargeable) - NH', value: FuelType.NATURAL_GAS_ELECTRIC_NOT_REFILLABLE },
|
|
72
|
-
{ text: 'Pétrole lampant - PL', value: FuelType.KEROSENE },
|
|
75
|
+
{ text: 'Pétrole lampant - PL', value: FuelType.KEROSENE, motor: AsponeMotorType.THERMIQUE },
|
|
73
76
|
{ text: 'Monocarburation GPL-électricité (hybride rechargeable) - PE', value: FuelType.MONOFUEL_GPL_ELECTRIC_REFILLABLE },
|
|
74
77
|
{ text: 'Monocarburation GPL-électricité (hybride non rechargeable) - PH', value: FuelType.MONOFUEL_GPL_ELECTRIC_NOT_REFILLABLE },
|
|
75
78
|
];
|
|
@@ -59,7 +59,7 @@ export class Redactor {
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
type Tag = 'ContactDesignation' | 'AdresseDivisionTerritoriale' | 'AdresseCodeDivisionTerritoriale' | 'Email' | 'Valeur' | 'AdresseVille' | 'AdresseVoie' | 'AdresseCodePays' | 'AdresseComplement' | 'AdresseCodePostal' | 'AdresseHameau' | 'Telephone' | 'Designation' | 'DesignationSuite1' | 'DesignationSuite2' | 'Identifiant' | 'TexteLibre1' | 'TexteLibre2' | 'TexteLibre3' | 'TexteLibre4' | 'TexteLibre5' | 'DesignationSuite3' | 'AdresseNumero' | 'Iban' | 'Bic' | 'TitulaireDesignation' | 'TitulaireDesignationSuite';
|
|
62
|
-
type Tags = Array<{ description
|
|
62
|
+
type Tags = Array<{ description?: string; tag: Tag; value: any }>;
|
|
63
63
|
|
|
64
64
|
export interface FieldForGeneration {
|
|
65
65
|
tag?: Tag;
|
|
@@ -75,6 +75,7 @@ export interface PayloadForRegistration {
|
|
|
75
75
|
isTest: boolean;
|
|
76
76
|
redactor: Redactor;
|
|
77
77
|
indebted: any;
|
|
78
|
+
millesime: number;
|
|
78
79
|
forms: AsponeFormFields;
|
|
79
80
|
xml?: string
|
|
80
81
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiProperty, EcfDetails } from '../../../..';
|
|
1
|
+
import { ApiProperty, Cerfa2033, EcfDetails } from '../../../..';
|
|
2
2
|
import {
|
|
3
3
|
CerfaAddress, Accountant, ViewerDetails, CouncilDetails, Termination,
|
|
4
4
|
} from './ReadCerfa';
|
|
@@ -182,3 +182,5 @@ export interface Cerfa2031 {
|
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
|
+
|
|
186
|
+
export type Prepare2031Params = { idSociety: number, idExercice: number, values: { cerfa2031: Cerfa2031; cerfa2033: Cerfa2033 } };
|
|
@@ -29,6 +29,8 @@ export interface Cerfa2035Society {
|
|
|
29
29
|
city: string;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
export type Prepare2035Params = { idSociety: number, idExercice: number, values: Cerfa2035 & Cerfa2035WithSuites };
|
|
33
|
+
|
|
32
34
|
export interface Cerfa2035ProfessionalRecipes {
|
|
33
35
|
collected: number;
|
|
34
36
|
toDeduce: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiPropertyOptional } from '../../../..';
|
|
1
|
+
import { ApiPropertyOptional, Cerfa2033 } from '../../../..';
|
|
2
2
|
import {
|
|
3
3
|
CerfaAddress, ViewerDetails, Accountant, CouncilDetails, EcfDetails, Termination,
|
|
4
4
|
} from './ReadCerfa';
|
|
@@ -144,4 +144,6 @@ export interface Cerfa2065 {
|
|
|
144
144
|
remaining: LessValuesByRate;
|
|
145
145
|
}
|
|
146
146
|
donation: { amount: number; number: number; }
|
|
147
|
-
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export type PrepareCerfa2065 = { idExercice: number; idSociety: number; values: { cerfa2065: Cerfa2065; cerfa2033: Cerfa2033 } };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { CerfaType } from '../../../Enum/CerfaType';
|
|
2
1
|
import { CerfaAddress } from './ReadCerfa';
|
|
3
2
|
|
|
4
3
|
type Exercice = {
|
|
@@ -92,6 +91,5 @@ export class Cerfa2571_2023 {
|
|
|
92
91
|
export type Prepare2571Params = {
|
|
93
92
|
idSociety: number;
|
|
94
93
|
idExercice: number;
|
|
95
|
-
|
|
96
|
-
idCerfaType: CerfaType.CERFA_2571_2023_A | CerfaType.CERFA_2571_2023_B | CerfaType.CERFA_2571_2023_C | CerfaType.CERFA_2571_2023_D
|
|
94
|
+
idRegistration: number;
|
|
97
95
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { CerfaType } from '../../../Enum/CerfaType';
|
|
2
1
|
import { Termination, CerfaAddress } from './ReadCerfa';
|
|
3
2
|
|
|
4
3
|
type BaseAndAmount = {
|
|
@@ -235,6 +234,10 @@ export class Cerfa2572_2023 {
|
|
|
235
234
|
};
|
|
236
235
|
}
|
|
237
236
|
|
|
238
|
-
export type Prepare2572Params = {
|
|
237
|
+
export type Prepare2572Params = {
|
|
238
|
+
idSociety: number;
|
|
239
|
+
idExercice: number;
|
|
240
|
+
idRegistration: number;
|
|
241
|
+
};
|
|
239
242
|
|
|
240
243
|
export class ParamsGenerate2572 {}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { CerfaType } from '../../../Enum/CerfaType';
|
|
2
2
|
import {
|
|
3
|
+
Cerfa2031,
|
|
4
|
+
Cerfa2033,
|
|
5
|
+
Cerfa2035,
|
|
6
|
+
Cerfa2065,
|
|
7
|
+
Cerfa2571_2023,
|
|
8
|
+
Cerfa2572_2022,
|
|
3
9
|
Cerfa3519_2017,
|
|
4
10
|
FieldForGeneration, PayloadCerfa3519_2017, QuestionWording,
|
|
5
11
|
} from '../../..';
|
|
@@ -100,4 +106,27 @@ export type Termination = {
|
|
|
100
106
|
};
|
|
101
107
|
|
|
102
108
|
export type AsponeFormFields = Array<{ name: string; fields: FieldForGeneration[], index?: number }>;
|
|
103
|
-
export type AsponeFormField = { name: string; fields: FieldForGeneration[] };
|
|
109
|
+
export type AsponeFormField = { name: string; fields: FieldForGeneration[] };
|
|
110
|
+
|
|
111
|
+
export interface ReadFormGeneration {
|
|
112
|
+
file: {
|
|
113
|
+
name: string,
|
|
114
|
+
idFile: number,
|
|
115
|
+
size: number,
|
|
116
|
+
token: string,
|
|
117
|
+
id?: number,
|
|
118
|
+
Location: string,
|
|
119
|
+
ETag: string,
|
|
120
|
+
Bucket: string,
|
|
121
|
+
Key?: string
|
|
122
|
+
mimeType?: string,
|
|
123
|
+
};
|
|
124
|
+
payload: {
|
|
125
|
+
cerfa2572?: Cerfa2572_2022 | Cerfa3310_2023;
|
|
126
|
+
cerfa2571?: Cerfa2571_2023;
|
|
127
|
+
cerfa2031?: Cerfa2031;
|
|
128
|
+
cerfa2033?: Cerfa2033;
|
|
129
|
+
cerfa2065?: Cerfa2065;
|
|
130
|
+
cerfa2035?: Cerfa2035;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { IsArray, IsBoolean, IsDate, IsInt, IsOptional, IsString } from 'class-validator';
|
|
2
|
+
import { ApiPropertyOptional } from '../../../../utils';
|
|
3
|
+
import { RequiredQueryPaginate } from '../BasePaginate';
|
|
4
|
+
import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
|
|
5
|
+
|
|
6
|
+
export class QueryToDoExpressPaginated extends RequiredQueryPaginate {
|
|
7
|
+
@ApiPropertyOptional()
|
|
8
|
+
@IsOptional()
|
|
9
|
+
@IsString()
|
|
10
|
+
search?: string;
|
|
11
|
+
|
|
12
|
+
@ApiPropertyOptional()
|
|
13
|
+
@IsOptional()
|
|
14
|
+
@IsInt()
|
|
15
|
+
accountant?: number;
|
|
16
|
+
|
|
17
|
+
@ApiPropertyOptional()
|
|
18
|
+
@IsOptional()
|
|
19
|
+
@IsInt()
|
|
20
|
+
legalForm?: number;
|
|
21
|
+
|
|
22
|
+
@ApiPropertyOptional()
|
|
23
|
+
@IsOptional()
|
|
24
|
+
@IsDate()
|
|
25
|
+
arrivalDate?: Date;
|
|
26
|
+
|
|
27
|
+
@ApiPropertyOptional()
|
|
28
|
+
@IsOptional()
|
|
29
|
+
@IsArray()
|
|
30
|
+
turnoverMax?: number[];
|
|
31
|
+
|
|
32
|
+
@ApiPropertyOptional()
|
|
33
|
+
@IsOptional()
|
|
34
|
+
@IsBoolean()
|
|
35
|
+
@ToBoolean()
|
|
36
|
+
facturationState?: boolean;
|
|
37
|
+
|
|
38
|
+
@ApiPropertyOptional()
|
|
39
|
+
@IsOptional()
|
|
40
|
+
@IsInt()
|
|
41
|
+
onboardingState?: number;
|
|
42
|
+
|
|
43
|
+
@ApiPropertyOptional()
|
|
44
|
+
@IsOptional()
|
|
45
|
+
@IsBoolean()
|
|
46
|
+
@ToBoolean()
|
|
47
|
+
collectionState?: boolean;
|
|
48
|
+
|
|
49
|
+
@ApiPropertyOptional()
|
|
50
|
+
@IsOptional()
|
|
51
|
+
@IsArray()
|
|
52
|
+
notation?: number[];
|
|
53
|
+
|
|
54
|
+
@ApiPropertyOptional()
|
|
55
|
+
@IsOptional()
|
|
56
|
+
@IsArray()
|
|
57
|
+
review?: number[];
|
|
58
|
+
|
|
59
|
+
@ApiPropertyOptional()
|
|
60
|
+
@IsOptional()
|
|
61
|
+
@IsInt()
|
|
62
|
+
balanceSheetState?: number;
|
|
63
|
+
|
|
64
|
+
@ApiPropertyOptional()
|
|
65
|
+
@IsOptional()
|
|
66
|
+
@IsInt()
|
|
67
|
+
supervisionState?: number;
|
|
68
|
+
|
|
69
|
+
@ApiPropertyOptional()
|
|
70
|
+
@IsOptional()
|
|
71
|
+
@IsBoolean()
|
|
72
|
+
@ToBoolean()
|
|
73
|
+
planedState?: boolean;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export class QueryToDoExpressStats {
|
|
77
|
+
@ApiPropertyOptional()
|
|
78
|
+
@IsOptional()
|
|
79
|
+
@IsString()
|
|
80
|
+
search?: string;
|
|
81
|
+
|
|
82
|
+
@ApiPropertyOptional()
|
|
83
|
+
@IsOptional()
|
|
84
|
+
@IsInt()
|
|
85
|
+
accountant?: number;
|
|
86
|
+
|
|
87
|
+
@ApiPropertyOptional()
|
|
88
|
+
@IsOptional()
|
|
89
|
+
@IsInt()
|
|
90
|
+
legalForm?: number;
|
|
91
|
+
|
|
92
|
+
@ApiPropertyOptional()
|
|
93
|
+
@IsOptional()
|
|
94
|
+
@IsDate()
|
|
95
|
+
arrivalDate?: Date;
|
|
96
|
+
|
|
97
|
+
@ApiPropertyOptional()
|
|
98
|
+
@IsOptional()
|
|
99
|
+
@IsArray()
|
|
100
|
+
turnoverMax?: number[];
|
|
101
|
+
|
|
102
|
+
@ApiPropertyOptional()
|
|
103
|
+
@IsOptional()
|
|
104
|
+
@IsBoolean()
|
|
105
|
+
@ToBoolean()
|
|
106
|
+
facturationState?: boolean;
|
|
107
|
+
|
|
108
|
+
@ApiPropertyOptional()
|
|
109
|
+
@IsOptional()
|
|
110
|
+
@IsInt()
|
|
111
|
+
onboardingState?: number;
|
|
112
|
+
|
|
113
|
+
@ApiPropertyOptional()
|
|
114
|
+
@IsOptional()
|
|
115
|
+
@IsBoolean()
|
|
116
|
+
@ToBoolean()
|
|
117
|
+
collectionState?: boolean;
|
|
118
|
+
|
|
119
|
+
@ApiPropertyOptional()
|
|
120
|
+
@IsOptional()
|
|
121
|
+
@IsArray()
|
|
122
|
+
notation?: number[];
|
|
123
|
+
|
|
124
|
+
@ApiPropertyOptional()
|
|
125
|
+
@IsOptional()
|
|
126
|
+
@IsArray()
|
|
127
|
+
review?: number[];
|
|
128
|
+
|
|
129
|
+
@ApiPropertyOptional()
|
|
130
|
+
@IsOptional()
|
|
131
|
+
@IsInt()
|
|
132
|
+
balanceSheetState?: number;
|
|
133
|
+
|
|
134
|
+
@ApiPropertyOptional()
|
|
135
|
+
@IsOptional()
|
|
136
|
+
@IsInt()
|
|
137
|
+
supervisionState?: number;
|
|
138
|
+
|
|
139
|
+
@ApiPropertyOptional()
|
|
140
|
+
@IsOptional()
|
|
141
|
+
@IsBoolean()
|
|
142
|
+
@ToBoolean()
|
|
143
|
+
planedState?: boolean;
|
|
144
|
+
}
|
|
@@ -10,6 +10,8 @@ export interface IChecklist {
|
|
|
10
10
|
id?: number;
|
|
11
11
|
idUserFront: number | null;
|
|
12
12
|
revisionDate?: Date | null;
|
|
13
|
+
idUserWhoValidate?: number | null;
|
|
14
|
+
validateDate?: Date | null;
|
|
13
15
|
isConfirmed: boolean;
|
|
14
16
|
date: Date | null;
|
|
15
17
|
type: ChecklistTypeEnum;
|
|
@@ -28,4 +30,5 @@ export interface IChecklist {
|
|
|
28
30
|
exercice?: IExercice;
|
|
29
31
|
checklistHasOneCustomerVat?: ICustomerVat;
|
|
30
32
|
mailRelation?: IMailRelation[];
|
|
33
|
+
userWhoValidate?: IUser;
|
|
31
34
|
}
|
|
@@ -13,6 +13,7 @@ import { IExerciceDetail } from './IExerciceDetail';
|
|
|
13
13
|
import { IBalanceSheetModule } from './IBalanceSheetModule';
|
|
14
14
|
import { IRegistration } from './IRegistration';
|
|
15
15
|
import { IComment } from './IComment';
|
|
16
|
+
import { IPayment } from './IPayment';
|
|
16
17
|
|
|
17
18
|
// exercices
|
|
18
19
|
export interface IExercice {
|
|
@@ -62,6 +63,7 @@ export interface IExercice {
|
|
|
62
63
|
society?: ISociety;
|
|
63
64
|
exerciceDetail?: IExerciceDetail;
|
|
64
65
|
exerciceBalanceSheetModule?: IBalanceSheetModule;
|
|
66
|
+
exercicePayments?: IPayment[];
|
|
65
67
|
registrations: IRegistration[];
|
|
66
68
|
comments?: IComment[];
|
|
67
69
|
}
|
package/ts/types/index.ts
CHANGED
|
@@ -1096,6 +1096,8 @@ export * from './Interface/api/companyCreationForm/CreateCompanyCreationForm';
|
|
|
1096
1096
|
export * from './Interface/api/companyCreationForm/UpdateCompanyCreationForm';
|
|
1097
1097
|
export * from './Interface/api/companyCreationForm/CompanyCreationFormPayload';
|
|
1098
1098
|
export * from './Interface/api/sellsy/CreateInvoicesSellsy';
|
|
1099
|
+
export * from './Interface/api/toDoExpress/Query';
|
|
1100
|
+
export * from './Interface/api/toDoExpress/Read';
|
|
1099
1101
|
|
|
1100
1102
|
|
|
1101
1103
|
// Enums types
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import { Resource } from '../Resource';
|
|
3
|
-
import { ParamsGenerate2035FullDocument, ParamsGenerate2033, ParamsGenerate2065, ReadCerfaToComplete } from '../..';
|
|
4
|
-
import { TaxSystem, FiscalRegime, ProfitsType } from '../../types';
|
|
5
|
-
export declare class Cerfa extends Resource {
|
|
6
|
-
get2035Pdf(params: {
|
|
7
|
-
idExercice: number;
|
|
8
|
-
data: ParamsGenerate2035FullDocument;
|
|
9
|
-
}): Promise<Buffer>;
|
|
10
|
-
get2033Pdf(params: {
|
|
11
|
-
idExercice: number;
|
|
12
|
-
data: ParamsGenerate2033;
|
|
13
|
-
}): Promise<Buffer>;
|
|
14
|
-
get2065Pdf(params: {
|
|
15
|
-
idExercice: number;
|
|
16
|
-
data: ParamsGenerate2065;
|
|
17
|
-
}): Promise<Buffer>;
|
|
18
|
-
getCerfaToComplete(payload: {
|
|
19
|
-
idLegalForm: number;
|
|
20
|
-
idTaxSystem: TaxSystem;
|
|
21
|
-
idFiscalRegime: FiscalRegime;
|
|
22
|
-
profitsType: ProfitsType;
|
|
23
|
-
}): ReadCerfaToComplete;
|
|
24
|
-
}
|
|
25
|
-
//# sourceMappingURL=Cerfa.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Cerfa.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Cerfa.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,8BAA8B,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,mBAAmB,EAC5F,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAEnE,qBAAa,KAAM,SAAQ,QAAQ;IACjC,UAAU,CAAC,MAAM,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,8BAA8B,CAAA;KAAE,GAAG,OAAO,CAAC,MAAM,CAAC;IAQjG,UAAU,CAAC,MAAM,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,kBAAkB,CAAA;KAAE,GAAG,OAAO,CAAC,MAAM,CAAC;IAQrF,UAAU,CAAC,MAAM,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,kBAAkB,CAAA;KAAE,GAAG,OAAO,CAAC,MAAM,CAAC;IAQrF,kBAAkB,CAAC,OAAO,EAAE;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,SAAS,CAAC;QAAC,cAAc,EAAE,YAAY,CAAC;QAAC,WAAW,EAAE,WAAW,CAAA;KAAE,GAAG,mBAAmB;CAM1J"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Cerfa = void 0;
|
|
4
|
-
const Resource_1 = require("../Resource");
|
|
5
|
-
const cerfa_1 = require("../../utils/cerfa");
|
|
6
|
-
class Cerfa extends Resource_1.Resource {
|
|
7
|
-
get2035Pdf(params) {
|
|
8
|
-
return this.axios.$post(`/exercice/${params.idExercice}/cerfa/2035`, params.data, {
|
|
9
|
-
responseType: 'arraybuffer',
|
|
10
|
-
headers: {
|
|
11
|
-
Accept: 'application/pdf',
|
|
12
|
-
},
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
get2033Pdf(params) {
|
|
16
|
-
return this.axios.$post(`/exercice/${params.idExercice}/cerfa/2033`, params.data, {
|
|
17
|
-
responseType: 'arraybuffer',
|
|
18
|
-
headers: {
|
|
19
|
-
Accept: 'application/pdf',
|
|
20
|
-
},
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
get2065Pdf(params) {
|
|
24
|
-
return this.axios.$post(`/exercice/${params.idExercice}/cerfa/2065`, params.data, {
|
|
25
|
-
responseType: 'arraybuffer',
|
|
26
|
-
headers: {
|
|
27
|
-
Accept: 'application/pdf',
|
|
28
|
-
},
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
getCerfaToComplete(payload) {
|
|
32
|
-
const { idLegalForm, idTaxSystem, idFiscalRegime, profitsType, } = payload;
|
|
33
|
-
return (0, cerfa_1.retrieveCerfaFromSocietyInformations)(idLegalForm, idTaxSystem, idFiscalRegime, profitsType);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
exports.Cerfa = Cerfa;
|
|
37
|
-
//# sourceMappingURL=Cerfa.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Cerfa.js","sourceRoot":"","sources":["../../../../ts/api/resources/Cerfa.ts"],"names":[],"mappings":";;;AAAA,0CAAuC;AAIvC,6CAAyE;AAGzE,MAAa,KAAM,SAAQ,mBAAQ;IACjC,UAAU,CAAC,MAAoE;QAC7E,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,aAAa,MAAM,CAAC,UAAU,aAAa,EAAE,MAAM,CAAC,IAAI,EAAE;YAChF,YAAY,EAAE,aAAa;YAC3B,OAAO,EAAE;gBACP,MAAM,EAAE,iBAAiB;aAC1B;SACF,CAAC,CAAC;IACL,CAAC;IACD,UAAU,CAAC,MAAwD;QACjE,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,aAAa,MAAM,CAAC,UAAU,aAAa,EAAE,MAAM,CAAC,IAAI,EAAE;YAChF,YAAY,EAAE,aAAa;YAC3B,OAAO,EAAE;gBACP,MAAM,EAAE,iBAAiB;aAC1B;SACF,CAAC,CAAC;IACL,CAAC;IACD,UAAU,CAAC,MAAwD;QACjE,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,aAAa,MAAM,CAAC,UAAU,aAAa,EAAE,MAAM,CAAC,IAAI,EAAE;YAChF,YAAY,EAAE,aAAa;YAC3B,OAAO,EAAE;gBACP,MAAM,EAAE,iBAAiB;aAC1B;SACF,CAAC,CAAC;IACL,CAAC;IACD,kBAAkB,CAAC,OAAgH;QACjI,MAAM,EACJ,WAAW,EAAE,WAAW,EAAE,cAAc,EAAE,WAAW,GACtD,GAAG,OAAO,CAAC;QACZ,OAAO,IAAA,4CAAoC,EAAC,WAAW,EAAE,WAAW,EAAE,cAAc,EAAE,WAAW,CAAC,CAAC;IACrG,CAAC;CACF;AA/BD,sBA+BC","sourcesContent":["import { Resource } from '../Resource';\nimport {\n ParamsGenerate2035FullDocument, ParamsGenerate2033, ParamsGenerate2065, ReadCerfaToComplete,\n} from '../..';\nimport { retrieveCerfaFromSocietyInformations } from '../../utils/cerfa';\nimport { TaxSystem, FiscalRegime, ProfitsType } from '../../types';\n\nexport class Cerfa extends Resource {\n get2035Pdf(params: { idExercice: number, data: ParamsGenerate2035FullDocument }): Promise<Buffer> {\n return this.axios.$post(`/exercice/${params.idExercice}/cerfa/2035`, params.data, {\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n get2033Pdf(params: { idExercice: number, data: ParamsGenerate2033 }): Promise<Buffer> {\n return this.axios.$post(`/exercice/${params.idExercice}/cerfa/2033`, params.data, {\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n get2065Pdf(params: { idExercice: number, data: ParamsGenerate2065 }): Promise<Buffer> {\n return this.axios.$post(`/exercice/${params.idExercice}/cerfa/2065`, params.data, {\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n getCerfaToComplete(payload: { idLegalForm: number; idTaxSystem: TaxSystem, idFiscalRegime: FiscalRegime; profitsType: ProfitsType }): ReadCerfaToComplete {\n const {\n idLegalForm, idTaxSystem, idFiscalRegime, profitsType,\n } = payload;\n return retrieveCerfaFromSocietyInformations(idLegalForm, idTaxSystem, idFiscalRegime, profitsType);\n }\n}\n"]}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import { Resource } from '../Resource';
|
|
3
|
-
import { ParamsGenerate2035FullDocument, ParamsGenerate2033, ParamsGenerate2065, ReadCerfaToComplete } from '../..';
|
|
4
|
-
import { TaxSystem, FiscalRegime, ProfitsType } from '../../types';
|
|
5
|
-
export declare class Cerfa extends Resource {
|
|
6
|
-
get2035Pdf(params: {
|
|
7
|
-
idExercice: number;
|
|
8
|
-
data: ParamsGenerate2035FullDocument;
|
|
9
|
-
}): Promise<Buffer>;
|
|
10
|
-
get2033Pdf(params: {
|
|
11
|
-
idExercice: number;
|
|
12
|
-
data: ParamsGenerate2033;
|
|
13
|
-
}): Promise<Buffer>;
|
|
14
|
-
get2065Pdf(params: {
|
|
15
|
-
idExercice: number;
|
|
16
|
-
data: ParamsGenerate2065;
|
|
17
|
-
}): Promise<Buffer>;
|
|
18
|
-
getCerfaToComplete(payload: {
|
|
19
|
-
idLegalForm: number;
|
|
20
|
-
idTaxSystem: TaxSystem;
|
|
21
|
-
idFiscalRegime: FiscalRegime;
|
|
22
|
-
profitsType: ProfitsType;
|
|
23
|
-
}): ReadCerfaToComplete;
|
|
24
|
-
}
|
|
25
|
-
//# sourceMappingURL=Cerfa.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Cerfa.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/Cerfa.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,8BAA8B,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,mBAAmB,EAC5F,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAEnE,qBAAa,KAAM,SAAQ,QAAQ;IACjC,UAAU,CAAC,MAAM,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,8BAA8B,CAAA;KAAE,GAAG,OAAO,CAAC,MAAM,CAAC;IAQjG,UAAU,CAAC,MAAM,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,kBAAkB,CAAA;KAAE,GAAG,OAAO,CAAC,MAAM,CAAC;IAQrF,UAAU,CAAC,MAAM,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,kBAAkB,CAAA;KAAE,GAAG,OAAO,CAAC,MAAM,CAAC;IAQrF,kBAAkB,CAAC,OAAO,EAAE;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,SAAS,CAAC;QAAC,cAAc,EAAE,YAAY,CAAC;QAAC,WAAW,EAAE,WAAW,CAAA;KAAE,GAAG,mBAAmB;CAM1J"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { Resource } from '../Resource';
|
|
2
|
-
import { retrieveCerfaFromSocietyInformations } from '../../utils/cerfa';
|
|
3
|
-
export class Cerfa extends Resource {
|
|
4
|
-
get2035Pdf(params) {
|
|
5
|
-
return this.axios.$post(`/exercice/${params.idExercice}/cerfa/2035`, params.data, {
|
|
6
|
-
responseType: 'arraybuffer',
|
|
7
|
-
headers: {
|
|
8
|
-
Accept: 'application/pdf',
|
|
9
|
-
},
|
|
10
|
-
});
|
|
11
|
-
}
|
|
12
|
-
get2033Pdf(params) {
|
|
13
|
-
return this.axios.$post(`/exercice/${params.idExercice}/cerfa/2033`, params.data, {
|
|
14
|
-
responseType: 'arraybuffer',
|
|
15
|
-
headers: {
|
|
16
|
-
Accept: 'application/pdf',
|
|
17
|
-
},
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
get2065Pdf(params) {
|
|
21
|
-
return this.axios.$post(`/exercice/${params.idExercice}/cerfa/2065`, params.data, {
|
|
22
|
-
responseType: 'arraybuffer',
|
|
23
|
-
headers: {
|
|
24
|
-
Accept: 'application/pdf',
|
|
25
|
-
},
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
getCerfaToComplete(payload) {
|
|
29
|
-
const { idLegalForm, idTaxSystem, idFiscalRegime, profitsType, } = payload;
|
|
30
|
-
return retrieveCerfaFromSocietyInformations(idLegalForm, idTaxSystem, idFiscalRegime, profitsType);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
//# sourceMappingURL=Cerfa.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Cerfa.js","sourceRoot":"","sources":["../../../../ts/api/resources/Cerfa.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAIvC,OAAO,EAAE,oCAAoC,EAAE,MAAM,mBAAmB,CAAC;AAGzE,MAAM,OAAO,KAAM,SAAQ,QAAQ;IACjC,UAAU,CAAC,MAAoE;QAC7E,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,aAAa,MAAM,CAAC,UAAU,aAAa,EAAE,MAAM,CAAC,IAAI,EAAE;YAChF,YAAY,EAAE,aAAa;YAC3B,OAAO,EAAE;gBACP,MAAM,EAAE,iBAAiB;aAC1B;SACF,CAAC,CAAC;IACL,CAAC;IACD,UAAU,CAAC,MAAwD;QACjE,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,aAAa,MAAM,CAAC,UAAU,aAAa,EAAE,MAAM,CAAC,IAAI,EAAE;YAChF,YAAY,EAAE,aAAa;YAC3B,OAAO,EAAE;gBACP,MAAM,EAAE,iBAAiB;aAC1B;SACF,CAAC,CAAC;IACL,CAAC;IACD,UAAU,CAAC,MAAwD;QACjE,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,aAAa,MAAM,CAAC,UAAU,aAAa,EAAE,MAAM,CAAC,IAAI,EAAE;YAChF,YAAY,EAAE,aAAa;YAC3B,OAAO,EAAE;gBACP,MAAM,EAAE,iBAAiB;aAC1B;SACF,CAAC,CAAC;IACL,CAAC;IACD,kBAAkB,CAAC,OAAgH;QACjI,MAAM,EACJ,WAAW,EAAE,WAAW,EAAE,cAAc,EAAE,WAAW,GACtD,GAAG,OAAO,CAAC;QACZ,OAAO,oCAAoC,CAAC,WAAW,EAAE,WAAW,EAAE,cAAc,EAAE,WAAW,CAAC,CAAC;IACrG,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport {\n ParamsGenerate2035FullDocument, ParamsGenerate2033, ParamsGenerate2065, ReadCerfaToComplete,\n} from '../..';\nimport { retrieveCerfaFromSocietyInformations } from '../../utils/cerfa';\nimport { TaxSystem, FiscalRegime, ProfitsType } from '../../types';\n\nexport class Cerfa extends Resource {\n get2035Pdf(params: { idExercice: number, data: ParamsGenerate2035FullDocument }): Promise<Buffer> {\n return this.axios.$post(`/exercice/${params.idExercice}/cerfa/2035`, params.data, {\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n get2033Pdf(params: { idExercice: number, data: ParamsGenerate2033 }): Promise<Buffer> {\n return this.axios.$post(`/exercice/${params.idExercice}/cerfa/2033`, params.data, {\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n get2065Pdf(params: { idExercice: number, data: ParamsGenerate2065 }): Promise<Buffer> {\n return this.axios.$post(`/exercice/${params.idExercice}/cerfa/2065`, params.data, {\n responseType: 'arraybuffer',\n headers: {\n Accept: 'application/pdf',\n },\n });\n }\n getCerfaToComplete(payload: { idLegalForm: number; idTaxSystem: TaxSystem, idFiscalRegime: FiscalRegime; profitsType: ProfitsType }): ReadCerfaToComplete {\n const {\n idLegalForm, idTaxSystem, idFiscalRegime, profitsType,\n } = payload;\n return retrieveCerfaFromSocietyInformations(idLegalForm, idTaxSystem, idFiscalRegime, profitsType);\n }\n}\n"]}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { Resource } from '../Resource';
|
|
2
|
-
import {
|
|
3
|
-
ParamsGenerate2035FullDocument, ParamsGenerate2033, ParamsGenerate2065, ReadCerfaToComplete,
|
|
4
|
-
} from '../..';
|
|
5
|
-
import { retrieveCerfaFromSocietyInformations } from '../../utils/cerfa';
|
|
6
|
-
import { TaxSystem, FiscalRegime, ProfitsType } from '../../types';
|
|
7
|
-
|
|
8
|
-
export class Cerfa extends Resource {
|
|
9
|
-
get2035Pdf(params: { idExercice: number, data: ParamsGenerate2035FullDocument }): Promise<Buffer> {
|
|
10
|
-
return this.axios.$post(`/exercice/${params.idExercice}/cerfa/2035`, params.data, {
|
|
11
|
-
responseType: 'arraybuffer',
|
|
12
|
-
headers: {
|
|
13
|
-
Accept: 'application/pdf',
|
|
14
|
-
},
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
get2033Pdf(params: { idExercice: number, data: ParamsGenerate2033 }): Promise<Buffer> {
|
|
18
|
-
return this.axios.$post(`/exercice/${params.idExercice}/cerfa/2033`, params.data, {
|
|
19
|
-
responseType: 'arraybuffer',
|
|
20
|
-
headers: {
|
|
21
|
-
Accept: 'application/pdf',
|
|
22
|
-
},
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
get2065Pdf(params: { idExercice: number, data: ParamsGenerate2065 }): Promise<Buffer> {
|
|
26
|
-
return this.axios.$post(`/exercice/${params.idExercice}/cerfa/2065`, params.data, {
|
|
27
|
-
responseType: 'arraybuffer',
|
|
28
|
-
headers: {
|
|
29
|
-
Accept: 'application/pdf',
|
|
30
|
-
},
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
getCerfaToComplete(payload: { idLegalForm: number; idTaxSystem: TaxSystem, idFiscalRegime: FiscalRegime; profitsType: ProfitsType }): ReadCerfaToComplete {
|
|
34
|
-
const {
|
|
35
|
-
idLegalForm, idTaxSystem, idFiscalRegime, profitsType,
|
|
36
|
-
} = payload;
|
|
37
|
-
return retrieveCerfaFromSocietyInformations(idLegalForm, idTaxSystem, idFiscalRegime, profitsType);
|
|
38
|
-
}
|
|
39
|
-
}
|