@silexpert/core 1.0.82 → 1.0.86

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 (167) hide show
  1. package/es/api/resources/Inpi.d.ts +61 -0
  2. package/es/api/resources/Inpi.d.ts.map +1 -0
  3. package/es/api/resources/Inpi.js +78 -0
  4. package/es/api/resources/Inpi.js.map +1 -0
  5. package/es/api/resources/prestation.d.ts +11 -0
  6. package/es/api/resources/prestation.d.ts.map +1 -0
  7. package/es/api/resources/prestation.js +12 -0
  8. package/es/api/resources/prestation.js.map +1 -0
  9. package/es/api/resources.d.ts +4 -0
  10. package/es/api/resources.d.ts.map +1 -1
  11. package/es/api/resources.js +4 -0
  12. package/es/api/resources.js.map +1 -1
  13. package/es/types/Enum/AccountType.d.ts +10 -0
  14. package/es/types/Enum/AccountType.d.ts.map +1 -1
  15. package/es/types/Enum/AccountType.js +10 -0
  16. package/es/types/Enum/AccountType.js.map +1 -1
  17. package/es/types/Enum/CerfaType.d.ts +2 -1
  18. package/es/types/Enum/CerfaType.d.ts.map +1 -1
  19. package/es/types/Enum/CerfaType.js +2 -1
  20. package/es/types/Enum/CerfaType.js.map +1 -1
  21. package/es/types/Enum/InpiType.d.ts +39 -0
  22. package/es/types/Enum/InpiType.d.ts.map +1 -0
  23. package/es/types/Enum/InpiType.js +39 -0
  24. package/es/types/Enum/InpiType.js.map +1 -0
  25. package/es/types/Enum/PrestationType.d.ts +18 -1
  26. package/es/types/Enum/PrestationType.d.ts.map +1 -1
  27. package/es/types/Enum/PrestationType.js +17 -0
  28. package/es/types/Enum/PrestationType.js.map +1 -1
  29. package/es/types/Enum/ProcessingState.d.ts +7 -0
  30. package/es/types/Enum/ProcessingState.d.ts.map +1 -0
  31. package/es/types/Enum/ProcessingState.js +8 -0
  32. package/es/types/Enum/ProcessingState.js.map +1 -0
  33. package/es/types/Enum/TimeCounterType.d.ts +42 -0
  34. package/es/types/Enum/TimeCounterType.d.ts.map +1 -1
  35. package/es/types/Enum/TimeCounterType.js +42 -0
  36. package/es/types/Enum/TimeCounterType.js.map +1 -1
  37. package/es/types/Enum/Vat.js +1 -1
  38. package/es/types/Enum/Vat.js.map +1 -1
  39. package/es/types/Interface/api/aspone/ReadInterchange.d.ts +1 -1
  40. package/es/types/Interface/api/aspone/ReadInterchange.d.ts.map +1 -1
  41. package/es/types/Interface/api/aspone/ReadInterchange.js.map +1 -1
  42. package/es/types/Interface/api/cerfa/2572.d.ts +91 -2
  43. package/es/types/Interface/api/cerfa/2572.d.ts.map +1 -1
  44. package/es/types/Interface/api/cerfa/2572.js +3 -1
  45. package/es/types/Interface/api/cerfa/2572.js.map +1 -1
  46. package/es/types/Interface/api/iDocus/CreateExport.d.ts +4 -0
  47. package/es/types/Interface/api/iDocus/CreateExport.d.ts.map +1 -0
  48. package/es/types/Interface/api/iDocus/CreateExport.js +21 -0
  49. package/es/types/Interface/api/iDocus/CreateExport.js.map +1 -0
  50. package/es/types/Interface/api/iDocus/iDocus.d.ts +35 -0
  51. package/es/types/Interface/api/iDocus/iDocus.d.ts.map +1 -0
  52. package/es/types/Interface/api/iDocus/iDocus.js +2 -0
  53. package/es/types/Interface/api/iDocus/iDocus.js.map +1 -0
  54. package/es/types/Interface/api/inpiBalance/QueryInpiBalancePaginated.d.ts +6 -0
  55. package/es/types/Interface/api/inpiBalance/QueryInpiBalancePaginated.d.ts.map +1 -0
  56. package/es/types/Interface/api/inpiBalance/QueryInpiBalancePaginated.js +41 -0
  57. package/es/types/Interface/api/inpiBalance/QueryInpiBalancePaginated.js.map +1 -0
  58. package/es/types/Interface/api/inpiBalance/QueryInpiBalanceStatistic.d.ts +4 -0
  59. package/es/types/Interface/api/inpiBalance/QueryInpiBalanceStatistic.d.ts.map +1 -0
  60. package/es/types/Interface/api/inpiBalance/QueryInpiBalanceStatistic.js +21 -0
  61. package/es/types/Interface/api/inpiBalance/QueryInpiBalanceStatistic.js.map +1 -0
  62. package/es/types/Interface/api/inpiBalance/inpiBalanceStatistic.d.ts +6 -0
  63. package/es/types/Interface/api/inpiBalance/inpiBalanceStatistic.d.ts.map +1 -0
  64. package/es/types/Interface/api/inpiBalance/inpiBalanceStatistic.js +2 -0
  65. package/es/types/Interface/api/inpiBalance/inpiBalanceStatistic.js.map +1 -0
  66. package/es/types/Interface/api/inpiPayment/QueryInpiPaymentPaginated.d.ts +10 -0
  67. package/es/types/Interface/api/inpiPayment/QueryInpiPaymentPaginated.d.ts.map +1 -0
  68. package/es/types/Interface/api/inpiPayment/QueryInpiPaymentPaginated.js +75 -0
  69. package/es/types/Interface/api/inpiPayment/QueryInpiPaymentPaginated.js.map +1 -0
  70. package/es/types/Interface/api/inpiPayment/QueryInpiPaymentStatistic.d.ts +4 -0
  71. package/es/types/Interface/api/inpiPayment/QueryInpiPaymentStatistic.d.ts.map +1 -0
  72. package/es/types/Interface/api/inpiPayment/QueryInpiPaymentStatistic.js +21 -0
  73. package/es/types/Interface/api/inpiPayment/QueryInpiPaymentStatistic.js.map +1 -0
  74. package/es/types/Interface/api/pdf/ReadPdftkizer.d.ts +2 -0
  75. package/es/types/Interface/api/pdf/ReadPdftkizer.d.ts.map +1 -0
  76. package/es/types/Interface/api/pdf/ReadPdftkizer.js +2 -0
  77. package/es/types/Interface/api/pdf/ReadPdftkizer.js.map +1 -0
  78. package/es/types/Interface/models/IAccountingTransaction.d.ts +1 -0
  79. package/es/types/Interface/models/IAccountingTransaction.d.ts.map +1 -1
  80. package/es/types/Interface/models/IAccountingTransaction.js.map +1 -1
  81. package/es/types/Interface/models/IInpiBalance.d.ts +10 -0
  82. package/es/types/Interface/models/IInpiBalance.d.ts.map +1 -0
  83. package/es/types/Interface/models/IInpiBalance.js +2 -0
  84. package/es/types/Interface/models/IInpiBalance.js.map +1 -0
  85. package/es/types/Interface/models/IInpiPayment.d.ts +29 -0
  86. package/es/types/Interface/models/IInpiPayment.d.ts.map +1 -0
  87. package/es/types/Interface/models/IInpiPayment.js +2 -0
  88. package/es/types/Interface/models/IInpiPayment.js.map +1 -0
  89. package/es/types/index.d.ts +13 -0
  90. package/es/types/index.d.ts.map +1 -1
  91. package/es/types/index.js +13 -0
  92. package/es/types/index.js.map +1 -1
  93. package/es/utils/commercialManagement/templates/body.js +2 -2
  94. package/es/utils/commercialManagement/templates/body.js.map +1 -1
  95. package/js/api/resources/Inpi.js +113 -0
  96. package/js/api/resources/Inpi.js.map +1 -0
  97. package/js/api/resources/prestation.js +23 -0
  98. package/js/api/resources/prestation.js.map +1 -0
  99. package/js/api/resources.js +6 -0
  100. package/js/api/resources.js.map +1 -1
  101. package/js/types/Enum/AccountType.js +10 -0
  102. package/js/types/Enum/AccountType.js.map +1 -1
  103. package/js/types/Enum/CerfaType.js +2 -1
  104. package/js/types/Enum/CerfaType.js.map +1 -1
  105. package/js/types/Enum/InpiType.js +44 -0
  106. package/js/types/Enum/InpiType.js.map +1 -0
  107. package/js/types/Enum/PrestationType.js +17 -0
  108. package/js/types/Enum/PrestationType.js.map +1 -1
  109. package/js/types/Enum/ProcessingState.js +14 -0
  110. package/js/types/Enum/ProcessingState.js.map +1 -0
  111. package/js/types/Enum/TimeCounterType.js +42 -0
  112. package/js/types/Enum/TimeCounterType.js.map +1 -1
  113. package/js/types/Enum/Vat.js +1 -1
  114. package/js/types/Enum/Vat.js.map +1 -1
  115. package/js/types/Interface/api/aspone/ReadInterchange.js.map +1 -1
  116. package/js/types/Interface/api/cerfa/2572.js +6 -2
  117. package/js/types/Interface/api/cerfa/2572.js.map +1 -1
  118. package/js/types/Interface/api/iDocus/CreateExport.js +29 -0
  119. package/js/types/Interface/api/iDocus/CreateExport.js.map +1 -0
  120. package/js/types/Interface/api/iDocus/iDocus.js +6 -0
  121. package/js/types/Interface/api/iDocus/iDocus.js.map +1 -0
  122. package/js/types/Interface/api/inpiBalance/QueryInpiBalancePaginated.js +47 -0
  123. package/js/types/Interface/api/inpiBalance/QueryInpiBalancePaginated.js.map +1 -0
  124. package/js/types/Interface/api/inpiBalance/QueryInpiBalanceStatistic.js +31 -0
  125. package/js/types/Interface/api/inpiBalance/QueryInpiBalanceStatistic.js.map +1 -0
  126. package/js/types/Interface/api/inpiBalance/inpiBalanceStatistic.js +6 -0
  127. package/js/types/Interface/api/inpiBalance/inpiBalanceStatistic.js.map +1 -0
  128. package/js/types/Interface/api/inpiPayment/QueryInpiPaymentPaginated.js +73 -0
  129. package/js/types/Interface/api/inpiPayment/QueryInpiPaymentPaginated.js.map +1 -0
  130. package/js/types/Interface/api/inpiPayment/QueryInpiPaymentStatistic.js +31 -0
  131. package/js/types/Interface/api/inpiPayment/QueryInpiPaymentStatistic.js.map +1 -0
  132. package/js/types/Interface/api/pdf/ReadPdftkizer.js +6 -0
  133. package/js/types/Interface/api/pdf/ReadPdftkizer.js.map +1 -0
  134. package/js/types/Interface/models/IInpiBalance.js +6 -0
  135. package/js/types/Interface/models/IInpiBalance.js.map +1 -0
  136. package/js/types/Interface/models/IInpiPayment.js +6 -0
  137. package/js/types/Interface/models/IInpiPayment.js.map +1 -0
  138. package/js/types/index.js +156 -0
  139. package/js/types/index.js.map +1 -1
  140. package/js/utils/commercialManagement/templates/body.js +2 -2
  141. package/js/utils/commercialManagement/templates/body.js.map +1 -1
  142. package/package.json +1 -1
  143. package/ts/api/resources/Inpi.ts +89 -0
  144. package/ts/api/resources/prestation.ts +15 -0
  145. package/ts/api/resources.ts +4 -0
  146. package/ts/types/Enum/AccountType.ts +10 -0
  147. package/ts/types/Enum/CerfaType.ts +2 -1
  148. package/ts/types/Enum/InpiType.ts +40 -0
  149. package/ts/types/Enum/PrestationType.ts +17 -0
  150. package/ts/types/Enum/ProcessingState.ts +6 -0
  151. package/ts/types/Enum/TimeCounterType.ts +42 -0
  152. package/ts/types/Enum/Vat.ts +1 -1
  153. package/ts/types/Interface/api/aspone/ReadInterchange.ts +1 -1
  154. package/ts/types/Interface/api/cerfa/2572.ts +88 -2
  155. package/ts/types/Interface/api/iDocus/CreateExport.ts +10 -0
  156. package/ts/types/Interface/api/iDocus/iDocus.ts +35 -0
  157. package/ts/types/Interface/api/inpiBalance/QueryInpiBalancePaginated.ts +28 -0
  158. package/ts/types/Interface/api/inpiBalance/QueryInpiBalanceStatistic.ts +10 -0
  159. package/ts/types/Interface/api/inpiBalance/inpiBalanceStatistic.ts +5 -0
  160. package/ts/types/Interface/api/inpiPayment/QueryInpiPaymentPaginated.ts +58 -0
  161. package/ts/types/Interface/api/inpiPayment/QueryInpiPaymentStatistic.ts +10 -0
  162. package/ts/types/Interface/api/pdf/ReadPdftkizer.ts +1 -0
  163. package/ts/types/Interface/models/IAccountingTransaction.ts +1 -0
  164. package/ts/types/Interface/models/IInpiBalance.ts +12 -0
  165. package/ts/types/Interface/models/IInpiPayment.ts +31 -0
  166. package/ts/types/index.ts +13 -0
  167. package/ts/utils/commercialManagement/templates/body.ts +2 -2
