@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,35 @@
1
+ # FournisseurEntrant
2
+
3
+ Fournisseur extrait d\'une facture entrante. Contrairement au modèle Fournisseur de models.py, ce modèle n\'a pas de champ id_fournisseur car cette information n\'est pas disponible dans les XML Factur-X/CII/UBL.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **nom** | **string** | Raison sociale du fournisseur (BT-27) | [default to undefined]
10
+ **siren** | **string** | | [optional] [default to undefined]
11
+ **siret** | **string** | | [optional] [default to undefined]
12
+ **numero_tva_intra** | **string** | | [optional] [default to undefined]
13
+ **adresse_postale** | [**AdressePostale**](AdressePostale.md) | | [optional] [default to undefined]
14
+ **adresse_electronique** | [**AdresseElectronique**](AdresseElectronique.md) | | [optional] [default to undefined]
15
+ **email** | **string** | | [optional] [default to undefined]
16
+ **telephone** | **string** | | [optional] [default to undefined]
17
+
18
+ ## Example
19
+
20
+ ```typescript
21
+ import { FournisseurEntrant } from '@factpulse/sdk';
22
+
23
+ const instance: FournisseurEntrant = {
24
+ nom,
25
+ siren,
26
+ siret,
27
+ numero_tva_intra,
28
+ adresse_postale,
29
+ adresse_electronique,
30
+ email,
31
+ telephone,
32
+ };
33
+ ```
34
+
35
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -1,6 +1,6 @@
1
1
  # LigneDeTVA
2
2
 
3
- Représente une ligne de totalisation par taux de TVA.
3
+ Représente une ligne de totalisation par taux de TVA. Pour les exonérations (catégories E, AE, K, G, O), les champs `motif_exoneration` et `code_vatex` sont requis selon EN16931.
4
4
 
5
5
  ## Properties
6
6
 
@@ -11,6 +11,8 @@ Name | Type | Description | Notes
11
11
  **taux** | **string** | | [optional] [default to undefined]
12
12
  **tauxManuel** | [**Tauxmanuel**](Tauxmanuel.md) | | [optional] [default to undefined]
13
13
  **categorie** | [**CategorieTVA**](CategorieTVA.md) | | [optional] [default to undefined]
14
+ **motifExoneration** | **string** | | [optional] [default to undefined]
15
+ **codeVatex** | **string** | | [optional] [default to undefined]
14
16
 
15
17
  ## Example
16
18
 
@@ -23,6 +25,8 @@ const instance: LigneDeTVA = {
23
25
  taux,
24
26
  tauxManuel,
25
27
  categorie,
28
+ motifExoneration,
29
+ codeVatex,
26
30
  };
27
31
  ```
28
32
 
@@ -0,0 +1,35 @@
1
+ # NatureOperation
2
+
3
+ Nature de l\'opération (BT-23) pour Factur-X - Réforme française. BR-FR-08: Le cadre de facturation doit être l\'un des codes suivants. La première lettre indique : B = Biens, S = Services, M = Mixte. Ref: XP Z12-012, article_conformite_pdf_facturx.md Exemple d\'utilisation: >>> cadre = CadreDeFacturation( ... code_cadre_facturation=CodeCadreFacturation.A1_FACTURE_FOURNISSEUR, ... nature_operation=NatureOperation.BIENS ... )
4
+
5
+ ## Enum
6
+
7
+ * `B1` (value: `'B1'`)
8
+
9
+ * `S1` (value: `'S1'`)
10
+
11
+ * `M1` (value: `'M1'`)
12
+
13
+ * `B2` (value: `'B2'`)
14
+
15
+ * `S2` (value: `'S2'`)
16
+
17
+ * `M2` (value: `'M2'`)
18
+
19
+ * `B4` (value: `'B4'`)
20
+
21
+ * `S4` (value: `'S4'`)
22
+
23
+ * `M4` (value: `'M4'`)
24
+
25
+ * `S3` (value: `'S3'`)
26
+
27
+ * `S5` (value: `'S5'`)
28
+
29
+ * `S6` (value: `'S6'`)
30
+
31
+ * `B7` (value: `'B7'`)
32
+
33
+ * `S7` (value: `'S7'`)
34
+
35
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
package/docs/Note.md CHANGED
@@ -6,8 +6,8 @@ Note de facture (IncludedNote en Factur-X). Les notes obligatoires pour BR-FR-0
6
6
 
7
7
  Name | Type | Description | Notes
8
8
  ------------ | ------------- | ------------- | -------------
9
- **subjectCode** | **string** | | [optional] [default to undefined]
10
- **content** | **string** | | [default to undefined]
9
+ **codeSujet** | **string** | | [optional] [default to undefined]
10
+ **contenu** | **string** | | [default to undefined]
11
11
 
12
12
  ## Example
13
13
 
@@ -15,8 +15,8 @@ Name | Type | Description | Notes
15
15
  import { Note } from '@factpulse/sdk';
16
16
 
17
17
  const instance: Note = {
18
- subjectCode,
19
- content,
18
+ codeSujet,
19
+ contenu,
20
20
  };
21
21
  ```
