@silexpert/core 0.4.128 → 0.4.129

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 (189) hide show
  1. package/es/api/resources/Revision.d.ts +6 -0
  2. package/es/api/resources/Revision.d.ts.map +1 -0
  3. package/es/api/resources/Revision.js +7 -0
  4. package/es/api/resources/Revision.js.map +1 -0
  5. package/es/api/resources/Transaction.d.ts +2 -1
  6. package/es/api/resources/Transaction.d.ts.map +1 -1
  7. package/es/api/resources/Transaction.js +3 -0
  8. package/es/api/resources/Transaction.js.map +1 -1
  9. package/es/api/resources/WorkingSchedule.d.ts +6 -0
  10. package/es/api/resources/WorkingSchedule.d.ts.map +1 -0
  11. package/es/api/resources/WorkingSchedule.js +12 -0
  12. package/es/api/resources/WorkingSchedule.js.map +1 -0
  13. package/es/api/resources.d.ts +4 -0
  14. package/es/api/resources.d.ts.map +1 -1
  15. package/es/api/resources.js +4 -0
  16. package/es/api/resources.js.map +1 -1
  17. package/es/types/Enum/Aspone.d.ts +2 -1
  18. package/es/types/Enum/Aspone.d.ts.map +1 -1
  19. package/es/types/Enum/Aspone.js +1 -0
  20. package/es/types/Enum/Aspone.js.map +1 -1
  21. package/es/types/Enum/BalanceSheetQuestion.d.ts +7 -1
  22. package/es/types/Enum/BalanceSheetQuestion.d.ts.map +1 -1
  23. package/es/types/Enum/BalanceSheetQuestion.js +6 -0
  24. package/es/types/Enum/BalanceSheetQuestion.js.map +1 -1
  25. package/es/types/Enum/CerfaType.d.ts +2 -1
  26. package/es/types/Enum/CerfaType.d.ts.map +1 -1
  27. package/es/types/Enum/CerfaType.js +1 -0
  28. package/es/types/Enum/CerfaType.js.map +1 -1
  29. package/es/types/Enum/Currency.d.ts +4 -0
  30. package/es/types/Enum/Currency.d.ts.map +1 -0
  31. package/es/types/Enum/Currency.js +5 -0
  32. package/es/types/Enum/Currency.js.map +1 -0
  33. package/es/types/Enum/JeDeclare.d.ts +24 -0
  34. package/es/types/Enum/JeDeclare.d.ts.map +1 -0
  35. package/es/types/Enum/JeDeclare.js +28 -0
  36. package/es/types/Enum/JeDeclare.js.map +1 -0
  37. package/es/types/Enum/PartnerTransactionType.d.ts +3 -1
  38. package/es/types/Enum/PartnerTransactionType.d.ts.map +1 -1
  39. package/es/types/Enum/PartnerTransactionType.js +2 -0
  40. package/es/types/Enum/PartnerTransactionType.js.map +1 -1
  41. package/es/types/Interface/api/accountingTransaction/DeleteInvoices.d.ts +11 -0
  42. package/es/types/Interface/api/accountingTransaction/DeleteInvoices.d.ts.map +1 -0
  43. package/es/types/Interface/api/accountingTransaction/DeleteInvoices.js +46 -0
  44. package/es/types/Interface/api/accountingTransaction/DeleteInvoices.js.map +1 -0
  45. package/es/types/Interface/api/aspone/ReadInterchange.d.ts +1 -1
  46. package/es/types/Interface/api/aspone/ReadInterchange.d.ts.map +1 -1
  47. package/es/types/Interface/api/aspone/ReadInterchange.js.map +1 -1
  48. package/es/types/Interface/api/aspone/Util.d.ts +2 -0
  49. package/es/types/Interface/api/aspone/Util.d.ts.map +1 -1
  50. package/es/types/Interface/api/aspone/Util.js.map +1 -1
  51. package/es/types/Interface/api/cerfa/2572.d.ts +149 -0
  52. package/es/types/Interface/api/cerfa/2572.d.ts.map +1 -0
  53. package/es/types/Interface/api/cerfa/2572.js +5 -0
  54. package/es/types/Interface/api/cerfa/2572.js.map +1 -0
  55. package/es/types/Interface/api/cerfa/CreateCerfa.d.ts +1 -0
  56. package/es/types/Interface/api/cerfa/CreateCerfa.d.ts.map +1 -1
  57. package/es/types/Interface/api/cerfa/CreateCerfa.js +1 -0
  58. package/es/types/Interface/api/cerfa/CreateCerfa.js.map +1 -1
  59. package/es/types/Interface/api/jeDeclare/CreateDocumentsParams.d.ts +7 -0
  60. package/es/types/Interface/api/jeDeclare/CreateDocumentsParams.d.ts.map +1 -0
  61. package/es/types/Interface/api/jeDeclare/CreateDocumentsParams.js +37 -0
  62. package/es/types/Interface/api/jeDeclare/CreateDocumentsParams.js.map +1 -0
  63. package/es/types/Interface/api/jeDeclare/Util.d.ts +68 -0
  64. package/es/types/Interface/api/jeDeclare/Util.d.ts.map +1 -0
  65. package/es/types/Interface/api/jeDeclare/Util.js +2 -0
  66. package/es/types/Interface/api/jeDeclare/Util.js.map +1 -0
  67. package/es/types/Interface/api/jeDeclare/UtilCFONB.d.ts +23 -0
  68. package/es/types/Interface/api/jeDeclare/UtilCFONB.d.ts.map +1 -0
  69. package/es/types/Interface/api/jeDeclare/UtilCFONB.js +378 -0
  70. package/es/types/Interface/api/jeDeclare/UtilCFONB.js.map +1 -0
  71. package/es/types/Interface/api/log/CreateLog.d.ts +1 -0
  72. package/es/types/Interface/api/log/CreateLog.d.ts.map +1 -1
  73. package/es/types/Interface/api/log/CreateLog.js.map +1 -1
  74. package/es/types/Interface/api/registration/CreateRegistration.d.ts +2 -1
  75. package/es/types/Interface/api/registration/CreateRegistration.d.ts.map +1 -1
  76. package/es/types/Interface/api/registration/CreateRegistration.js.map +1 -1
  77. package/es/types/Interface/api/revision/QueryRevision.d.ts +6 -0
  78. package/es/types/Interface/api/revision/QueryRevision.d.ts.map +1 -0
  79. package/es/types/Interface/api/revision/QueryRevision.js +29 -0
  80. package/es/types/Interface/api/revision/QueryRevision.js.map +1 -0
  81. package/es/types/Interface/api/revision/ReadRevision.d.ts +14 -0
  82. package/es/types/Interface/api/revision/ReadRevision.d.ts.map +1 -0
  83. package/es/types/Interface/api/revision/ReadRevision.js +2 -0
  84. package/es/types/Interface/api/revision/ReadRevision.js.map +1 -0
  85. package/es/types/Interface/api/revision/Revision.d.ts +5 -0
  86. package/es/types/Interface/api/revision/Revision.d.ts.map +1 -0
  87. package/es/types/Interface/api/revision/Revision.js +2 -0
  88. package/es/types/Interface/api/revision/Revision.js.map +1 -0
  89. package/es/types/Interface/api/revision/RevisionObject.d.ts +10 -0
  90. package/es/types/Interface/api/revision/RevisionObject.d.ts.map +1 -0
  91. package/es/types/Interface/api/revision/RevisionObject.js +2 -0
  92. package/es/types/Interface/api/revision/RevisionObject.js.map +1 -0
  93. package/es/types/Interface/api/woocommerce/InvoicesWoocommerce.d.ts +1 -0
  94. package/es/types/Interface/api/woocommerce/InvoicesWoocommerce.d.ts.map +1 -1
  95. package/es/types/Interface/api/woocommerce/InvoicesWoocommerce.js +4 -0
  96. package/es/types/Interface/api/woocommerce/InvoicesWoocommerce.js.map +1 -1
  97. package/es/types/Interface/models/IApiError.d.ts +2 -1
  98. package/es/types/Interface/models/IApiError.d.ts.map +1 -1
  99. package/es/types/Interface/models/IApiError.js +2 -0
  100. package/es/types/Interface/models/IApiError.js.map +1 -1
  101. package/es/types/Interface/models/IUser.d.ts +1 -0
  102. package/es/types/Interface/models/IUser.d.ts.map +1 -1
  103. package/es/types/Interface/models/IUser.js.map +1 -1
  104. package/es/types/Interface/models/IWorkingSchedule.d.ts +3 -1
  105. package/es/types/Interface/models/IWorkingSchedule.d.ts.map +1 -1
  106. package/es/types/Interface/models/IWorkingSchedule.js.map +1 -1
  107. package/es/types/index.d.ts +10 -0
  108. package/es/types/index.d.ts.map +1 -1
  109. package/es/types/index.js +10 -0
  110. package/es/types/index.js.map +1 -1
  111. package/js/api/resources/Revision.js +20 -0
  112. package/js/api/resources/Revision.js.map +1 -0
  113. package/js/api/resources/Transaction.js +6 -0
  114. package/js/api/resources/Transaction.js.map +1 -1
  115. package/js/api/resources/WorkingSchedule.js +23 -0
  116. package/js/api/resources/WorkingSchedule.js.map +1 -0
  117. package/js/api/resources.js +7 -1
  118. package/js/api/resources.js.map +1 -1
  119. package/js/types/Enum/Aspone.js +1 -0
  120. package/js/types/Enum/Aspone.js.map +1 -1
  121. package/js/types/Enum/BalanceSheetQuestion.js +7 -0
  122. package/js/types/Enum/BalanceSheetQuestion.js.map +1 -1
  123. package/js/types/Enum/CerfaType.js +1 -0
  124. package/js/types/Enum/CerfaType.js.map +1 -1
  125. package/js/types/Enum/Currency.js +11 -0
  126. package/js/types/Enum/Currency.js.map +1 -0
  127. package/js/types/Enum/JeDeclare.js +40 -0
  128. package/js/types/Enum/JeDeclare.js.map +1 -0
  129. package/js/types/Enum/PartnerTransactionType.js +2 -0
  130. package/js/types/Enum/PartnerTransactionType.js.map +1 -1
  131. package/js/types/Interface/api/accountingTransaction/DeleteInvoices.js +41 -0
  132. package/js/types/Interface/api/accountingTransaction/DeleteInvoices.js.map +1 -0
  133. package/js/types/Interface/api/aspone/ReadInterchange.js.map +1 -1
  134. package/js/types/Interface/api/aspone/Util.js.map +1 -1
  135. package/js/types/Interface/api/cerfa/2572.js +14 -0
  136. package/js/types/Interface/api/cerfa/2572.js.map +1 -0
  137. package/js/types/Interface/api/cerfa/CreateCerfa.js +12 -0
  138. package/js/types/Interface/api/cerfa/CreateCerfa.js.map +1 -1
  139. package/js/types/Interface/api/jeDeclare/CreateDocumentsParams.js +37 -0
  140. package/js/types/Interface/api/jeDeclare/CreateDocumentsParams.js.map +1 -0
  141. package/js/types/Interface/api/jeDeclare/Util.js +6 -0
  142. package/js/types/Interface/api/jeDeclare/Util.js.map +1 -0
  143. package/js/types/Interface/api/jeDeclare/UtilCFONB.js +394 -0
  144. package/js/types/Interface/api/jeDeclare/UtilCFONB.js.map +1 -0
  145. package/js/types/Interface/api/registration/CreateRegistration.js.map +1 -1
  146. package/js/types/Interface/api/revision/QueryRevision.js +33 -0
  147. package/js/types/Interface/api/revision/QueryRevision.js.map +1 -0
  148. package/js/types/Interface/api/revision/ReadRevision.js +6 -0
  149. package/js/types/Interface/api/revision/ReadRevision.js.map +1 -0
  150. package/js/types/Interface/api/revision/Revision.js +6 -0
  151. package/js/types/Interface/api/revision/Revision.js.map +1 -0
  152. package/js/types/Interface/api/revision/RevisionObject.js +6 -0
  153. package/js/types/Interface/api/revision/RevisionObject.js.map +1 -0
  154. package/js/types/Interface/api/woocommerce/InvoicesWoocommerce.js +2 -0
  155. package/js/types/Interface/api/woocommerce/InvoicesWoocommerce.js.map +1 -1
  156. package/js/types/Interface/models/IApiError.js +3 -1
  157. package/js/types/Interface/models/IApiError.js.map +1 -1
  158. package/js/types/index.js +120 -0
  159. package/js/types/index.js.map +1 -1
  160. package/package.json +1 -1
  161. package/ts/api/resources/Revision.ts +8 -0
  162. package/ts/api/resources/Transaction.ts +5 -1
  163. package/ts/api/resources/WorkingSchedule.ts +12 -0
  164. package/ts/api/resources.ts +4 -0
  165. package/ts/types/Enum/Aspone.ts +1 -0
  166. package/ts/types/Enum/BalanceSheetQuestion.ts +7 -0
  167. package/ts/types/Enum/CerfaType.ts +1 -0
  168. package/ts/types/Enum/Currency.ts +3 -0
  169. package/ts/types/Enum/JeDeclare.ts +26 -0
  170. package/ts/types/Enum/PartnerTransactionType.ts +2 -0
  171. package/ts/types/Interface/api/accountingTransaction/DeleteInvoices.ts +37 -0
  172. package/ts/types/Interface/api/aspone/ReadInterchange.ts +1 -1
  173. package/ts/types/Interface/api/aspone/Util.ts +3 -0
  174. package/ts/types/Interface/api/cerfa/2572.ts +150 -0
  175. package/ts/types/Interface/api/cerfa/CreateCerfa.ts +1 -0
  176. package/ts/types/Interface/api/jeDeclare/CreateDocumentsParams.ts +23 -0
  177. package/ts/types/Interface/api/jeDeclare/Util.ts +69 -0
  178. package/ts/types/Interface/api/jeDeclare/UtilCFONB.ts +387 -0
  179. package/ts/types/Interface/api/log/CreateLog.ts +1 -0
  180. package/ts/types/Interface/api/registration/CreateRegistration.ts +2 -1
  181. package/ts/types/Interface/api/revision/QueryRevision.ts +16 -0
  182. package/ts/types/Interface/api/revision/ReadRevision.ts +14 -0
  183. package/ts/types/Interface/api/revision/Revision.ts +5 -0
  184. package/ts/types/Interface/api/revision/RevisionObject.ts +10 -0
  185. package/ts/types/Interface/api/woocommerce/InvoicesWoocommerce.ts +2 -0
  186. package/ts/types/Interface/models/IApiError.ts +2 -0
  187. package/ts/types/Interface/models/IUser.ts +1 -0
  188. package/ts/types/Interface/models/IWorkingSchedule.ts +3 -1
  189. package/ts/types/index.ts +10 -1
