@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.
Files changed (150) hide show
  1. package/dist/cjs/api/resources/BankAccount.js +1 -1
  2. package/dist/cjs/api/resources/BankAccount.js.map +1 -1
  3. package/dist/cjs/api/resources/ToDoExpress.d.ts +29 -0
  4. package/dist/cjs/api/resources/ToDoExpress.d.ts.map +1 -0
  5. package/dist/cjs/api/resources/ToDoExpress.js +36 -0
  6. package/dist/cjs/api/resources/ToDoExpress.js.map +1 -0
  7. package/dist/cjs/api/resources.d.ts +2 -2
  8. package/dist/cjs/api/resources.d.ts.map +1 -1
  9. package/dist/cjs/api/resources.js +2 -2
  10. package/dist/cjs/api/resources.js.map +1 -1
  11. package/dist/cjs/types/Enum/Aspone.d.ts +6 -0
  12. package/dist/cjs/types/Enum/Aspone.d.ts.map +1 -1
  13. package/dist/cjs/types/Enum/Aspone.js +8 -1
  14. package/dist/cjs/types/Enum/Aspone.js.map +1 -1
  15. package/dist/cjs/types/Enum/FuelType.d.ts +2 -0
  16. package/dist/cjs/types/Enum/FuelType.d.ts.map +1 -1
  17. package/dist/cjs/types/Enum/FuelType.js +15 -14
  18. package/dist/cjs/types/Enum/FuelType.js.map +1 -1
  19. package/dist/cjs/types/Interface/api/OnBoarding.d.ts +1 -1
  20. package/dist/cjs/types/Interface/api/OnBoarding.d.ts.map +1 -1
  21. package/dist/cjs/types/Interface/api/OnBoarding.js +2 -2
  22. package/dist/cjs/types/Interface/api/OnBoarding.js.map +1 -1
  23. package/dist/cjs/types/Interface/api/aspone/ReadInterchange.d.ts +2 -1
  24. package/dist/cjs/types/Interface/api/aspone/ReadInterchange.d.ts.map +1 -1
  25. package/dist/cjs/types/Interface/api/aspone/ReadInterchange.js.map +1 -1
  26. package/dist/cjs/types/Interface/api/cerfa/2031.d.ts +9 -1
  27. package/dist/cjs/types/Interface/api/cerfa/2031.d.ts.map +1 -1
  28. package/dist/cjs/types/Interface/api/cerfa/2031.js.map +1 -1
  29. package/dist/cjs/types/Interface/api/cerfa/2035.d.ts +5 -0
  30. package/dist/cjs/types/Interface/api/cerfa/2035.d.ts.map +1 -1
  31. package/dist/cjs/types/Interface/api/cerfa/2035.js.map +1 -1
  32. package/dist/cjs/types/Interface/api/cerfa/2065.d.ts +9 -0
  33. package/dist/cjs/types/Interface/api/cerfa/2065.d.ts.map +1 -1
  34. package/dist/cjs/types/Interface/api/cerfa/2065.js.map +1 -1
  35. package/dist/cjs/types/Interface/api/cerfa/2571.d.ts +1 -3
  36. package/dist/cjs/types/Interface/api/cerfa/2571.d.ts.map +1 -1
  37. package/dist/cjs/types/Interface/api/cerfa/2571.js.map +1 -1
  38. package/dist/cjs/types/Interface/api/cerfa/2572.d.ts +1 -3
  39. package/dist/cjs/types/Interface/api/cerfa/2572.d.ts.map +1 -1
  40. package/dist/cjs/types/Interface/api/cerfa/2572.js.map +1 -1
  41. package/dist/cjs/types/Interface/api/cerfa/ReadCerfa.d.ts +23 -1
  42. package/dist/cjs/types/Interface/api/cerfa/ReadCerfa.d.ts.map +1 -1
  43. package/dist/cjs/types/Interface/api/cerfa/ReadCerfa.js.map +1 -1
  44. package/dist/cjs/types/Interface/api/toDoExpress/Query.d.ts +32 -0
  45. package/dist/cjs/types/Interface/api/toDoExpress/Query.d.ts.map +1 -0
  46. package/dist/cjs/types/Interface/api/toDoExpress/Query.js +185 -0
  47. package/dist/cjs/types/Interface/api/toDoExpress/Query.js.map +1 -0
  48. package/dist/cjs/types/Interface/api/toDoExpress/Read.d.ts +18 -0
  49. package/dist/cjs/types/Interface/api/toDoExpress/Read.d.ts.map +1 -0
  50. package/dist/cjs/types/Interface/api/toDoExpress/Read.js +3 -0
  51. package/dist/cjs/types/Interface/api/toDoExpress/Read.js.map +1 -0
  52. package/dist/cjs/types/Interface/models/IChecklist.d.ts +3 -0
  53. package/dist/cjs/types/Interface/models/IChecklist.d.ts.map +1 -1
  54. package/dist/cjs/types/Interface/models/IChecklist.js.map +1 -1
  55. package/dist/cjs/types/Interface/models/IExercice.d.ts +2 -0
  56. package/dist/cjs/types/Interface/models/IExercice.d.ts.map +1 -1
  57. package/dist/cjs/types/Interface/models/IExercice.js.map +1 -1
  58. package/dist/cjs/types/index.d.ts +2 -0
  59. package/dist/cjs/types/index.d.ts.map +1 -1
  60. package/dist/cjs/types/index.js +2 -0
  61. package/dist/cjs/types/index.js.map +1 -1
  62. package/dist/mjs/api/resources/BankAccount.js +1 -1
  63. package/dist/mjs/api/resources/BankAccount.js.map +1 -1
  64. package/dist/mjs/api/resources/ToDoExpress.d.ts +29 -0
  65. package/dist/mjs/api/resources/ToDoExpress.d.ts.map +1 -0
  66. package/dist/mjs/api/resources/ToDoExpress.js +40 -0
  67. package/dist/mjs/api/resources/ToDoExpress.js.map +1 -0
  68. package/dist/mjs/api/resources.d.ts +2 -2
  69. package/dist/mjs/api/resources.d.ts.map +1 -1
  70. package/dist/mjs/api/resources.js +2 -2
  71. package/dist/mjs/api/resources.js.map +1 -1
  72. package/dist/mjs/types/Enum/Aspone.d.ts +6 -0
  73. package/dist/mjs/types/Enum/Aspone.d.ts.map +1 -1
  74. package/dist/mjs/types/Enum/Aspone.js +7 -0
  75. package/dist/mjs/types/Enum/Aspone.js.map +1 -1
  76. package/dist/mjs/types/Enum/FuelType.d.ts +2 -0
  77. package/dist/mjs/types/Enum/FuelType.d.ts.map +1 -1
  78. package/dist/mjs/types/Enum/FuelType.js +15 -14
  79. package/dist/mjs/types/Enum/FuelType.js.map +1 -1
  80. package/dist/mjs/types/Interface/api/OnBoarding.d.ts +1 -1
  81. package/dist/mjs/types/Interface/api/OnBoarding.d.ts.map +1 -1
  82. package/dist/mjs/types/Interface/api/OnBoarding.js +2 -2
  83. package/dist/mjs/types/Interface/api/OnBoarding.js.map +1 -1
  84. package/dist/mjs/types/Interface/api/aspone/ReadInterchange.d.ts +2 -1
  85. package/dist/mjs/types/Interface/api/aspone/ReadInterchange.d.ts.map +1 -1
  86. package/dist/mjs/types/Interface/api/aspone/ReadInterchange.js.map +1 -1
  87. package/dist/mjs/types/Interface/api/cerfa/2031.d.ts +9 -1
  88. package/dist/mjs/types/Interface/api/cerfa/2031.d.ts.map +1 -1
  89. package/dist/mjs/types/Interface/api/cerfa/2031.js.map +1 -1
  90. package/dist/mjs/types/Interface/api/cerfa/2035.d.ts +5 -0
  91. package/dist/mjs/types/Interface/api/cerfa/2035.d.ts.map +1 -1
  92. package/dist/mjs/types/Interface/api/cerfa/2035.js.map +1 -1
  93. package/dist/mjs/types/Interface/api/cerfa/2065.d.ts +9 -0
  94. package/dist/mjs/types/Interface/api/cerfa/2065.d.ts.map +1 -1
  95. package/dist/mjs/types/Interface/api/cerfa/2065.js.map +1 -1
  96. package/dist/mjs/types/Interface/api/cerfa/2571.d.ts +1 -3
  97. package/dist/mjs/types/Interface/api/cerfa/2571.d.ts.map +1 -1
  98. package/dist/mjs/types/Interface/api/cerfa/2571.js.map +1 -1
  99. package/dist/mjs/types/Interface/api/cerfa/2572.d.ts +1 -3
  100. package/dist/mjs/types/Interface/api/cerfa/2572.d.ts.map +1 -1
  101. package/dist/mjs/types/Interface/api/cerfa/2572.js.map +1 -1
  102. package/dist/mjs/types/Interface/api/cerfa/ReadCerfa.d.ts +23 -1
  103. package/dist/mjs/types/Interface/api/cerfa/ReadCerfa.d.ts.map +1 -1
  104. package/dist/mjs/types/Interface/api/cerfa/ReadCerfa.js.map +1 -1
  105. package/dist/mjs/types/Interface/api/toDoExpress/Query.d.ts +32 -0
  106. package/dist/mjs/types/Interface/api/toDoExpress/Query.d.ts.map +1 -0
  107. package/dist/mjs/types/Interface/api/toDoExpress/Query.js +206 -0
  108. package/dist/mjs/types/Interface/api/toDoExpress/Query.js.map +1 -0
  109. package/dist/mjs/types/Interface/api/toDoExpress/Read.d.ts +18 -0
  110. package/dist/mjs/types/Interface/api/toDoExpress/Read.d.ts.map +1 -0
  111. package/dist/mjs/types/Interface/api/toDoExpress/Read.js +2 -0
  112. package/dist/mjs/types/Interface/api/toDoExpress/Read.js.map +1 -0
  113. package/dist/mjs/types/Interface/models/IChecklist.d.ts +3 -0
  114. package/dist/mjs/types/Interface/models/IChecklist.d.ts.map +1 -1
  115. package/dist/mjs/types/Interface/models/IChecklist.js.map +1 -1
  116. package/dist/mjs/types/Interface/models/IExercice.d.ts +2 -0
  117. package/dist/mjs/types/Interface/models/IExercice.d.ts.map +1 -1
  118. package/dist/mjs/types/Interface/models/IExercice.js.map +1 -1
  119. package/dist/mjs/types/index.d.ts +2 -0
  120. package/dist/mjs/types/index.d.ts.map +1 -1
  121. package/dist/mjs/types/index.js +2 -0
  122. package/dist/mjs/types/index.js.map +1 -1
  123. package/package.json +1 -1
  124. package/ts/api/resources/BankAccount.ts +1 -1
  125. package/ts/api/resources/ToDoExpress.ts +44 -0
  126. package/ts/api/resources.ts +2 -2
  127. package/ts/types/Enum/Aspone.ts +7 -0
  128. package/ts/types/Enum/FuelType.ts +18 -15
  129. package/ts/types/Interface/api/OnBoarding.ts +2 -2
  130. package/ts/types/Interface/api/aspone/ReadInterchange.ts +2 -1
  131. package/ts/types/Interface/api/cerfa/2031.ts +3 -1
  132. package/ts/types/Interface/api/cerfa/2035.ts +2 -0
  133. package/ts/types/Interface/api/cerfa/2065.ts +4 -2
  134. package/ts/types/Interface/api/cerfa/2571.ts +1 -3
  135. package/ts/types/Interface/api/cerfa/2572.ts +5 -2
  136. package/ts/types/Interface/api/cerfa/ReadCerfa.ts +30 -1
  137. package/ts/types/Interface/api/toDoExpress/Query.ts +144 -0
  138. package/ts/types/Interface/api/toDoExpress/Read.ts +11 -0
  139. package/ts/types/Interface/models/IChecklist.ts +3 -0
  140. package/ts/types/Interface/models/IExercice.ts +2 -0
  141. package/ts/types/index.ts +2 -0
  142. package/dist/cjs/api/resources/Cerfa.d.ts +0 -25
  143. package/dist/cjs/api/resources/Cerfa.d.ts.map +0 -1
  144. package/dist/cjs/api/resources/Cerfa.js +0 -37
  145. package/dist/cjs/api/resources/Cerfa.js.map +0 -1
  146. package/dist/mjs/api/resources/Cerfa.d.ts +0 -25
  147. package/dist/mjs/api/resources/Cerfa.d.ts.map +0 -1
  148. package/dist/mjs/api/resources/Cerfa.js +0 -33
  149. package/dist/mjs/api/resources/Cerfa.js.map +0 -1
  150. package/ts/api/resources/Cerfa.ts +0 -39
