@factpulse/sdk 2.0.11 → 2.0.49

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 (302) hide show
  1. package/.github/SETUP_GITHUB_ACTIONS.md +70 -8
  2. package/.github/workflows/publish-npm.yml +5 -7
  3. package/.openapi-generator/FILES +58 -26
  4. package/CHANGELOG.md +3 -3
  5. package/README.md +165 -116
  6. package/api/afnorpdppaapi.ts +149 -0
  7. package/api/chorus-pro-api.ts +151 -181
  8. package/api/traitement-facture-api.ts +12 -12
  9. package/api/vrification-pdfxmlapi.ts +536 -0
  10. package/api.ts +1 -0
  11. package/dist/api/afnorpdppaapi.d.ts +65 -0
  12. package/dist/api/afnorpdppaapi.js +142 -1
  13. package/dist/api/afnorpdppadirectory-service-api.js +4 -1
  14. package/dist/api/afnorpdppaflow-service-api.js +4 -1
  15. package/dist/api/chorus-pro-api.d.ts +168 -103
  16. package/dist/api/chorus-pro-api.js +155 -160
  17. package/dist/api/sant-api.js +4 -1
  18. package/dist/api/traitement-facture-api.d.ts +12 -12
  19. package/dist/api/traitement-facture-api.js +16 -13
  20. package/dist/api/utilisateur-api.js +4 -1
  21. package/dist/api/vrification-pdfxmlapi.d.ts +237 -0
  22. package/dist/api/vrification-pdfxmlapi.js +514 -0
  23. package/dist/api.d.ts +1 -0
  24. package/dist/api.js +1 -0
  25. package/dist/base.js +4 -1
  26. package/dist/esm/api/afnorpdppaapi.d.ts +65 -0
  27. package/dist/esm/api/afnorpdppaapi.js +139 -1
  28. package/dist/esm/api/chorus-pro-api.d.ts +168 -103
  29. package/dist/esm/api/chorus-pro-api.js +151 -159
  30. package/dist/esm/api/traitement-facture-api.d.ts +12 -12
  31. package/dist/esm/api/traitement-facture-api.js +12 -12
  32. package/dist/esm/api/vrification-pdfxmlapi.d.ts +237 -0
  33. package/dist/esm/api/vrification-pdfxmlapi.js +504 -0
  34. package/dist/esm/api.d.ts +1 -0
  35. package/dist/esm/api.js +1 -0
  36. package/dist/esm/models/{utilisateur.d.ts → apierror.d.ts} +12 -15
  37. package/dist/esm/models/beneficiaire.d.ts +26 -0
  38. package/dist/esm/models/bounding-box-schema.d.ts +44 -0
  39. package/dist/esm/models/cadre-de-facturation.d.ts +3 -1
  40. package/dist/esm/models/champ-verifie-schema.d.ts +42 -0
  41. package/dist/esm/models/code-cadre-facturation.d.ts +3 -0
  42. package/dist/esm/models/code-cadre-facturation.js +3 -0
  43. package/dist/esm/models/destinataire.d.ts +1 -1
  44. package/dist/esm/models/dimension-page-schema.d.ts +24 -0
  45. package/dist/esm/models/{quota-info.d.ts → direction-flux.d.ts} +6 -8
  46. package/dist/esm/models/direction-flux.js +20 -0
  47. package/dist/esm/models/error-level.d.ts +16 -0
  48. package/dist/esm/models/error-level.js +17 -0
  49. package/dist/esm/models/{body-ajouter-fichier-api-v1-chorus-pro-transverses-ajouter-fichier-post.d.ts → error-source.d.ts} +11 -9
  50. package/dist/esm/models/error-source.js +23 -0
  51. package/dist/esm/models/facture-entrante.d.ts +68 -0
  52. package/dist/esm/models/facture-factur-x.d.ts +2 -0
  53. package/dist/esm/models/{body-rechercher-factures-destinataire-api-v1-chorus-pro-factures-rechercher-destinataire-post.d.ts → flux-resume.d.ts} +12 -8
  54. package/dist/esm/models/format-facture.d.ts +20 -0
  55. package/dist/esm/models/format-facture.js +21 -0
  56. package/dist/esm/models/fournisseur-entrant.d.ts +29 -0
  57. package/dist/esm/models/fournisseur.d.ts +1 -1
  58. package/dist/esm/models/index.d.ts +28 -13
  59. package/dist/esm/models/index.js +28 -13
  60. package/dist/esm/models/ligne-de-tva.d.ts +3 -1
  61. package/dist/esm/models/nature-operation.d.ts +31 -0
  62. package/dist/esm/models/nature-operation.js +32 -0
  63. package/dist/esm/models/note-obligatoire-schema.d.ts +34 -0
  64. package/dist/esm/models/note.d.ts +2 -2
  65. package/dist/esm/models/pdpcredentials.d.ts +33 -0
  66. package/dist/esm/models/profil-flux.d.ts +20 -0
  67. package/dist/esm/models/profil-flux.js +21 -0
  68. package/dist/esm/models/{body-completer-facture-api-v1-chorus-pro-factures-completer-post.d.ts → reponse-healthcheck-afnor.d.ts} +16 -8
  69. package/dist/esm/models/reponse-recherche-flux.d.ts +33 -0
  70. package/dist/esm/models/reponse-soumission-flux.d.ts +38 -0
  71. package/dist/esm/models/reponse-verification-succes.d.ts +56 -0
  72. package/dist/esm/models/reponse-verification-succes.js +14 -0
  73. package/dist/esm/models/requete-recherche-flux.d.ts +34 -0
  74. package/dist/esm/models/requete-recherche-flux.js +14 -0
  75. package/dist/esm/models/requete-soumission-flux.d.ts +31 -0
  76. package/dist/esm/models/requete-soumission-flux.js +14 -0
  77. package/dist/esm/models/statut-acquittement.d.ts +20 -0
  78. package/dist/esm/models/statut-acquittement.js +21 -0
  79. package/dist/esm/models/statut-champ-api.d.ts +22 -0
  80. package/dist/esm/models/statut-champ-api.js +23 -0
  81. package/dist/esm/models/syntaxe-flux.d.ts +22 -0
  82. package/dist/esm/models/syntaxe-flux.js +23 -0
  83. package/dist/esm/models/type-document.d.ts +37 -0
  84. package/dist/esm/models/type-document.js +38 -0
  85. package/dist/esm/models/type-facture.d.ts +65 -3
  86. package/dist/esm/models/type-facture.js +65 -3
  87. package/dist/esm/models/type-flux.d.ts +22 -0
  88. package/dist/esm/models/type-flux.js +23 -0
  89. package/dist/esm/models/validation-error-detail.d.ts +32 -0
  90. package/dist/esm/models/validation-error-detail.js +14 -0
  91. package/dist/esm/src/helpers/client.d.ts +265 -0
  92. package/dist/esm/src/helpers/client.js +817 -0
  93. package/dist/esm/src/helpers/exceptions.d.ts +23 -0
  94. package/dist/esm/src/helpers/exceptions.js +27 -0
  95. package/dist/esm/src/helpers/index.d.ts +3 -0
  96. package/dist/esm/src/helpers/index.js +6 -0
  97. package/dist/models/{utilisateur.d.ts → apierror.d.ts} +12 -15
  98. package/dist/models/beneficiaire.d.ts +26 -0
  99. package/dist/models/bounding-box-schema.d.ts +44 -0
  100. package/dist/models/cadre-de-facturation.d.ts +3 -1
  101. package/dist/models/champ-verifie-schema.d.ts +42 -0
  102. package/dist/models/code-cadre-facturation.d.ts +3 -0
  103. package/dist/models/code-cadre-facturation.js +3 -0
  104. package/dist/models/destinataire.d.ts +1 -1
  105. package/dist/models/dimension-page-schema.d.ts +24 -0
  106. package/dist/models/{quota-info.d.ts → direction-flux.d.ts} +6 -8
  107. package/dist/models/direction-flux.js +23 -0
  108. package/dist/models/error-level.d.ts +16 -0
  109. package/dist/models/error-level.js +20 -0
  110. package/dist/models/error-source.d.ts +22 -0
  111. package/dist/models/error-source.js +26 -0
  112. package/dist/models/facture-entrante.d.ts +68 -0
  113. package/dist/models/facture-factur-x.d.ts +2 -0
  114. package/dist/models/flux-resume.d.ts +24 -0
  115. package/dist/models/format-facture.d.ts +20 -0
  116. package/dist/models/format-facture.js +24 -0
  117. package/dist/models/fournisseur-entrant.d.ts +29 -0
  118. package/dist/models/fournisseur.d.ts +1 -1
  119. package/dist/models/index.d.ts +28 -13
  120. package/dist/models/index.js +28 -13
  121. package/dist/models/ligne-de-tva.d.ts +3 -1
  122. package/dist/models/nature-operation.d.ts +31 -0
  123. package/dist/models/nature-operation.js +35 -0
  124. package/dist/models/note-obligatoire-schema.d.ts +34 -0
  125. package/dist/models/note.d.ts +2 -2
  126. package/dist/models/pdpcredentials.d.ts +33 -0
  127. package/dist/models/profil-flux.d.ts +20 -0
  128. package/dist/models/profil-flux.js +24 -0
  129. package/dist/{esm/models/body-recycler-facture-api-v1-chorus-pro-factures-recycler-post.d.ts → models/reponse-healthcheck-afnor.d.ts} +16 -8
  130. package/dist/models/reponse-recherche-flux.d.ts +33 -0
  131. package/dist/models/reponse-soumission-flux.d.ts +38 -0
  132. package/dist/models/reponse-verification-succes.d.ts +56 -0
  133. package/dist/models/reponse-verification-succes.js +15 -0
  134. package/dist/models/requete-recherche-flux.d.ts +34 -0
  135. package/dist/models/requete-recherche-flux.js +15 -0
  136. package/dist/models/requete-soumission-flux.d.ts +31 -0
  137. package/dist/models/requete-soumission-flux.js +15 -0
  138. package/dist/models/statut-acquittement.d.ts +20 -0
  139. package/dist/models/statut-acquittement.js +24 -0
  140. package/dist/models/statut-champ-api.d.ts +22 -0
  141. package/dist/models/statut-champ-api.js +26 -0
  142. package/dist/models/syntaxe-flux.d.ts +22 -0
  143. package/dist/models/syntaxe-flux.js +26 -0
  144. package/dist/models/type-document.d.ts +37 -0
  145. package/dist/models/type-document.js +41 -0
  146. package/dist/models/type-facture.d.ts +65 -3
  147. package/dist/models/type-facture.js +65 -3
  148. package/dist/models/type-flux.d.ts +22 -0
  149. package/dist/models/type-flux.js +26 -0
  150. package/dist/models/validation-error-detail.d.ts +32 -0
  151. package/dist/models/validation-error-detail.js +15 -0
  152. package/dist/src/helpers/client.d.ts +265 -0
  153. package/dist/src/helpers/client.js +866 -0
  154. package/dist/src/helpers/exceptions.d.ts +23 -0
  155. package/dist/src/helpers/exceptions.js +35 -0
  156. package/dist/src/helpers/index.d.ts +3 -0
  157. package/dist/src/helpers/index.js +23 -0
  158. package/docs/AFNORPDPPAApi.md +108 -0
  159. package/docs/APIError.md +25 -0
  160. package/docs/Beneficiaire.md +31 -0
  161. package/docs/BoundingBoxSchema.md +33 -0
  162. package/docs/CadreDeFacturation.md +3 -1
  163. package/docs/ChampVerifieSchema.md +37 -0
  164. package/docs/ChorusProApi.md +54 -69
  165. package/docs/CodeCadreFacturation.md +1 -0
  166. package/docs/DimensionPageSchema.md +23 -0
  167. package/docs/DirectionFlux.md +11 -0
  168. package/docs/ErrorLevel.md +10 -0
  169. package/docs/ErrorSource.md +22 -0
  170. package/docs/FactureEntrante.md +57 -0
  171. package/docs/FactureFacturX.md +2 -0
  172. package/docs/FluxResume.md +35 -0
  173. package/docs/FormatFacture.md +13 -0
  174. package/docs/FournisseurEntrant.md +35 -0
  175. package/docs/LigneDeTVA.md +5 -1
  176. package/docs/NatureOperation.md +35 -0
  177. package/docs/Note.md +4 -4
  178. package/docs/NoteObligatoireSchema.md +33 -0
  179. package/docs/PDPCredentials.md +29 -0
  180. package/docs/ProfilFlux.md +13 -0
  181. package/docs/ReponseHealthcheckAFNOR.md +25 -0
  182. package/docs/ReponseRechercheFlux.md +27 -0
  183. package/docs/ReponseSoumissionFlux.md +33 -0
  184. package/docs/ReponseVerificationSucces.md +39 -0
  185. package/docs/RequeteRechercheFlux.md +37 -0
  186. package/docs/RequeteSoumissionFlux.md +31 -0
  187. package/docs/StatutAcquittement.md +13 -0
  188. package/docs/StatutChampAPI.md +17 -0
  189. package/docs/SyntaxeFlux.md +17 -0
  190. package/docs/TraitementFactureApi.md +3 -3
  191. package/docs/TypeDocument.md +17 -0
  192. package/docs/TypeFacture.md +31 -3
  193. package/docs/TypeFlux.md +17 -0
  194. package/docs/ValidationErrorDetail.md +29 -0
  195. package/docs/VrificationPDFXMLApi.md +335 -0
  196. package/models/{utilisateur.ts → apierror.ts} +12 -15
  197. package/models/beneficiaire.ts +34 -0
  198. package/models/bounding-box-schema.ts +50 -0
  199. package/models/cadre-de-facturation.ts +5 -1
  200. package/models/champ-verifie-schema.ts +54 -0
  201. package/models/code-cadre-facturation.ts +3 -0
  202. package/models/destinataire.ts +1 -1
  203. package/models/dimension-page-schema.ts +30 -0
  204. package/models/{quota-info.ts → direction-flux.ts} +10 -8
  205. package/models/error-level.ts +26 -0
  206. package/models/error-source.ts +32 -0
  207. package/models/facture-entrante.ts +82 -0
  208. package/models/facture-factur-x.ts +4 -0
  209. package/models/flux-resume.ts +30 -0
  210. package/models/format-facture.ts +30 -0
  211. package/models/fournisseur-entrant.ts +39 -0
  212. package/models/fournisseur.ts +1 -1
  213. package/models/index.ts +28 -13
  214. package/models/ligne-de-tva.ts +3 -1
  215. package/models/nature-operation.ts +41 -0
  216. package/models/{body-lister-services-structure-api-v1-chorus-pro-structures-id-structure-cpp-services-get.ts → note-obligatoire-schema.ts} +24 -5
  217. package/models/note.ts +2 -2
  218. package/models/pdpcredentials.ts +39 -0
  219. package/models/profil-flux.ts +30 -0
  220. package/models/reponse-healthcheck-afnor.ts +34 -0
  221. package/models/{body-ajouter-fichier-api-v1-chorus-pro-transverses-ajouter-fichier-post.ts → reponse-recherche-flux.ts} +21 -8
  222. package/models/{body-completer-facture-api-v1-chorus-pro-factures-completer-post.ts → reponse-soumission-flux.ts} +26 -10
  223. package/models/reponse-verification-succes.ts +68 -0
  224. package/models/requete-recherche-flux.ts +48 -0
  225. package/models/{body-rechercher-factures-destinataire-api-v1-chorus-pro-factures-rechercher-destinataire-post.ts → requete-soumission-flux.ts} +23 -6
  226. package/models/statut-acquittement.ts +30 -0
  227. package/models/statut-champ-api.ts +32 -0
  228. package/models/syntaxe-flux.ts +32 -0
  229. package/models/type-document.ts +47 -0
  230. package/models/type-facture.ts +65 -3
  231. package/models/type-flux.ts +32 -0
  232. package/models/validation-error-detail.ts +44 -0
  233. package/package.json +2 -2
  234. package/src/helpers/client.ts +882 -0
  235. package/src/helpers/exceptions.ts +32 -0
  236. package/src/helpers/index.ts +6 -0
  237. package/tsconfig.esm.json +1 -0
  238. package/tsconfig.json +1 -0
  239. package/dist/esm/models/body-lister-services-structure-api-v1-chorus-pro-structures-id-structure-cpp-services-get.d.ts +0 -17
  240. package/dist/esm/models/body-rechercher-factures-fournisseur-api-v1-chorus-pro-factures-rechercher-fournisseur-post.d.ts +0 -20
  241. package/dist/esm/models/body-telecharger-groupe-factures-api-v1-chorus-pro-factures-telecharger-groupe-post.d.ts +0 -20
  242. package/dist/esm/models/body-traiter-facture-recue-api-v1-chorus-pro-factures-traiter-facture-recue-post.d.ts +0 -20
  243. package/dist/esm/models/body-valideur-consulter-facture-api-v1-chorus-pro-factures-valideur-consulter-post.d.ts +0 -20
  244. package/dist/esm/models/body-valideur-rechercher-factures-api-v1-chorus-pro-factures-valideur-rechercher-post.d.ts +0 -20
  245. package/dist/esm/models/body-valideur-traiter-facture-api-v1-chorus-pro-factures-valideur-traiter-post.d.ts +0 -20
  246. package/dist/models/body-ajouter-fichier-api-v1-chorus-pro-transverses-ajouter-fichier-post.d.ts +0 -20
  247. package/dist/models/body-completer-facture-api-v1-chorus-pro-factures-completer-post.d.ts +0 -20
  248. package/dist/models/body-lister-services-structure-api-v1-chorus-pro-structures-id-structure-cpp-services-get.d.ts +0 -17
  249. package/dist/models/body-rechercher-factures-destinataire-api-v1-chorus-pro-factures-rechercher-destinataire-post.d.ts +0 -20
  250. package/dist/models/body-rechercher-factures-fournisseur-api-v1-chorus-pro-factures-rechercher-fournisseur-post.d.ts +0 -20
  251. package/dist/models/body-recycler-facture-api-v1-chorus-pro-factures-recycler-post.d.ts +0 -20
  252. package/dist/models/body-telecharger-groupe-factures-api-v1-chorus-pro-factures-telecharger-groupe-post.d.ts +0 -20
  253. package/dist/models/body-traiter-facture-recue-api-v1-chorus-pro-factures-traiter-facture-recue-post.d.ts +0 -20
  254. package/dist/models/body-valideur-consulter-facture-api-v1-chorus-pro-factures-valideur-consulter-post.d.ts +0 -20
  255. package/dist/models/body-valideur-rechercher-factures-api-v1-chorus-pro-factures-valideur-rechercher-post.d.ts +0 -20
  256. package/dist/models/body-valideur-traiter-facture-api-v1-chorus-pro-factures-valideur-traiter-post.d.ts +0 -20
  257. package/docs/BodyAjouterFichierApiV1ChorusProTransversesAjouterFichierPost.md +0 -24
  258. package/docs/BodyCompleterFactureApiV1ChorusProFacturesCompleterPost.md +0 -24
  259. package/docs/BodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet.md +0 -22
  260. package/docs/BodyRechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost.md +0 -24
  261. package/docs/BodyRechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost.md +0 -24
  262. package/docs/BodyRecyclerFactureApiV1ChorusProFacturesRecyclerPost.md +0 -24
  263. package/docs/BodyTelechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost.md +0 -24
  264. package/docs/BodyTraiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost.md +0 -24
  265. package/docs/BodyValideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost.md +0 -24
  266. package/docs/BodyValideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost.md +0 -24
  267. package/docs/BodyValideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost.md +0 -24
  268. package/docs/QuotaInfo.md +0 -29
  269. package/docs/Utilisateur.md +0 -43
  270. package/models/body-rechercher-factures-fournisseur-api-v1-chorus-pro-factures-rechercher-fournisseur-post.ts +0 -28
  271. package/models/body-recycler-facture-api-v1-chorus-pro-factures-recycler-post.ts +0 -28
  272. package/models/body-telecharger-groupe-factures-api-v1-chorus-pro-factures-telecharger-groupe-post.ts +0 -28
  273. package/models/body-traiter-facture-recue-api-v1-chorus-pro-factures-traiter-facture-recue-post.ts +0 -28
  274. package/models/body-valideur-consulter-facture-api-v1-chorus-pro-factures-valideur-consulter-post.ts +0 -28
  275. package/models/body-valideur-rechercher-factures-api-v1-chorus-pro-factures-valideur-rechercher-post.ts +0 -28
  276. package/models/body-valideur-traiter-facture-api-v1-chorus-pro-factures-valideur-traiter-post.ts +0 -28
  277. /package/dist/esm/models/{body-ajouter-fichier-api-v1-chorus-pro-transverses-ajouter-fichier-post.js → apierror.js} +0 -0
  278. /package/dist/esm/models/{body-completer-facture-api-v1-chorus-pro-factures-completer-post.js → beneficiaire.js} +0 -0
  279. /package/dist/esm/models/{body-lister-services-structure-api-v1-chorus-pro-structures-id-structure-cpp-services-get.js → bounding-box-schema.js} +0 -0
  280. /package/dist/esm/models/{body-rechercher-factures-destinataire-api-v1-chorus-pro-factures-rechercher-destinataire-post.js → champ-verifie-schema.js} +0 -0
  281. /package/dist/esm/models/{body-rechercher-factures-fournisseur-api-v1-chorus-pro-factures-rechercher-fournisseur-post.js → dimension-page-schema.js} +0 -0
  282. /package/dist/esm/models/{body-recycler-facture-api-v1-chorus-pro-factures-recycler-post.js → facture-entrante.js} +0 -0
  283. /package/dist/esm/models/{body-telecharger-groupe-factures-api-v1-chorus-pro-factures-telecharger-groupe-post.js → flux-resume.js} +0 -0
  284. /package/dist/esm/models/{body-traiter-facture-recue-api-v1-chorus-pro-factures-traiter-facture-recue-post.js → fournisseur-entrant.js} +0 -0
  285. /package/dist/esm/models/{body-valideur-consulter-facture-api-v1-chorus-pro-factures-valideur-consulter-post.js → note-obligatoire-schema.js} +0 -0
  286. /package/dist/esm/models/{body-valideur-rechercher-factures-api-v1-chorus-pro-factures-valideur-rechercher-post.js → pdpcredentials.js} +0 -0
  287. /package/dist/esm/models/{body-valideur-traiter-facture-api-v1-chorus-pro-factures-valideur-traiter-post.js → reponse-healthcheck-afnor.js} +0 -0
  288. /package/dist/esm/models/{quota-info.js → reponse-recherche-flux.js} +0 -0
  289. /package/dist/esm/models/{utilisateur.js → reponse-soumission-flux.js} +0 -0
  290. /package/dist/models/{body-ajouter-fichier-api-v1-chorus-pro-transverses-ajouter-fichier-post.js → apierror.js} +0 -0
  291. /package/dist/models/{body-completer-facture-api-v1-chorus-pro-factures-completer-post.js → beneficiaire.js} +0 -0
  292. /package/dist/models/{body-lister-services-structure-api-v1-chorus-pro-structures-id-structure-cpp-services-get.js → bounding-box-schema.js} +0 -0
  293. /package/dist/models/{body-rechercher-factures-destinataire-api-v1-chorus-pro-factures-rechercher-destinataire-post.js → champ-verifie-schema.js} +0 -0
  294. /package/dist/models/{body-rechercher-factures-fournisseur-api-v1-chorus-pro-factures-rechercher-fournisseur-post.js → dimension-page-schema.js} +0 -0
  295. /package/dist/models/{body-recycler-facture-api-v1-chorus-pro-factures-recycler-post.js → facture-entrante.js} +0 -0
  296. /package/dist/models/{body-telecharger-groupe-factures-api-v1-chorus-pro-factures-telecharger-groupe-post.js → flux-resume.js} +0 -0
  297. /package/dist/models/{body-traiter-facture-recue-api-v1-chorus-pro-factures-traiter-facture-recue-post.js → fournisseur-entrant.js} +0 -0
  298. /package/dist/models/{body-valideur-consulter-facture-api-v1-chorus-pro-factures-valideur-consulter-post.js → note-obligatoire-schema.js} +0 -0
  299. /package/dist/models/{body-valideur-rechercher-factures-api-v1-chorus-pro-factures-valideur-rechercher-post.js → pdpcredentials.js} +0 -0
  300. /package/dist/models/{body-valideur-traiter-facture-api-v1-chorus-pro-factures-valideur-traiter-post.js → reponse-healthcheck-afnor.js} +0 -0
  301. /package/dist/models/{quota-info.js → reponse-recherche-flux.js} +0 -0
  302. /package/dist/models/{utilisateur.js → reponse-soumission-flux.js} +0 -0