@@ -0,0 +1,26 @@
1
+ export enum JeDeclareTypeError {
2
+ SUCCESS = '00',
3
+ ERROR_AUTHENTIFICATION = '06',
4
+ BAD_REQUEST = '05',
5
+ INCORRECT_E_PROCESS = '11',
6
+ TECHNICAL_ERROR = '99',
7
+ }
8
+
9
+ export enum ListType {
10
+ ADS = '00',
11
+ ACS = '01',
12
+ ARS = '02',
13
+ RCP_RECEPTION = '03',
14
+ ACS_ARS_RCP_RECEPTION = '97',
15
+ ACS_ARS = '98',
16
+ ADS_ACS_ARS_RCP_RECEPTION = '99',
17
+ }
18
+
19
+ export enum ItemStatus {
20
+ ALL_PIECES = '00',
21
+ ALREADY_FETCHED_PIECES = '01',
22
+ }
23
+
24
+ export enum ProcedureType {
25
+ RELEVE = 'RELEVE',
26
+ }
@@ -3,4 +3,6 @@ export enum PartnerTransactionType {
3
3
  BUDGET_INSIGHT = 2,
4
4
  QONTO = 3,
5
5
  SHINE = 4,
6
+ STRIPE = 5,
7
+ JE_DECLARE = 6,
6
8
  }