@@ -0,0 +1,89 @@
1
+ import { Resource } from '../Resource';
2
+ import {
3
+ BasePaginate, IInpiBalance, ReadInpiBalanceStatistic, QueryInpiBalancePaginated, QueryInpiBalanceStatistic, IInpiPayment, QueryInpiPaymentPaginated, QueryInpiPaymentStatistic,
4
+ } from '../../types';
5
+
6
+ export class Inpi extends Resource {
7
+ /**
8
+ * Créer un enregistrement dans la table InpiBalance
9
+ * @param { IInpiBalance } payload
10
+ * @returns { IInpiBalance }
11
+ */
12
+ public createBalance(payload: IInpiBalance): Promise<IInpiBalance> {
13
+ return this.axios.$post('/inpi/balances', payload);
14
+ }
15
+
16
+ /**
17
+ * Update un enregistrement dans la table InpiBalance
18
+ * @param { number } id
19
+ * @param { Partial<IInpiBalance> } payload
20
+ * @returns { boolean }
21
+ */
22
+ public updateBalance(id: number, payload: Partial<IInpiBalance>): Promise<boolean> {
23
+ return this.axios.$put(`/inpi/balances/${id}`, payload);
24
+ }
25
+
26
+ /**
27
+ * Retourne les enregistrement de la table InpiBalance sous format paginé
28
+ * @param { QueryInpiBalancePaginated } params
29
+ * @returns { BasePaginate<IInpiBalance> }
30
+ */
31
+ public getBalancePaginate(params: QueryInpiBalancePaginated): Promise<BasePaginate<IInpiBalance>> {
32
+ return this.axios.$get('/inpi/balances/paginate', { params });
33
+ }
34
+
35
+ /**
36
+ * Retourne les statistic pour le solde des Inpi
37
+ * @param { QueryInpiBalanceStatistic } params
38
+ * @returns { ReadInpiBalanceStatistic }
39
+ */
40
+ public getBalanceStatistic(params: QueryInpiBalanceStatistic): Promise<ReadInpiBalanceStatistic> {
41
+ return this.axios.$get('/inpi/balances/statistic', { params });
42
+ }
43
+
44
+ /**
45
+ * Créer un enregistrement dans la table InpiPayment
46
+ * @param { IInpiPayment } payload
47
+ * @returns { IInpiPayment }
48
+ */
49
+ public createPayment(payload: IInpiPayment): Promise<IInpiPayment> {
50
+ return this.axios.$post('/inpi/payments', payload);
51
+ }
52
+
53
+ /**
54
+ * Update un enregistrement dans la table InpiPayment
55
+ * @param { number } id
56
+ * @param { Partial<IInpiPayment> } payload
57
+ * @returns { boolean }
58
+ */
59
+ public updatePayment(id: number, payload: Partial<IInpiPayment>): Promise<boolean> {
60
+ return this.axios.$put(`/inpi/payments/${id}`, payload);
61
+ }
62
+
63
+ /**
64
+ * Delete un enregistrement de la table InpiPayment
65
+ * @param { number } id
66
+ * @returns { boolean }
67
+ */
68
+ public deletePayment(id: number): Promise<boolean> {
69
+ return this.axios.$delete(`/inpi/payments/${id}`);
70
+ }
71
+
72
+ /**
73
+ * Retourne les enregistrement de la table InpiPayment sous format paginé
74
+ * @param { QueryInpiPaymentPaginated } params
75
+ * @returns { BasePaginate<IInpiPayment> }
76
+ */
77
+ public getPaymentPaginate(params: QueryInpiPaymentPaginated): Promise<BasePaginate<IInpiPayment>> {
78
+ return this.axios.$get('/inpi/payments/paginate', { params });
79
+ }
80
+
81
+ /**
82
+ * Retourne les statistic mensuel pour les commissions hors taxes
83
+ * @param { QueryInpiPaymentStatistic } params
84
+ * @returns { string[] }
85
+ */
86
+ public getPaymentStatistic(params: QueryInpiPaymentStatistic): Promise<string[]> {
87
+ return this.axios.$get('/inpi/payments/commission/statistic', { params });
88
+ }
89
+ }
@@ -0,0 +1,15 @@
1
+ import { Resource } from '../Resource';
2
+ import {
3
+ IPrestation,
4
+ } from '../../types';
5
+
6
+ export class Prestation extends Resource {
7
+ /**
8
+ * retourne toutes les prestations juridique d'une société
9
+ * @param { number } id
10
+ * @returns { IPrestation }
11
+ */
12
+ public getAllJuridicFromSociety(id: number): Promise<IPrestation> {
13
+ return this.axios.$get(`/prestation/society/${id}/juridicals`);
14
+ }
15
+ }
@@ -109,6 +109,8 @@ import { SlowDetection } from './resources/SlowDetection';
109
109
  import { Sources } from './resources/Sources';