22
22
 
@@ -0,0 +1,33 @@
1
+ # NoteObligatoireSchema
2
+
3
+ Note obligatoire détectée avec localisation et comparaison XML/PDF.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **code_sujet** | **string** | Code sujet (PMT, PMD, AAB) | [default to undefined]
10
+ **label** | **string** | Libellé (ex: Indemnité recouvrement) | [default to undefined]
11
+ **valeur_pdf** | **string** | | [optional] [default to undefined]
12
+ **valeur_xml** | **string** | | [optional] [default to undefined]
13
+ **statut** | [**StatutChampAPI**](StatutChampAPI.md) | Statut de conformité (CONFORME si XML trouvé dans PDF) | [optional] [default to undefined]
14
+ **message** | **string** | | [optional] [default to undefined]
15
+ **bbox** | [**BoundingBoxSchema**](BoundingBoxSchema.md) | | [optional] [default to undefined]
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import { NoteObligatoireSchema } from '@factpulse/sdk';
21
+
22
+ const instance: NoteObligatoireSchema = {
23
+ code_sujet,
24
+ label,
25
+ valeur_pdf,
26
+ valeur_xml,
27
+ statut,
28
+ message,
29
+ bbox,
30
+ };
31
+ ```
32
+
33
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,29 @@
1
+ # PDPCredentials
2
+
3
+ Credentials PDP pour la stratégie zero-storage (Strategy B). Permet de fournir directement les credentials PDP dans la requête au lieu de les stocker dans Django. Utile pour : - Tests ponctuels sans persister les credentials - Intégrations temporaires - Environnements de développement
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **flow_service_url** | **string** | URL de base du Flow Service AFNOR | [default to undefined]
10
+ **directory_service_url** | **string** | | [optional] [default to undefined]
11
+ **token_url** | **string** | URL du serveur OAuth2 | [default to undefined]
12
+ **client_id** | **string** | Client ID OAuth2 | [default to undefined]
13
+ **client_secret** | **string** | Client Secret OAuth2 (sensible) | [default to undefined]
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import { PDPCredentials } from '@factpulse/sdk';
19
+
20
+ const instance: PDPCredentials = {
21
+ flow_service_url,
22
+ directory_service_url,
23
+ token_url,
24
+ client_id,
25
+ client_secret,
26
+ };
27
+ ```
28
+
29
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,13 @@
1
+ # ProfilFlux
2
+
3
+ Profils de flux supportés
4
+
5
+ ## Enum
6
+
7
+ * `Basic` (value: `'Basic'`)
8
+
9
+ * `Cius` (value: `'CIUS'`)
10
+
11
+ * `ExtendedCtcFr` (value: `'Extended-CTC-FR'`)
12
+
13
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,25 @@
1
+ # ReponseHealthcheckAFNOR
2
+
3
+ Réponse du healthcheck des services AFNOR
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **flow_service_ok** | **boolean** | État du Flow Service API | [default to undefined]
10
+ **directory_service_ok** | **boolean** | État du Directory Service API | [default to undefined]
11
+ **message** | **string** | Message descriptif de l\'état | [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { ReponseHealthcheckAFNOR } from '@factpulse/sdk';
17
+
18
+ const instance: ReponseHealthcheckAFNOR = {
19
+ flow_service_ok,
20
+ directory_service_ok,
21
+ message,
22
+ };
23
+ ```
24
+
25
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,27 @@
1
+ # ReponseRechercheFlux
2
+
3
+ Réponse d\'une recherche de flux
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **total** | **number** | Nombre total de résultats | [default to undefined]
10
+ **offset** | **number** | Décalage appliqué | [default to undefined]
11
+ **limit** | **number** | Limite de résultats | [default to undefined]
12
+ **resultats** | [**Array<FluxResume>**](FluxResume.md) | Liste des flux trouvés | [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { ReponseRechercheFlux } from '@factpulse/sdk';
18
+
19
+ const instance: ReponseRechercheFlux = {
20
+ total,
21
+ offset,
22
+ limit,
23
+ resultats,
24
+ };
25
+ ```
26
+
27
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,33 @@
1
+ # ReponseSoumissionFlux
2
+
3
+ Réponse après soumission d\'un flux
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **flow_id** | **string** | Identifiant unique du flux généré par la PDP | [default to undefined]
10
+ **tracking_id** | **string** | | [optional] [default to undefined]
11
+ **nom** | **string** | Nom du flux | [default to undefined]
12
+ **syntaxe_flux** | **string** | Syntaxe du flux (CII, UBL, etc.) | [default to undefined]
13
+ **profil_flux** | **string** | | [optional] [default to undefined]
14
+ **sha256** | **string** | Hash SHA256 du fichier soumis | [default to undefined]
15
+ **message** | **string** | Message de confirmation | [default to undefined]
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import { ReponseSoumissionFlux } from '@factpulse/sdk';
21
+
22
+ const instance: ReponseSoumissionFlux = {
23
+ flow_id,
24
+ tracking_id,
25
+ nom,
26
+ syntaxe_flux,
27
+ profil_flux,
28
+ sha256,
29
+ message,
30
+ };
31
+ ```
32
+
33
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,39 @@
1
+ # ReponseVerificationSucces
2
+
3
+ Réponse de vérification réussie avec données unifiées.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **est_conforme** | **boolean** | True si aucun écart critique | [default to undefined]
10
+ **score_conformite** | **number** | Score de conformité (0-100%) | [default to undefined]
11
+ **champs_verifies** | **number** | Nombre de champs vérifiés | [optional] [default to 0]
12
+ **champs_conformes** | **number** | Nombre de champs conformes | [optional] [default to 0]
13
+ **est_facturx** | **boolean** | True si le PDF contient du XML Factur-X | [optional] [default to false]
14
+ **profil_facturx** | **string** | | [optional] [default to undefined]
15
+ **champs** | [**Array<ChampVerifieSchema>**](ChampVerifieSchema.md) | Liste des champs vérifiés avec valeurs, statuts et coordonnées PDF | [optional] [default to undefined]
16
+ **notes_obligatoires** | [**Array<NoteObligatoireSchema>**](NoteObligatoireSchema.md) | Notes obligatoires (PMT, PMD, AAB) avec localisation PDF | [optional] [default to undefined]
17
+ **dimensions_pages** | [**Array<DimensionPageSchema>**](DimensionPageSchema.md) | Dimensions de chaque page du PDF (largeur, hauteur) | [optional] [default to undefined]
18
+ **avertissements** | **Array<string>** | Avertissements non bloquants | [optional] [default to undefined]
19
+
20
+ ## Example
21
+
22
+ ```typescript
23
+ import { ReponseVerificationSucces } from '@factpulse/sdk';
24
+
25
+ const instance: ReponseVerificationSucces = {
26
+ est_conforme,
27
+ score_conformite,
28
+ champs_verifies,
29
+ champs_conformes,
30
+ est_facturx,
31
+ profil_facturx,
32
+ champs,
33
+ notes_obligatoires,
34
+ dimensions_pages,
35
+ avertissements,
36
+ };
37
+ ```
38
+
39
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,37 @@
1
+ # RequeteRechercheFlux
2
+
3
+ Requête pour rechercher des flux soumis
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **date_maj_apres** | **string** | | [optional] [default to undefined]
10
+ **date_maj_avant** | **string** | | [optional] [default to undefined]
11
+ **type_flux** | [**Array<TypeFlux>**](TypeFlux.md) | | [optional] [default to undefined]
12
+ **direction_flux** | [**Array<DirectionFlux>**](DirectionFlux.md) | | [optional] [default to undefined]
13
+ **tracking_id** | **string** | | [optional] [default to undefined]
14
+ **flow_id** | **string** | | [optional] [default to undefined]
15
+ **statut_acquittement** | [**StatutAcquittement**](StatutAcquittement.md) | | [optional] [default to undefined]
16
+ **offset** | **number** | Décalage pour la pagination | [optional] [default to 0]
17
+ **limit** | **number** | Nombre maximum de résultats (max 100) | [optional] [default to 25]
18
+
19
+ ## Example
20
+
21
+ ```typescript
22
+ import { RequeteRechercheFlux } from '@factpulse/sdk';
23
+
24
+ const instance: RequeteRechercheFlux = {
25
+ date_maj_apres,
26
+ date_maj_avant,
27
+ type_flux,
28
+ direction_flux,
29
+ tracking_id,
30
+ flow_id,
31
+ statut_acquittement,
32
+ offset,
33
+ limit,
34
+ };
35
+ ```
36
+
37
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,31 @@
1
+ # RequeteSoumissionFlux
2
+
3
+ Requête pour soumettre une facture à une PDP/PA via AFNOR
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **nom_flux** | **string** | Nom du flux (ex: \'Facture 2025-001\') | [default to undefined]
10
+ **syntaxe_flux** | [**SyntaxeFlux**](SyntaxeFlux.md) | Syntaxe du flux (CII pour Factur-X) | [optional] [default to undefined]
11
+ **profil_flux** | [**ProfilFlux**](ProfilFlux.md) | | [optional] [default to undefined]
12
+ **tracking_id** | **string** | | [optional] [default to undefined]
13
+ **request_id** | **string** | | [optional] [default to undefined]
14
+ **pdp_credentials** | [**PDPCredentials**](PDPCredentials.md) | | [optional] [default to undefined]
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import { RequeteSoumissionFlux } from '@factpulse/sdk';
20
+
21
+ const instance: RequeteSoumissionFlux = {
22
+ nom_flux,
23
+ syntaxe_flux,
24
+ profil_flux,
25
+ tracking_id,
26
+ request_id,
27
+ pdp_credentials,
28
+ };
29
+ ```
30
+
31
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,13 @@
1
+ # StatutAcquittement
2
+
3
+ Statut d\'acquittement du flux
4
+
5
+ ## Enum
6
+
7
+ * `Pending` (value: `'Pending'`)
8
+
9
+ * `Ok` (value: `'Ok'`)
10
+
11
+ * `Error` (value: `'Error'`)
12
+
13
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,17 @@
1
+ # StatutChampAPI
2
+
3
+ Statut de conformité d\'un champ.
4
+
5
+ ## Enum
6
+
7
+ * `Conforme` (value: `'CONFORME'`)
8
+
9
+ * `Ecart` (value: `'ECART'`)
10
+
11
+ * `AbsentPdf` (value: `'ABSENT_PDF'`)
12
+
13
+ * `AbsentXml` (value: `'ABSENT_XML'`)
14
+
15
+ * `NonVerifie` (value: `'NON_VERIFIE'`)
16
+
17
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,17 @@
1
+ # SyntaxeFlux
2
+
3
+ Syntaxes de flux supportées par AFNOR
4
+
5
+ ## Enum
6
+
7
+ * `Cii` (value: `'CII'`)
8
+
9
+ * `Ubl` (value: `'UBL'`)
10
+
11
+ * `FacturX` (value: `'Factur-X'`)
12
+
13
+ * `Cdar` (value: `'CDAR'`)
14
+
15
+ * `Frr` (value: `'FRR'`)
16
+
17
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -139,7 +139,7 @@ const { status, data } = await apiInstance.genererFactureApiV1TraitementGenererF
139
139
  # **obtenirStatutTacheApiV1TraitementTachesIdTacheStatutGet**