@@ -0,0 +1,37 @@
1
+ import {
2
+ IsBoolean, IsDate, IsIn, IsNumber, IsOptional,
3
+ } from 'class-validator';
4
+ import { AccountingJournal } from '../../..';
5
+ import { ApiProperty, ApiPropertyOptional } from '../../../..';
6
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
7
+
8
+ export class QueryDeleteInvoices {
9
+ @ApiProperty()
10
+ @IsDate()
11
+ startDate: Date;
12
+
13
+ @ApiProperty()
14
+ @IsDate()
15
+ endDate: Date;
16
+
17
+ @ApiProperty()
18
+ @IsNumber()
19
+ @IsIn([AccountingJournal.AC, AccountingJournal.VE])
20
+ idAccountingJournal: number;
21
+
22
+ @ApiPropertyOptional()
23
+ @IsBoolean()
24
+ @IsOptional()
25
+ @ToBoolean()
26
+ isLocked?: boolean;
27
+
28
+ @ApiPropertyOptional()
29
+ @IsBoolean()
30
+ @IsOptional()
31
+ @ToBoolean()
32
+ isExported?: boolean;
33
+ }
34
+
35
+ export interface ReadDeletedInvoices {
36
+ deletedTransactions: number;
37
+ }
@@ -71,5 +71,5 @@ export interface PayloadForRegistration {
71
71
  redactor: Redactor;
72
72
  indebted: any;
73
73
  forms: Array<{ name: string; fields: FieldForGeneration[] }>;
74
- xml: string
74
+ xml?: string
75
75
  }