110
110
  import { Commercial } from './resources/Commercial';
111
111
  import { Facturation } from './resources/Facturation';
112
+ import { Inpi } from './resources/Inpi';
113
+ import { Prestation } from './resources/prestation';
112
114
 
113
115
  export const resources = {
114
116
  simulation: Simulation,
@@ -221,5 +223,7 @@ export const resources = {
221
223
  paymentExpectation: PaymentExpectation,
222
224
  terminationList: TerminationList,
223
225
  slowDetection: SlowDetection,
226
+ inpi: Inpi,
227
+ prestation: Prestation,
224
228
  sources: Sources,
225
229
  };
@@ -119,4 +119,14 @@ export const AccountType = {
119
119
  color: '#CCCCCC',
120
120
  icon: 'CapitalAssets',
121
121
  },
122
+ ACHATS_MATIERE_PREMIERE: {
123
+ id: 29,
124
+ color: '#FBD65C',
125
+ icon: 'Buyings',
126
+ },
127
+ ACHATS_EXTERNES: {
128
+ id: 30,
129
+ color: '#FBD65C',
130
+ icon: 'Buyings',
131
+ },
122
132
  };
@@ -11,5 +11,6 @@ export enum CerfaType {
11
11
  CERFA_2065 = 10,
12
12
  CERFA_2070 = 11,
13
13
  CERFA_2072 = 12,
14
- CERFA_2572 = 13,
14
+ CERFA_2572_2022 = 13,
15
+ CERFA_2572_2023 = 14,
15
16
  }
