@silexpert/core 0.4.155 → 0.4.157

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 (192) hide show
  1. package/es/api/resources/AffectedPatrimony.d.ts +21 -0
  2. package/es/api/resources/AffectedPatrimony.d.ts.map +1 -0
  3. package/es/api/resources/AffectedPatrimony.js +24 -0
  4. package/es/api/resources/AffectedPatrimony.js.map +1 -0
  5. package/es/api/resources/BankAccount.d.ts +6 -0
  6. package/es/api/resources/BankAccount.d.ts.map +1 -0
  7. package/es/api/resources/BankAccount.js +7 -0
  8. package/es/api/resources/BankAccount.js.map +1 -0
  9. package/es/api/resources/Log.d.ts +6 -0
  10. package/es/api/resources/Log.d.ts.map +1 -0
  11. package/es/api/resources/Log.js +8 -0
  12. package/es/api/resources/Log.js.map +1 -0
  13. package/es/api/resources/PromoCode.d.ts +5 -1
  14. package/es/api/resources/PromoCode.d.ts.map +1 -1
  15. package/es/api/resources/PromoCode.js +12 -0
  16. package/es/api/resources/PromoCode.js.map +1 -1
  17. package/es/api/resources/ThirdParty.d.ts +7 -0
  18. package/es/api/resources/ThirdParty.d.ts.map +1 -0
  19. package/es/api/resources/ThirdParty.js +12 -0
  20. package/es/api/resources/ThirdParty.js.map +1 -0
  21. package/es/api/resources.d.ts +6 -0
  22. package/es/api/resources.d.ts.map +1 -1
  23. package/es/api/resources.js +6 -0
  24. package/es/api/resources.js.map +1 -1
  25. package/es/types/Enum/AnswerTypeValue.d.ts +2 -1
  26. package/es/types/Enum/AnswerTypeValue.d.ts.map +1 -1
  27. package/es/types/Enum/AnswerTypeValue.js +1 -0
  28. package/es/types/Enum/AnswerTypeValue.js.map +1 -1
  29. package/es/types/Enum/BalanceSheetQuestion.d.ts +18 -2
  30. package/es/types/Enum/BalanceSheetQuestion.d.ts.map +1 -1
  31. package/es/types/Enum/BalanceSheetQuestion.js +16 -0
  32. package/es/types/Enum/BalanceSheetQuestion.js.map +1 -1
  33. package/es/types/Enum/BalanceSheetQuestionWording.d.ts +13 -1
  34. package/es/types/Enum/BalanceSheetQuestionWording.d.ts.map +1 -1
  35. package/es/types/Enum/BalanceSheetQuestionWording.js +12 -0
  36. package/es/types/Enum/BalanceSheetQuestionWording.js.map +1 -1
  37. package/es/types/Interface/api/SocietyTransaction/QuerySocietyTransactionCount.d.ts +2 -1
  38. package/es/types/Interface/api/SocietyTransaction/QuerySocietyTransactionCount.d.ts.map +1 -1
  39. package/es/types/Interface/api/SocietyTransaction/QuerySocietyTransactionCount.js +1 -4
  40. package/es/types/Interface/api/SocietyTransaction/QuerySocietyTransactionCount.js.map +1 -1
  41. package/es/types/Interface/api/affectedPatrimony/CreateAffectedPatrimony.d.ts +7 -0
  42. package/es/types/Interface/api/affectedPatrimony/CreateAffectedPatrimony.d.ts.map +1 -0
  43. package/es/types/Interface/api/affectedPatrimony/CreateAffectedPatrimony.js +32 -0
  44. package/es/types/Interface/api/affectedPatrimony/CreateAffectedPatrimony.js.map +1 -0
  45. package/es/types/Interface/api/affectedPatrimony/CreateInKindAffectedPatrimony.d.ts +6 -0
  46. package/es/types/Interface/api/affectedPatrimony/CreateInKindAffectedPatrimony.d.ts.map +1 -0
  47. package/es/types/Interface/api/affectedPatrimony/CreateInKindAffectedPatrimony.js +32 -0
  48. package/es/types/Interface/api/affectedPatrimony/CreateInKindAffectedPatrimony.js.map +1 -0
  49. package/es/types/Interface/api/affectedPatrimony/ReadAffectedPatrimony.d.ts +6 -0
  50. package/es/types/Interface/api/affectedPatrimony/ReadAffectedPatrimony.d.ts.map +1 -0
  51. package/es/types/Interface/api/affectedPatrimony/ReadAffectedPatrimony.js +2 -0
  52. package/es/types/Interface/api/affectedPatrimony/ReadAffectedPatrimony.js.map +1 -0
  53. package/es/types/Interface/api/affectedPatrimony/ResultCreateAffectedPatrimony.d.ts +6 -0
  54. package/es/types/Interface/api/affectedPatrimony/ResultCreateAffectedPatrimony.d.ts.map +1 -0
  55. package/es/types/Interface/api/affectedPatrimony/ResultCreateAffectedPatrimony.js +2 -0
  56. package/es/types/Interface/api/affectedPatrimony/ResultCreateAffectedPatrimony.js.map +1 -0
  57. package/es/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.d.ts +1 -0
  58. package/es/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.d.ts.map +1 -1
  59. package/es/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.js +7 -0
  60. package/es/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.js.map +1 -1
  61. package/es/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.d.ts +1 -0
  62. package/es/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.d.ts.map +1 -1
  63. package/es/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.js +7 -0
  64. package/es/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.js.map +1 -1
  65. package/es/types/Interface/api/bankAccount/QueryBankAccount.d.ts +5 -0
  66. package/es/types/Interface/api/bankAccount/QueryBankAccount.d.ts.map +1 -0
  67. package/es/types/Interface/api/bankAccount/QueryBankAccount.js +30 -0
  68. package/es/types/Interface/api/bankAccount/QueryBankAccount.js.map +1 -0
  69. package/es/types/Interface/api/cerfa/2031.d.ts +1 -0
  70. package/es/types/Interface/api/cerfa/2031.d.ts.map +1 -1
  71. package/es/types/Interface/api/cerfa/2031.js.map +1 -1
  72. package/es/types/Interface/api/cerfa/2065.d.ts +1 -0
  73. package/es/types/Interface/api/cerfa/2065.d.ts.map +1 -1
  74. package/es/types/Interface/api/cerfa/2065.js.map +1 -1
  75. package/es/types/Interface/api/cerfa/2572.d.ts +2 -1
  76. package/es/types/Interface/api/cerfa/2572.d.ts.map +1 -1
  77. package/es/types/Interface/api/cerfa/2572.js.map +1 -1
  78. package/es/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.d.ts +1 -0
  79. package/es/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.d.ts.map +1 -1
  80. package/es/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.js.map +1 -1
  81. package/es/types/Interface/api/log/QueryLogPagination.d.ts +7 -0
  82. package/es/types/Interface/api/log/QueryLogPagination.d.ts.map +1 -0
  83. package/es/types/Interface/api/log/QueryLogPagination.js +44 -0
  84. package/es/types/Interface/api/log/QueryLogPagination.js.map +1 -0
  85. package/es/types/Interface/api/promoCode/CreateDefaultPromoCode.d.ts +14 -0
  86. package/es/types/Interface/api/promoCode/CreateDefaultPromoCode.d.ts.map +1 -0
  87. package/es/types/Interface/api/promoCode/CreateDefaultPromoCode.js +76 -0
  88. package/es/types/Interface/api/promoCode/CreateDefaultPromoCode.js.map +1 -0
  89. package/es/types/Interface/api/promoCode/ReadDefaultPaginationPromoCode.d.ts +5 -0
  90. package/es/types/Interface/api/promoCode/ReadDefaultPaginationPromoCode.d.ts.map +1 -0
  91. package/es/types/Interface/api/promoCode/ReadDefaultPaginationPromoCode.js +30 -0
  92. package/es/types/Interface/api/promoCode/ReadDefaultPaginationPromoCode.js.map +1 -0
  93. package/es/types/Interface/api/thirdParty/CreateThirdPartyForm.d.ts +24 -0
  94. package/es/types/Interface/api/thirdParty/CreateThirdPartyForm.d.ts.map +1 -0
  95. package/es/types/Interface/api/thirdParty/CreateThirdPartyForm.js +96 -0
  96. package/es/types/Interface/api/thirdParty/CreateThirdPartyForm.js.map +1 -0
  97. package/es/types/Interface/api/thirdParty/QueryThirdParty.d.ts +5 -0
  98. package/es/types/Interface/api/thirdParty/QueryThirdParty.d.ts.map +1 -0
  99. package/es/types/Interface/api/thirdParty/QueryThirdParty.js +27 -0
  100. package/es/types/Interface/api/thirdParty/QueryThirdParty.js.map +1 -0
  101. package/es/types/Interface/api/thirdParty/UpdateThirdPartyForm.d.ts +24 -0
  102. package/es/types/Interface/api/thirdParty/UpdateThirdPartyForm.d.ts.map +1 -0
  103. package/es/types/Interface/api/thirdParty/UpdateThirdPartyForm.js +96 -0
  104. package/es/types/Interface/api/thirdParty/UpdateThirdPartyForm.js.map +1 -0
  105. package/es/types/Interface/models/IBalanceSheetModule.d.ts +2 -0
  106. package/es/types/Interface/models/IBalanceSheetModule.d.ts.map +1 -1
  107. package/es/types/Interface/models/IBalanceSheetModule.js.map +1 -1
  108. package/es/types/index.d.ts +11 -0
  109. package/es/types/index.d.ts.map +1 -1
  110. package/es/types/index.js +11 -0
  111. package/es/types/index.js.map +1 -1
  112. package/js/api/resources/AffectedPatrimony.js +37 -0
  113. package/js/api/resources/AffectedPatrimony.js.map +1 -0
  114. package/js/api/resources/BankAccount.js +20 -0
  115. package/js/api/resources/BankAccount.js.map +1 -0
  116. package/js/api/resources/Log.js +24 -0
  117. package/js/api/resources/Log.js.map +1 -0
  118. package/js/api/resources/PromoCode.js +22 -0
  119. package/js/api/resources/PromoCode.js.map +1 -1
  120. package/js/api/resources/ThirdParty.js +24 -0
  121. package/js/api/resources/ThirdParty.js.map +1 -0
  122. package/js/api/resources.js +10 -1
  123. package/js/api/resources.js.map +1 -1
  124. package/js/types/Enum/AnswerTypeValue.js +1 -0
  125. package/js/types/Enum/AnswerTypeValue.js.map +1 -1
  126. package/js/types/Enum/BalanceSheetQuestion.js +17 -0
  127. package/js/types/Enum/BalanceSheetQuestion.js.map +1 -1
  128. package/js/types/Enum/BalanceSheetQuestionWording.js +13 -0
  129. package/js/types/Enum/BalanceSheetQuestionWording.js.map +1 -1
  130. package/js/types/Interface/api/SocietyTransaction/QuerySocietyTransactionCount.js +1 -5
  131. package/js/types/Interface/api/SocietyTransaction/QuerySocietyTransactionCount.js.map +1 -1
  132. package/js/types/Interface/api/affectedPatrimony/CreateAffectedPatrimony.js +35 -0
  133. package/js/types/Interface/api/affectedPatrimony/CreateAffectedPatrimony.js.map +1 -0
  134. package/js/types/Interface/api/affectedPatrimony/CreateInKindAffectedPatrimony.js +35 -0
  135. package/js/types/Interface/api/affectedPatrimony/CreateInKindAffectedPatrimony.js.map +1 -0
  136. package/js/types/Interface/api/affectedPatrimony/ReadAffectedPatrimony.js +6 -0
  137. package/js/types/Interface/api/affectedPatrimony/ReadAffectedPatrimony.js.map +1 -0
  138. package/js/types/Interface/api/affectedPatrimony/ResultCreateAffectedPatrimony.js +6 -0
  139. package/js/types/Interface/api/affectedPatrimony/ResultCreateAffectedPatrimony.js.map +1 -0
  140. package/js/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.js +2 -0
  141. package/js/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.js.map +1 -1
  142. package/js/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.js +2 -0
  143. package/js/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.js.map +1 -1
  144. package/js/types/Interface/api/bankAccount/QueryBankAccount.js +35 -0
  145. package/js/types/Interface/api/bankAccount/QueryBankAccount.js.map +1 -0
  146. package/js/types/Interface/api/cerfa/2031.js.map +1 -1
  147. package/js/types/Interface/api/cerfa/2065.js.map +1 -1
  148. package/js/types/Interface/api/cerfa/2572.js.map +1 -1
  149. package/js/types/Interface/api/log/QueryLogPagination.js +44 -0
  150. package/js/types/Interface/api/log/QueryLogPagination.js.map +1 -0
  151. package/js/types/Interface/api/promoCode/CreateDefaultPromoCode.js +51 -0
  152. package/js/types/Interface/api/promoCode/CreateDefaultPromoCode.js.map +1 -0
  153. package/js/types/Interface/api/promoCode/ReadDefaultPaginationPromoCode.js +37 -0
  154. package/js/types/Interface/api/promoCode/ReadDefaultPaginationPromoCode.js.map +1 -0
  155. package/js/types/Interface/api/thirdParty/CreateThirdPartyForm.js +69 -0
  156. package/js/types/Interface/api/thirdParty/CreateThirdPartyForm.js.map +1 -0
  157. package/js/types/Interface/api/thirdParty/QueryThirdParty.js +33 -0
  158. package/js/types/Interface/api/thirdParty/QueryThirdParty.js.map +1 -0
  159. package/js/types/Interface/api/thirdParty/UpdateThirdPartyForm.js +69 -0
  160. package/js/types/Interface/api/thirdParty/UpdateThirdPartyForm.js.map +1 -0
  161. package/js/types/index.js +132 -0
  162. package/js/types/index.js.map +1 -1
  163. package/package.json +1 -1
  164. package/ts/api/resources/AffectedPatrimony.ts +26 -0
  165. package/ts/api/resources/BankAccount.ts +8 -0
  166. package/ts/api/resources/Log.ts +12 -0
  167. package/ts/api/resources/PromoCode.ts +17 -1
  168. package/ts/api/resources/ThirdParty.ts +19 -0
  169. package/ts/api/resources.ts +6 -0
  170. package/ts/types/Enum/AnswerTypeValue.ts +1 -0
  171. package/ts/types/Enum/BalanceSheetQuestion.ts +19 -0
  172. package/ts/types/Enum/BalanceSheetQuestionWording.ts +16 -0
  173. package/ts/types/Interface/api/SocietyTransaction/QuerySocietyTransactionCount.ts +2 -4
  174. package/ts/types/Interface/api/affectedPatrimony/CreateAffectedPatrimony.ts +22 -0
  175. package/ts/types/Interface/api/affectedPatrimony/CreateInKindAffectedPatrimony.ts +19 -0
  176. package/ts/types/Interface/api/affectedPatrimony/ReadAffectedPatrimony.ts +5 -0
  177. package/ts/types/Interface/api/affectedPatrimony/ResultCreateAffectedPatrimony.ts +5 -0
  178. package/ts/types/Interface/api/balanceSheetModule/CreateBalanceSheetModule.ts +6 -0
  179. package/ts/types/Interface/api/balanceSheetModule/UpdateBalanceSheetModule.ts +6 -0
  180. package/ts/types/Interface/api/bankAccount/QueryBankAccount.ts +20 -0
  181. package/ts/types/Interface/api/cerfa/2031.ts +1 -0
  182. package/ts/types/Interface/api/cerfa/2065.ts +1 -0
  183. package/ts/types/Interface/api/cerfa/2572.ts +2 -1
  184. package/ts/types/Interface/api/generalLedger/IGeneralLedgerAccountingEntry.ts +1 -0
  185. package/ts/types/Interface/api/log/QueryLogPagination.ts +27 -0
  186. package/ts/types/Interface/api/promoCode/CreateDefaultPromoCode.ts +57 -0
  187. package/ts/types/Interface/api/promoCode/ReadDefaultPaginationPromoCode.ts +14 -0
  188. package/ts/types/Interface/api/thirdParty/CreateThirdPartyForm.ts +66 -0
  189. package/ts/types/Interface/api/thirdParty/QueryThirdParty.ts +15 -0
  190. package/ts/types/Interface/api/thirdParty/UpdateThirdPartyForm.ts +66 -0
  191. package/ts/types/Interface/models/IBalanceSheetModule.ts +2 -0
  192. package/ts/types/index.ts +11 -0