@@ -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
  };
@@ -68,4 +68,11 @@ export enum AsponeTTC {
68
68
  export enum AsponeTCD {
69
69
  CESSION = 'CSS',
70
70
  DEATH = 'DCD',
71
+ }
72
+
73
+ export enum AsponeMotorType {
74
+ THERMIQUE = 'VT',
75
+ HYDROGENE = 'H2',
76
+ HYBRIDE = 'HEV',
77
+ ELECTRIQUE = 'EL',
71
78
  }
@@ -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
- export type FuelTypeList = { text: string, value: FuelType }[];
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
  ];
@@ -30,8 +30,8 @@ export class QueryOnBoardingPaginated extends OptionalQueryPaginate {
30
30
 
31
31
  @ApiPropertyOptional()
32
32
  @IsOptional()
33
- @IsInt({ each: true })
34
- firstContact?: number[];
33
+ @IsInt()
34
+ firstContact?: number;
35
35
 
36
36
  @ApiPropertyOptional()
37
37
  @IsOptional()
@@ -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: string; tag: Tag; value: any }>;
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
- values: Cerfa2571_2023,
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 = { idSociety: number; idExercice: number; values: Cerfa2572_2022 | Cerfa2572_2023, idCerfaType: CerfaType.CERFA_2572_2022 | CerfaType.CERFA_2572_2023 };
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
+ }
@@ -0,0 +1,11 @@
1
+ export type ReadToDoExpressStats = {
2
+ averageTimeByClient: number,
3
+ societyPayed: {
4
+ nbr: number,
5
+ detail: { year: number, amount: number }[],
6
+ }
7
+ societyFactured: {
8
+ nbr: number,
9
+ detail: { year: number, amount: number }[],
10
+ }
11
+ };
@@ -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
- }