140
140
  > StatutTache obtenirStatutTacheApiV1TraitementTachesIdTacheStatutGet()
141
141
 
142
- Récupère l\'état d\'avancement d\'une tâche de génération de facture. ## États possibles Le champ `statut` utilise l\'enum `StatutCelery` avec les valeurs : - **PENDING, STARTED, SUCCESS, FAILURE, RETRY** Voir la documentation du schéma `StatutCelery` pour les détails. ## Résultat métier Quand `statut=\"SUCCESS\"`, le champ `resultat` contient : - `statut` : \"SUCCES\" ou \"ERREUR\" (résultat métier) - `chemin_fichier` : Chemin du fichier généré (si succès) - `message_erreur` : Détails de l\'erreur (si échec métier) ## Usage Appelez cet endpoint en boucle (polling) toutes les 2-3 secondes jusqu\'à ce que `statut` soit `SUCCESS` ou `FAILURE`.
142
+ Récupère l\'état d\'avancement d\'une tâche de génération de facture. ## États possibles Le champ `statut` utilise l\'enum `StatutCelery` avec les valeurs : - **PENDING, STARTED, SUCCESS, FAILURE, RETRY** Voir la documentation du schéma `StatutCelery` pour les détails. ## Résultat métier Quand `statut=\"SUCCESS\"`, le champ `resultat` contient : - `statut` : \"SUCCES\" ou \"ERREUR\" (résultat métier) - `chemin_fichier` : Chemin du fichier généré (si succès) - `errorCode`, `errorMessage`, `details` : Format AFNOR (si échec métier) ## Usage Appelez cet endpoint en boucle (polling) toutes les 2-3 secondes jusqu\'à ce que `statut` soit `SUCCESS` ou `FAILURE`.
143
143
 
