@silexpert/core 1.3.130-0 → 1.3.131-1

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 (165) hide show
  1. package/dist/cjs/api/resources/Mfa.d.ts +16 -0
  2. package/dist/cjs/api/resources/Mfa.d.ts.map +1 -0
  3. package/dist/cjs/api/resources/Mfa.js +23 -0
  4. package/dist/cjs/api/resources/Mfa.js.map +1 -0
  5. package/dist/cjs/api/resources.d.ts +2 -2
  6. package/dist/cjs/api/resources.d.ts.map +1 -1
  7. package/dist/cjs/api/resources.js +2 -2
  8. package/dist/cjs/api/resources.js.map +1 -1
  9. package/dist/cjs/types/Enum/PrestationType.d.ts.map +1 -1
  10. package/dist/cjs/types/Enum/PrestationType.js +8 -15
  11. package/dist/cjs/types/Enum/PrestationType.js.map +1 -1
  12. package/dist/cjs/types/Enum/SalesContractBrandClementine.d.ts.map +1 -1
  13. package/dist/cjs/types/Enum/SalesContractBrandClementine.js +7 -22
  14. package/dist/cjs/types/Enum/SalesContractBrandClementine.js.map +1 -1
  15. package/dist/cjs/types/Interface/api/authentification/AuthenticationResponse.d.ts +7 -0
  16. package/dist/cjs/types/Interface/api/authentification/AuthenticationResponse.d.ts.map +1 -0
  17. package/dist/cjs/types/Interface/api/authentification/AuthenticationResponse.js +3 -0
  18. package/dist/cjs/types/Interface/api/authentification/AuthenticationResponse.js.map +1 -0
  19. package/dist/cjs/types/Interface/api/mfa/DisableMfa.dto.d.ts +4 -0
  20. package/dist/cjs/types/Interface/api/mfa/DisableMfa.dto.d.ts.map +1 -0
  21. package/dist/cjs/types/Interface/api/mfa/DisableMfa.dto.js +21 -0
  22. package/dist/cjs/types/Interface/api/mfa/DisableMfa.dto.js.map +1 -0
  23. package/dist/cjs/types/Interface/api/mfa/SetupInit.dto.d.ts +5 -0
  24. package/dist/cjs/types/Interface/api/mfa/SetupInit.dto.d.ts.map +1 -0
  25. package/dist/cjs/types/Interface/api/mfa/SetupInit.dto.js +25 -0
  26. package/dist/cjs/types/Interface/api/mfa/SetupInit.dto.js.map +1 -0
  27. package/dist/cjs/types/Interface/api/mfa/SetupVerify.dto.d.ts +5 -0
  28. package/dist/cjs/types/Interface/api/mfa/SetupVerify.dto.d.ts.map +1 -0
  29. package/dist/cjs/types/Interface/api/mfa/SetupVerify.dto.js +25 -0
  30. package/dist/cjs/types/Interface/api/mfa/SetupVerify.dto.js.map +1 -0
  31. package/dist/cjs/types/Interface/api/mfa/VerifyCode.dto.d.ts +5 -0
  32. package/dist/cjs/types/Interface/api/mfa/VerifyCode.dto.d.ts.map +1 -0
  33. package/dist/cjs/types/Interface/api/mfa/VerifyCode.dto.js +26 -0
  34. package/dist/cjs/types/Interface/api/mfa/VerifyCode.dto.js.map +1 -0
  35. package/dist/cjs/types/Interface/api/mfa/VerifyRecoveryCode.dto.d.ts +5 -0
  36. package/dist/cjs/types/Interface/api/mfa/VerifyRecoveryCode.dto.d.ts.map +1 -0
  37. package/dist/cjs/types/Interface/api/mfa/VerifyRecoveryCode.dto.js +26 -0
  38. package/dist/cjs/types/Interface/api/mfa/VerifyRecoveryCode.dto.js.map +1 -0
  39. package/dist/cjs/types/Interface/api/mfa/mfa.d.ts +19 -0
  40. package/dist/cjs/types/Interface/api/mfa/mfa.d.ts.map +1 -0
  41. package/dist/cjs/types/Interface/api/mfa/mfa.js +3 -0
  42. package/dist/cjs/types/Interface/api/mfa/mfa.js.map +1 -0
  43. package/dist/cjs/types/Interface/api/stripe/Create.d.ts +1 -0
  44. package/dist/cjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
  45. package/dist/cjs/types/Interface/api/stripe/Create.js +6 -0
  46. package/dist/cjs/types/Interface/api/stripe/Create.js.map +1 -1
  47. package/dist/cjs/types/Interface/models/IAttestation.d.ts +18 -20
  48. package/dist/cjs/types/Interface/models/IAttestation.d.ts.map +1 -1
  49. package/dist/cjs/types/Interface/models/IAttestation.js.map +1 -1
  50. package/dist/cjs/types/Interface/models/IUser.d.ts +1 -0
  51. package/dist/cjs/types/Interface/models/IUser.d.ts.map +1 -1
  52. package/dist/cjs/types/Interface/models/IUser.js.map +1 -1
  53. package/dist/cjs/types/Interface/models/IUserMfa.d.ts +12 -0
  54. package/dist/cjs/types/Interface/models/IUserMfa.d.ts.map +1 -0
  55. package/dist/cjs/types/Interface/models/IUserMfa.js +3 -0
  56. package/dist/cjs/types/Interface/models/IUserMfa.js.map +1 -0
  57. package/dist/cjs/types/Interface/models/IUserMfaRecoveryCode.d.ts +9 -0
  58. package/dist/cjs/types/Interface/models/IUserMfaRecoveryCode.d.ts.map +1 -0
  59. package/dist/cjs/types/Interface/models/IUserMfaRecoveryCode.js +3 -0
  60. package/dist/cjs/types/Interface/models/IUserMfaRecoveryCode.js.map +1 -0
  61. package/dist/cjs/types/index.d.ts +1 -1
  62. package/dist/cjs/types/index.d.ts.map +1 -1
  63. package/dist/cjs/types/index.js +1 -1
  64. package/dist/cjs/types/index.js.map +1 -1
  65. package/dist/mjs/api/resources/Mfa.d.ts +16 -0
  66. package/dist/mjs/api/resources/Mfa.d.ts.map +1 -0
  67. package/dist/mjs/api/resources/Mfa.js +19 -0
  68. package/dist/mjs/api/resources/Mfa.js.map +1 -0
  69. package/dist/mjs/api/resources.d.ts +2 -2
  70. package/dist/mjs/api/resources.d.ts.map +1 -1
  71. package/dist/mjs/api/resources.js +2 -2
  72. package/dist/mjs/api/resources.js.map +1 -1
  73. package/dist/mjs/types/Enum/PrestationType.d.ts.map +1 -1
  74. package/dist/mjs/types/Enum/PrestationType.js +8 -15
  75. package/dist/mjs/types/Enum/PrestationType.js.map +1 -1
  76. package/dist/mjs/types/Enum/SalesContractBrandClementine.d.ts.map +1 -1
  77. package/dist/mjs/types/Enum/SalesContractBrandClementine.js +7 -22
  78. package/dist/mjs/types/Enum/SalesContractBrandClementine.js.map +1 -1
  79. package/dist/mjs/types/Interface/api/authentification/AuthenticationResponse.d.ts +7 -0
  80. package/dist/mjs/types/Interface/api/authentification/AuthenticationResponse.d.ts.map +1 -0
  81. package/dist/mjs/types/Interface/api/authentification/AuthenticationResponse.js +2 -0
  82. package/dist/mjs/types/Interface/api/authentification/AuthenticationResponse.js.map +1 -0
  83. package/dist/mjs/types/Interface/api/mfa/DisableMfa.dto.d.ts +4 -0
  84. package/dist/mjs/types/Interface/api/mfa/DisableMfa.dto.d.ts.map +1 -0
  85. package/dist/mjs/types/Interface/api/mfa/DisableMfa.dto.js +18 -0
  86. package/dist/mjs/types/Interface/api/mfa/DisableMfa.dto.js.map +1 -0
  87. package/dist/mjs/types/Interface/api/mfa/SetupInit.dto.d.ts +5 -0
  88. package/dist/mjs/types/Interface/api/mfa/SetupInit.dto.d.ts.map +1 -0
  89. package/dist/mjs/types/Interface/api/mfa/SetupInit.dto.js +23 -0
  90. package/dist/mjs/types/Interface/api/mfa/SetupInit.dto.js.map +1 -0
  91. package/dist/mjs/types/Interface/api/mfa/SetupVerify.dto.d.ts +5 -0
  92. package/dist/mjs/types/Interface/api/mfa/SetupVerify.dto.d.ts.map +1 -0
  93. package/dist/mjs/types/Interface/api/mfa/SetupVerify.dto.js +23 -0
  94. package/dist/mjs/types/Interface/api/mfa/SetupVerify.dto.js.map +1 -0
  95. package/dist/mjs/types/Interface/api/mfa/VerifyCode.dto.d.ts +5 -0
  96. package/dist/mjs/types/Interface/api/mfa/VerifyCode.dto.d.ts.map +1 -0
  97. package/dist/mjs/types/Interface/api/mfa/VerifyCode.dto.js +24 -0
  98. package/dist/mjs/types/Interface/api/mfa/VerifyCode.dto.js.map +1 -0
  99. package/dist/mjs/types/Interface/api/mfa/VerifyRecoveryCode.dto.d.ts +5 -0
  100. package/dist/mjs/types/Interface/api/mfa/VerifyRecoveryCode.dto.d.ts.map +1 -0
  101. package/dist/mjs/types/Interface/api/mfa/VerifyRecoveryCode.dto.js +24 -0
  102. package/dist/mjs/types/Interface/api/mfa/VerifyRecoveryCode.dto.js.map +1 -0
  103. package/dist/mjs/types/Interface/api/mfa/mfa.d.ts +19 -0
  104. package/dist/mjs/types/Interface/api/mfa/mfa.d.ts.map +1 -0
  105. package/dist/mjs/types/Interface/api/mfa/mfa.js +2 -0
  106. package/dist/mjs/types/Interface/api/mfa/mfa.js.map +1 -0
  107. package/dist/mjs/types/Interface/api/stripe/Create.d.ts +1 -0
  108. package/dist/mjs/types/Interface/api/stripe/Create.d.ts.map +1 -1
  109. package/dist/mjs/types/Interface/api/stripe/Create.js +7 -0
  110. package/dist/mjs/types/Interface/api/stripe/Create.js.map +1 -1
  111. package/dist/mjs/types/Interface/models/IAttestation.d.ts +18 -20
  112. package/dist/mjs/types/Interface/models/IAttestation.d.ts.map +1 -1
  113. package/dist/mjs/types/Interface/models/IAttestation.js.map +1 -1
  114. package/dist/mjs/types/Interface/models/IUser.d.ts +1 -0
  115. package/dist/mjs/types/Interface/models/IUser.d.ts.map +1 -1
  116. package/dist/mjs/types/Interface/models/IUser.js.map +1 -1
  117. package/dist/mjs/types/Interface/models/IUserMfa.d.ts +12 -0
  118. package/dist/mjs/types/Interface/models/IUserMfa.d.ts.map +1 -0
  119. package/dist/mjs/types/Interface/models/IUserMfa.js +2 -0
  120. package/dist/mjs/types/Interface/models/IUserMfa.js.map +1 -0
  121. package/dist/mjs/types/Interface/models/IUserMfaRecoveryCode.d.ts +9 -0
  122. package/dist/mjs/types/Interface/models/IUserMfaRecoveryCode.d.ts.map +1 -0
  123. package/dist/mjs/types/Interface/models/IUserMfaRecoveryCode.js +2 -0
  124. package/dist/mjs/types/Interface/models/IUserMfaRecoveryCode.js.map +1 -0
  125. package/dist/mjs/types/index.d.ts +1 -1
  126. package/dist/mjs/types/index.d.ts.map +1 -1
  127. package/dist/mjs/types/index.js +1 -1
  128. package/dist/mjs/types/index.js.map +1 -1
  129. package/package.json +14 -14
  130. package/ts/api/resources/Mfa.ts +24 -0
  131. package/ts/api/resources.ts +2 -2
  132. package/ts/types/Enum/PrestationType.ts +8 -15
  133. package/ts/types/Enum/SalesContractBrandClementine.ts +7 -22
  134. package/ts/types/Interface/api/authentification/AuthenticationResponse.ts +6 -0
  135. package/ts/types/Interface/api/mfa/DisableMfa.dto.ts +6 -0
  136. package/ts/types/Interface/api/mfa/SetupInit.dto.ts +9 -0
  137. package/ts/types/Interface/api/mfa/SetupVerify.dto.ts +9 -0
  138. package/ts/types/Interface/api/mfa/VerifyCode.dto.ts +10 -0
  139. package/ts/types/Interface/api/mfa/VerifyRecoveryCode.dto.ts +10 -0
  140. package/ts/types/Interface/api/mfa/mfa.ts +21 -0
  141. package/ts/types/Interface/api/mfa/setupInit +0 -0
  142. package/ts/types/Interface/api/stripe/Create.ts +5 -0
  143. package/ts/types/Interface/models/IAttestation.ts +18 -20
  144. package/ts/types/Interface/models/IUser.ts +1 -0
  145. package/ts/types/Interface/models/IUserMfa.ts +11 -0
  146. package/ts/types/Interface/models/IUserMfaRecoveryCode.ts +8 -0
  147. package/ts/types/index.ts +1 -1
  148. package/dist/cjs/api/resources/BalanceSheetReport.d.ts +0 -10
  149. package/dist/cjs/api/resources/BalanceSheetReport.d.ts.map +0 -1
  150. package/dist/cjs/api/resources/BalanceSheetReport.js +0 -23
  151. package/dist/cjs/api/resources/BalanceSheetReport.js.map +0 -1
  152. package/dist/cjs/types/Interface/api/balanceSheetReport/Query.d.ts +0 -40
  153. package/dist/cjs/types/Interface/api/balanceSheetReport/Query.d.ts.map +0 -1
  154. package/dist/cjs/types/Interface/api/balanceSheetReport/Query.js +0 -207
  155. package/dist/cjs/types/Interface/api/balanceSheetReport/Query.js.map +0 -1
  156. package/dist/mjs/api/resources/BalanceSheetReport.d.ts +0 -10
  157. package/dist/mjs/api/resources/BalanceSheetReport.d.ts.map +0 -1
  158. package/dist/mjs/api/resources/BalanceSheetReport.js +0 -22
  159. package/dist/mjs/api/resources/BalanceSheetReport.js.map +0 -1
  160. package/dist/mjs/types/Interface/api/balanceSheetReport/Query.d.ts +0 -40
  161. package/dist/mjs/types/Interface/api/balanceSheetReport/Query.d.ts.map +0 -1
  162. package/dist/mjs/types/Interface/api/balanceSheetReport/Query.js +0 -200
  163. package/dist/mjs/types/Interface/api/balanceSheetReport/Query.js.map +0 -1
  164. package/ts/api/resources/BalanceSheetReport.ts +0 -36
  165. package/ts/types/Interface/api/balanceSheetReport/Query.ts +0 -160
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "1.3.130-0",
3
+ "version": "1.3.131-1",
4
4
  "description": "Silex Core perform HTTP Request and object binding. Silex core helps developers to retrieve and return formatted object",