@@ -0,0 +1,335 @@
1
+ # VrificationPDFXMLApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**obtenirStatutVerificationApiV1VerificationVerifierAsyncIdTacheStatutGet**](#obtenirstatutverificationapiv1verificationverifierasyncidtachestatutget) | **GET** /api/v1/verification/verifier-async/{id_tache}/statut | Obtenir le statut d\'une vérification asynchrone|
8
+ |[**obtenirStatutVerificationApiV1VerificationVerifierAsyncIdTacheStatutGet_0**](#obtenirstatutverificationapiv1verificationverifierasyncidtachestatutget_0) | **GET** /api/v1/verification/verifier-async/{id_tache}/statut | Obtenir le statut d\'une vérification asynchrone|
9
+ |[**verifierPdfAsyncApiV1VerificationVerifierAsyncPost**](#verifierpdfasyncapiv1verificationverifierasyncpost) | **POST** /api/v1/verification/verifier-async | Vérifier la conformité PDF/XML Factur-X (asynchrone)|
10
+ |[**verifierPdfAsyncApiV1VerificationVerifierAsyncPost_0**](#verifierpdfasyncapiv1verificationverifierasyncpost_0) | **POST** /api/v1/verification/verifier-async | Vérifier la conformité PDF/XML Factur-X (asynchrone)|
11
+ |[**verifierPdfSyncApiV1VerificationVerifierPost**](#verifierpdfsyncapiv1verificationverifierpost) | **POST** /api/v1/verification/verifier | Vérifier la conformité PDF/XML Factur-X (synchrone)|
12
+ |[**verifierPdfSyncApiV1VerificationVerifierPost_0**](#verifierpdfsyncapiv1verificationverifierpost_0) | **POST** /api/v1/verification/verifier | Vérifier la conformité PDF/XML Factur-X (synchrone)|
13
+
14
+ # **obtenirStatutVerificationApiV1VerificationVerifierAsyncIdTacheStatutGet**
15
+ > StatutTache obtenirStatutVerificationApiV1VerificationVerifierAsyncIdTacheStatutGet()
16
+
17
+ Récupère le statut et le résultat d\'une tâche de vérification asynchrone. **Statuts possibles:** - `PENDING`: Tâche en attente dans la file - `STARTED`: Tâche en cours d\'exécution - `SUCCESS`: Tâche terminée avec succès (voir `resultat`) - `FAILURE`: Erreur système (exception non gérée) **Note:** Le champ `resultat.statut` peut être \"SUCCES\" ou \"ERREUR\" indépendamment du statut Celery (qui sera toujours SUCCESS si la tâche s\'est exécutée).
18
+
19
+ ### Example
20
+
21
+ ```typescript
22
+ import {
23
+ VrificationPDFXMLApi,
24
+ Configuration
25
+ } from '@factpulse/sdk';
26
+
27
+ const configuration = new Configuration();
28
+ const apiInstance = new VrificationPDFXMLApi(configuration);
29
+
30
+ let idTache: string; // (default to undefined)
31
+
32
+ const { status, data } = await apiInstance.obtenirStatutVerificationApiV1VerificationVerifierAsyncIdTacheStatutGet(
33
+ idTache
34
+ );
35
+ ```
36
+
37
+ ### Parameters
38
+
39
+ |Name | Type | Description | Notes|
40
+ |------------- | ------------- | ------------- | -------------|
41
+ | **idTache** | [**string**] | | defaults to undefined|
42
+
43
+
44
+ ### Return type
45
+
46
+ **StatutTache**
47
+
48
+ ### Authorization
49
+
50
+ [HTTPBearer](../README.md#HTTPBearer)
51
+
52
+ ### HTTP request headers
53
+
54
+ - **Content-Type**: Not defined
55
+ - **Accept**: application/json
56
+
57
+
58
+ ### HTTP response details
59
+ | Status code | Description | Response headers |
60
+ |-------------|-------------|------------------|
61
+ |**200** | Successful Response | - |
62
+ |**422** | Validation Error | - |
63
+
64
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
65
+
66
+ # **obtenirStatutVerificationApiV1VerificationVerifierAsyncIdTacheStatutGet_0**
67
+ > StatutTache obtenirStatutVerificationApiV1VerificationVerifierAsyncIdTacheStatutGet_0()
68
+
69
+ Récupère le statut et le résultat d\'une tâche de vérification asynchrone. **Statuts possibles:** - `PENDING`: Tâche en attente dans la file - `STARTED`: Tâche en cours d\'exécution - `SUCCESS`: Tâche terminée avec succès (voir `resultat`) - `FAILURE`: Erreur système (exception non gérée) **Note:** Le champ `resultat.statut` peut être \"SUCCES\" ou \"ERREUR\" indépendamment du statut Celery (qui sera toujours SUCCESS si la tâche s\'est exécutée).
70
+
71
+ ### Example
72
+
73
+ ```typescript
74
+ import {
75
+ VrificationPDFXMLApi,
76
+ Configuration
77
+ } from '@factpulse/sdk';
78
+
79
+ const configuration = new Configuration();
80
+ const apiInstance = new VrificationPDFXMLApi(configuration);
81
+
82
+ let idTache: string; // (default to undefined)
83
+
84
+ const { status, data } = await apiInstance.obtenirStatutVerificationApiV1VerificationVerifierAsyncIdTacheStatutGet_0(
85
+ idTache
86
+ );
87
+ ```
88
+
89
+ ### Parameters
90
+
91
+ |Name | Type | Description | Notes|
92
+ |------------- | ------------- | ------------- | -------------|
93
+ | **idTache** | [**string**] | | defaults to undefined|
94
+
95
+
96
+ ### Return type
97
+
98
+ **StatutTache**
99
+
100
+ ### Authorization
101
+
102
+ [HTTPBearer](../README.md#HTTPBearer)
103
+
104
+ ### HTTP request headers
105
+
106
+ - **Content-Type**: Not defined
107
+ - **Accept**: application/json
108
+
109
+
110
+ ### HTTP response details
111
+ | Status code | Description | Response headers |
112
+ |-------------|-------------|------------------|
113
+ |**200** | Successful Response | - |
114
+ |**422** | Validation Error | - |
115
+
116
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
117
+
118
+ # **verifierPdfAsyncApiV1VerificationVerifierAsyncPost**
119
+ > ReponseTache verifierPdfAsyncApiV1VerificationVerifierAsyncPost()
120
+
121
+ Vérifie la conformité PDF/XML Factur-X de manière asynchrone. **IMPORTANT**: Seuls les PDF Factur-X (avec XML embarqué) sont acceptés. Les PDF sans XML Factur-X retourneront une erreur `NOT_FACTURX` dans le résultat. Cette version utilise une tâche Celery et peut faire appel au service OCR si le PDF est une image ou si `forcer_ocr=true`. **Retourne immédiatement** un ID de tâche. Utilisez `/verifier-async/{id_tache}/statut` pour récupérer le résultat. **Principe de vérification (Factur-X 1.08):** - Principe n°2: Le XML ne peut contenir que des infos présentes dans le PDF - Principe n°4: Toute info XML doit être présente et conforme dans le PDF **Champs vérifiés:** - Identification: BT-1 (n° facture), BT-2 (date), BT-3 (type), BT-5 (devise), BT-23 (cadre) - Vendeur: BT-27 (nom), BT-29 (SIRET), BT-30 (SIREN), BT-31 (TVA) - Acheteur: BT-44 (nom), BT-46 (SIRET), BT-47 (SIREN), BT-48 (TVA) - Montants: BT-109 (HT), BT-110 (TVA), BT-112 (TTC), BT-115 (à payer) - Ventilation TVA: BT-116, BT-117, BT-118, BT-119 - Lignes de facture: BT-153, BT-129, BT-146, BT-131 - Notes obligatoires: PMT, PMD, AAB - Règle BR-FR-09: cohérence SIRET/SIREN **Avantages par rapport à la version synchrone:** - Support OCR pour les PDF images (via service DocTR) - Timeout plus long pour les gros documents - Ne bloque pas le serveur
122
+
123
+ ### Example
124
+
125
+ ```typescript
126
+ import {
127
+ VrificationPDFXMLApi,
128
+ Configuration
129
+ } from '@factpulse/sdk';
130
+
131
+ const configuration = new Configuration();
132
+ const apiInstance = new VrificationPDFXMLApi(configuration);
133
+
134
+ let fichierPdf: File; //Fichier PDF Factur-X à vérifier (default to undefined)
135
+ let forcerOcr: boolean; //Forcer l\\\'utilisation de l\\\'OCR même si le PDF contient du texte natif (optional) (default to false)
136
+
137
+ const { status, data } = await apiInstance.verifierPdfAsyncApiV1VerificationVerifierAsyncPost(
138
+ fichierPdf,
139
+ forcerOcr
140
+ );
141
+ ```
142
+
143
+ ### Parameters
144
+
145
+ |Name | Type | Description | Notes|
146
+ |------------- | ------------- | ------------- | -------------|
147
+ | **fichierPdf** | [**File**] | Fichier PDF Factur-X à vérifier | defaults to undefined|
148
+ | **forcerOcr** | [**boolean**] | Forcer l\\\'utilisation de l\\\'OCR même si le PDF contient du texte natif | (optional) defaults to false|
149
+
150
+
151
+ ### Return type
152
+
153
+ **ReponseTache**
154
+
155
+ ### Authorization
156
+
157
+ [HTTPBearer](../README.md#HTTPBearer)
158
+
159
+ ### HTTP request headers
160
+
161
+ - **Content-Type**: multipart/form-data
162
+ - **Accept**: application/json
163
+
164
+
165
+ ### HTTP response details
166
+ | Status code | Description | Response headers |
167
+ |-------------|-------------|------------------|
168
+ |**202** | Successful Response | - |
169
+ |**422** | Validation Error | - |
170
+
171
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
172
+
173
+ # **verifierPdfAsyncApiV1VerificationVerifierAsyncPost_0**
174
+ > ReponseTache verifierPdfAsyncApiV1VerificationVerifierAsyncPost_0()
175
+
176
+ Vérifie la conformité PDF/XML Factur-X de manière asynchrone. **IMPORTANT**: Seuls les PDF Factur-X (avec XML embarqué) sont acceptés. Les PDF sans XML Factur-X retourneront une erreur `NOT_FACTURX` dans le résultat. Cette version utilise une tâche Celery et peut faire appel au service OCR si le PDF est une image ou si `forcer_ocr=true`. **Retourne immédiatement** un ID de tâche. Utilisez `/verifier-async/{id_tache}/statut` pour récupérer le résultat. **Principe de vérification (Factur-X 1.08):** - Principe n°2: Le XML ne peut contenir que des infos présentes dans le PDF - Principe n°4: Toute info XML doit être présente et conforme dans le PDF **Champs vérifiés:** - Identification: BT-1 (n° facture), BT-2 (date), BT-3 (type), BT-5 (devise), BT-23 (cadre) - Vendeur: BT-27 (nom), BT-29 (SIRET), BT-30 (SIREN), BT-31 (TVA) - Acheteur: BT-44 (nom), BT-46 (SIRET), BT-47 (SIREN), BT-48 (TVA) - Montants: BT-109 (HT), BT-110 (TVA), BT-112 (TTC), BT-115 (à payer) - Ventilation TVA: BT-116, BT-117, BT-118, BT-119 - Lignes de facture: BT-153, BT-129, BT-146, BT-131 - Notes obligatoires: PMT, PMD, AAB - Règle BR-FR-09: cohérence SIRET/SIREN **Avantages par rapport à la version synchrone:** - Support OCR pour les PDF images (via service DocTR) - Timeout plus long pour les gros documents - Ne bloque pas le serveur
177
+
178
+ ### Example
179
+
180
+ ```typescript
181
+ import {
182
+ VrificationPDFXMLApi,
183
+ Configuration
184
+ } from '@factpulse/sdk';
185
+
186
+ const configuration = new Configuration();
187
+ const apiInstance = new VrificationPDFXMLApi(configuration);
188
+
189
+ let fichierPdf: File; //Fichier PDF Factur-X à vérifier (default to undefined)
190
+ let forcerOcr: boolean; //Forcer l\\\'utilisation de l\\\'OCR même si le PDF contient du texte natif (optional) (default to false)
191
+
192
+ const { status, data } = await apiInstance.verifierPdfAsyncApiV1VerificationVerifierAsyncPost_0(
193
+ fichierPdf,
194
+ forcerOcr
195
+ );
196
+ ```
197
+
198
+ ### Parameters
199
+
200
+ |Name | Type | Description | Notes|
201
+ |------------- | ------------- | ------------- | -------------|
202
+ | **fichierPdf** | [**File**] | Fichier PDF Factur-X à vérifier | defaults to undefined|
203
+ | **forcerOcr** | [**boolean**] | Forcer l\\\'utilisation de l\\\'OCR même si le PDF contient du texte natif | (optional) defaults to false|
204
+
205
+
206
+ ### Return type
207
+
208
+ **ReponseTache**
209
+
210
+ ### Authorization
211
+
212
+ [HTTPBearer](../README.md#HTTPBearer)
213
+
214
+ ### HTTP request headers
215
+
216
+ - **Content-Type**: multipart/form-data
217
+ - **Accept**: application/json
218
+
219
+
220
+ ### HTTP response details
221
+ | Status code | Description | Response headers |
222
+ |-------------|-------------|------------------|
223
+ |**202** | Successful Response | - |
224
+ |**422** | Validation Error | - |
225
+
226
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
227
+
228
+ # **verifierPdfSyncApiV1VerificationVerifierPost**
229
+ > ReponseVerificationSucces verifierPdfSyncApiV1VerificationVerifierPost()
230
+
231
+ Vérifie la conformité entre le PDF et son XML Factur-X embarqué. **IMPORTANT**: Seuls les PDF Factur-X (avec XML embarqué) sont acceptés. Les PDF sans XML Factur-X seront rejetés avec une erreur 400. Cette version synchrone utilise uniquement l\'extraction PDF native (pdfplumber). Pour les PDF images nécessitant de l\'OCR, utilisez l\'endpoint `/verifier-async`. **Principe de vérification (Factur-X 1.08):** - Principe n°2: Le XML ne peut contenir que des infos présentes dans le PDF - Principe n°4: Toute info XML doit être présente et conforme dans le PDF **Champs vérifiés:** - Identification: BT-1 (n° facture), BT-2 (date), BT-3 (type), BT-5 (devise), BT-23 (cadre) - Vendeur: BT-27 (nom), BT-29 (SIRET), BT-30 (SIREN), BT-31 (TVA) - Acheteur: BT-44 (nom), BT-46 (SIRET), BT-47 (SIREN), BT-48 (TVA) - Montants: BT-109 (HT), BT-110 (TVA), BT-112 (TTC), BT-115 (à payer) - Ventilation TVA: BT-116, BT-117, BT-118, BT-119 - Lignes de facture: BT-153, BT-129, BT-146, BT-131 - Notes obligatoires: PMT, PMD, AAB - Règle BR-FR-09: cohérence SIRET/SIREN
232
+
233
+ ### Example
234
+
235
+ ```typescript
236
+ import {
237
+ VrificationPDFXMLApi,
238
+ Configuration
239
+ } from '@factpulse/sdk';
240
+
241
+ const configuration = new Configuration();
242
+ const apiInstance = new VrificationPDFXMLApi(configuration);
243
+
244
+ let fichierPdf: File; //Fichier PDF Factur-X à vérifier (default to undefined)
245
+
246
+ const { status, data } = await apiInstance.verifierPdfSyncApiV1VerificationVerifierPost(
247
+ fichierPdf
248
+ );
249
+ ```
250
+
251
+ ### Parameters
252
+
253
+ |Name | Type | Description | Notes|
254
+ |------------- | ------------- | ------------- | -------------|
255
+ | **fichierPdf** | [**File**] | Fichier PDF Factur-X à vérifier | defaults to undefined|
256
+
257
+
258
+ ### Return type
259
+
260
+ **ReponseVerificationSucces**
261
+
262
+ ### Authorization
263
+
264
+ [HTTPBearer](../README.md#HTTPBearer)
265
+
266
+ ### HTTP request headers
267
+
268
+ - **Content-Type**: multipart/form-data
269
+ - **Accept**: application/json
270
+
271
+
272
+ ### HTTP response details
273
+ | Status code | Description | Response headers |
274
+ |-------------|-------------|------------------|
275
+ |**200** | Vérification réussie | - |
276
+ |**400** | Erreur de vérification (PDF non Factur-X, invalide, etc.) | - |
277
+ |**413** | PDF trop volumineux ou trop de pages | - |
278
+ |**422** | Validation Error | - |
279
+
280
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
281
+
282
+ # **verifierPdfSyncApiV1VerificationVerifierPost_0**
283
+ > ReponseVerificationSucces verifierPdfSyncApiV1VerificationVerifierPost_0()
284
+
285
+ Vérifie la conformité entre le PDF et son XML Factur-X embarqué. **IMPORTANT**: Seuls les PDF Factur-X (avec XML embarqué) sont acceptés. Les PDF sans XML Factur-X seront rejetés avec une erreur 400. Cette version synchrone utilise uniquement l\'extraction PDF native (pdfplumber). Pour les PDF images nécessitant de l\'OCR, utilisez l\'endpoint `/verifier-async`. **Principe de vérification (Factur-X 1.08):** - Principe n°2: Le XML ne peut contenir que des infos présentes dans le PDF - Principe n°4: Toute info XML doit être présente et conforme dans le PDF **Champs vérifiés:** - Identification: BT-1 (n° facture), BT-2 (date), BT-3 (type), BT-5 (devise), BT-23 (cadre) - Vendeur: BT-27 (nom), BT-29 (SIRET), BT-30 (SIREN), BT-31 (TVA) - Acheteur: BT-44 (nom), BT-46 (SIRET), BT-47 (SIREN), BT-48 (TVA) - Montants: BT-109 (HT), BT-110 (TVA), BT-112 (TTC), BT-115 (à payer) - Ventilation TVA: BT-116, BT-117, BT-118, BT-119 - Lignes de facture: BT-153, BT-129, BT-146, BT-131 - Notes obligatoires: PMT, PMD, AAB - Règle BR-FR-09: cohérence SIRET/SIREN
286
+
287
+ ### Example
288
+
289
+ ```typescript
290
+ import {
291
+ VrificationPDFXMLApi,
292
+ Configuration
293
+ } from '@factpulse/sdk';
294
+
295
+ const configuration = new Configuration();
296
+ const apiInstance = new VrificationPDFXMLApi(configuration);
297
+
298
+ let fichierPdf: File; //Fichier PDF Factur-X à vérifier (default to undefined)
299
+
300
+ const { status, data } = await apiInstance.verifierPdfSyncApiV1VerificationVerifierPost_0(
301
+ fichierPdf
302
+ );
303
+ ```
304
+
305
+ ### Parameters
306
+
307
+ |Name | Type | Description | Notes|
308
+ |------------- | ------------- | ------------- | -------------|
309
+ | **fichierPdf** | [**File**] | Fichier PDF Factur-X à vérifier | defaults to undefined|
310
+
311
+
312
+ ### Return type
313
+
314
+ **ReponseVerificationSucces**
315
+
316
+ ### Authorization
317
+
318
+ [HTTPBearer](../README.md#HTTPBearer)
319
+
320
+ ### HTTP request headers
321
+
322
+ - **Content-Type**: multipart/form-data
323
+ - **Accept**: application/json
324
+
325
+
326
+ ### HTTP response details
327
+ | Status code | Description | Response headers |
328
+ |-------------|-------------|------------------|
329
+ |**200** | Vérification réussie | - |
330
+ |**400** | Erreur de vérification (PDF non Factur-X, invalide, etc.) | - |
331
+ |**413** | PDF trop volumineux ou trop de pages | - |
332
+ |**422** | Validation Error | - |
333
+
334
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
335
+
@@ -15,23 +15,20 @@
15
15
 
16
16
  // May contain unused imports in some cases
17
17
  // @ts-ignore
18
- import type { QuotaInfo } from './quota-info';
18
+ import type { ValidationErrorDetail } from './validation-error-detail';
19
19
 
20
20
  /**
21
- * Modèle Pydantic représentant les données de l\'utilisateur authentifié.
21
+ * Erreur API standardisée (alignée sur AFNOR Error schema). Format unifié pour toutes les réponses d\'erreur HTTP.
22
22
  */
23
- export interface Utilisateur {
24
- 'id': number;
25
- 'username': string;
26
- 'email': string;
27
- 'is_active': boolean;
28
- 'is_superuser'?: boolean;
29
- 'is_staff'?: boolean;
30
- 'bypass_quota'?: boolean;
31
- 'team_id'?: number | null;
32
- 'has_quota'?: boolean;
33
- 'quota_info'?: QuotaInfo | null;
34
- 'is_trial'?: boolean;
35
- 'client_uid'?: string | null;
23
+ export interface APIError {
24
+ /**
25
+ * Code alphanumérique identifiant précisément l\'erreur
26
+ */
27
+ 'errorCode': string;
28
+ /**
29
+ * Message décrivant l\'erreur (non destiné à l\'utilisateur final)
30
+ */
31
+ 'errorMessage': string;
32
+ 'details'?: Array<ValidationErrorDetail> | null;
36
33
  }
37
34
 
@@ -0,0 +1,34 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * API REST FactPulse
5
+ * API REST pour la facturation électronique en France : Factur-X, AFNOR PDP/PA, signatures électroniques. ## 🎯 Fonctionnalités principales ### 📄 Génération de factures Factur-X - **Formats** : XML seul ou PDF/A-3 avec XML embarqué - **Profils** : MINIMUM, BASIC, EN16931, EXTENDED - **Normes** : EN 16931 (directive UE 2014/55), ISO 19005-3 (PDF/A-3), CII (UN/CEFACT) - **🆕 Format simplifié** : Génération à partir de SIRET + auto-enrichissement (API Chorus Pro + Recherche Entreprises) ### ✅ Validation et conformité - **Validation XML** : Schematron (45 à 210+ règles selon profil) - **Validation PDF** : PDF/A-3, métadonnées XMP Factur-X, signatures électroniques - **VeraPDF** : Validation stricte PDF/A (146+ règles ISO 19005-3) - **Traitement asynchrone** : Support Celery pour validations lourdes (VeraPDF) ### 📡 Intégration AFNOR PDP/PA (XP Z12-013) - **Soumission de flux** : Envoi de factures vers Plateformes de Dématérialisation Partenaires - **Recherche de flux** : Consultation des factures soumises - **Téléchargement** : Récupération des PDF/A-3 avec XML - **Directory Service** : Recherche d\'entreprises (SIREN/SIRET) - **Multi-client** : Support de plusieurs configs PDP par utilisateur (stored credentials ou zero-storage) ### ✍️ Signature électronique PDF - **Standards** : PAdES-B-B, PAdES-B-T (horodatage RFC 3161), PAdES-B-LT (archivage long terme) - **Niveaux eIDAS** : SES (auto-signé), AdES (CA commerciale), QES (PSCO) - **Validation** : Vérification intégrité cryptographique et certificats - **Génération de certificats** : Certificats X.509 auto-signés pour tests ### 🔄 Traitement asynchrone - **Celery** : Génération, validation et signature asynchrones - **Polling** : Suivi d\'état via `/taches/{id_tache}/statut` - **Pas de timeout** : Idéal pour gros fichiers ou validations lourdes ## 🔒 Authentification Toutes les requêtes nécessitent un **token JWT** dans le header Authorization : ``` Authorization: Bearer YOUR_JWT_TOKEN ``` ### Comment obtenir un token JWT ? #### 🔑 Méthode 1 : API `/api/token/` (Recommandée) **URL :** `https://www.factpulse.fr/api/token/` Cette méthode est **recommandée** pour l\'intégration dans vos applications et workflows CI/CD. **Prérequis :** Avoir défini un mot de passe sur votre compte **Pour les utilisateurs inscrits via email/password :** - Vous avez déjà un mot de passe, utilisez-le directement **Pour les utilisateurs inscrits via OAuth (Google/GitHub) :** - Vous devez d\'abord définir un mot de passe sur : https://www.factpulse.fr/accounts/password/set/ - Une fois le mot de passe créé, vous pourrez utiliser l\'API **Exemple de requête :** ```bash curl -X POST https://www.factpulse.fr/api/token/ \\ -H \"Content-Type: application/json\" \\ -d \'{ \"username\": \"votre_email@example.com\", \"password\": \"votre_mot_de_passe\" }\' ``` **Paramètre optionnel `client_uid` :** Pour sélectionner les credentials d\'un client spécifique (PA/PDP, Chorus Pro, certificats de signature), ajoutez `client_uid` : ```bash curl -X POST https://www.factpulse.fr/api/token/ \\ -H \"Content-Type: application/json\" \\ -d \'{ \"username\": \"votre_email@example.com\", \"password\": \"votre_mot_de_passe\", \"client_uid\": \"550e8400-e29b-41d4-a716-446655440000\" }\' ``` Le `client_uid` sera inclus dans le JWT et permettra à l\'API d\'utiliser automatiquement : - Les credentials AFNOR/PDP configurés pour ce client - Les credentials Chorus Pro configurés pour ce client - Les certificats de signature électronique configurés pour ce client **Réponse :** ```json { \"access\": \"eyJ0eXAiOiJKV1QiLCJhbGc...\", // Token d\'accès (validité: 30 min) \"refresh\": \"eyJ0eXAiOiJKV1QiLCJhbGc...\" // Token de rafraîchissement (validité: 7 jours) } ``` **Avantages :** - ✅ Automatisation complète (CI/CD, scripts) - ✅ Gestion programmatique des tokens - ✅ Support du refresh token pour renouveler automatiquement l\'accès - ✅ Intégration facile dans n\'importe quel langage/outil #### 🖥️ Méthode 2 : Génération via Dashboard (Alternative) **URL :** https://www.factpulse.fr/dashboard/ Cette méthode convient pour des tests rapides ou une utilisation occasionnelle via l\'interface graphique. **Fonctionnement :** - Connectez-vous au dashboard - Utilisez les boutons \"Generate Test Token\" ou \"Generate Production Token\" - Fonctionne pour **tous** les utilisateurs (OAuth et email/password), sans nécessiter de mot de passe **Types de tokens :** - **Token Test** : Validité 24h, quota 1000 appels/jour (gratuit) - **Token Production** : Validité 7 jours, quota selon votre forfait **Avantages :** - ✅ Rapide pour tester l\'API - ✅ Aucun mot de passe requis - ✅ Interface visuelle simple **Inconvénients :** - ❌ Nécessite une action manuelle - ❌ Pas de refresh token - ❌ Moins adapté pour l\'automatisation ### 📚 Documentation complète Pour plus d\'informations sur l\'authentification et l\'utilisation de l\'API : https://www.factpulse.fr/documentation-api/
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ // May contain unused imports in some cases
17
+ // @ts-ignore
18
+ import type { AdresseElectronique } from './adresse-electronique';
19
+
20
+ /**
21
+ * Informations sur le bénéficiaire du paiement (BG-10 / PayeeTradeParty). Le bénéficiaire est la partie qui reçoit le paiement. Ce bloc est utilisé uniquement si le bénéficiaire est différent du vendeur (fournisseur). **Cas d\'usage principal** : Affacturage (factoring) Quand une facture est affacturée, le factor (société d\'affacturage) devient le bénéficiaire du paiement à la place du fournisseur. **Business Terms (EN16931)** : - BT-59 : Nom du bénéficiaire (obligatoire) - BT-60 : Identifiant du bénéficiaire (SIRET avec schemeID 0009) - BT-61 : Identifiant légal du bénéficiaire (SIREN avec schemeID 0002) **Référence** : docs/guide_affacturage.md
22
+ */
23
+ export interface Beneficiaire {
24
+ /**
25
+ * Nom du bénéficiaire (BT-59). Obligatoire.
26
+ */
27
+ 'nom': string;
28
+ 'siret'?: string | null;
29
+ 'siren'?: string | null;
30
+ 'adresseElectronique'?: AdresseElectronique | null;
31
+ 'iban'?: string | null;
32
+ 'bic'?: string | null;
33
+ }
34
+
@@ -0,0 +1,50 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * API REST FactPulse
5
+ * API REST pour la facturation électronique en France : Factur-X, AFNOR PDP/PA, signatures électroniques. ## 🎯 Fonctionnalités principales ### 📄 Génération de factures Factur-X - **Formats** : XML seul ou PDF/A-3 avec XML embarqué - **Profils** : MINIMUM, BASIC, EN16931, EXTENDED - **Normes** : EN 16931 (directive UE 2014/55), ISO 19005-3 (PDF/A-3), CII (UN/CEFACT) - **🆕 Format simplifié** : Génération à partir de SIRET + auto-enrichissement (API Chorus Pro + Recherche Entreprises) ### ✅ Validation et conformité - **Validation XML** : Schematron (45 à 210+ règles selon profil) - **Validation PDF** : PDF/A-3, métadonnées XMP Factur-X, signatures électroniques - **VeraPDF** : Validation stricte PDF/A (146+ règles ISO 19005-3) - **Traitement asynchrone** : Support Celery pour validations lourdes (VeraPDF) ### 📡 Intégration AFNOR PDP/PA (XP Z12-013) - **Soumission de flux** : Envoi de factures vers Plateformes de Dématérialisation Partenaires - **Recherche de flux** : Consultation des factures soumises - **Téléchargement** : Récupération des PDF/A-3 avec XML - **Directory Service** : Recherche d\'entreprises (SIREN/SIRET) - **Multi-client** : Support de plusieurs configs PDP par utilisateur (stored credentials ou zero-storage) ### ✍️ Signature électronique PDF - **Standards** : PAdES-B-B, PAdES-B-T (horodatage RFC 3161), PAdES-B-LT (archivage long terme) - **Niveaux eIDAS** : SES (auto-signé), AdES (CA commerciale), QES (PSCO) - **Validation** : Vérification intégrité cryptographique et certificats - **Génération de certificats** : Certificats X.509 auto-signés pour tests ### 🔄 Traitement asynchrone - **Celery** : Génération, validation et signature asynchrones - **Polling** : Suivi d\'état via `/taches/{id_tache}/statut` - **Pas de timeout** : Idéal pour gros fichiers ou validations lourdes ## 🔒 Authentification Toutes les requêtes nécessitent un **token JWT** dans le header Authorization : ``` Authorization: Bearer YOUR_JWT_TOKEN ``` ### Comment obtenir un token JWT ? #### 🔑 Méthode 1 : API `/api/token/` (Recommandée) **URL :** `https://www.factpulse.fr/api/token/` Cette méthode est **recommandée** pour l\'intégration dans vos applications et workflows CI/CD. **Prérequis :** Avoir défini un mot de passe sur votre compte **Pour les utilisateurs inscrits via email/password :** - Vous avez déjà un mot de passe, utilisez-le directement **Pour les utilisateurs inscrits via OAuth (Google/GitHub) :** - Vous devez d\'abord définir un mot de passe sur : https://www.factpulse.fr/accounts/password/set/ - Une fois le mot de passe créé, vous pourrez utiliser l\'API **Exemple de requête :** ```bash curl -X POST https://www.factpulse.fr/api/token/ \\ -H \"Content-Type: application/json\" \\ -d \'{ \"username\": \"votre_email@example.com\", \"password\": \"votre_mot_de_passe\" }\' ``` **Paramètre optionnel `client_uid` :** Pour sélectionner les credentials d\'un client spécifique (PA/PDP, Chorus Pro, certificats de signature), ajoutez `client_uid` : ```bash curl -X POST https://www.factpulse.fr/api/token/ \\ -H \"Content-Type: application/json\" \\ -d \'{ \"username\": \"votre_email@example.com\", \"password\": \"votre_mot_de_passe\", \"client_uid\": \"550e8400-e29b-41d4-a716-446655440000\" }\' ``` Le `client_uid` sera inclus dans le JWT et permettra à l\'API d\'utiliser automatiquement : - Les credentials AFNOR/PDP configurés pour ce client - Les credentials Chorus Pro configurés pour ce client - Les certificats de signature électronique configurés pour ce client **Réponse :** ```json { \"access\": \"eyJ0eXAiOiJKV1QiLCJhbGc...\", // Token d\'accès (validité: 30 min) \"refresh\": \"eyJ0eXAiOiJKV1QiLCJhbGc...\" // Token de rafraîchissement (validité: 7 jours) } ``` **Avantages :** - ✅ Automatisation complète (CI/CD, scripts) - ✅ Gestion programmatique des tokens - ✅ Support du refresh token pour renouveler automatiquement l\'accès - ✅ Intégration facile dans n\'importe quel langage/outil #### 🖥️ Méthode 2 : Génération via Dashboard (Alternative) **URL :** https://www.factpulse.fr/dashboard/ Cette méthode convient pour des tests rapides ou une utilisation occasionnelle via l\'interface graphique. **Fonctionnement :** - Connectez-vous au dashboard - Utilisez les boutons \"Generate Test Token\" ou \"Generate Production Token\" - Fonctionne pour **tous** les utilisateurs (OAuth et email/password), sans nécessiter de mot de passe **Types de tokens :** - **Token Test** : Validité 24h, quota 1000 appels/jour (gratuit) - **Token Production** : Validité 7 jours, quota selon votre forfait **Avantages :** - ✅ Rapide pour tester l\'API - ✅ Aucun mot de passe requis - ✅ Interface visuelle simple **Inconvénients :** - ❌ Nécessite une action manuelle - ❌ Pas de refresh token - ❌ Moins adapté pour l\'automatisation ### 📚 Documentation complète Pour plus d\'informations sur l\'authentification et l\'utilisation de l\'API : https://www.factpulse.fr/documentation-api/
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ * Coordonnées d\'une zone rectangulaire dans le PDF. Les coordonnées sont en points PDF (1 point = 1/72 pouce). L\'origine (0,0) est en bas à gauche de la page.
19
+ */
20
+ export interface BoundingBoxSchema {
21
+ /**
22
+ * Coordonnée X gauche
23
+ */
24
+ 'x0': number;
25
+ /**
26
+ * Coordonnée Y bas
27
+ */
28
+ 'y0': number;
29
+ /**
30
+ * Coordonnée X droite
31
+ */
32
+ 'x1': number;
33
+ /**
34
+ * Coordonnée Y haut
35
+ */
36
+ 'y1': number;
37
+ /**
38
+ * Numéro de page (0-indexed)
39
+ */
40
+ 'page'?: number;
41
+ /**
42
+ * Largeur de la zone
43
+ */
44
+ 'width': number;
45
+ /**
46
+ * Hauteur de la zone
47
+ */
48
+ 'height': number;
49
+ }
50
+
@@ -16,12 +16,16 @@
16
16
  // May contain unused imports in some cases
17
17
  // @ts-ignore
18
18
  import type { CodeCadreFacturation } from './code-cadre-facturation';
19
+ // May contain unused imports in some cases
20
+ // @ts-ignore
21
+ import type { NatureOperation } from './nature-operation';
19
22
 
20
23
  /**
21
- * Définit le cadre de facturation (ex: A1 pour une facture fournisseur).
24
+ * Définit le cadre de facturation. - code_cadre_facturation: Code Chorus Pro (A1, A2, A9, A12) - utilisé pour B2G - nature_operation: Nature de l\'opération (B1, S1, M1, etc.) - prioritaire pour Factur-X Si nature_operation est fourni, il sera utilisé directement dans le XML Factur-X (BT-23). Sinon, le code sera déduit de code_cadre_facturation via un mapping automatique. Exemple: >>> cadre = CadreDeFacturation( ... code_cadre_facturation=CodeCadreFacturation.A1_FACTURE_FOURNISSEUR, ... nature_operation=NatureOperation.BIENS # Force B1 au lieu de S1 ... )
22
25
  */
23
26
  export interface CadreDeFacturation {
24
27
  'codeCadreFacturation': CodeCadreFacturation;
28
+ 'natureOperation'?: NatureOperation | null;
25
29
  'codeServiceValideur'?: string | null;
26
30
  'codeStructureValideur'?: string | null;
27
31
  }
@@ -0,0 +1,54 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * API REST FactPulse
5
+ * API REST pour la facturation électronique en France : Factur-X, AFNOR PDP/PA, signatures électroniques. ## 🎯 Fonctionnalités principales ### 📄 Génération de factures Factur-X - **Formats** : XML seul ou PDF/A-3 avec XML embarqué - **Profils** : MINIMUM, BASIC, EN16931, EXTENDED - **Normes** : EN 16931 (directive UE 2014/55), ISO 19005-3 (PDF/A-3), CII (UN/CEFACT) - **🆕 Format simplifié** : Génération à partir de SIRET + auto-enrichissement (API Chorus Pro + Recherche Entreprises) ### ✅ Validation et conformité - **Validation XML** : Schematron (45 à 210+ règles selon profil) - **Validation PDF** : PDF/A-3, métadonnées XMP Factur-X, signatures électroniques - **VeraPDF** : Validation stricte PDF/A (146+ règles ISO 19005-3) - **Traitement asynchrone** : Support Celery pour validations lourdes (VeraPDF) ### 📡 Intégration AFNOR PDP/PA (XP Z12-013) - **Soumission de flux** : Envoi de factures vers Plateformes de Dématérialisation Partenaires - **Recherche de flux** : Consultation des factures soumises - **Téléchargement** : Récupération des PDF/A-3 avec XML - **Directory Service** : Recherche d\'entreprises (SIREN/SIRET) - **Multi-client** : Support de plusieurs configs PDP par utilisateur (stored credentials ou zero-storage) ### ✍️ Signature électronique PDF - **Standards** : PAdES-B-B, PAdES-B-T (horodatage RFC 3161), PAdES-B-LT (archivage long terme) - **Niveaux eIDAS** : SES (auto-signé), AdES (CA commerciale), QES (PSCO) - **Validation** : Vérification intégrité cryptographique et certificats - **Génération de certificats** : Certificats X.509 auto-signés pour tests ### 🔄 Traitement asynchrone - **Celery** : Génération, validation et signature asynchrones - **Polling** : Suivi d\'état via `/taches/{id_tache}/statut` - **Pas de timeout** : Idéal pour gros fichiers ou validations lourdes ## 🔒 Authentification Toutes les requêtes nécessitent un **token JWT** dans le header Authorization : ``` Authorization: Bearer YOUR_JWT_TOKEN ``` ### Comment obtenir un token JWT ? #### 🔑 Méthode 1 : API `/api/token/` (Recommandée) **URL :** `https://www.factpulse.fr/api/token/` Cette méthode est **recommandée** pour l\'intégration dans vos applications et workflows CI/CD. **Prérequis :** Avoir défini un mot de passe sur votre compte **Pour les utilisateurs inscrits via email/password :** - Vous avez déjà un mot de passe, utilisez-le directement **Pour les utilisateurs inscrits via OAuth (Google/GitHub) :** - Vous devez d\'abord définir un mot de passe sur : https://www.factpulse.fr/accounts/password/set/ - Une fois le mot de passe créé, vous pourrez utiliser l\'API **Exemple de requête :** ```bash curl -X POST https://www.factpulse.fr/api/token/ \\ -H \"Content-Type: application/json\" \\ -d \'{ \"username\": \"votre_email@example.com\", \"password\": \"votre_mot_de_passe\" }\' ``` **Paramètre optionnel `client_uid` :** Pour sélectionner les credentials d\'un client spécifique (PA/PDP, Chorus Pro, certificats de signature), ajoutez `client_uid` : ```bash curl -X POST https://www.factpulse.fr/api/token/ \\ -H \"Content-Type: application/json\" \\ -d \'{ \"username\": \"votre_email@example.com\", \"password\": \"votre_mot_de_passe\", \"client_uid\": \"550e8400-e29b-41d4-a716-446655440000\" }\' ``` Le `client_uid` sera inclus dans le JWT et permettra à l\'API d\'utiliser automatiquement : - Les credentials AFNOR/PDP configurés pour ce client - Les credentials Chorus Pro configurés pour ce client - Les certificats de signature électronique configurés pour ce client **Réponse :** ```json { \"access\": \"eyJ0eXAiOiJKV1QiLCJhbGc...\", // Token d\'accès (validité: 30 min) \"refresh\": \"eyJ0eXAiOiJKV1QiLCJhbGc...\" // Token de rafraîchissement (validité: 7 jours) } ``` **Avantages :** - ✅ Automatisation complète (CI/CD, scripts) - ✅ Gestion programmatique des tokens - ✅ Support du refresh token pour renouveler automatiquement l\'accès - ✅ Intégration facile dans n\'importe quel langage/outil #### 🖥️ Méthode 2 : Génération via Dashboard (Alternative) **URL :** https://www.factpulse.fr/dashboard/ Cette méthode convient pour des tests rapides ou une utilisation occasionnelle via l\'interface graphique. **Fonctionnement :** - Connectez-vous au dashboard - Utilisez les boutons \"Generate Test Token\" ou \"Generate Production Token\" - Fonctionne pour **tous** les utilisateurs (OAuth et email/password), sans nécessiter de mot de passe **Types de tokens :** - **Token Test** : Validité 24h, quota 1000 appels/jour (gratuit) - **Token Production** : Validité 7 jours, quota selon votre forfait **Avantages :** - ✅ Rapide pour tester l\'API - ✅ Aucun mot de passe requis - ✅ Interface visuelle simple **Inconvénients :** - ❌ Nécessite une action manuelle - ❌ Pas de refresh token - ❌ Moins adapté pour l\'automatisation ### 📚 Documentation complète Pour plus d\'informations sur l\'authentification et l\'utilisation de l\'API : https://www.factpulse.fr/documentation-api/
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ // May contain unused imports in some cases
17
+ // @ts-ignore
18
+ import type { BoundingBoxSchema } from './bounding-box-schema';
19
+ // May contain unused imports in some cases
20
+ // @ts-ignore
21
+ import type { StatutChampAPI } from './statut-champ-api';
22
+
23
+ /**
24
+ * Un champ vérifié avec toutes ses informations (extraction + conformité + localisation).
25
+ */
26
+ export interface ChampVerifieSchema {
27
+ /**
28
+ * Business Term EN16931 (ex: BT-1)
29
+ */
30
+ 'business_term': string;
31
+ /**
32
+ * Libellé du champ (ex: N° Facture)
33
+ */
34
+ 'label': string;
35
+ 'valeur_pdf'?: string | null;
36
+ 'valeur_xml'?: string | null;
37
+ /**
38
+ * Statut de conformité
39
+ */
40
+ 'statut': StatutChampAPI;
41
+ 'message'?: string | null;
42
+ /**
43
+ * Score de confiance (0-1)
44
+ */
45
+ 'confiance'?: number;
46
+ /**
47
+ * Source d\'extraction
48
+ */
49
+ 'source'?: string;
50
+ 'bbox'?: BoundingBoxSchema | null;
51
+ }
52
+
53
+
54
+
@@ -14,6 +14,9 @@
14
14
 
15
15
 
16
16
 
17
+ /**
18
+ * Codes Chorus Pro pour le cadre de facturation (usage B2G).
19
+ */
17
20
 
18
21
  export const CodeCadreFacturation = {
19
22
  A1FactureFournisseur: 'A1_FACTURE_FOURNISSEUR',
@@ -24,7 +24,7 @@ import type { AdressePostale } from './adresse-postale';
24
24
  * Informations sur le destinataire de la facture (le client).
25
25
  */
26
26
  export interface Destinataire {
27
- 'adresseElectronique': AdresseElectronique;
27
+ 'adresseElectronique': AdresseElectronique | null;
28
28
  'codeServiceExecutant'?: string | null;
29
29
  'nom'?: string | null;
30
30
  'siren'?: string | null;
@@ -0,0 +1,30 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * API REST FactPulse
5
+ * API REST pour la facturation électronique en France : Factur-X, AFNOR PDP/PA, signatures électroniques. ## 🎯 Fonctionnalités principales ### 📄 Génération de factures Factur-X - **Formats** : XML seul ou PDF/A-3 avec XML embarqué - **Profils** : MINIMUM, BASIC, EN16931, EXTENDED - **Normes** : EN 16931 (directive UE 2014/55), ISO 19005-3 (PDF/A-3), CII (UN/CEFACT) - **🆕 Format simplifié** : Génération à partir de SIRET + auto-enrichissement (API Chorus Pro + Recherche Entreprises) ### ✅ Validation et conformité - **Validation XML** : Schematron (45 à 210+ règles selon profil) - **Validation PDF** : PDF/A-3, métadonnées XMP Factur-X, signatures électroniques - **VeraPDF** : Validation stricte PDF/A (146+ règles ISO 19005-3) - **Traitement asynchrone** : Support Celery pour validations lourdes (VeraPDF) ### 📡 Intégration AFNOR PDP/PA (XP Z12-013) - **Soumission de flux** : Envoi de factures vers Plateformes de Dématérialisation Partenaires - **Recherche de flux** : Consultation des factures soumises - **Téléchargement** : Récupération des PDF/A-3 avec XML - **Directory Service** : Recherche d\'entreprises (SIREN/SIRET) - **Multi-client** : Support de plusieurs configs PDP par utilisateur (stored credentials ou zero-storage) ### ✍️ Signature électronique PDF - **Standards** : PAdES-B-B, PAdES-B-T (horodatage RFC 3161), PAdES-B-LT (archivage long terme) - **Niveaux eIDAS** : SES (auto-signé), AdES (CA commerciale), QES (PSCO) - **Validation** : Vérification intégrité cryptographique et certificats - **Génération de certificats** : Certificats X.509 auto-signés pour tests ### 🔄 Traitement asynchrone - **Celery** : Génération, validation et signature asynchrones - **Polling** : Suivi d\'état via `/taches/{id_tache}/statut` - **Pas de timeout** : Idéal pour gros fichiers ou validations lourdes ## 🔒 Authentification Toutes les requêtes nécessitent un **token JWT** dans le header Authorization : ``` Authorization: Bearer YOUR_JWT_TOKEN ``` ### Comment obtenir un token JWT ? #### 🔑 Méthode 1 : API `/api/token/` (Recommandée) **URL :** `https://www.factpulse.fr/api/token/` Cette méthode est **recommandée** pour l\'intégration dans vos applications et workflows CI/CD. **Prérequis :** Avoir défini un mot de passe sur votre compte **Pour les utilisateurs inscrits via email/password :** - Vous avez déjà un mot de passe, utilisez-le directement **Pour les utilisateurs inscrits via OAuth (Google/GitHub) :** - Vous devez d\'abord définir un mot de passe sur : https://www.factpulse.fr/accounts/password/set/ - Une fois le mot de passe créé, vous pourrez utiliser l\'API **Exemple de requête :** ```bash curl -X POST https://www.factpulse.fr/api/token/ \\ -H \"Content-Type: application/json\" \\ -d \'{ \"username\": \"votre_email@example.com\", \"password\": \"votre_mot_de_passe\" }\' ``` **Paramètre optionnel `client_uid` :** Pour sélectionner les credentials d\'un client spécifique (PA/PDP, Chorus Pro, certificats de signature), ajoutez `client_uid` : ```bash curl -X POST https://www.factpulse.fr/api/token/ \\ -H \"Content-Type: application/json\" \\ -d \'{ \"username\": \"votre_email@example.com\", \"password\": \"votre_mot_de_passe\", \"client_uid\": \"550e8400-e29b-41d4-a716-446655440000\" }\' ``` Le `client_uid` sera inclus dans le JWT et permettra à l\'API d\'utiliser automatiquement : - Les credentials AFNOR/PDP configurés pour ce client - Les credentials Chorus Pro configurés pour ce client - Les certificats de signature électronique configurés pour ce client **Réponse :** ```json { \"access\": \"eyJ0eXAiOiJKV1QiLCJhbGc...\", // Token d\'accès (validité: 30 min) \"refresh\": \"eyJ0eXAiOiJKV1QiLCJhbGc...\" // Token de rafraîchissement (validité: 7 jours) } ``` **Avantages :** - ✅ Automatisation complète (CI/CD, scripts) - ✅ Gestion programmatique des tokens - ✅ Support du refresh token pour renouveler automatiquement l\'accès - ✅ Intégration facile dans n\'importe quel langage/outil #### 🖥️ Méthode 2 : Génération via Dashboard (Alternative) **URL :** https://www.factpulse.fr/dashboard/ Cette méthode convient pour des tests rapides ou une utilisation occasionnelle via l\'interface graphique. **Fonctionnement :** - Connectez-vous au dashboard - Utilisez les boutons \"Generate Test Token\" ou \"Generate Production Token\" - Fonctionne pour **tous** les utilisateurs (OAuth et email/password), sans nécessiter de mot de passe **Types de tokens :** - **Token Test** : Validité 24h, quota 1000 appels/jour (gratuit) - **Token Production** : Validité 7 jours, quota selon votre forfait **Avantages :** - ✅ Rapide pour tester l\'API - ✅ Aucun mot de passe requis - ✅ Interface visuelle simple **Inconvénients :** - ❌ Nécessite une action manuelle - ❌ Pas de refresh token - ❌ Moins adapté pour l\'automatisation ### 📚 Documentation complète Pour plus d\'informations sur l\'authentification et l\'utilisation de l\'API : https://www.factpulse.fr/documentation-api/
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ * Dimensions d\'une page PDF.
19
+ */
20
+ export interface DimensionPageSchema {
21
+ /**
22
+ * Largeur en points PDF
23
+ */
24
+ 'width': number;
25
+ /**
26
+ * Hauteur en points PDF
27
+ */
28
+ 'height': number;
29
+ }
30
+
@@ -15,13 +15,15 @@
15
15
 
16
16
 
17
17
  /**
18
- * Informations détaillées sur le quota.
18
+ * Direction du flux
19
19
  */
20
- export interface QuotaInfo {
21
- 'limit': number;
22
- 'usage': number;
23
- 'remaining': number;
24
- 'reset_date': string;
25
- 'plan': string;
26
- }
20
+
21
+ export const DirectionFlux = {
22
+ In: 'In',
23
+ Out: 'Out'
24
+ } as const;
25
+
26
+ export type DirectionFlux = typeof DirectionFlux[keyof typeof DirectionFlux];
27
+
28
+
27
29