144
144
  ### Example
145
145
 
@@ -191,7 +191,7 @@ const { status, data } = await apiInstance.obtenirStatutTacheApiV1TraitementTach
191
191
  # **signerPdfApiV1TraitementSignerPdfPost**
192
192
  > any signerPdfApiV1TraitementSignerPdfPost()
193
193
 
194
- Signe un PDF uploadé avec le certificat électronique configuré pour le client (via client_uid du JWT). **Standards supportés** : PAdES-B-B, PAdES-B-T (horodatage), PAdES-B-LT (archivage long terme). **Niveaux eIDAS** : SES (auto-signé), AdES (CA commerciale), QES (PSCO - hors scope). **⚠️ Disclaimer légal** : Les signatures générées sont des cachets électroniques au sens du règlement eIDAS. Le niveau de validité juridique dépend du certificat utilisé (SES/AdES/QES). FactPulse ne fournit pas de certificats qualifiés QES - vous devez obtenir un certificat auprès d\'un PSCO (Prestataire de Services de Confiance qualifié) pour une validité juridique maximale.
194
+ Signe un PDF uploadé avec le certificat électronique configuré pour le client (via client_uid du JWT). **Standards supportés** : PAdES-B-B, PAdES-B-T (horodatage), PAdES-B-LT (archivage long terme). **Niveaux eIDAS** : SES (auto-signé), AdES (CA commerciale), QES (PSCO - hors scope). **Sécurité** : Double authentification X-Internal-Secret + JWT Bearer pour récupérer le certificat. **⚠️ Disclaimer légal** : Les signatures générées sont des cachets électroniques au sens du règlement eIDAS. Le niveau de validité juridique dépend du certificat utilisé (SES/AdES/QES). FactPulse ne fournit pas de certificats qualifiés QES - vous devez obtenir un certificat auprès d\'un PSCO (Prestataire de Services de Confiance qualifié) pour une validité juridique maximale.
195
195
 