@@ -0,0 +1,19 @@
1
+ import { Resource } from '../Resource';
2
+ import {
3
+ QueryPaginate, BasePaginate, IThirdParty, QueryThirdParty,
4
+ } from '../../types';
5
+
6
+ export class ThirdParty extends Resource {
7
+ getAll(): Promise<Array<IThirdParty>> {
8
+ return this.axios.$get('/third-parties');
9
+ }
10
+
11
+ getPaginated(pagination: QueryPaginate, query?: QueryThirdParty): Promise<BasePaginate<IThirdParty>> {
12
+ return this.axios.$get('/third-parties', {
13
+ params: {
14
+ ...pagination,
15
+ ...query,
16
+ },
17
+ });
18
+ }
19
+ }
@@ -63,6 +63,9 @@ import { Vehicle } from './resources/Vehicle';
63
63
  import { KilometricAllowance } from './resources/KilometricAllowance';
64
64
  import { VatDeclaration } from './resources/VatDeclaration';
65
65
  import { Qonto } from './resources/Qonto';
66
+ import { AffectedPatrimony } from './resources/AffectedPatrimony';
67
+ import { BankAccount } from './resources/BankAccount';
68
+ import { Log } from './resources/Log';
66
69
 
67
70
  export const resources = {
68
71
  simulation: Simulation,
@@ -130,4 +133,7 @@ export const resources = {
130
133
  kilometricAllowance: KilometricAllowance,
131
134
  vatDeclaration: VatDeclaration,
132
135
  qonto: Qonto,
136
+ affectedPatrimony: AffectedPatrimony,
137
+ bankAccount: BankAccount,
138
+ log: Log,
133
139
  };
@@ -25,6 +25,7 @@ export enum AnswerType {
25
25
  TERMINATION_ENUM = 'TERMINATION_ENUM',
26
26
  AMO_AUDITOR_ENUM = 'AMO_AUDITOR_ENUM',
27
27
  PHONE_OR_NA = 'PHONE_OR_NA',
28
+ DATE = 'DATE',
28
29
  }
29
30
 
30
31
  export const ANSWER_TYPE_NA = 'NA';
@@ -10,6 +10,9 @@ export enum QuestionTheme {
10
10
  CERFA_2031 = 'CERFA_2031',
11
11
  CERFA = 'CERFA',
12
12
  TAX_CREDIT = 'TAX_CREDIT',
13
+ IS_2033 = 'IS_2033',
14
+ HOLDINGS = 'HOLDINGS',
15
+
13
16
  }
14
17
 
15
18
  export enum QuestionCategory {
@@ -59,6 +62,17 @@ export enum QuestionCategory {
59
62
  ADDITIONAL_DETAILS_PART_2 = 'ADDITIONAL_DETAILS_PART_2',
60
63
  ADDITIONAL_DETAILS_PART_3 = 'ADDITIONAL_DETAILS_PART_3',
61
64
  ADDITIONAL_DETAILS_PART_4 = 'ADDITIONAL_DETAILS_PART_4',
65
+
66
+ /**
67
+ * CERFA 2031
68
+ */
69
+ '2031_ADDED_VALUE' = '2031_ADDED_VALUE',
70
+ '2031_BENEFIT_ALLOWANCE' = '2031_BENEFIT_ALLOWANCE',
71
+ '2031_NON_PROFESSIONAL_INCOME_PART_1' = '2031_NON_PROFESSIONAL_INCOME_PART_1',
72
+ '2031_NON_PROFESSIONAL_INCOME_PART_2' = '2031_NON_PROFESSIONAL_INCOME_PART_2',
73
+ '2031_PROFESSIONAL_INCOME' = '2031_PROFESSIONAL_INCOME',
74
+ '2031_ADDITIONAL_INFORMATION_PART_1' = '2031_ADDITIONAL_INFORMATION_PART_1',
75
+ '2031_ADDITIONAL_INFORMATION_PART_2' = '2031_ADDITIONAL_INFORMATION_PART_12',
62
76
  }
63
77
 
64
78
  export enum Question {
@@ -256,6 +270,11 @@ export enum Question {
256
270
  VAT_REGULARISATION = 'VAT_REGULARISATION',
257
271
  ACCOUNTING_TAX_CREDIT = 'ACCOUNTING_TAX_CREDIT',
258
272
  NOW_TAXABLE_ADDED_GAIN = 'NOW_TAXABLE_ADDED_GAIN',
273
+ SIIC = 'S.I.I.C. (art 208 C)',
274
+ SIIC_AMOUNT = 'S.I.I.C. (art 208 C) #Montant#',
275
+
276
+ CAPITAL_AFFECTED_CAPITAL = 'CAPITAL_AFFECTED_CAPITAL',
277
+ DATE_AFFECTED_CAPITAL = 'DATE_AFFECTED_CAPITAL',
259
278
  N_LONG_RUN_ADDED_GAIN_DEFERRED_2_YEARS = 'N_LONG_RUN_ADDED_GAIN_DEFERRED_2_YEARS',
260
279
  'N-1_LONG_RUN_ADDED_GAIN_DEFERRED_2_YEARS' = 'N-1_LONG_RUN_ADDED_GAIN_DEFERRED_2_YEARS',
261
280
  TERMINATION_MOTIVE = 'TERMINATION_MOTIVE',
@@ -64,6 +64,18 @@ export enum QuestionCategoryWording {
64
64
  '2065_PROVISION_AMORTIZATION_PART_3' = 'Provisions, amortissements, déficits (3/3)',
65
65
  '2065_WORKFORCE' = 'Effectifs de l\'entreprise',
66
66
  '2065_ADDED_VALUE' = 'Valeur ajoutée',
67
+
68
+ /**
69
+ * CERFA 2031
70
+ */
71
+
72
+ '2031_ADDED_VALUE' = 'Plus-values',
73
+ '2031_BENEFIT_ALLOWANCE' = 'Exonérations, abattements et crédit d’impôt',
74
+ '2031_NON_PROFESSIONAL_INCOME_PART_1' = 'Informations BIC revenus non professionnels (1/2)',
75
+ '2031_NON_PROFESSIONAL_INCOME_PART_2' = 'Informations BIC revenus non professionnels (2/2)',
76
+ '2031_PROFESSIONAL_INCOME' = 'Informations BIC revenus professionnels',
77
+ '2031_ADDITIONAL_INFORMATION_PART_1' = 'Informations complémentaires (1/2)',
78
+ '2031_ADDITIONAL_INFORMATION_PART_2' = 'Informations complémentaires (2/2)',
67
79
  }
68
80
 
69
81
  export enum QuestionWording {
@@ -230,6 +242,9 @@ export enum QuestionWording {
230
242
  'REDUCED_RATE_TAX' = 'REDUCED_RATE_TAX',
231
243
  'NORMAL_RATE_TAX' = 'NORMAL_RATE_TAX',
232
244
 
245
+ CAPITAL_AFFECTED_CAPITAL = 'Quel est le montant de votre patrimoine affecté ?',
246
+ DATE_AFFECTED_CAPITAL = 'A quelle date ce patrimoine a-t-il été affecté ?',
247
+
233
248
  /**
234
249
  * used in IS tax credit and 2572
235
250
  */
@@ -426,6 +441,7 @@ export enum SubQuestionWording {
426
441
  'N-X_REPORT_DEFICIT_TAX_CREDIT' = 'Créance de report en arrière de déficit non utilisé',
427
442
 
428
443
  'N-1_PAYMENT_OR_DEPOSIT' = 'Montant des acomptes déjà réalisés',
444
+
429
445
  }
430
446
 
431
447
  export enum QuestionInfoWording {
@@ -11,11 +11,9 @@ export class QuerySocietyTransactionCount {
11
11
  @IsArray()
12
12
  idBankAccount?: number[];
13
13
 
14
- @ApiProperty({
15
- enum: AccountingJournal,
16
- })
14
+ @ApiProperty()
17
15
  @IsNotEmpty()
18
16
  @IsArray()
19
17
  @ArrayMinSize(1)
20
- idAccountingJournal: number[];
18
+ idAccountingJournal: AccountingJournal[];
21
19
  }
@@ -0,0 +1,22 @@
1
+ import {
2
+ IsArray, IsDate, IsNumber, Min,
3
+ } from 'class-validator';
4
+ import { ApiProperty } from '../../../..';
5
+ import { CreateInKindAffectedPatrimony } from './CreateInKindAffectedPatrimony';
6
+
7
+ export class CreateAffectedPatrimony {
8
+ @ApiProperty()
9
+ @IsNumber()
10
+ @Min(0, {
11
+ message: 'amount should be positive',
12
+ })
13
+ capitalAffectedPatrimony: number;
14
+
15
+ @ApiProperty()
16
+ @IsDate()
17
+ dateAffectedPatrimony: Date;
18
+
19
+ @ApiProperty()
20
+ @IsArray()
21
+ inKindAffectedPatrimonies: CreateInKindAffectedPatrimony[];
22
+ }
@@ -0,0 +1,19 @@
1
+ import { IsNumber, IsString, Min } from 'class-validator';
2
+ import { ApiProperty } from '../../../..';
3
+
4
+ export class CreateInKindAffectedPatrimony {
5
+ @ApiProperty()
6
+ @IsNumber()
7
+ @Min(0, {
8
+ message: 'Amount should be positive',
9
+ })
10
+ amount: number;
11
+
12
+ @ApiProperty()
13
+ @IsString()
14
+ designation: string;
15
+
16
+ @ApiProperty()
17
+ @IsNumber()
18
+ idAccount: number;
19
+ }
@@ -0,0 +1,5 @@
1
+ export interface ReadAffectedPatrimony {
2
+ totalInKindAffectedPatrimony: number,
3
+ capitalAffectedPatrimony: number,
4
+ dateAffectedPatrimony: Date,
5
+ }
@@ -0,0 +1,5 @@
1
+ export interface ResultCreateAffectedPatrimony {
2
+ totalInKindAffectedPatrimony: number,
3
+ capitalAffectedPatrimony: number,
4
+ dateAffectedPatrimony: Date,
5
+ }
@@ -33,6 +33,12 @@ export class CreateBalanceSheetModuleForm {
33
33
  @IsOptional()
34
34
  incomeAllocation?: boolean | null;
35
35
 
36
+ @ApiPropertyOptional()
37
+ @IsBoolean()
38
+ @ToBoolean()
39
+ @IsOptional()
40
+ hasAffectedPatrimony?: boolean | null;
41
+
36
42
  // @ApiPropertyOptional()
37
43
  // deadlinerecoveryImmobilization: boolean;
38
44
 
@@ -33,6 +33,12 @@ export class UpdateBalanceSheetModuleForm {
33
33
  @IsOptional()
34
34
  loanToDeclare?: boolean | null;
35
35
 
36
+ @ApiPropertyOptional()
37
+ @IsBoolean()
38
+ @ToBoolean()
39
+ @IsOptional()
40
+ hasAffectedPatrimony?: boolean | null;
41
+
36
42
  // @ApiPropertyOptional()
37
43
  // deadlinerecoveryImmobilization: boolean;
38
44
 
@@ -0,0 +1,20 @@
1
+ import {
2
+ IsBoolean, IsEnum, IsInt, IsOptional,
3
+ } from 'class-validator';
4
+ import { ApiPropertyOptional } from '../../../../utils';
5
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
6
+ import { BankAccountType } from '../../../Enum/BankAccountType';
7
+
8
+ export class QueryBankAccount {
9
+ @ApiPropertyOptional()
10
+ @IsOptional()
11
+ @IsBoolean()
12
+ @ToBoolean()
13
+ isActivated?: boolean;
14
+
15
+ @ApiPropertyOptional()
16
+ @IsOptional()
17
+ @IsInt()
18
+ @IsEnum(BankAccountType)
19
+ idBankAccountType?: number;
20
+ }
@@ -24,6 +24,7 @@ export interface Cerfa2031 {
24
24
  identification: {
25
25
  companyDenomination: string;
26
26
  companyAddress: string;
27
+ address: CerfaAddress;
27
28
  phoneNumber: string;
28
29
  email: string;
29
30
  siren: string;
@@ -27,6 +27,7 @@ type LessValuesByRate = {
27
27
  export class Cerfa2065Society {
28
28
  name: string;
29
29
  addressFormatted: string;
30
+ addressObject: CerfaAddress;
30
31
  siret: string;
31
32
  email: string;
32
33
  oldAddress: string | null;
@@ -1,4 +1,4 @@
1
- import { Termination } from './ReadCerfa';
1
+ import { Termination, CerfaAddress } from './ReadCerfa';
2
2
 
3
3
  type BaseAndAmount = {
4
4
  base: number;
@@ -22,6 +22,7 @@ type Exercice = {
22
22
  type Society = {
23
23
  name: string;
24
24
  address: string;
25
+ addressObject: CerfaAddress;
25
26
  };
26
27
 
27
28
  type PreFinancingWithAmount = {
@@ -8,4 +8,5 @@ export interface IGeneralLedgerAccountingEntry {
8
8
  credit: number
9
9
  debit: number
10
10
  intermediateSolde: number
11
+ exported?: Date
11
12
  }
@@ -0,0 +1,27 @@
1
+ import {
2
+ IsEnum, IsInt, IsOptional, IsString,
3
+ } from 'class-validator';
4
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
5
+ import { LogType } from '../../../Enum/Log';
6
+
7
+ export class QueryLogPagination {
8
+ @ApiPropertyOptional()
9
+ @IsOptional()
10
+ @IsInt()
11
+ limit?: number = 25;
12
+
13
+ @ApiPropertyOptional()
14
+ @IsOptional()
15
+ @IsInt()
16
+ page?: number = 1;
17
+
18
+ @ApiProperty()
19
+ @IsInt()
20
+ @IsEnum(LogType)
21
+ idLogType: number;
22
+
23
+ @ApiPropertyOptional()
24
+ @IsOptional()
25
+ @IsString()
26
+ orderBy?: string = 'id';
27
+ }
@@ -0,0 +1,57 @@
1
+ import {
2
+ IsBoolean, IsDate, IsJSON, IsString,
3
+ } from 'class-validator';
4
+ import { ApiPropertyOptional, ApiProperty } from '../../../../utils';
5
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
6
+
7
+ export class CreateDefaultPromoCode {
8
+ @ApiProperty()
9
+ @IsString()
10
+ label: string;
11
+
12
+ @ApiPropertyOptional()
13
+ @IsDate()
14
+ startDate?: Date | null;
15
+
16
+ @ApiPropertyOptional()
17
+ @IsDate()
18
+ endDate?: Date | null;
19
+
20
+ @ApiProperty()
21
+ @IsBoolean()
22
+ @ToBoolean()
23
+ isYearly: boolean;
24
+
25
+ @ApiProperty()
26
+ @IsBoolean()
27
+ @ToBoolean()
28
+ isMonthly: boolean;
29
+
30
+ @ApiProperty()
31
+ @IsBoolean()
32
+ @ToBoolean()
33
+ isMicroPlan: boolean;
34
+
35
+ @ApiProperty()
36
+ @IsBoolean()
37
+ @ToBoolean()
38
+ isCashBasedBusinessPlan: boolean;
39
+
40
+ @ApiProperty()
41
+ @IsBoolean()
42
+ @ToBoolean()
43
+ isAccrualBusinessPlan: boolean;
44
+
45
+ @ApiProperty()
46
+ @IsBoolean()
47
+ @ToBoolean()
48
+ isTest: boolean;
49
+
50
+ @ApiPropertyOptional()
51
+ @IsJSON()
52
+ metadata?: any | null;
53
+
54
+ @ApiProperty()
55
+ @IsString()
56
+ idStripeCoupon: string;
57
+ }
@@ -0,0 +1,14 @@
1
+ import { IsNumber, IsOptional } from 'class-validator';
2
+ import { ApiPropertyOptional, ApiProperty } from '../../../../utils';
3
+
4
+ export class ReadDefaultPaginationPromoCode {
5
+ @ApiProperty()
6
+ @IsNumber()
7
+ @IsOptional()
8
+ page?: number = 1;
9
+
10
+ @ApiPropertyOptional()
11
+ @IsNumber()
12
+ @IsOptional()
13
+ limit?: number = 25;
14
+ }
@@ -0,0 +1,66 @@
1
+ import { IsEnum } from 'class-validator';
2
+ import { ThirdPartyType } from '../../..';
3
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
4
+
5
+ export class CreateThirdPartyForm {
6
+ @ApiPropertyOptional()
7
+ budgeaSouscriptionId?: number | null;
8
+
9
+ @ApiPropertyOptional()
10
+ fullname?: string | null;
11
+
12
+ @ApiPropertyOptional()
13
+ fullnameAccountant?: string | null;
14
+
15
+ @ApiProperty()
16
+ company: string;
17
+
18
+ @ApiPropertyOptional()
19
+ address?: string | null;
20
+
21
+ @ApiPropertyOptional()
22
+ zipCode?: string | null;
23
+
24
+ @ApiPropertyOptional()
25
+ city?: string | null;
26
+
27
+ @ApiPropertyOptional()
28
+ phone?: string | null;
29
+
30
+ @ApiPropertyOptional()
31
+ email?: string | null;
32
+
33
+ @ApiPropertyOptional()
34
+ nSiret?: string | null;
35
+
36
+ @ApiPropertyOptional()
37
+ nTva?: string | null;
38
+
39
+ @ApiProperty()
40
+ soldeInit: number;
41
+
42
+ @ApiPropertyOptional()
43
+ state?: boolean | null;
44
+
45
+ @ApiPropertyOptional()
46
+ dateImport?: Date | null;
47
+
48
+ @ApiProperty()
49
+ isGeneric: boolean;
50
+
51
+ @ApiPropertyOptional()
52
+ juridicalSociety?: number | null;
53
+
54
+ @ApiPropertyOptional()
55
+ idTypePayment?: number | null;
56
+
57
+ @ApiPropertyOptional()
58
+ idAccount?: number | null;
59
+
60
+ @ApiPropertyOptional()
61
+ idCountry?: number | null;
62
+
63
+ @ApiProperty()
64
+ @IsEnum(ThirdPartyType)
65
+ idThirdPartyType: ThirdPartyType;
66
+ }
@@ -0,0 +1,15 @@
1
+ import { IsEnum, IsOptional, IsString } from 'class-validator';
2
+ import { ThirdPartyType } from '../../..';
3
+ import { ApiPropertyOptional } from '../../../..';
4
+
5
+ export class QueryThirdParty {
6
+ @ApiPropertyOptional()
7
+ @IsOptional()
8
+ @IsString()
9
+ search?: string;
10
+
11
+ @ApiPropertyOptional()
12
+ @IsOptional()
13
+ @IsEnum(ThirdPartyType)
14
+ type?: number;
15
+ }
@@ -0,0 +1,66 @@
1
+ import { IsEnum } from 'class-validator';
2
+ import { ThirdPartyType } from '../../..';
3
+ import { ApiPropertyOptional } from '../../../../utils';
4
+
5
+ export class UpdateThirdPartyForm {
6
+ @ApiPropertyOptional()
7
+ budgeaSouscriptionId?: number | null;
8
+
9
+ @ApiPropertyOptional()
10
+ fullname?: string | null;
11
+
12
+ @ApiPropertyOptional()
13
+ fullnameAccountant?: string | null;
14
+
15
+ @ApiPropertyOptional()
16
+ company?: string;
17
+
18
+ @ApiPropertyOptional()
19
+ address?: string | null;
20
+
21
+ @ApiPropertyOptional()
22
+ zipCode?: string | null;
23
+
24
+ @ApiPropertyOptional()
25
+ city?: string | null;
26
+
27
+ @ApiPropertyOptional()
28
+ phone?: string | null;
29
+
30
+ @ApiPropertyOptional()
31
+ email?: string | null;
32
+
33
+ @ApiPropertyOptional()
34
+ nSiret?: string | null;
35
+
36
+ @ApiPropertyOptional()
37
+ nTva?: string | null;
38
+
39
+ @ApiPropertyOptional()
40
+ soldeInit?: number;
41
+
42
+ @ApiPropertyOptional()
43
+ state?: boolean | null;
44
+
45
+ @ApiPropertyOptional()
46
+ dateImport?: Date | null;
47
+
48
+ @ApiPropertyOptional()
49
+ isGeneric?: boolean;
50
+
51
+ @ApiPropertyOptional()
52
+ juridicalSociety?: number | null;
53
+
54
+ @ApiPropertyOptional()
55
+ idTypePayment?: number | null;
56
+
57
+ @ApiPropertyOptional()
58
+ idAccount?: number | null;
59
+
60
+ @ApiPropertyOptional()
61
+ idCountry?: number | null;
62
+
63
+ @ApiPropertyOptional()
64
+ @IsEnum(ThirdPartyType)
65
+ idThirdPartyType?: ThirdPartyType;
66
+ }
@@ -10,6 +10,8 @@ export interface IBalanceSheetModule {
10
10
  incomeAllocation?: boolean | null;
11
11
  salariesFile?: boolean | null;
12
12
  hasShareCapital: boolean | null;
13
+ hasAffectedPatrimonyToDeclare?: boolean | null;
14
+ hasAffectedPatrimony?: boolean | null;
13
15
  hasCustomerInvoiceToEstablish?: boolean | null;
14
16
  hasCustomerAssetToEstablish?: boolean | null;
15
17
  hasCustomerPrepaidIncome?: boolean | null;
package/ts/types/index.ts CHANGED
@@ -502,6 +502,10 @@ export * from './Interface/api/promoCode/QueryDefaultPromotion';
502
502
  export * from './Interface/api/promoCode/ReadDefaultPromotion';
503
503
  export * from './Interface/api/SocietyTransaction/QuerySocietyTransactionCount';
504
504
  export * from './Interface/api/SocietyTransaction/ReadSocietyTransactionCount';
505
+ export * from './Interface/api/promoCode/CreateDefaultPromoCode';
506
+ export * from './Interface/api/promoCode/ReadDefaultPaginationPromoCode';
507
+ export * from './Interface/api/bankAccount/QueryBankAccount';
508
+ export * from './Interface/api/log/QueryLogPagination';
505
509
 
506
510
  // export * from './Interface/api/survey/QuerySurvey';
507
511
  export * from './Interface/api/survey/ReadSurvey';
@@ -639,8 +643,15 @@ export * from './Interface/api/jeDeclare/CreateDocumentsParams';
639
643
  export * from './Interface/api/jeDeclare/UtilCFONB';
640
644
  export * from './Interface/api/balanceSheetCompletion/UpdateBalanceSheetCompletion';
641
645
  export * from './Interface/api/kilometricAllowance/CreateKilometricAllowanceValidation';
646
+ export * from './Interface/api/thirdParty/CreateThirdPartyForm';
647
+ export * from './Interface/api/thirdParty/UpdateThirdPartyForm';
648
+ export * from './Interface/api/thirdParty/QueryThirdParty';
642
649
 
643
650
  // Enums types
644
651
  export * from './Interface/enum/Util';
645
652
 
646
653
  export * from '../utils/cerfa';
654
+ export * from './Interface/api/affectedPatrimony/CreateAffectedPatrimony';
655
+ export * from './Interface/api/affectedPatrimony/CreateInKindAffectedPatrimony';
656
+ export * from './Interface/api/affectedPatrimony/ResultCreateAffectedPatrimony';
657
+ export * from './Interface/api/affectedPatrimony/ReadAffectedPatrimony';