@@ -6,6 +6,8 @@ export class PasswordDigest {
6
6
  passwordDigest: string;
7
7
  }
8
8
 
9
+ export type ProcessType = 'DADS-U' | 'TDFC' | 'TVA' | 'DUCS' | 'DUE' | 'PAIEMENT' | 'AED' | 'DSI' | 'DSN' | 'REQUETE' | 'IR' | 'DRP' | 'DPAE' | 'OGA' | 'PART' | 'WEB_TDFC' | 'WEB_TVA' | 'WEB_PAIEMENT' | 'WEB_REQUETE' | 'WEB_PART';
10
+
9
11
  export class WSDL {
10
12
  deposit: string;
11
13
  monitoring: string;
@@ -28,6 +30,7 @@ export class RegistrationParams {
28
30
  token: string
29
31
  };
30
32
  forceTestMode: boolean;
33
+ processType: ProcessType;
31
34
  }
32
35
 
33
36
  export class RegistrationResponse {
@@ -0,0 +1,150 @@
1
+ type BaseAndAmount = {
2
+ base: number;
3
+ amount: number;
4
+ };
5
+
6
+ type Tax = {
7
+ normalRate: BaseAndAmount;
8
+ normalRate2: BaseAndAmount;
9
+ reduceRate: BaseAndAmount;
10
+ addedValue: { amount: number; }
11
+ other: { amount: number; }
12
+ total: number;
13
+ };
14
+
15
+ type Exercice = {
16
+ startDate: string;
17
+ endDate: string;
18
+ };
19
+
20
+ type Society = {
21
+ name: string;
22
+ address: string;
23
+ };
24
+
25
+ type PreFinancingWithAmount = {
26
+ preFinancing: number;
27
+ amount: number;
28
+ };
29
+
30
+ type Debts = {
31
+ onCompanyTax: number;
32
+ notOnCompanyTax: number;
33
+ VEL: number;
34
+ PRE: number;
35
+ new: number;
36
+ companyTaxAfterImputation: number;
37
+ reducedTax: {
38
+ inEurope: number;
39
+ amount: number;
40
+ }
41
+ balanceInPreviousExercises: number;
42
+ jobCredit: PreFinancingWithAmount;
43
+ jobCreditForLongExercises: PreFinancingWithAmount;
44
+ jobCreditForPreviousExercises: number;
45
+ corse: number;
46
+ CORInPreviousExercise: number;
47
+ deficit: number;
48
+ RADInPreviousExercise: number;
49
+ CIRcredit: number;
50
+ CIRsolde: number;
51
+ reportedInLine2B11: number;
52
+ subTotal: number;
53
+ inDepositLimit: number;
54
+ balanceDebtInPreviousExercises: number;
55
+ FOR: number;
56
+ RAC: number;
57
+ FAM: number;
58
+ CIN: number;
59
+ BIO: number;
60
+ PHO: number;
61
+ AUD: number;
62
+ ART: number;
63
+ CJV: number;
64
+ CPE: number;
65
+ CCI: number;
66
+ PTR: number;
67
+ CIO: PreFinancingWithAmount;
68
+ COL: PreFinancingWithAmount;
69
+ CSV: number;
70
+ CAC: number;
71
+ REB: number;
72
+ BLC: number;
73
+ RTD: number;
74
+ CPG: number;
75
+ HVE: number;
76
+ newUnlistedReceivables: number;
77
+ inLine2C22: number;
78
+ subTotal2: number;
79
+ afterImputation: number;
80
+ payment: number;
81
+ taxAmount: number;
82
+ CSB: { base: number };
83
+ };
84
+
85
+ type SocialContribution = {
86
+ CSB: BaseAndAmount;
87
+ strangers: number;
88
+ onCompanyTax: number;
89
+ payment: number;
90
+ };
91
+
92
+ type YearlyContribution = {
93
+ onRent: number;
94
+ amount: number;
95
+ payment: number;
96
+ };
97
+
98
+ type AmountToPayWithOverage = {
99
+ amountToPay: number;
100
+ overage: number;
101
+ };
102
+
103
+ type Summary = {
104
+ companyTax: AmountToPayWithOverage
105
+ socialContribution: AmountToPayWithOverage;
106
+ yearlyContribution: AmountToPayWithOverage;
107
+ total: AmountToPayWithOverage
108
+ amountToPay: number;
109
+ overage: number;
110
+ imputedOverage: number;
111
+ contribution: number;
112
+ limitDate: string;
113
+ amountToInpute: number;
114
+ overageRefundAsked: number;
115
+ };
116
+
117
+ type Payment = {
118
+ date: number;
119
+ phone: number;
120
+ isTransfer: number;
121
+ isCheck: number;
122
+ isElectronicPayment: number;
123
+ contribution: number;
124
+ limitDate: number;
125
+ amountToInpute: number;
126
+ };
127
+
128
+ type Administration = {
129
+ amount: number;
130
+ date: string;
131
+ operationNumber: number;
132
+ receptionDate: string;
133
+ };
134
+
135
+ export class Cerfa2572 {
136
+ siren: string;
137
+ exercice: Exercice;
138
+ society: Society;
139
+ tax: Tax;
140
+ debts: Debts;
141
+ socialContribution: SocialContribution;
142
+ yearlyContribution: YearlyContribution;
143
+ summary: Summary;
144
+ payment: Payment;
145
+ administration?: Administration;
146
+ }
147
+
148
+ export type Prepare2572Params = { idSociety: number; idExercice: number; values: Cerfa2572 };
149
+
150
+ export class ParamsGenerate2572 {}
@@ -5,6 +5,7 @@ export * from './2033';
5
5
  export * from './2035';
6
6
  export * from './2050';
7
7
  export * from './2065';
8
+ export * from './2572';
8
9
 
9
10
  export interface DeterminedResult {
10
11
  incomeExpenditure: boolean; // d'après les règles « recettes-dépenses »
@@ -0,0 +1,23 @@
1
+ import { IsBoolean, IsOptional, IsString } from 'class-validator';
2
+ import { ApiProperty, ApiPropertyOptional } from '../../../..';
3
+ import { ToBoolean } from '../../../../utils/transforms/boolean.transform';
4
+
5
+ export class CreateDocumentsParams {
6
+ @ApiProperty()
7
+ @IsString()
8
+ itemStatus: string;
9
+
10
+ @ApiProperty()
11
+ @IsString()
12
+ procedureType: string;
13
+
14
+ @ApiProperty()
15
+ @IsString()
16
+ listType: string;
17
+
18
+ @ApiPropertyOptional()
19
+ @IsBoolean()
20
+ @ToBoolean()
21
+ @IsOptional()
22
+ forceTestMode?: boolean;
23
+ }
@@ -0,0 +1,69 @@
1
+ type WSDLJeDeClare = {
2
+ url: string;
3
+ };
4
+
5
+ export type AccessKeysJeDeclare = {
6
+ login: string;
7
+ password: string;
8
+ editor: string;
9
+ software: string;
10
+ wsdl: WSDLJeDeClare;
11
+ };
12
+
13
+ export type GetDocumentParams = {
14
+ itemStatus: string;
15
+ procedureType: string;
16
+ listType: string;
17
+ forceTestMode?: boolean;
18
+ };
19
+
20
+ export type ListDocumentAvailability = DocumentAvailability[];
21
+
22
+ export type DocumentAvailability = {
23
+ 'ns2:numero': string[];
24
+ 'ns2:statut': string[];
25
+ 'ns2:typeDePiece': string[];
26
+ };
27
+
28
+ export type BankStatementCFONBStructure = {
29
+ previous: { [key: string]: string | null } | null;
30
+ transactions: LineStructure[];
31
+ last: { [key: string]: string | null } | null;
32
+ };
33
+
34
+ export type LineStructureUnknowProperty = { [key: string]: string | null } | null;
35
+ export type LineStructure = LineStructureUnknowProperty & {
36
+ detail: { [key: string]: string | null } | null;
37
+ };
38
+
39
+ export type AmountType = 'credit' | 'debit' | 'neutral' | 'unknown';
40
+
41
+ type UsableBankStatementTransaction = {
42
+ dateValue?: string;
43
+ id?: number;
44
+ label: string | null;
45
+ debit: number;
46
+ credit: number;
47
+ idCurrency: number | null;
48
+ complementaryLabel: string | null;
49
+ };
50
+
51
+ type BankStatementData = {
52
+ balance: number;
53
+ dateBalance?: string;
54
+ };
55
+
56
+ export type UsableBankStatement = {
57
+ iban: string | null;
58
+ previous: BankStatementData;
59
+ next: BankStatementData;
60
+ name: string | null;
61
+ transactions: UsableBankStatementTransaction[];
62
+ };
63
+
64
+ export type GetDocumentsParams = {
65
+ itemStatus: string;
66
+ procedureType: string;
67
+ listType: string;
68
+ forceTestMode?: boolean;
69
+ };