196
196
  ### Example
197
197
 
@@ -503,7 +503,7 @@ const { status, data } = await apiInstance.validerPdfFacturxApiV1TraitementValid
503
503
  # **validerPdfFacturxAsyncApiV1TraitementValiderFacturxAsyncPost**
504
504
  > ReponseTache validerPdfFacturxAsyncApiV1TraitementValiderFacturxAsyncPost()
505
505
 
506
- Valide un PDF Factur-X de manière asynchrone avec système de polling. ## Fonctionnement 1. **Soumission** : Le PDF est mis en file d\'attente pour validation asynchrone 2. **Retour immédiat** : Vous recevez un `id_tache` (HTTP 202) 3. **Suivi** : Utilisez l\'endpoint `/taches/{id_tache}/statut` pour suivre l\'avancement ## Avantages du mode asynchrone - **Pas de timeout** : Idéal pour les gros PDFs ou la validation VeraPDF (qui peut prendre plusieurs secondes) - **Scalabilité** : Les validations sont traitées par des workers Celery dédiés - **Suivi d\'état** : Permet de suivre la progression de la validation - **Non-bloquant** : Votre client ne reste pas en attente pendant la validation ## Quand utiliser ce mode ? - **Validation VeraPDF activée** (`use_verapdf=True`) : La validation stricte peut prendre 2-10 secondes - **Gros fichiers PDF** : PDFs > 1 MB - **Traitement par lots** : Validation de multiples factures en parallèle - **Intégration asynchrone** : Votre système supporte le polling ## Contrôles effectués ### 1. Extraction et validation du XML Factur-X - Vérifie la présence d\'un fichier XML embarqué conforme Factur-X - Détecte automatiquement le profil utilisé (MINIMUM, BASIC, EN16931, EXTENDED) - Valide le XML contre les règles Schematron du profil détecté ### 2. Conformité PDF/A - **Sans VeraPDF** : Validation basique par métadonnées (rapide, ~100ms) - **Avec VeraPDF** : Validation stricte selon ISO 19005 (146+ règles, 2-10s) - Détecte la version PDF/A (PDF/A-1, PDF/A-3, etc.) - Rapports détaillés des non-conformités ### 3. Métadonnées XMP - Vérifie la présence de métadonnées XMP dans le PDF - Valide la conformité des métadonnées Factur-X (profil, version) - Extrait toutes les métadonnées XMP disponibles ### 4. Signatures électroniques - Détecte la présence de signatures ou cachets électroniques - Extrait les informations sur chaque signature (signataire, date, raison) - Compte le nombre de signatures présentes ## Paramètres - **fichier_pdf** : Le fichier PDF Factur-X à valider - **profil** : Le profil Factur-X attendu (optionnel). Si non spécifié, le profil sera automatiquement détecté depuis le fichier XML embarqué. - **use_verapdf** : Active la validation stricte PDF/A avec VeraPDF. ⚠️ **Attention** : VeraPDF peut prendre 2-10 secondes selon la taille du PDF. Recommandé uniquement en mode asynchrone pour éviter les timeouts. ## Récupération du résultat Après soumission, utilisez l\'endpoint `GET /taches/{id_tache}/statut` pour récupérer le résultat. **Exemple de polling** : ```python import requests import time # 1. Soumettre la tâche response = requests.post(\"/valider-facturx-async\", files={\"fichier_pdf\": pdf_file}) task_id = response.json()[\"id_tache\"] # 2. Polling toutes les 2 secondes while True: status_response = requests.get(f\"/taches/{task_id}/statut\") status = status_response.json() if status[\"statut\"] == \"SUCCESS\": resultat = status[\"resultat\"][\"resultat_validation\"] print(f\"Conforme: {resultat[\'est_conforme\']}\") break elif status[\"statut\"] == \"FAILURE\": print(f\"Erreur: {status[\'resultat\'][\'message_erreur\']}\") break time.sleep(2) # Attendre 2 secondes avant le prochain check ``` ## Cas d\'usage - Valider des factures avant envoi avec VeraPDF (validation stricte) - Traiter des lots de factures en parallèle - Intégrer la validation dans un pipeline asynchrone - Valider des PDFs volumineux sans risque de timeout
506
+ Valide un PDF Factur-X de manière asynchrone avec système de polling. ## Fonctionnement 1. **Soumission** : Le PDF est mis en file d\'attente pour validation asynchrone 2. **Retour immédiat** : Vous recevez un `id_tache` (HTTP 202) 3. **Suivi** : Utilisez l\'endpoint `/taches/{id_tache}/statut` pour suivre l\'avancement ## Avantages du mode asynchrone - **Pas de timeout** : Idéal pour les gros PDFs ou la validation VeraPDF (qui peut prendre plusieurs secondes) - **Scalabilité** : Les validations sont traitées par des workers Celery dédiés - **Suivi d\'état** : Permet de suivre la progression de la validation - **Non-bloquant** : Votre client ne reste pas en attente pendant la validation ## Quand utiliser ce mode ? - **Validation VeraPDF activée** (`use_verapdf=True`) : La validation stricte peut prendre 2-10 secondes - **Gros fichiers PDF** : PDFs > 1 MB - **Traitement par lots** : Validation de multiples factures en parallèle - **Intégration asynchrone** : Votre système supporte le polling ## Contrôles effectués ### 1. Extraction et validation du XML Factur-X - Vérifie la présence d\'un fichier XML embarqué conforme Factur-X - Détecte automatiquement le profil utilisé (MINIMUM, BASIC, EN16931, EXTENDED) - Valide le XML contre les règles Schematron du profil détecté ### 2. Conformité PDF/A - **Sans VeraPDF** : Validation basique par métadonnées (rapide, ~100ms) - **Avec VeraPDF** : Validation stricte selon ISO 19005 (146+ règles, 2-10s) - Détecte la version PDF/A (PDF/A-1, PDF/A-3, etc.) - Rapports détaillés des non-conformités ### 3. Métadonnées XMP - Vérifie la présence de métadonnées XMP dans le PDF - Valide la conformité des métadonnées Factur-X (profil, version) - Extrait toutes les métadonnées XMP disponibles ### 4. Signatures électroniques - Détecte la présence de signatures ou cachets électroniques - Extrait les informations sur chaque signature (signataire, date, raison) - Compte le nombre de signatures présentes ## Paramètres - **fichier_pdf** : Le fichier PDF Factur-X à valider - **profil** : Le profil Factur-X attendu (optionnel). Si non spécifié, le profil sera automatiquement détecté depuis le fichier XML embarqué. - **use_verapdf** : Active la validation stricte PDF/A avec VeraPDF. ⚠️ **Attention** : VeraPDF peut prendre 2-10 secondes selon la taille du PDF. Recommandé uniquement en mode asynchrone pour éviter les timeouts. ## Récupération du résultat Après soumission, utilisez l\'endpoint `GET /taches/{id_tache}/statut` pour récupérer le résultat. **Exemple de polling** : ```python import requests import time # 1. Soumettre la tâche response = requests.post(\"/valider-facturx-async\", files={\"fichier_pdf\": pdf_file}) task_id = response.json()[\"id_tache\"] # 2. Polling toutes les 2 secondes while True: status_response = requests.get(f\"/taches/{task_id}/statut\") status = status_response.json() if status[\"statut\"] == \"SUCCESS\": resultat = status[\"resultat\"][\"resultat_validation\"] print(f\"Conforme: {resultat[\'est_conforme\']}\") break elif status[\"statut\"] == \"FAILURE\": print(f\"Erreur: {status[\'resultat\'][\'errorMessage\']}\") break time.sleep(2) # Attendre 2 secondes avant le prochain check ``` ## Cas d\'usage - Valider des factures avant envoi avec VeraPDF (validation stricte) - Traiter des lots de factures en parallèle - Intégrer la validation dans un pipeline asynchrone - Valider des PDFs volumineux sans risque de timeout
507
507
 