5
5
  "homepage": "https://gitlab.compta-clementine.fr/dev/silex-api",
6
6
  "main": "dist/cjs/index.js",
@@ -32,29 +32,29 @@
32
32
  "author": "Silex",
33
33
  "license": "ISC",
34
34
  "devDependencies": {
35
- "@babel/cli": "^7.26.4",
36
- "@babel/core": "^7.22.11",
37
- "@babel/plugin-transform-runtime": "^7.22.10",
38
- "@babel/preset-env": "^7.22.10",
39
- "@babel/runtime": "^7.22.11",
35
+ "@babel/cli": "^7.28.0",
36
+ "@babel/core": "^7.28.0",
37
+ "@babel/plugin-transform-runtime": "^7.28.0",
38
+ "@babel/preset-env": "^7.28.0",
39
+ "@babel/runtime": "^7.28.2",
40
40
  "@types/bluebird": "^3.5.34",
41
41
  "@types/browser-or-node": "^1.3.0",
42
42
  "@types/ejs": "^3.0.6",
43
43
  "@types/node": "^22.10.5",
44
- "@types/validator": "^13.11.1",
45
- "babel-plugin-replace-import-extension": "^1.1.3",
44
+ "@types/validator": "^13.15.2",
45
+ "babel-plugin-replace-import-extension": "^1.1.5",
46
46
  "babel-preset-env": "^1.7.0",
47
- "eslint": "^9.17.0",
47
+ "eslint": "^9.32.0",
48
48
  "eslint-config-airbnb-typescript": "^18.0.0",
49
- "eslint-config-prettier": "^9.1.0",
49
+ "eslint-config-prettier": "^10.1.8",
50
50
  "husky": "^9.1.7",
51
- "prettier": "^3.4.2",
51
+ "prettier": "^3.6.2",
52
52
  "reflect-metadata": "^0.2.2",
53
53
  "rimraf": "^6.0.1",
54
54
  "standard-version": "^9.3.0",
55
55
  "ts-node": "^10.9.2",
56
- "typescript": "5.8.2",
57
- "typescript-eslint": "^8.19.1"
56
+ "typescript": "5.9.2",
57
+ "typescript-eslint": "^8.39.0"
58
58
  },