@@ -0,0 +1,40 @@
1
+ export const InpiCostType = {
2
+ GREFFE: {
3
+ id: 1,
4
+ label: 'Greffe',
5
+ },
6
+ CMA: {
7
+ id: 2,
8
+ label: 'CMA',
9
+ },
10
+ OTHER: {
11
+ id: 3,
12
+ label: 'Autres Greffe',
13
+ },
14
+ };
15
+
16
+ export const InpiState = {
17
+ IN_PROGRESS: {
18
+ id: 1,
19
+ label: 'En cours de paiement client',
20
+ },
21
+ CUSTOMER_CANCELLED: {
22
+ id: 2,
23
+ label: 'Annulé problème client',
24
+ },
25
+ VALIDATED: {
26
+ id: 3,
27
+ label: 'Validé',
28
+ },
29
+ };
30
+
31
+ export const InpiPaymentType = {
32
+ PACKAGE: {
33
+ id: 1,
34
+ label: 'Forfait',
35
+ },
36
+ PAYMENT_LINK: {
37
+ id: 2,
38
+ label: 'Lien de paiement',
39
+ },
40
+ };
@@ -162,6 +162,7 @@ export enum PrestationType {
162
162
  COMPTA_POURCENTAGE_EXPRESS = 207,
163
163
  COMPTA_POURCENTAGE_PREMIUM_EXPRESS = 208,
164
164
  ANNONCE_LEGALE = 209,
165
+ FRAIS_DE_GREFFE = 210,
165
166
  }