508
508
  ### Example
509
509
 
@@ -0,0 +1,17 @@
1
+ # TypeDocument
2
+
3
+ Types de documents commerciaux (UNTDID 1001). | Code | Nom | Description | |------|-----|-------------| | 380 | FACTURE | Facture commerciale | | 381 | AVOIR | Avoir | | 384 | FACTURE_RECTIFICATIVE | Facture rectificative | | 386 | ACOMPTE | Facture d\'acompte | | 389 | AUTOFACTURATION | Facture auto-facturée |
4
+
5
+ ## Enum
6
+
7
+ * `FACTURE` (value: `'380'`)
8
+
9
+ * `AVOIR` (value: `'381'`)
10
+
11
+ * `FACTURE_RECTIFICATIVE` (value: `'384'`)
12
+
13
+ * `ACOMPTE` (value: `'386'`)
14
+
15
+ * `AUTOFACTURATION` (value: `'389'`)
16
+
17
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -1,11 +1,39 @@
1
1
  # TypeFacture
2
2
 
3
- Type de document (facture ou avoir).
3
+ Type de document selon BR-FR-04 (codes UNTDID 1001). | Code | Nom | Description | |------|-----|-------------| | 380 | FACTURE | Facture commerciale | | 389 | FACTURE_AUTOFACTUREE | Facture auto-facturée | | 393 | FACTURE_AFFACTUREE | Facture affacturée | | 501 | FACTURE_AUTOFACTUREE_AFFACTUREE | Facture auto-facturée affacturée | | 386 | FACTURE_ACOMPTE | Facture d\'acompte | | 500 | FACTURE_ACOMPTE_AUTOFACTUREE | Facture d\'acompte auto-facturée | | 384 | FACTURE_RECTIFICATIVE | Facture rectificative | | 471 | FACTURE_RECTIFICATIVE_AUTOFACTUREE | Facture rectificative auto-facturée | | 472 | FACTURE_RECTIFICATIVE_AFFACTUREE | Facture rectificative affacturée | | 473 | FACTURE_RECTIFICATIVE_AUTOFACTUREE_AFFACTUREE | Facture rectificative auto-facturée affacturée | | 381 | AVOIR | Avoir | | 261 | AVOIR_AUTOFACTURE | Avoir auto-facturé | | 262 | AVOIR_REMISE_GLOBALE | Avoir pour remise globale | | 396 | AVOIR_AFFACTURE | Avoir affacturé | | 502 | AVOIR_AUTOFACTURE_AFFACTURE | Avoir auto-facturé affacturé | | 503 | AVOIR_ACOMPTE | Avoir de facture d\'acompte |
4
4
 
