@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.
- package/.github/SETUP_GITHUB_ACTIONS.md +70 -8
- package/.github/workflows/publish-npm.yml +5 -7
- package/.openapi-generator/FILES +58 -26
- package/CHANGELOG.md +3 -3
- package/README.md +165 -116
- package/api/afnorpdppaapi.ts +149 -0
- package/api/chorus-pro-api.ts +151 -181
- package/api/traitement-facture-api.ts +12 -12
- package/api/vrification-pdfxmlapi.ts +536 -0
- package/api.ts +1 -0
- package/dist/api/afnorpdppaapi.d.ts +65 -0
- package/dist/api/afnorpdppaapi.js +142 -1
- package/dist/api/afnorpdppadirectory-service-api.js +4 -1
- package/dist/api/afnorpdppaflow-service-api.js +4 -1
- package/dist/api/chorus-pro-api.d.ts +168 -103
- package/dist/api/chorus-pro-api.js +155 -160
- package/dist/api/sant-api.js +4 -1
- package/dist/api/traitement-facture-api.d.ts +12 -12
- package/dist/api/traitement-facture-api.js +16 -13
- package/dist/api/utilisateur-api.js +4 -1
- package/dist/api/vrification-pdfxmlapi.d.ts +237 -0
- package/dist/api/vrification-pdfxmlapi.js +514 -0
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/base.js +4 -1
- package/dist/esm/api/afnorpdppaapi.d.ts +65 -0
- package/dist/esm/api/afnorpdppaapi.js +139 -1
- package/dist/esm/api/chorus-pro-api.d.ts +168 -103
- package/dist/esm/api/chorus-pro-api.js +151 -159
- package/dist/esm/api/traitement-facture-api.d.ts +12 -12
- package/dist/esm/api/traitement-facture-api.js +12 -12
- package/dist/esm/api/vrification-pdfxmlapi.d.ts +237 -0
- package/dist/esm/api/vrification-pdfxmlapi.js +504 -0
- package/dist/esm/api.d.ts +1 -0
- package/dist/esm/api.js +1 -0
- package/dist/esm/models/{utilisateur.d.ts → apierror.d.ts} +12 -15
- package/dist/esm/models/beneficiaire.d.ts +26 -0
- package/dist/esm/models/bounding-box-schema.d.ts +44 -0
- package/dist/esm/models/cadre-de-facturation.d.ts +3 -1
- package/dist/esm/models/champ-verifie-schema.d.ts +42 -0
- package/dist/esm/models/code-cadre-facturation.d.ts +3 -0
- package/dist/esm/models/code-cadre-facturation.js +3 -0
- package/dist/esm/models/destinataire.d.ts +1 -1
- package/dist/esm/models/dimension-page-schema.d.ts +24 -0
- package/dist/esm/models/{quota-info.d.ts → direction-flux.d.ts} +6 -8
- package/dist/esm/models/direction-flux.js +20 -0
- package/dist/esm/models/error-level.d.ts +16 -0
- package/dist/esm/models/error-level.js +17 -0
- package/dist/esm/models/{body-ajouter-fichier-api-v1-chorus-pro-transverses-ajouter-fichier-post.d.ts → error-source.d.ts} +11 -9
- package/dist/esm/models/error-source.js +23 -0
- package/dist/esm/models/facture-entrante.d.ts +68 -0
- package/dist/esm/models/facture-factur-x.d.ts +2 -0
- package/dist/esm/models/{body-rechercher-factures-destinataire-api-v1-chorus-pro-factures-rechercher-destinataire-post.d.ts → flux-resume.d.ts} +12 -8
- package/dist/esm/models/format-facture.d.ts +20 -0
- package/dist/esm/models/format-facture.js +21 -0
- package/dist/esm/models/fournisseur-entrant.d.ts +29 -0
- package/dist/esm/models/fournisseur.d.ts +1 -1
- package/dist/esm/models/index.d.ts +28 -13
- package/dist/esm/models/index.js +28 -13
- package/dist/esm/models/ligne-de-tva.d.ts +3 -1
- package/dist/esm/models/nature-operation.d.ts +31 -0
- package/dist/esm/models/nature-operation.js +32 -0
- package/dist/esm/models/note-obligatoire-schema.d.ts +34 -0
- package/dist/esm/models/note.d.ts +2 -2
- package/dist/esm/models/pdpcredentials.d.ts +33 -0
- package/dist/esm/models/profil-flux.d.ts +20 -0
- package/dist/esm/models/profil-flux.js +21 -0
- package/dist/esm/models/{body-completer-facture-api-v1-chorus-pro-factures-completer-post.d.ts → reponse-healthcheck-afnor.d.ts} +16 -8
- package/dist/esm/models/reponse-recherche-flux.d.ts +33 -0
- package/dist/esm/models/reponse-soumission-flux.d.ts +38 -0
- package/dist/esm/models/reponse-verification-succes.d.ts +56 -0
- package/dist/esm/models/reponse-verification-succes.js +14 -0
- package/dist/esm/models/requete-recherche-flux.d.ts +34 -0
- package/dist/esm/models/requete-recherche-flux.js +14 -0
- package/dist/esm/models/requete-soumission-flux.d.ts +31 -0
- package/dist/esm/models/requete-soumission-flux.js +14 -0
- package/dist/esm/models/statut-acquittement.d.ts +20 -0
- package/dist/esm/models/statut-acquittement.js +21 -0
- package/dist/esm/models/statut-champ-api.d.ts +22 -0
- package/dist/esm/models/statut-champ-api.js +23 -0
- package/dist/esm/models/syntaxe-flux.d.ts +22 -0
- package/dist/esm/models/syntaxe-flux.js +23 -0
- package/dist/esm/models/type-document.d.ts +37 -0
- package/dist/esm/models/type-document.js +38 -0
- package/dist/esm/models/type-facture.d.ts +65 -3
- package/dist/esm/models/type-facture.js +65 -3
- package/dist/esm/models/type-flux.d.ts +22 -0
- package/dist/esm/models/type-flux.js +23 -0
- package/dist/esm/models/validation-error-detail.d.ts +32 -0
- package/dist/esm/models/validation-error-detail.js +14 -0
- package/dist/esm/src/helpers/client.d.ts +265 -0
- package/dist/esm/src/helpers/client.js +817 -0
- package/dist/esm/src/helpers/exceptions.d.ts +23 -0
- package/dist/esm/src/helpers/exceptions.js +27 -0
- package/dist/esm/src/helpers/index.d.ts +3 -0
- package/dist/esm/src/helpers/index.js +6 -0
- package/dist/models/{utilisateur.d.ts → apierror.d.ts} +12 -15
- package/dist/models/beneficiaire.d.ts +26 -0
- package/dist/models/bounding-box-schema.d.ts +44 -0
- package/dist/models/cadre-de-facturation.d.ts +3 -1
- package/dist/models/champ-verifie-schema.d.ts +42 -0
- package/dist/models/code-cadre-facturation.d.ts +3 -0
- package/dist/models/code-cadre-facturation.js +3 -0
- package/dist/models/destinataire.d.ts +1 -1
- package/dist/models/dimension-page-schema.d.ts +24 -0
- package/dist/models/{quota-info.d.ts → direction-flux.d.ts} +6 -8
- package/dist/models/direction-flux.js +23 -0
- package/dist/models/error-level.d.ts +16 -0
- package/dist/models/error-level.js +20 -0
- package/dist/models/error-source.d.ts +22 -0
- package/dist/models/error-source.js +26 -0
- package/dist/models/facture-entrante.d.ts +68 -0
- package/dist/models/facture-factur-x.d.ts +2 -0
- package/dist/models/flux-resume.d.ts +24 -0
- package/dist/models/format-facture.d.ts +20 -0
- package/dist/models/format-facture.js +24 -0
- package/dist/models/fournisseur-entrant.d.ts +29 -0
- package/dist/models/fournisseur.d.ts +1 -1
- package/dist/models/index.d.ts +28 -13
- package/dist/models/index.js +28 -13
- package/dist/models/ligne-de-tva.d.ts +3 -1
- package/dist/models/nature-operation.d.ts +31 -0
- package/dist/models/nature-operation.js +35 -0
- package/dist/models/note-obligatoire-schema.d.ts +34 -0
- package/dist/models/note.d.ts +2 -2
- package/dist/models/pdpcredentials.d.ts +33 -0
- package/dist/models/profil-flux.d.ts +20 -0
- package/dist/models/profil-flux.js +24 -0
- package/dist/{esm/models/body-recycler-facture-api-v1-chorus-pro-factures-recycler-post.d.ts → models/reponse-healthcheck-afnor.d.ts} +16 -8
- package/dist/models/reponse-recherche-flux.d.ts +33 -0
- package/dist/models/reponse-soumission-flux.d.ts +38 -0
- package/dist/models/reponse-verification-succes.d.ts +56 -0
- package/dist/models/reponse-verification-succes.js +15 -0
- package/dist/models/requete-recherche-flux.d.ts +34 -0
- package/dist/models/requete-recherche-flux.js +15 -0
- package/dist/models/requete-soumission-flux.d.ts +31 -0
- package/dist/models/requete-soumission-flux.js +15 -0
- package/dist/models/statut-acquittement.d.ts +20 -0
- package/dist/models/statut-acquittement.js +24 -0
- package/dist/models/statut-champ-api.d.ts +22 -0
- package/dist/models/statut-champ-api.js +26 -0
- package/dist/models/syntaxe-flux.d.ts +22 -0
- package/dist/models/syntaxe-flux.js +26 -0
- package/dist/models/type-document.d.ts +37 -0
- package/dist/models/type-document.js +41 -0
- package/dist/models/type-facture.d.ts +65 -3
- package/dist/models/type-facture.js +65 -3
- package/dist/models/type-flux.d.ts +22 -0
- package/dist/models/type-flux.js +26 -0
- package/dist/models/validation-error-detail.d.ts +32 -0
- package/dist/models/validation-error-detail.js +15 -0
- package/dist/src/helpers/client.d.ts +265 -0
- package/dist/src/helpers/client.js +866 -0
- package/dist/src/helpers/exceptions.d.ts +23 -0
- package/dist/src/helpers/exceptions.js +35 -0
- package/dist/src/helpers/index.d.ts +3 -0
- package/dist/src/helpers/index.js +23 -0
- package/docs/AFNORPDPPAApi.md +108 -0
- package/docs/APIError.md +25 -0
- package/docs/Beneficiaire.md +31 -0
- package/docs/BoundingBoxSchema.md +33 -0
- package/docs/CadreDeFacturation.md +3 -1
- package/docs/ChampVerifieSchema.md +37 -0
- package/docs/ChorusProApi.md +54 -69
- package/docs/CodeCadreFacturation.md +1 -0
- package/docs/DimensionPageSchema.md +23 -0
- package/docs/DirectionFlux.md +11 -0
- package/docs/ErrorLevel.md +10 -0
- package/docs/ErrorSource.md +22 -0
- package/docs/FactureEntrante.md +57 -0
- package/docs/FactureFacturX.md +2 -0
- package/docs/FluxResume.md +35 -0
- package/docs/FormatFacture.md +13 -0
- package/docs/FournisseurEntrant.md +35 -0
- package/docs/LigneDeTVA.md +5 -1
- package/docs/NatureOperation.md +35 -0
- package/docs/Note.md +4 -4
- package/docs/NoteObligatoireSchema.md +33 -0
- package/docs/PDPCredentials.md +29 -0
- package/docs/ProfilFlux.md +13 -0
- package/docs/ReponseHealthcheckAFNOR.md +25 -0
- package/docs/ReponseRechercheFlux.md +27 -0
- package/docs/ReponseSoumissionFlux.md +33 -0
- package/docs/ReponseVerificationSucces.md +39 -0
- package/docs/RequeteRechercheFlux.md +37 -0
- package/docs/RequeteSoumissionFlux.md +31 -0
- package/docs/StatutAcquittement.md +13 -0
- package/docs/StatutChampAPI.md +17 -0
- package/docs/SyntaxeFlux.md +17 -0
- package/docs/TraitementFactureApi.md +3 -3
- package/docs/TypeDocument.md +17 -0
- package/docs/TypeFacture.md +31 -3
- package/docs/TypeFlux.md +17 -0
- package/docs/ValidationErrorDetail.md +29 -0
- package/docs/VrificationPDFXMLApi.md +335 -0
- package/models/{utilisateur.ts → apierror.ts} +12 -15
- package/models/beneficiaire.ts +34 -0
- package/models/bounding-box-schema.ts +50 -0
- package/models/cadre-de-facturation.ts +5 -1
- package/models/champ-verifie-schema.ts +54 -0
- package/models/code-cadre-facturation.ts +3 -0
- package/models/destinataire.ts +1 -1
- package/models/dimension-page-schema.ts +30 -0
- package/models/{quota-info.ts → direction-flux.ts} +10 -8
- package/models/error-level.ts +26 -0
- package/models/error-source.ts +32 -0
- package/models/facture-entrante.ts +82 -0
- package/models/facture-factur-x.ts +4 -0
- package/models/flux-resume.ts +30 -0
- package/models/format-facture.ts +30 -0
- package/models/fournisseur-entrant.ts +39 -0
- package/models/fournisseur.ts +1 -1
- package/models/index.ts +28 -13
- package/models/ligne-de-tva.ts +3 -1
- package/models/nature-operation.ts +41 -0
- package/models/{body-lister-services-structure-api-v1-chorus-pro-structures-id-structure-cpp-services-get.ts → note-obligatoire-schema.ts} +24 -5
- package/models/note.ts +2 -2
- package/models/pdpcredentials.ts +39 -0
- package/models/profil-flux.ts +30 -0
- package/models/reponse-healthcheck-afnor.ts +34 -0
- package/models/{body-ajouter-fichier-api-v1-chorus-pro-transverses-ajouter-fichier-post.ts → reponse-recherche-flux.ts} +21 -8
- package/models/{body-completer-facture-api-v1-chorus-pro-factures-completer-post.ts → reponse-soumission-flux.ts} +26 -10
- package/models/reponse-verification-succes.ts +68 -0
- package/models/requete-recherche-flux.ts +48 -0
- package/models/{body-rechercher-factures-destinataire-api-v1-chorus-pro-factures-rechercher-destinataire-post.ts → requete-soumission-flux.ts} +23 -6
- package/models/statut-acquittement.ts +30 -0
- package/models/statut-champ-api.ts +32 -0
- package/models/syntaxe-flux.ts +32 -0
- package/models/type-document.ts +47 -0
- package/models/type-facture.ts +65 -3
- package/models/type-flux.ts +32 -0
- package/models/validation-error-detail.ts +44 -0
- package/package.json +2 -2
- package/src/helpers/client.ts +882 -0
- package/src/helpers/exceptions.ts +32 -0
- package/src/helpers/index.ts +6 -0
- package/tsconfig.esm.json +1 -0
- package/tsconfig.json +1 -0
- package/dist/esm/models/body-lister-services-structure-api-v1-chorus-pro-structures-id-structure-cpp-services-get.d.ts +0 -17
- package/dist/esm/models/body-rechercher-factures-fournisseur-api-v1-chorus-pro-factures-rechercher-fournisseur-post.d.ts +0 -20
- package/dist/esm/models/body-telecharger-groupe-factures-api-v1-chorus-pro-factures-telecharger-groupe-post.d.ts +0 -20
- package/dist/esm/models/body-traiter-facture-recue-api-v1-chorus-pro-factures-traiter-facture-recue-post.d.ts +0 -20
- package/dist/esm/models/body-valideur-consulter-facture-api-v1-chorus-pro-factures-valideur-consulter-post.d.ts +0 -20
- package/dist/esm/models/body-valideur-rechercher-factures-api-v1-chorus-pro-factures-valideur-rechercher-post.d.ts +0 -20
- package/dist/esm/models/body-valideur-traiter-facture-api-v1-chorus-pro-factures-valideur-traiter-post.d.ts +0 -20
- package/dist/models/body-ajouter-fichier-api-v1-chorus-pro-transverses-ajouter-fichier-post.d.ts +0 -20
- package/dist/models/body-completer-facture-api-v1-chorus-pro-factures-completer-post.d.ts +0 -20
- package/dist/models/body-lister-services-structure-api-v1-chorus-pro-structures-id-structure-cpp-services-get.d.ts +0 -17
- package/dist/models/body-rechercher-factures-destinataire-api-v1-chorus-pro-factures-rechercher-destinataire-post.d.ts +0 -20
- package/dist/models/body-rechercher-factures-fournisseur-api-v1-chorus-pro-factures-rechercher-fournisseur-post.d.ts +0 -20
- package/dist/models/body-recycler-facture-api-v1-chorus-pro-factures-recycler-post.d.ts +0 -20
- package/dist/models/body-telecharger-groupe-factures-api-v1-chorus-pro-factures-telecharger-groupe-post.d.ts +0 -20
- package/dist/models/body-traiter-facture-recue-api-v1-chorus-pro-factures-traiter-facture-recue-post.d.ts +0 -20
- package/dist/models/body-valideur-consulter-facture-api-v1-chorus-pro-factures-valideur-consulter-post.d.ts +0 -20
- package/dist/models/body-valideur-rechercher-factures-api-v1-chorus-pro-factures-valideur-rechercher-post.d.ts +0 -20
- package/dist/models/body-valideur-traiter-facture-api-v1-chorus-pro-factures-valideur-traiter-post.d.ts +0 -20
- package/docs/BodyAjouterFichierApiV1ChorusProTransversesAjouterFichierPost.md +0 -24
- package/docs/BodyCompleterFactureApiV1ChorusProFacturesCompleterPost.md +0 -24
- package/docs/BodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet.md +0 -22
- package/docs/BodyRechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost.md +0 -24
- package/docs/BodyRechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost.md +0 -24
- package/docs/BodyRecyclerFactureApiV1ChorusProFacturesRecyclerPost.md +0 -24
- package/docs/BodyTelechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost.md +0 -24
- package/docs/BodyTraiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost.md +0 -24
- package/docs/BodyValideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost.md +0 -24
- package/docs/BodyValideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost.md +0 -24
- package/docs/BodyValideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost.md +0 -24
- package/docs/QuotaInfo.md +0 -29
- package/docs/Utilisateur.md +0 -43
- package/models/body-rechercher-factures-fournisseur-api-v1-chorus-pro-factures-rechercher-fournisseur-post.ts +0 -28
- package/models/body-recycler-facture-api-v1-chorus-pro-factures-recycler-post.ts +0 -28
- package/models/body-telecharger-groupe-factures-api-v1-chorus-pro-factures-telecharger-groupe-post.ts +0 -28
- package/models/body-traiter-facture-recue-api-v1-chorus-pro-factures-traiter-facture-recue-post.ts +0 -28
- package/models/body-valideur-consulter-facture-api-v1-chorus-pro-factures-valideur-consulter-post.ts +0 -28
- package/models/body-valideur-rechercher-factures-api-v1-chorus-pro-factures-valideur-rechercher-post.ts +0 -28
- package/models/body-valideur-traiter-facture-api-v1-chorus-pro-factures-valideur-traiter-post.ts +0 -28
- /package/dist/esm/models/{body-ajouter-fichier-api-v1-chorus-pro-transverses-ajouter-fichier-post.js → apierror.js} +0 -0
- /package/dist/esm/models/{body-completer-facture-api-v1-chorus-pro-factures-completer-post.js → beneficiaire.js} +0 -0
- /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
- /package/dist/esm/models/{body-rechercher-factures-destinataire-api-v1-chorus-pro-factures-rechercher-destinataire-post.js → champ-verifie-schema.js} +0 -0
- /package/dist/esm/models/{body-rechercher-factures-fournisseur-api-v1-chorus-pro-factures-rechercher-fournisseur-post.js → dimension-page-schema.js} +0 -0
- /package/dist/esm/models/{body-recycler-facture-api-v1-chorus-pro-factures-recycler-post.js → facture-entrante.js} +0 -0
- /package/dist/esm/models/{body-telecharger-groupe-factures-api-v1-chorus-pro-factures-telecharger-groupe-post.js → flux-resume.js} +0 -0
- /package/dist/esm/models/{body-traiter-facture-recue-api-v1-chorus-pro-factures-traiter-facture-recue-post.js → fournisseur-entrant.js} +0 -0
- /package/dist/esm/models/{body-valideur-consulter-facture-api-v1-chorus-pro-factures-valideur-consulter-post.js → note-obligatoire-schema.js} +0 -0
- /package/dist/esm/models/{body-valideur-rechercher-factures-api-v1-chorus-pro-factures-valideur-rechercher-post.js → pdpcredentials.js} +0 -0
- /package/dist/esm/models/{body-valideur-traiter-facture-api-v1-chorus-pro-factures-valideur-traiter-post.js → reponse-healthcheck-afnor.js} +0 -0
- /package/dist/esm/models/{quota-info.js → reponse-recherche-flux.js} +0 -0
- /package/dist/esm/models/{utilisateur.js → reponse-soumission-flux.js} +0 -0
- /package/dist/models/{body-ajouter-fichier-api-v1-chorus-pro-transverses-ajouter-fichier-post.js → apierror.js} +0 -0
- /package/dist/models/{body-completer-facture-api-v1-chorus-pro-factures-completer-post.js → beneficiaire.js} +0 -0
- /package/dist/models/{body-lister-services-structure-api-v1-chorus-pro-structures-id-structure-cpp-services-get.js → bounding-box-schema.js} +0 -0
- /package/dist/models/{body-rechercher-factures-destinataire-api-v1-chorus-pro-factures-rechercher-destinataire-post.js → champ-verifie-schema.js} +0 -0
- /package/dist/models/{body-rechercher-factures-fournisseur-api-v1-chorus-pro-factures-rechercher-fournisseur-post.js → dimension-page-schema.js} +0 -0
- /package/dist/models/{body-recycler-facture-api-v1-chorus-pro-factures-recycler-post.js → facture-entrante.js} +0 -0
- /package/dist/models/{body-telecharger-groupe-factures-api-v1-chorus-pro-factures-telecharger-groupe-post.js → flux-resume.js} +0 -0
- /package/dist/models/{body-traiter-facture-recue-api-v1-chorus-pro-factures-traiter-facture-recue-post.js → fournisseur-entrant.js} +0 -0
- /package/dist/models/{body-valideur-consulter-facture-api-v1-chorus-pro-factures-valideur-consulter-post.js → note-obligatoire-schema.js} +0 -0
- /package/dist/models/{body-valideur-rechercher-factures-api-v1-chorus-pro-factures-valideur-rechercher-post.js → pdpcredentials.js} +0 -0
- /package/dist/models/{body-valideur-traiter-facture-api-v1-chorus-pro-factures-valideur-traiter-post.js → reponse-healthcheck-afnor.js} +0 -0
- /package/dist/models/{quota-info.js → reponse-recherche-flux.js} +0 -0
- /package/dist/models/{utilisateur.js → reponse-soumission-flux.js} +0 -0
|
@@ -1,12 +1,74 @@
|
|
|
1
|
-
# Configuration GitHub Actions
|
|
1
|
+
# Configuration GitHub Actions - npm Trusted Publishing
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Ce SDK utilise **npm Trusted Publishing** avec OIDC. **Aucun token npm n'est requis après la configuration initiale !**
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
2. Cliquez sur "New repository secret"
|
|
7
|
-
3. Nom : `NPM_TOKEN`
|
|
8
|
-
4. Valeur : Votre token npm (obtenu sur https://www.npmjs.com/settings/YOUR_USERNAME/tokens)
|
|
5
|
+
## Prérequis : Première publication manuelle
|
|
9
6
|
|
|
10
|
-
|
|
7
|
+
⚠️ **IMPORTANT** : Trusted Publishing ne fonctionne que pour les packages qui existent déjà sur npm.
|
|
8
|
+
La première publication doit être faite manuellement.
|
|
11
9
|
|
|
12
|
-
|
|
10
|
+
### 1. Créer l'organisation npm (si pas déjà fait)
|
|
11
|
+
|
|
12
|
+
Allez sur https://www.npmjs.com/org/create et créez l'organisation `factpulse`.
|
|
13
|
+
|
|
14
|
+
### 2. Première publication manuelle
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
cd sdk-typescript
|
|
18
|
+
|
|
19
|
+
# Se connecter à npm
|
|
20
|
+
npm login
|
|
21
|
+
|
|
22
|
+
# Publier la première version
|
|
23
|
+
npm publish --access public
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Étape 1 : Configurer Trusted Publishing sur npmjs.com
|
|
27
|
+
|
|
28
|
+
Après la première publication :
|
|
29
|
+
|
|
30
|
+
1. Connectez-vous sur https://www.npmjs.com/
|
|
31
|
+
2. Allez sur le package `@factpulse/sdk` > **Settings** > **Publishing access**
|
|
32
|
+
3. Dans la section **Trusted Publisher**, cliquez sur **GitHub Actions**
|
|
33
|
+
4. Remplissez :
|
|
34
|
+
- **Organization or user**: `factpulse`
|
|
35
|
+
- **Repository**: `sdk-typescript`
|
|
36
|
+
- **Workflow filename**: `publish-npm.yml`
|
|
37
|
+
- **Environment name**: (laisser vide)
|
|
38
|
+
5. Cliquez **Add**
|
|
39
|
+
|
|
40
|
+
## Étape 2 (Recommandé) : Désactiver les tokens classiques
|
|
41
|
+
|
|
42
|
+
Pour une sécurité maximale, après avoir vérifié que Trusted Publishing fonctionne :
|
|
43
|
+
|
|
44
|
+
1. Allez dans **Settings** > **Publishing access**
|
|
45
|
+
2. Sélectionnez **"Require two-factor authentication and disallow tokens"**
|
|
46
|
+
3. Cliquez **Update Package Settings**
|
|
47
|
+
|
|
48
|
+
## Déploiement automatique (après configuration)
|
|
49
|
+
|
|
50
|
+
Le workflow se déclenche automatiquement lors de la création d'un tag `v*` :
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
git tag -a v1.0.0 -m "Release v1.0.0"
|
|
54
|
+
git push origin v1.0.0
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## Comment ça marche ?
|
|
58
|
+
|
|
59
|
+
- Le workflow utilise `id-token: write` pour générer un token OIDC
|
|
60
|
+
- npm vérifie que la requête vient bien du workflow configuré
|
|
61
|
+
- La provenance est générée automatiquement
|
|
62
|
+
- Aucun secret npm à gérer ou à faire tourner
|
|
63
|
+
|
|
64
|
+
## Dépendances privées (si nécessaire)
|
|
65
|
+
|
|
66
|
+
Si vous avez des dépendances npm privées, ajoutez un token read-only :
|
|
67
|
+
|
|
68
|
+
```yaml
|
|
69
|
+
- run: npm install
|
|
70
|
+
env:
|
|
71
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_READ_TOKEN }}
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
Le publish utilise OIDC, pas besoin de token pour cette étape.
|
|
@@ -6,8 +6,8 @@ on:
|
|
|
6
6
|
- 'v*'
|
|
7
7
|
|
|
8
8
|
permissions:
|
|
9
|
+
id-token: write # Required for npm Trusted Publishing (OIDC)
|
|
9
10
|
contents: write
|
|
10
|
-
packages: write
|
|
11
11
|
|
|
12
12
|
jobs:
|
|
13
13
|
build-and-publish:
|
|
@@ -21,19 +21,17 @@ jobs:
|
|
|
21
21
|
- name: Setup Node.js
|
|
22
22
|
uses: actions/setup-node@v4
|
|
23
23
|
with:
|
|
24
|
-
node-version: '
|
|
24
|
+
node-version: '24'
|
|
25
25
|
registry-url: 'https://registry.npmjs.org'
|
|
26
26
|
|
|
27
27
|
- name: Install dependencies
|
|
28
28
|
run: npm install
|
|
29
29
|
|
|
30
30
|
- name: Build
|
|
31
|
-
run: npm run build
|
|
31
|
+
run: npm run build --if-present
|
|
32
32
|
|
|
33
|
-
- name: Publish to npm
|
|
34
|
-
run: npm publish --access public
|
|
35
|
-
env:
|
|
36
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
33
|
+
- name: Publish to npm (Trusted Publishing - no token needed)
|
|
34
|
+
run: npm publish --access public --provenance
|
|
37
35
|
|
|
38
36
|
- name: Create GitHub Release
|
|
39
37
|
uses: softprops/action-gh-release@v1
|
package/.openapi-generator/FILES
CHANGED
|
@@ -10,28 +10,22 @@ api/chorus-pro-api.ts
|
|
|
10
10
|
api/sant-api.ts
|
|
11
11
|
api/traitement-facture-api.ts
|
|
12
12
|
api/utilisateur-api.ts
|
|
13
|
+
api/vrification-pdfxmlapi.ts
|
|
13
14
|
base.ts
|
|
14
15
|
common.ts
|
|
15
16
|
configuration.ts
|
|
16
17
|
docs/AFNORPDPPAApi.md
|
|
17
18
|
docs/AFNORPDPPADirectoryServiceApi.md
|
|
18
19
|
docs/AFNORPDPPAFlowServiceApi.md
|
|
20
|
+
docs/APIError.md
|
|
19
21
|
docs/AdresseElectronique.md
|
|
20
22
|
docs/AdressePostale.md
|
|
21
|
-
docs/
|
|
22
|
-
docs/
|
|
23
|
-
docs/BodyListerServicesStructureApiV1ChorusProStructuresIdStructureCppServicesGet.md
|
|
24
|
-
docs/BodyRechercherFacturesDestinataireApiV1ChorusProFacturesRechercherDestinatairePost.md
|
|
25
|
-
docs/BodyRechercherFacturesFournisseurApiV1ChorusProFacturesRechercherFournisseurPost.md
|
|
26
|
-
docs/BodyRecyclerFactureApiV1ChorusProFacturesRecyclerPost.md
|
|
27
|
-
docs/BodyTelechargerGroupeFacturesApiV1ChorusProFacturesTelechargerGroupePost.md
|
|
28
|
-
docs/BodyTraiterFactureRecueApiV1ChorusProFacturesTraiterFactureRecuePost.md
|
|
29
|
-
docs/BodyValideurConsulterFactureApiV1ChorusProFacturesValideurConsulterPost.md
|
|
30
|
-
docs/BodyValideurRechercherFacturesApiV1ChorusProFacturesValideurRechercherPost.md
|
|
31
|
-
docs/BodyValideurTraiterFactureApiV1ChorusProFacturesValideurTraiterPost.md
|
|
23
|
+
docs/Beneficiaire.md
|
|
24
|
+
docs/BoundingBoxSchema.md
|
|
32
25
|
docs/CadreDeFacturation.md
|
|
33
26
|
docs/CategorieTVA.md
|
|
34
27
|
docs/CertificateInfoResponse.md
|
|
28
|
+
docs/ChampVerifieSchema.md
|
|
35
29
|
docs/ChorusProApi.md
|
|
36
30
|
docs/ChorusProCredentials.md
|
|
37
31
|
docs/CodeCadreFacturation.md
|
|
@@ -46,11 +40,19 @@ docs/Destinataire.md
|
|
|
46
40
|
docs/Destination.md
|
|
47
41
|
docs/DestinationAFNOR.md
|
|
48
42
|
docs/DestinationChorusPro.md
|
|
43
|
+
docs/DimensionPageSchema.md
|
|
44
|
+
docs/DirectionFlux.md
|
|
49
45
|
docs/DonneesFactureSimplifiees.md
|
|
46
|
+
docs/ErrorLevel.md
|
|
47
|
+
docs/ErrorSource.md
|
|
50
48
|
docs/FactureEnrichieInfo.md
|
|
49
|
+
docs/FactureEntrante.md
|
|
51
50
|
docs/FactureFacturX.md
|
|
51
|
+
docs/FluxResume.md
|
|
52
|
+
docs/FormatFacture.md
|
|
52
53
|
docs/FormatSortie.md
|
|
53
54
|
docs/Fournisseur.md
|
|
55
|
+
docs/FournisseurEntrant.md
|
|
54
56
|
docs/GenerateCertificateRequest.md
|
|
55
57
|
docs/GenerateCertificateResponse.md
|
|
56
58
|
docs/HTTPValidationError.md
|
|
@@ -73,24 +75,33 @@ docs/MontantTva.md
|
|
|
73
75
|
docs/MontantTvaLigne.md
|
|
74
76
|
docs/MontantTvaTotal.md
|
|
75
77
|
docs/MontantUnitaireHt.md
|
|
78
|
+
docs/NatureOperation.md
|
|
76
79
|
docs/Note.md
|
|
80
|
+
docs/NoteObligatoireSchema.md
|
|
77
81
|
docs/ObtenirIdChorusProRequest.md
|
|
78
82
|
docs/ObtenirIdChorusProResponse.md
|
|
79
83
|
docs/OptionsProcessing.md
|
|
80
84
|
docs/PDFFacturXInfo.md
|
|
85
|
+
docs/PDPCredentials.md
|
|
81
86
|
docs/ParametresSignature.md
|
|
82
87
|
docs/ParametresStructure.md
|
|
83
88
|
docs/PieceJointeComplementaire.md
|
|
84
89
|
docs/ProfilAPI.md
|
|
90
|
+
docs/ProfilFlux.md
|
|
85
91
|
docs/Quantite.md
|
|
86
|
-
docs/QuotaInfo.md
|
|
87
92
|
docs/RechercherServicesResponse.md
|
|
88
93
|
docs/RechercherStructureRequest.md
|
|
89
94
|
docs/RechercherStructureResponse.md
|
|
90
95
|
docs/References.md
|
|
96
|
+
docs/ReponseHealthcheckAFNOR.md
|
|
97
|
+
docs/ReponseRechercheFlux.md
|
|
98
|
+
docs/ReponseSoumissionFlux.md
|
|
91
99
|
docs/ReponseTache.md
|
|
92
100
|
docs/ReponseValidationErreur.md
|
|
93
101
|
docs/ReponseValidationSucces.md
|
|
102
|
+
docs/ReponseVerificationSucces.md
|
|
103
|
+
docs/RequeteRechercheFlux.md
|
|
104
|
+
docs/RequeteSoumissionFlux.md
|
|
94
105
|
docs/ResultatAFNOR.md
|
|
95
106
|
docs/ResultatChorusPro.md
|
|
96
107
|
docs/ResultatValidationPDFAPI.md
|
|
@@ -102,37 +113,36 @@ docs/SoumettreFactureCompleteRequest.md
|
|
|
102
113
|
docs/SoumettreFactureCompleteResponse.md
|
|
103
114
|
docs/SoumettreFactureRequest.md
|
|
104
115
|
docs/SoumettreFactureResponse.md
|
|
116
|
+
docs/StatutAcquittement.md
|
|
105
117
|
docs/StatutCelery.md
|
|
118
|
+
docs/StatutChampAPI.md
|
|
106
119
|
docs/StatutFacture.md
|
|
107
120
|
docs/StatutTache.md
|
|
108
121
|
docs/StructureInfo.md
|
|
122
|
+
docs/SyntaxeFlux.md
|
|
109
123
|
docs/Tauxmanuel.md
|
|
110
124
|
docs/TraitementFactureApi.md
|
|
125
|
+
docs/TypeDocument.md
|
|
111
126
|
docs/TypeFacture.md
|
|
127
|
+
docs/TypeFlux.md
|
|
112
128
|
docs/TypeTVA.md
|
|
113
129
|
docs/Unite.md
|
|
114
|
-
docs/Utilisateur.md
|
|
115
130
|
docs/UtilisateurApi.md
|
|
116
131
|
docs/ValidationError.md
|
|
132
|
+
docs/ValidationErrorDetail.md
|
|
117
133
|
docs/ValidationErrorLocInner.md
|
|
134
|
+
docs/VrificationPDFXMLApi.md
|
|
118
135
|
git_push.sh
|
|
119
136
|
index.ts
|
|
120
137
|
models/adresse-electronique.ts
|
|
121
138
|
models/adresse-postale.ts
|
|
122
|
-
models/
|
|
123
|
-
models/
|
|
124
|
-
models/
|
|
125
|
-
models/body-rechercher-factures-destinataire-api-v1-chorus-pro-factures-rechercher-destinataire-post.ts
|
|
126
|
-
models/body-rechercher-factures-fournisseur-api-v1-chorus-pro-factures-rechercher-fournisseur-post.ts
|
|
127
|
-
models/body-recycler-facture-api-v1-chorus-pro-factures-recycler-post.ts
|
|
128
|
-
models/body-telecharger-groupe-factures-api-v1-chorus-pro-factures-telecharger-groupe-post.ts
|
|
129
|
-
models/body-traiter-facture-recue-api-v1-chorus-pro-factures-traiter-facture-recue-post.ts
|
|
130
|
-
models/body-valideur-consulter-facture-api-v1-chorus-pro-factures-valideur-consulter-post.ts
|
|
131
|
-
models/body-valideur-rechercher-factures-api-v1-chorus-pro-factures-valideur-rechercher-post.ts
|
|
132
|
-
models/body-valideur-traiter-facture-api-v1-chorus-pro-factures-valideur-traiter-post.ts
|
|
139
|
+
models/apierror.ts
|
|
140
|
+
models/beneficiaire.ts
|
|
141
|
+
models/bounding-box-schema.ts
|
|
133
142
|
models/cadre-de-facturation.ts
|
|
134
143
|
models/categorie-tva.ts
|
|
135
144
|
models/certificate-info-response.ts
|
|
145
|
+
models/champ-verifie-schema.ts
|
|
136
146
|
models/chorus-pro-credentials.ts
|
|
137
147
|
models/code-cadre-facturation.ts
|
|
138
148
|
models/code-raison-reduction.ts
|
|
@@ -146,10 +156,18 @@ models/destinataire.ts
|
|
|
146
156
|
models/destination-afnor.ts
|
|
147
157
|
models/destination-chorus-pro.ts
|
|
148
158
|
models/destination.ts
|
|
159
|
+
models/dimension-page-schema.ts
|
|
160
|
+
models/direction-flux.ts
|
|
149
161
|
models/donnees-facture-simplifiees.ts
|
|
162
|
+
models/error-level.ts
|
|
163
|
+
models/error-source.ts
|
|
150
164
|
models/facture-enrichie-info.ts
|
|
165
|
+
models/facture-entrante.ts
|
|
151
166
|
models/facture-factur-x.ts
|
|
167
|
+
models/flux-resume.ts
|
|
168
|
+
models/format-facture.ts
|
|
152
169
|
models/format-sortie.ts
|
|
170
|
+
models/fournisseur-entrant.ts
|
|
153
171
|
models/fournisseur.ts
|
|
154
172
|
models/generate-certificate-request.ts
|
|
155
173
|
models/generate-certificate-response.ts
|
|
@@ -174,6 +192,8 @@ models/montant-tva-ligne.ts
|
|
|
174
192
|
models/montant-tva-total.ts
|
|
175
193
|
models/montant-tva.ts
|
|
176
194
|
models/montant-unitaire-ht.ts
|
|
195
|
+
models/nature-operation.ts
|
|
196
|
+
models/note-obligatoire-schema.ts
|
|
177
197
|
models/note.ts
|
|
178
198
|
models/obtenir-id-chorus-pro-request.ts
|
|
179
199
|
models/obtenir-id-chorus-pro-response.ts
|
|
@@ -181,17 +201,24 @@ models/options-processing.ts
|
|
|
181
201
|
models/parametres-signature.ts
|
|
182
202
|
models/parametres-structure.ts
|
|
183
203
|
models/pdffactur-xinfo.ts
|
|
204
|
+
models/pdpcredentials.ts
|
|
184
205
|
models/piece-jointe-complementaire.ts
|
|
185
206
|
models/profil-api.ts
|
|
207
|
+
models/profil-flux.ts
|
|
186
208
|
models/quantite.ts
|
|
187
|
-
models/quota-info.ts
|
|
188
209
|
models/rechercher-services-response.ts
|
|
189
210
|
models/rechercher-structure-request.ts
|
|
190
211
|
models/rechercher-structure-response.ts
|
|
191
212
|
models/references.ts
|
|
213
|
+
models/reponse-healthcheck-afnor.ts
|
|
214
|
+
models/reponse-recherche-flux.ts
|
|
215
|
+
models/reponse-soumission-flux.ts
|
|
192
216
|
models/reponse-tache.ts
|
|
193
217
|
models/reponse-validation-erreur.ts
|
|
194
218
|
models/reponse-validation-succes.ts
|
|
219
|
+
models/reponse-verification-succes.ts
|
|
220
|
+
models/requete-recherche-flux.ts
|
|
221
|
+
models/requete-soumission-flux.ts
|
|
195
222
|
models/resultat-afnor.ts
|
|
196
223
|
models/resultat-chorus-pro.ts
|
|
197
224
|
models/resultat-validation-pdfapi.ts
|
|
@@ -202,15 +229,20 @@ models/soumettre-facture-complete-request.ts
|
|
|
202
229
|
models/soumettre-facture-complete-response.ts
|
|
203
230
|
models/soumettre-facture-request.ts
|
|
204
231
|
models/soumettre-facture-response.ts
|
|
232
|
+
models/statut-acquittement.ts
|
|
205
233
|
models/statut-celery.ts
|
|
234
|
+
models/statut-champ-api.ts
|
|
206
235
|
models/statut-facture.ts
|
|
207
236
|
models/statut-tache.ts
|
|
208
237
|
models/structure-info.ts
|
|
238
|
+
models/syntaxe-flux.ts
|
|
209
239
|
models/tauxmanuel.ts
|
|
240
|
+
models/type-document.ts
|
|
210
241
|
models/type-facture.ts
|
|
242
|
+
models/type-flux.ts
|
|
211
243
|
models/type-tva.ts
|
|
212
244
|
models/unite.ts
|
|
213
|
-
models/
|
|
245
|
+
models/validation-error-detail.ts
|
|
214
246
|
models/validation-error-loc-inner.ts
|
|
215
247
|
models/validation-error.ts
|
|
216
248
|
package.json
|
package/CHANGELOG.md
CHANGED
|
@@ -7,7 +7,7 @@ et ce projet adhère au [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
-
## [2.0.
|
|
10
|
+
## [2.0.49] - 2025-12-19
|
|
11
11
|
|
|
12
12
|
### Added
|
|
13
13
|
- Version initiale du SDK typescript
|
|
@@ -24,5 +24,5 @@ et ce projet adhère au [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
|
|
|
24
24
|
- Guide d'authentification JWT
|
|
25
25
|
- Configuration avancée (timeout, proxy, debug)
|
|
26
26
|
|
|
27
|
-
[Unreleased]: https://github.com/factpulse/sdk-typescript/compare/v2.0.
|
|
28
|
-
[2.0.
|
|
27
|
+
[Unreleased]: https://github.com/factpulse/sdk-typescript/compare/v2.0.49...HEAD
|
|
28
|
+
[2.0.49]: https://github.com/factpulse/sdk-typescript/releases/tag/v2.0.49
|