166
167
 
167
168
  export const PrestationDetail = {
@@ -2774,4 +2775,20 @@ export const PrestationDetail = {
2774
2775
  signaturePosition: '308,68,563,131',
2775
2776
  signaturePage: 7,
2776
2777
  },
2778
+ FRAIS_DE_GREFFE: {
2779
+ id: 210,
2780
+ name: 'Annonces légales',
2781
+ isComptable: 0,
2782
+ isJuridique: 1,
2783
+ isSocial: 0,
2784
+ isAttestation: 0,
2785
+ inAverageCart: 0,
2786
+ isBack: 0,
2787
+ price: null,
2788
+ isCatalog: 0,
2789
+ hidden: 0,
2790
+ isComplementary: 0,
2791
+ signaturePosition: '',
2792
+ signaturePage: 0,
2793
+ },
2777
2794
  };
@@ -0,0 +1,6 @@
1
+ export enum ProcessingState {
2
+ NO_PROCESS = 0,
3
+ SEND_IDOCUS = 1,
4
+ DONE_IDOCUS = 2,
5
+ ALREADY_LOCKED = 3,
6
+ }
@@ -197,4 +197,46 @@ export const TimeCounterType = {
197
197
  limitedRoles: null,
198
198
  color: 'orange-light',
199
199
  },