5
5
  ## Enum
6
6
 
7
- * `Facture` (value: `'FACTURE'`)
7
+ * `FACTURE` (value: `'380'`)
8
8
 
9
- * `Avoir` (value: `'AVOIR'`)
9
+ * `FACTURE_AUTOFACTUREE` (value: `'389'`)
10
+
11
+ * `FACTURE_AFFACTUREE` (value: `'393'`)
12
+
13
+ * `FACTURE_AUTOFACTUREE_AFFACTUREE` (value: `'501'`)
14
+
15
+ * `FACTURE_ACOMPTE` (value: `'386'`)
16
+
17
+ * `FACTURE_ACOMPTE_AUTOFACTUREE` (value: `'500'`)
18
+
19
+ * `FACTURE_RECTIFICATIVE` (value: `'384'`)
20
+
21
+ * `FACTURE_RECTIFICATIVE_AUTOFACTUREE` (value: `'471'`)
22
+
23
+ * `FACTURE_RECTIFICATIVE_AFFACTUREE` (value: `'472'`)
24
+
25
+ * `FACTURE_RECTIFICATIVE_AUTOFACTUREE_AFFACTUREE` (value: `'473'`)
26
+
27
+ * `AVOIR` (value: `'381'`)
28
+
29
+ * `AVOIR_AUTOFACTURE` (value: `'261'`)
30
+
31
+ * `AVOIR_REMISE_GLOBALE` (value: `'262'`)
32
+
33
+ * `AVOIR_AFFACTURE` (value: `'396'`)
34
+
35
+ * `AVOIR_AUTOFACTURE_AFFACTURE` (value: `'502'`)
36
+
37
+ * `AVOIR_ACOMPTE` (value: `'503'`)
10
38
 