59
59
  "peerDependencies": {
60
60
  "@babel/runtime": "^7.6.3",
@@ -68,7 +68,7 @@
68
68
  "axios": "0.22.0",
69
69
  "browser-or-node": "^3.0.0",
70
70
  "class-transformer": "^0.5.1",
71
- "class-validator": "^0.14.0",
71
+ "class-validator": "^0.14.2",
72
72
  "dayjs": "^1.11.11",
73
73
  "ejs": "^3.1.9",
74
74
  "libphonenumber-js": "^1.12.10",
@@ -0,0 +1,24 @@
1
+ import { MfaSetupInitResult, MfaSetupVerifyResult } from '../../types/Interface/api/mfa/mfa';
2
+ import { Resource } from '../Resource';
3
+
4
+ export class UserMfa extends Resource {
5
+ setupInit(userId: number, userEmail: string): Promise<MfaSetupInitResult> {
6
+ return this.axios.$post('/mfa/setup/init', { userId, userEmail });
7
+ }
8
+
9
+ setupVerify(userId: number, code: string): Promise<MfaSetupVerifyResult> {
10
+ return this.axios.$post('/mfa/setup/verify', { userId, code });
11
+ }
12
+
13
+ disable(userId: number): Promise<boolean> {
14
+ return this.axios.$post('/mfa/disable', { userId });
15
+ }
16
+
17
+ verifyCode(userId: number, code: string): Promise<{ success: boolean; token?: string }> {
18
+ return this.axios.$post('/mfa/verify/code', { userId, code });
19
+ }
20
+
21
+ verifyRecoveryCode(userId: number, recoveryCode: string): Promise<{ success: boolean; token?: string }> {
22
+ return this.axios.$post('/mfa/verify/recovery-code', { userId, recoveryCode });
23
+ }
24
+ }
@@ -182,7 +182,7 @@ import { Gdpr } from './resources/Gdpr';
182
182
  import { Sellsy } from './resources/Sellsy';
183
183
  import { BankDedup } from './resources/BankDedup';
184
184
  import { StripePurchase } from './resources/StripePurchase';
185
- import { BalanceSheetReport } from './resources/BalanceSheetReport';
185
+ import { UserMfa } from './resources/Mfa';
186
186
 
187
187
  export const resources = {
188
188
  budgetInsight: BudgetInsight,
@@ -318,6 +318,7 @@ export const resources = {
318
318
  visualizedInformation: VisualizedInformation,
319
319
  fusion: Fusion,
320
320
  salesContract: SalesContract,
321
+ userMfa: UserMfa,
321
322
  leadsToPartners: LeadsToPartners,
322
323
  changeLog: ChangeLog,
323
324
  constitutionHistory: ConstitutionHistory,
@@ -369,5 +370,4 @@ export const resources = {
369
370
  caarl: Caarl,
370
371
  gdpr: Gdpr,
371
372
  StripePurchase: StripePurchase,
372
- balanceSheetReport: BalanceSheetReport,
373
373
  };
@@ -239,13 +239,6 @@ export const allPrestations2025WithBrochure = [
239
239
  PrestationType.SOCIAL,
240
240
  PrestationType.GESTION_JURIDIQUE,
241
241
  PrestationType.CONSULTING_HOUR,
242
- PrestationType.ATTESTATION_REMUNERATION,
243
- PrestationType.ATTESTATION_NON_REMUNERATION,
244
- PrestationType.ATTESTATION_CA,
245
- PrestationType.ATTESTATION_COMPTE_COURANT,
246
- PrestationType.ATTESTATION_MASSE_SALARIALE,
247
- PrestationType.ATTESTATION_1,
248
- PrestationType.ATTESTATION_NON_REMUNERATION_RECURRENTE,
249
242
  ];
250
243
 
251
244
  export const ClementineSubscriptionAccountancyExpertPrestations: PrestationType[] = [
@@ -1757,7 +1750,7 @@ export const PrestationDetail: PrestationDetailEnum = {
1757
1750
  },
1758
1751
  ATTESTATION_SALAIRE: {
1759
1752
  id: 82,
1760
- name: 'Rapport de salaire',
1753
+ name: 'Attestation de salaire',
1761
1754
  isComptable: false,
1762
1755
  isJuridique: false,
1763
1756
  isSocial: true,
@@ -1985,7 +1978,7 @@ export const PrestationDetail: PrestationDetailEnum = {
1985
1978
  },
1986
1979
  ATTESTATION_REMUNERATION: {
1987
1980
  id: 95,
1988
- name: 'Rapport de rémunération',
1981
+ name: 'Attestation de rémunération',
1989
1982
  isComptable: true,
1990
1983
  isJuridique: false,
1991
1984
  isSocial: false,
@@ -2005,7 +1998,7 @@ export const PrestationDetail: PrestationDetailEnum = {
2005
1998
  // FIXME: Doublon ?
2006
1999
  ATTESTATION_NON_REMUNERATION: {
2007
2000
  id: 96,
2008
- name: 'Rapport de non-rémunération',
2001
+ name: 'Attestation de non-rémunération',
2009
2002
  isComptable: true,
2010
2003
  isJuridique: false,
2011
2004
  isSocial: false,
@@ -2024,7 +2017,7 @@ export const PrestationDetail: PrestationDetailEnum = {
2024
2017
  },
2025
2018
  ATTESTATION_CA: {
2026
2019
  id: 97,
2027
- name: "Rapport de chiffre d'affaires",
2020
+ name: "Attestation de chiffre d'affaires",
2028
2021
  isComptable: true,
2029
2022
  isJuridique: false,
2030
2023
  isSocial: false,
@@ -2043,7 +2036,7 @@ export const PrestationDetail: PrestationDetailEnum = {
2043
2036
  },
2044
2037
  ATTESTATION_COMPTE_COURANT: {
2045
2038
  id: 98,
2046
- name: 'Rapport de compte-courant',
2039
+ name: 'Attestation de compte-courant',
2047
2040
  isComptable: true,
2048
2041
  isJuridique: false,
2049
2042
  isSocial: false,
@@ -2328,7 +2321,7 @@ export const PrestationDetail: PrestationDetailEnum = {
2328
2321
  },
2329
2322
  ATTESTATION_DE_SALAIRE_MALADIE: {
2330
2323
  id: 116,
2331
- name: 'Rapport de salaire maladie',
2324
+ name: 'Attestation de salaire maladie',
2332
2325
  isComptable: true,
2333
2326
  isJuridique: false,
2334
2327
  isSocial: false,
@@ -2556,7 +2549,7 @@ export const PrestationDetail: PrestationDetailEnum = {
2556
2549
  },
2557
2550
  ATTESTATION_MASSE_SALARIALE: {
2558
2551
  id: 128,
2559
- name: 'Rapport de masse salariale',
2552
+ name: 'Attestation de masse salariale',
2560
2553
  isComptable: true,
2561
2554
  isJuridique: false,
2562
2555
  isSocial: false,
@@ -3202,7 +3195,7 @@ export const PrestationDetail: PrestationDetailEnum = {
3202
3195
  },
3203
3196
  ATTESTATION_NON_REMUNERATION_RECURRENTE: {
3204
3197
  id: 200,
3205
- name: 'Rapport non remunération recurrente',
3198
+ name: 'Attestation non remunération recurrente',
3206
3199
  isComptable: true,
3207
3200
  isJuridique: false,
3208
3201
  isSocial: false,
@@ -8,14 +8,14 @@ import {
8
8
 
9
9
  export const SalesContractClementine: SaleContract[] = [
10
10
  {
11
- label: "Page d'introduction",
11
+ label: 'Page d\'introduction',
12
12
  name: 'page_intro',
13
13
  needBgImage: true,
14
14
  versionable: false,
15
15
  idPrestationType: allPrestationsWithBrochure,
16
16
  },
17
17
  {
18
- label: "Page d'introduction 2025",
18
+ label: 'Page d\'introduction 2025',
19
19
  name: 'page_intro_2025',
20
20
  needBgImage: true,
21
21
  versionable: false,
@@ -170,21 +170,6 @@ export const SalesContractClementine: SaleContract[] = [
170
170
  idPrestationType: [PrestationType.GESTION_IMMO],
171
171
  versionable: false,
172
172
  },
173
- {
174
- label: 'Rapport 2025',
175
- name: 'bloc_rapport_2025',
176
- needBgImage: false,
177
- idPrestationType: [
178
- PrestationType.ATTESTATION_REMUNERATION,
179
- PrestationType.ATTESTATION_NON_REMUNERATION,
180
- PrestationType.ATTESTATION_CA,
181
- PrestationType.ATTESTATION_COMPTE_COURANT,
182
- PrestationType.ATTESTATION_MASSE_SALARIALE,
183
- PrestationType.ATTESTATION_1,
184
- PrestationType.ATTESTATION_NON_REMUNERATION_RECURRENTE,
185
- ],
186
- versionable: false,
187
- },
188
173
  {
189
174
  label: 'Page simplifié',
190
175
  name: 'page_simplified',
@@ -282,7 +267,7 @@ export const SalesContractClementine: SaleContract[] = [
282
267
  keyName: 'idPrestationCreation',
283
268
  },
284
269
  {
285
- label: "Forfait création société (Création d'entreprise gratuite)",
270
+ label: 'Forfait création société (Création d\'entreprise gratuite)',
286
271
  name: 'bloc_creation_free',
287
272
  idPrestationType: [PrestationType.COMPTA_MICRO, PrestationType.COMPTA_MICRO_EXPRESS],
288
273
  needBgImage: false,
@@ -312,7 +297,7 @@ export const SalesContractClementine: SaleContract[] = [
312
297
  keyName: 'idPrestationJuridique',
313
298
  },
314
299
  {
315
- label: "Prise en charge de votre déclaration d'impôts sur le revenu",
300
+ label: 'Prise en charge de votre déclaration d\'impôts sur le revenu',
316
301
  name: 'bloc_tax_return',
317
302
  needBgImage: false,
318
303
  idPrestationType: [],
@@ -418,7 +403,7 @@ export const SalesContractClementine: SaleContract[] = [
418
403
  export const SalesContractKlems: SaleContract[] = [
419
404
  // pour les pages statiques
420
405
  {
421
- label: "Page d'introduction",
406
+ label: 'Page d\'introduction',
422
407
  name: 'page_intro',
423
408
  needBgImage: true,
424
409
  versionable: false,
@@ -551,7 +536,7 @@ export const SalesContractKlems: SaleContract[] = [
551
536
  keyName: 'idPrestationSocial',
552
537
  },
553
538
  {
554
- label: "Forfait Création d'entreprise (TTC)",
539
+ label: 'Forfait Création d\'entreprise (TTC)',
555
540
  name: 'bloc_creation_entreprise_ttc',
556
541
  idPrestationType: [
557
542
  PrestationType.SOCIAL,
@@ -565,7 +550,7 @@ export const SalesContractKlems: SaleContract[] = [
565
550
  keyName: 'idPrestationCreation',
566
551
  },
567
552
  {
568
- label: "Forfait Création d'entreprise (HT)",
553
+ label: 'Forfait Création d\'entreprise (HT)',
569
554
  name: 'bloc_creation_entreprise_ht',
570
555
  idPrestationType: [PrestationType.COMPTA_EI_KLEMS, PrestationType.COMPTA_EI_KLEMS_EXPRESS],
571
556
  needBgImage: false,
@@ -0,0 +1,6 @@
1
+ export interface IAuthenticationResponse {
2
+ requiresMfa?: boolean;
3
+ userId?: number;
4
+ message?: string;
5
+ token?: string;
6
+ }
@@ -0,0 +1,6 @@
1
+ import { IsNotEmpty } from 'class-validator';
2
+
3
+ export class MfaDisableDto {
4
+ @IsNotEmpty()
5
+ userId: number;
6
+ }
@@ -0,0 +1,9 @@
1
+ import { IsEmail, IsNotEmpty } from 'class-validator';
2
+
3
+ export class MfaSetupInitDto {
4
+ @IsNotEmpty()
5
+ userId: number;
6
+
7
+ @IsEmail()
8
+ userEmail: string;
9
+ }
@@ -0,0 +1,9 @@
1
+ import { IsNotEmpty } from 'class-validator';
2
+
3
+ export class MfaSetupVerifyDto {
4
+ @IsNotEmpty()
5
+ userId: number;
6
+
7
+ @IsNotEmpty()
8
+ code: string;
9
+ }
@@ -0,0 +1,10 @@
1
+ import { IsNotEmpty, IsString, Length } from 'class-validator';
2
+
3
+ export class MfaVerifyCodeDto {
4
+ @IsNotEmpty()
5
+ userId: number;
6
+
7
+ @IsString()
8
+ @Length(6, 6)
9
+ code: string;
10
+ }
@@ -0,0 +1,10 @@
1
+ import { IsNotEmpty, IsString } from 'class-validator';
2
+
3
+ export class MfaVerifyRecoveryCodeDto {
4
+ @IsNotEmpty()
5
+ userId: number;
6
+
7
+ @IsString()
8
+ @IsNotEmpty()
9
+ recoveryCode: string;
10
+ }
@@ -0,0 +1,21 @@
1
+ export interface MfaSetupInitResult {
2
+ otpauthUri: string;
3
+ tempSecret: string;
4
+ label: string;
5
+ }
6
+
7
+ export interface MfaSetupVerifyResult {
8
+ success: boolean;
9
+ recoveryCodes: string[];
10
+ }
11
+
12
+ export interface MfaAuthenticationResponse {
13
+ requiresMfa: boolean;
14
+ userId?: number;
15
+ token?: string;
16
+ }
17
+
18
+ export interface MfaVerificationResponse {
19
+ success: boolean;
20
+ token?: string;
21
+ }
File without changes
@@ -207,4 +207,9 @@ export class CreatePaymentSession {
207
207
  @IsOptional()
208
208
  @IsString()
209
209
  stripeAccount?: string;
210
+
211
+ @ApiPropertyOptional()
212
+ @IsOptional()
213
+ @IsString()
214
+ idempotencyKey?: string;
210
215
  }
@@ -14,29 +14,27 @@ export interface IAttestation {
14
14
  idExercice: number | null;
15
15
  idSociety: number | null;
16
16
  idSupervisor: number | null;
17
- idUserDemand?: number | null;
18
- idPaymentExpectation?: number | null;
19
- idFile?: number | null;
17
+ idUserDemand: number | null;
18
+ idPaymentExpectation: number | null;
19
+ idFile: number | null;
20
20
  annoted: boolean;
21
- factured: number;
22
- sendDate?: Date | null;
23
- textPdf?: string | null;
24
- isSign?: boolean | null;
25
- done?: boolean | null;
26
- idMailPayment?: number | null;
27
- idMailValidation?: number | null;
28
- fileLink?: string;
21
+ sendDate: Date | null;
22
+ textPdf: string | null;
23
+ isSign: boolean | null;
24
+ done: boolean | null;
25
+ idMailPayment: number | null;
26
+ idMailValidation: number | null;
29
27
  createdAt?: Date | null;
30
28
  updatedAt?: Date | null;
31
29
 
32
30
  // Associations
33
- attestationSupervisor?: IUser | null;
34
- attestationUserDemand?: IUser | null;
35
- prestationsList?: IPrestationList;
36
- attestationPaymentExpectation?: IPaymentExpectation | null;
37
- attestationFiles?: IFile | null;
38
- society?: ISociety | null;
39
- exercices?: IExercice | null;
40
- paymentMail?: IMail | null;
41
- validationMail?: IMail | null;
31
+ attestationSupervisor: IUser;
32
+ attestationUserDemand: IUser;
33
+ prestationsList: IPrestationList;
34
+ attestationPaymentExpectation: IPaymentExpectation;
35
+ attestationFiles: IFile;
36
+ society: ISociety;
37
+ exercices: IExercice;
38
+ paymentMail: IMail;
39
+ validationMail: IMail;
42
40
  }
@@ -51,6 +51,7 @@ export interface IUser {
51
51
  textMessageNumber?: string | null;
52
52
  prefix?: string | null;
53
53
  tokenLostPassword?: string | null;
54
+ twoFactorEnabled?: boolean | null;
54
55
  tokenApi?: string | null;
55
56
  tokenNotification?: string | null;
56
57
  tokenSocket?: string | null;
@@ -0,0 +1,11 @@
1
+ export interface IUserMfa {
2
+ idUserMfa: number;
3
+ idUser: number;
4
+ method: 'totp' | 'sms' | 'email';
5
+ secretEnc: string;
6
+ tempSecretEnc: string;
7
+ verifiedAt: Date;
8
+ isPrimary: boolean;
9
+ createdAt?: Date;
10
+ updatedAt?: Date;
11
+ }
@@ -0,0 +1,8 @@
1
+ export interface IUserMfaRecoveryCode {
2
+ id: number;
3
+ idUserMfa: number;
4
+ recoveryCodeEnc: string; // haché, jamais en clair
5
+ usedAt: Date | null; // nullable
6
+ createdAt?: Date;
7
+ updatedAt?: Date;
8
+ }
package/ts/types/index.ts CHANGED
@@ -557,6 +557,7 @@ export * from './Enum/PartneredAccountantServiceTypeId';
557
557
  export * from './Enum/PaymentAttempt';
558
558
 
559
559
  // Interfaces API
560
+ export * from './Interface/api/authentification/AuthenticationResponse';
560
561
  export * from './Interface/api/exercice/ReadExercice';
561
562
  export * from './Interface/api/balanceSheet/consistency/Read';
562
563
  export * from './Interface/api/kilometricAllowance/ReadKilometricAllowance';
@@ -827,7 +828,6 @@ export * from './Interface/api/pappers/CreatePappers';
827
828
  export * from './Interface/api/bankAccount/Query';
828
829
  export * from './Interface/api/bankAccount/Update';
829
830
  export * from './Interface/api/stripe/QueryStripe';
830
- export * from './Interface/api/balanceSheetReport/Query';
831
831
  export * from './Interface/api/supervision/Query';
832
832
  export * from './Interface/api/supervision/Read';
833
833
  export * from './Interface/api/salariesFile/ReadSalariesFile';
@@ -1,10 +0,0 @@
1
- import { BasePaginate, IAttestation, ParamsBalanceSheetReportGeneratePdf, ParamsBalanceSheetReportCreate, QueryBalanceSheetReportPaginated } from '../../types';
2
- import { Resource } from '../Resource';
3
- export declare class BalanceSheetReport extends Resource {
4
- getPaginated(params: QueryBalanceSheetReportPaginated, signal?: AbortSignal): Promise<BasePaginate<IAttestation>>;
5
- create(data: ParamsBalanceSheetReportCreate): Promise<number>;
6
- generatePdf(idReport: number, data: ParamsBalanceSheetReportGeneratePdf): Promise<IAttestation>;
7
- update(idReport: number, data: Partial<IAttestation>): Promise<IAttestation>;
8
- delete(idReport: number): Promise<number>;
9
- }
10
- //# sourceMappingURL=BalanceSheetReport.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BalanceSheetReport.d.ts","sourceRoot":"","sources":["../../../../ts/api/resources/BalanceSheetReport.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,mCAAmC,EACnC,8BAA8B,EAC9B,gCAAgC,EACjC,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,kBAAmB,SAAQ,QAAQ;IACvC,YAAY,CACjB,MAAM,EAAE,gCAAgC,EACxC,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC;IAOtC,MAAM,CAAC,IAAI,EAAE,8BAA8B,GAAG,OAAO,CAAC,MAAM,CAAC;IAI7D,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,mCAAmC,GAAG,OAAO,CAAC,YAAY,CAAC;IAI/F,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,CAAC,YAAY,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC;IAI5E,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAG1C"}
@@ -1,23 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BalanceSheetReport = void 0;
4
- const Resource_1 = require("../Resource");
5
- class BalanceSheetReport extends Resource_1.Resource {
6
- getPaginated(params, signal) {
7
- return this.axios.$get('balance-sheets/reports/paginated', Object.assign(Object.assign({}, (signal ? { signal } : {})), { params }));
8
- }
9
- create(data) {
10
- return this.axios.$post('balance-sheets/reports', data);
11
- }
12
- generatePdf(idReport, data) {
13
- return this.axios.$post(`balance-sheets/reports/${idReport}/pdf`, data);
14
- }
15
- update(idReport, data) {
16
- return this.axios.$put(`balance-sheets/reports/${idReport}`, data);
17
- }
18
- delete(idReport) {
19
- return this.axios.$delete(`balance-sheets/reports/${idReport}`);
20
- }
21
- }
22
- exports.BalanceSheetReport = BalanceSheetReport;
23
- //# sourceMappingURL=BalanceSheetReport.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BalanceSheetReport.js","sourceRoot":"","sources":["../../../../ts/api/resources/BalanceSheetReport.ts"],"names":[],"mappings":";;;AAOA,0CAAuC;AAEvC,MAAa,kBAAmB,SAAQ,mBAAQ;IACvC,YAAY,CACjB,MAAwC,EACxC,MAAoB;QAEpB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,kCAAkC,kCACpD,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,KAC7B,MAAM,IACN,CAAC;IACL,CAAC;IAED,MAAM,CAAC,IAAoC;QACzC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,wBAAwB,EAAE,IAAI,CAAC,CAAC;IAC1D,CAAC;IAED,WAAW,CAAC,QAAgB,EAAE,IAAyC;QACrE,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,0BAA0B,QAAQ,MAAM,EAAE,IAAI,CAAC,CAAC;IAC1E,CAAC;IAED,MAAM,CAAC,QAAgB,EAAE,IAA2B;QAClD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,0BAA0B,QAAQ,EAAE,EAAE,IAAI,CAAC,CAAC;IACrE,CAAC;IAED,MAAM,CAAC,QAAgB;QACrB,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,0BAA0B,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;CACF;AA1BD,gDA0BC","sourcesContent":["import {\n BasePaginate,\n IAttestation,\n ParamsBalanceSheetReportGeneratePdf,\n ParamsBalanceSheetReportCreate,\n QueryBalanceSheetReportPaginated,\n} from '../../types';\nimport { Resource } from '../Resource';\n\nexport class BalanceSheetReport extends Resource {\n public getPaginated(\n params: QueryBalanceSheetReportPaginated,\n signal?: AbortSignal,\n ): Promise<BasePaginate<IAttestation>> {\n return this.axios.$get('balance-sheets/reports/paginated', {\n ...(signal ? { signal } : {}),\n params,\n });\n }\n\n create(data: ParamsBalanceSheetReportCreate): Promise<number> {\n return this.axios.$post('balance-sheets/reports', data);\n }\n\n generatePdf(idReport: number, data: ParamsBalanceSheetReportGeneratePdf): Promise<IAttestation> {\n return this.axios.$post(`balance-sheets/reports/${idReport}/pdf`, data);\n }\n\n update(idReport: number, data: Partial<IAttestation>): Promise<IAttestation> {\n return this.axios.$put(`balance-sheets/reports/${idReport}`, data);\n }\n\n delete(idReport: number): Promise<number> {\n return this.axios.$delete(`balance-sheets/reports/${idReport}`);\n }\n}\n"]}
@@ -1,40 +0,0 @@
1
- import { RequiredQueryPaginate } from '../BasePaginate';
2
- export declare class QueryBalanceSheetReportPaginated extends RequiredQueryPaginate {
3
- search?: string;
4
- signed?: boolean;
5
- factured?: number;
6
- idSupervisor?: number;
7
- }
8
- export declare class ParamsBalanceSheetReportCreate {
9
- idSociety: number;
10
- idExercice: number;
11
- idPrestationList: number;
12
- idSupervisor: number;
13
- price: number;
14
- annoted: boolean;
15
- factured: number;
16
- }
17
- export declare class ParamsBalanceSheetReportGeneratePdf {
18
- isSigned: boolean;
19
- comment?: string;
20
- }
21
- export declare class ParamsBalanceSheetReportUpdate {
22
- price?: number;
23
- idPrestationList?: number;
24
- idExercice?: number;
25
- idSociety?: number;
26
- idSupervisor?: number;
27
- idUserDemand?: number;
28
- idPaymentExpectation?: number;
29
- idFile?: number;
30
- idGedFile?: number;
31
- annoted?: boolean;
32
- factured?: number;
33
- sendDate?: Date;
34
- textPdf?: string;
35
- isSign?: boolean;
36
- done?: boolean;
37
- idMailValidation?: number;
38
- idMailPayment?: number;
39
- }
40
- //# sourceMappingURL=Query.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Query.d.ts","sourceRoot":"","sources":["../../../../../../ts/types/Interface/api/balanceSheetReport/Query.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAExD,qBAAa,gCAAiC,SAAQ,qBAAqB;IAIjE,MAAM,CAAC,EAAE,MAAM,CAAC;IAMhB,MAAM,CAAC,EAAE,OAAO,CAAC;IAKjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAKlB,YAAY,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,qBAAa,8BAA8B;IAGjC,SAAS,EAAE,MAAM,CAAC;IAIlB,UAAU,EAAE,MAAM,CAAC;IAInB,gBAAgB,EAAE,MAAM,CAAC;IAIzB,YAAY,EAAE,MAAM,CAAC;IAIrB,KAAK,EAAE,MAAM,CAAC;IAKd,OAAO,EAAE,OAAO,CAAC;IAIjB,QAAQ,EAAE,MAAM,CAAC;CAC1B;AAED,qBAAa,mCAAmC;IAItC,QAAQ,EAAE,OAAO,CAAC;IAKlB,OAAO,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,qBAAa,8BAA8B;IAIjC,KAAK,CAAC,EAAE,MAAM,CAAC;IAKf,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAK1B,UAAU,CAAC,EAAE,MAAM,CAAC;IAKpB,SAAS,CAAC,EAAE,MAAM,CAAC;IAKnB,YAAY,CAAC,EAAE,MAAM,CAAC;IAKtB,YAAY,CAAC,EAAE,MAAM,CAAC;IAKtB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAK9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAKhB,SAAS,CAAC,EAAE,MAAM,CAAC;IAMnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAKlB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAKlB,QAAQ,CAAC,EAAE,IAAI,CAAC;IAKhB,OAAO,CAAC,EAAE,MAAM,CAAC;IAMjB,MAAM,CAAC,EAAE,OAAO,CAAC;IAMjB,IAAI,CAAC,EAAE,OAAO,CAAC;IAKf,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAK1B,aAAa,CAAC,EAAE,MAAM,CAAC;CAChC"}