200
+ PHYSIC_UPKEEP: {
201
+ id: 29,
202
+ label: 'Entretien physique',
203
+ aberrantTime: 30,
204
+ limitedRoles: [Role.HUMAN_RESSOURCES],
205
+ color: 'success',
206
+ },
207
+ VISIO_UPKEEP: {
208
+ id: 30,
209
+ label: 'Entretien viso-conférence',
210
+ aberrantTime: 30,
211
+ limitedRoles: [Role.HUMAN_RESSOURCES],
212
+ color: 'success',
213
+ },
214
+ PREQUALIF_TEL: {
215
+ id: 31,
216
+ label: 'Pré-qualification téléphonique',
217
+ aberrantTime: 30,
218
+ limitedRoles: [Role.HUMAN_RESSOURCES],
219
+ color: 'success',
220
+ },
221
+ HUMAN_RESSOURCES_POINT: {
222
+ id: 32,
223
+ label: 'Point RH',
224
+ aberrantTime: 30,
225
+ limitedRoles: [Role.HUMAN_RESSOURCES],
226
+ color: 'cerulean',
227
+ },
228
+ ADMINISTRATIV: {
229
+ id: 33,
230
+ label: 'Administratif',
231
+ aberrantTime: 30,
232
+ limitedRoles: [Role.HUMAN_RESSOURCES],
233
+ color: 'iris',
234
+ },
235
+ INTEGRATION_DAY: {
236
+ id: 34,
237
+ label: 'Journée d’intégration',
238
+ aberrantTime: 30,
239
+ limitedRoles: [Role.HUMAN_RESSOURCES],
240
+ color: 'orange',
241
+ },
200
242
  };
@@ -30,7 +30,7 @@ export const Vat:VatTypeEnum = {
30
30
  roundPercentage: [0],
31
31
  isVatImportation: false,
32
32
  isVatIntracom: false,
33
- saleName: 'Hors-Taxe',
33
+ saleName: 'HT',
34
34
  },