11
39
  [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,17 @@
1
+ # TypeFlux
2
+
3
+ Types de flux de facturation
4
+
5
+ ## Enum
6
+
7
+ * `CustomerInvoice` (value: `'CustomerInvoice'`)
8
+
9
+ * `SupplierInvoice` (value: `'SupplierInvoice'`)
10
+
11
+ * `CustomerInvoiceLc` (value: `'CustomerInvoiceLC'`)
12
+
13
+ * `SupplierInvoiceLc` (value: `'SupplierInvoiceLC'`)
14
+
15
+ * `EReporting` (value: `'eReporting'`)
16
+
17
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,29 @@
1
+ # ValidationErrorDetail
2
+
3
+ Détail d\'une erreur de validation (aligné sur AFNOR AcknowledgementDetail). Format unifié pour toutes les erreurs de validation Factur-X, compatible avec la norme AFNOR XP Z12-013.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **level** | [**ErrorLevel**](ErrorLevel.md) | Niveau de gravité : \'Error\' ou \'Warning\' | [optional] [default to undefined]
10
+ **item** | **string** | Identifiant de l\'élément concerné (XPath, champ, règle BR-FR, etc.) | [default to undefined]
11
+ **reason** | **string** | Description de l\'erreur | [default to undefined]
12
+ **source** | [**ErrorSource**](ErrorSource.md) | | [optional] [default to undefined]
13
+ **code** | **string** | | [optional] [default to undefined]
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import { ValidationErrorDetail } from '@factpulse/sdk';
19
+
20
+ const instance: ValidationErrorDetail = {
21
+ level,
22
+ item,
23
+ reason,
24
+ source,
25
+ code,
26
+ };
27
+ ```
28
+
29
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)