35
35
  TX_5_5: {
36
36
  id: 2,
@@ -57,7 +57,7 @@ export class Redactor {
57
57
  type Tag = 'Valeur' | 'AdresseVille' | 'AdresseVoie' | 'AdresseCodePays' | 'AdresseComplement' | 'AdresseCodePostal' | 'AdresseHameau' | 'Telephone' | 'Designation' | 'DesignationSuite1' | 'DesignationSuite2' | 'Identifiant' | 'TexteLibre1' | 'TexteLibre2' | 'DesignationSuite3' | 'AdresseNumero';
58
58
  type Tags = Array<{ description: string; tag: Tag; value: any }>;
59
59
 
60
- interface FieldForGeneration {
60
+ export interface FieldForGeneration {
61
61
  tag?: Tag;
62
62
  tags?: Tags,
63
63
  description?: string;
@@ -1,3 +1,4 @@
1
+ import { CerfaType } from '../../../Enum/CerfaType';
1
2
  import { Termination, CerfaAddress } from './ReadCerfa';
2
3
 
3
4
  type BaseAndAmount = {
@@ -14,6 +15,14 @@ type Tax = {
14
15
  total: number;
15
16
  };
16
17
 
18
+ type Tax_2023 = {
19
+ normalRate: BaseAndAmount;
20
+ reduceRate: BaseAndAmount;
21
+ addedValue: { amount: number; }
22
+ other: { amount: number; }
23
+ total: number;
24
+ };
25
+
17
26
  type Exercice = {
18
27
  startDate: string;
19
28
  endDate: string;
@@ -85,6 +94,63 @@ type Debts = {
85
94
  CSB: { base: number };
86
95
  };
87
96
 
97
+ type Debts_2023 = {
98
+ onCompanyTax: number;
99
+ notOnCompanyTax: number;
100
+ VEL: number;
101
+ PRE: number;
102
+ new: number;
103
+ companyTaxAfterImputation: number;
104
+ reducedTax: {
105
+ inEurope: number;
106
+ amount: number;
107
+ }
108
+ balanceInPreviousExercises: number;
109
+ jobCredit: PreFinancingWithAmount;
110
+ jobCreditForLongExercises: PreFinancingWithAmount;
111
+ jobCreditForPreviousExercises: number;
112
+ corse: number;
113
+ CORInPreviousExercise: number;
114
+ deficit: number;
115
+ RADInPreviousExercise: number;
116
+ CIRcredit: number;
117
+ CIRsolde: number;
118
+ CRCcredit: number;
119
+ CRCsolde: number;
120
+ reportedInLine2B11: number;
121
+ subTotal: number;
122
+ inDepositLimit: number;
123
+ balanceDebtInPreviousExercises: number;
124
+ reducedTaxOuterSea: number;
125
+ balanceInPreviousExercisesOuterSea: number;
126
+ FOR: number;
127
+ RAC: number;
128
+ FAM: number;
129
+ CIN: number;
130
+ BIO: number;
131
+ PHO: number;
132
+ AUD: number;
133
+ ART: number;
134
+ CJV: number;
135
+ CPE: number;
136
+ CCI: number;
137
+ PTR: number;
138
+ CIO: PreFinancingWithAmount;
139
+ COL: PreFinancingWithAmount;
140
+ CSV: number;
141
+ REB: number;
142
+ RTD: number;
143
+ CPG: number;
144
+ HVE: number;
145
+ EOM: number;
146
+ newUnlistedReceivables: number;
147
+ inLine2C22: number;
148
+ subTotal2: number;
149
+ afterImputation: number;
150
+ payment: number;
151
+ taxAmount: number;
152
+ };
153
+
88
154
  type SocialContribution = {
89
155
  CSB: BaseAndAmount;
90
156
  strangers: number;
@@ -117,6 +183,8 @@ type Summary = {
117
183
  overageRefundAsked: number;
118
184
  };
119
185
 
186
+ type Summary_2023 = Summary & { temporaryContribution: number; };
187
+
120
188
  type Payment = {
121
189
  date: number;
122
190
  phone: number;
@@ -135,7 +203,7 @@ type Administration = {
135
203
  receptionDate: string;
136
204
  };
137
205
 
138
- export class Cerfa2572 {
206
+ export class Cerfa2572_2022 {
139
207
  siren: string;
140
208
  exercice: Exercice;
141
209
  society: Society;
@@ -149,6 +217,24 @@ export class Cerfa2572 {
149
217
  termination: Termination;
150
218
  }
151
219
 
152
- export type Prepare2572Params = { idSociety: number; idExercice: number; values: Cerfa2572 };
220
+ export class Cerfa2572_2023 {
221
+ siren: string;
222
+ exercice: Exercice;
223
+ society: Society;
224
+ tax: Tax_2023;
225
+ debts: Debts_2023;
226
+ socialContribution: SocialContribution;
227
+ yearlyContribution: YearlyContribution;
228
+ summary: Summary_2023;
229
+ payment: Payment;
230
+ administration?: Administration;
231
+ termination: Termination;
232
+ temporaryContribution: {
233
+ solidarityRange: number;
234
+ solidarityAmount: number;
235
+ };
236
+ }
237
+
238
+ export type Prepare2572Params = { idSociety: number; idExercice: number; values: Cerfa2572_2022 | Cerfa2572_2023, idCerfaType: CerfaType.CERFA_2572_2022 | CerfaType.CERFA_2572_2023 };
153
239
 
154
240
  export class ParamsGenerate2572 {}
@@ -0,0 +1,10 @@
1
+ import { IsInt, IsOptional, IsPositive } from 'class-validator';
2
+ import { ApiPropertyOptional } from '../../../../utils';
3
+
4
+ export class CreateExport {
5
+ @ApiPropertyOptional()
6
+ @IsOptional()
7
+ @IsInt()
8
+ @IsPositive()
9
+ limit?: number;
10
+ }
@@ -0,0 +1,35 @@
1
+ export type HookPayload = {
2
+ external_id: number; // Votre id
3
+ parent_external_id: number;// Votre id
4
+ currency: string; // Devise
5
+ date: string; // Date de facture
6
+ supplier: string; // Nom fournisseur
7
+ iban: string; // Iban
8
+ vat_identifier: string; // Identifiant de TVA du fournisseur
9
+ due_date: string; // Date d'échéance
10
+ invoice_number: string; // Numéro de facture
11
+ category: string; // Catégorie selon votre nomenclature
12
+ amount_without_taxes: number; // Montant HT
13
+ original_amount_without_taxes: number; // Montant original HT en devise si devise
14
+ original_total_amount: number; // Montant original TTC en devise si devise
15
+ tax_amount: number; // Total TVA
16
+ total_amount: number; // Total TTC
17
+ error_code: string; // Code erreur sous forme de string
18
+ controlled: boolean; // Passé en contrôle qualité
19
+ page_count: number; // Nombre de pages
20
+ observation: string; // Observation du con
21
+ file_base64: string;// Le document découpé
22
+ };
23
+
24
+ type Document = {
25
+ external_id: number, // L'Id du document chez vous
26
+ file_base64: string, // Le base 64 du document, on peut aussi fonctionner par URL
27
+ document_type: 'purchases' | 'sales' | 'bank', // Le type de doc
28
+ sender: string, // Votre client
29
+ callbackurl: string, // L'URL sur laquelle vous envoyer le callback une fois le traitement fini
30
+ account_numbers?: string[] // Les comptes bancaires à traiter sur le relevé (si bank)
31
+ };
32
+
33
+ export type PayloadIDocus = {
34
+ document: Document
35
+ };
@@ -0,0 +1,28 @@
1
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
2
+
3
+ export class QueryInpiBalancePaginated {
4
+ @ApiProperty({
5
+ description: 'limit of element',
6
+ required: true,
7
+ type: Number,
8
+ default: 50,
9
+ example: 50,
10
+ })
11
+ limit: number;
12
+
13
+ @ApiProperty({
14
+ description: 'limit of element',
15
+ required: true,
16
+ type: Number,
17
+ default: 1,
18
+ example: 5,
19
+ })
20
+ page: number;
21
+
22
+ @ApiPropertyOptional({
23
+ description: 'end date of the paginated',
24
+ required: false,
25
+ type: String,
26
+ })
27
+ endDate: string;
28
+ }
@@ -0,0 +1,10 @@
1
+ import { ApiPropertyOptional } from '../../../../utils';
2
+
3
+ export class QueryInpiBalanceStatistic {
4
+ @ApiPropertyOptional({
5
+ description: 'date end of the statistic',
6
+ required: false,
7
+ type: String,
8
+ })
9
+ endDate: string;
10
+ }
@@ -0,0 +1,5 @@
1
+ export interface ReadInpiBalanceStatistic {
2
+ balance: number,
3
+ commissionTaxIncluded: number,
4
+ commissionTaxExcluded: number,
5
+ }
@@ -0,0 +1,58 @@
1
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
2
+
3
+ export class QueryInpiPaymentPaginated {
4
+ @ApiProperty({
5
+ description: 'limit of element',
6
+ required: true,
7
+ type: Number,
8
+ default: 50,
9
+ example: 50,
10
+ })
11
+ limit: number;
12
+
13
+ @ApiProperty({
14
+ description: 'limit of element',
15
+ required: true,
16
+ type: Number,
17
+ default: 1,
18
+ example: 5,
19
+ })
20
+ page: number;
21
+
22
+ @ApiPropertyOptional({
23
+ description: 'list of selected cost type',
24
+ required: false,
25
+ type: String,
26
+ example: 'test',
27
+ })
28
+ search: string;
29
+
30
+ @ApiPropertyOptional({
31
+ description: 'list of selected cost type',
32
+ required: false,
33
+ example: [1, 2, 3],
34
+ })
35
+ costType: number[];
36
+
37
+ @ApiPropertyOptional({
38
+ description: 'end date of the paginated',
39
+ required: false,
40
+ type: String,
41
+ })
42
+ endDate: string;
43
+
44
+ @ApiPropertyOptional({
45
+ description: 'list of selected state',
46
+ required: false,
47
+ example: [1, 2, 3],
48
+ })
49
+ state: number[];
50
+
51
+ @ApiPropertyOptional({
52
+ description: 'id of a selected user',
53
+ required: false,
54
+ type: Number,
55
+ example: 1,
56
+ })
57
+ idUser: number;
58
+ }
@@ -0,0 +1,10 @@
1
+ import { ApiProperty } from '../../../../utils';
2
+
3
+ export class QueryInpiPaymentStatistic {
4
+ @ApiProperty({
5
+ description: 'date end of the statistic',
6
+ required: true,
7
+ type: Date,
8
+ })
9
+ endDate: Date;
10
+ }
@@ -0,0 +1 @@
1
+ export type ReadPdftkizerFill = string;
@@ -39,6 +39,7 @@ export interface IAccountingTransaction {
39
39
  invoiceRequested?: boolean;
40
40
  isLockedMobile?: boolean;
41
41
  isAlreadyProcessByOcr?: boolean | null;
42
+ processingState?: number;
42
43
  idBankAccount: number | null;
43
44
  idSociety: number;
44
45
  idCurrency?: number | null;
@@ -0,0 +1,12 @@
1
+ import { IUser } from './IUser';
2
+
3
+ export interface IInpiBalance {
4
+ id?: number,
5
+ balance: number,
6
+ idUser: number,
7
+ createdAt?: Date;
8
+ updatedAt?: Date;
9
+
10
+ // Associations
11
+ user?: IUser;
12
+ }
@@ -0,0 +1,31 @@
1
+ import { ISociety } from './ISociety';
2
+ import { IUser } from './IUser';
3
+ import { IExercice } from './IExercice';
4
+ import { IPrestation } from './IPrestation';
5
+ import { IPaymentExpectation } from './IPaymentExpectation';
6
+
7
+ export interface IInpiPayment {
8
+ id?: number,
9
+ costType: string,
10
+ fileNumber: number,
11
+ amount: number,
12
+ commission: number,
13
+ type: number,
14
+ state: number,
15
+ idSociety: number
16
+ idUserWhoCreated: number,
17
+ idExercice: number,
18
+ idPrestationRelated: number,
19
+ idPrestation?: number,
20
+ idPaymentExpectation?: number,
21
+ createdAt?: Date;
22
+ updatedAt?: Date;
23
+
24
+ // Associations
25
+ society?: ISociety;
26
+ userWhoCreated?: IUser;
27
+ exercice?: IExercice;
28
+ prestationRelated?: IPrestation;
29
+ prestation?: IPrestation;
30
+ paymentExpectation?: IPaymentExpectation;
31
+ }