@metarisc/metarisc-js 0.0.1-alpha.7 → 0.0.1-alpha.71
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/.eslintrc +73 -14
- package/.github/workflows/main.yml +2 -8
- package/.github/workflows/publish.yml +32 -0
- package/README.md +73 -6
- package/lib/api/AnomaliesAPI.d.ts +28 -0
- package/lib/api/AnomaliesAPI.js +58 -0
- package/lib/api/CommissionsAPI.d.ts +59 -0
- package/lib/api/CommissionsAPI.js +116 -0
- package/lib/api/CommissionsMembresAPI.d.ts +27 -0
- package/lib/api/CommissionsMembresAPI.js +58 -0
- package/lib/api/ContactsAPI.d.ts +37 -0
- package/lib/api/ContactsAPI.js +58 -0
- package/lib/api/ControlesPeiAPI.d.ts +27 -0
- package/lib/api/ControlesPeiAPI.js +47 -0
- package/lib/api/DatesPassageCommissionAPI.d.ts +24 -0
- package/lib/api/DatesPassageCommissionAPI.js +46 -0
- package/lib/api/DocumentsAPI.d.ts +28 -0
- package/lib/api/DocumentsAPI.js +58 -0
- package/lib/api/DossiersAPI.d.ts +46 -40
- package/lib/api/DossiersAPI.js +65 -100
- package/lib/api/ERPAPI.d.ts +91 -0
- package/lib/api/ERPAPI.js +126 -0
- package/lib/api/EvenementsAPI.d.ts +35 -0
- package/lib/api/EvenementsAPI.js +69 -0
- package/lib/api/FeedAPI.d.ts +20 -0
- package/lib/api/FeedAPI.js +34 -0
- package/lib/api/HealthcheckAPI.d.ts +10 -0
- package/lib/api/HealthcheckAPI.js +23 -0
- package/lib/api/MoiAPI.d.ts +11 -0
- package/lib/api/MoiAPI.js +23 -0
- package/lib/api/NotificationsAPI.d.ts +20 -14
- package/lib/api/NotificationsAPI.js +33 -48
- package/lib/api/OrdresDuJourAPI.d.ts +16 -0
- package/lib/api/OrdresDuJourAPI.js +23 -0
- package/lib/api/OrganisationsAPI.d.ts +70 -0
- package/lib/api/OrganisationsAPI.js +127 -0
- package/lib/api/PEIAPI.d.ts +112 -0
- package/lib/api/PEIAPI.js +137 -0
- package/lib/api/PingAPI.d.ts +6 -5
- package/lib/api/PingAPI.js +6 -10
- package/lib/api/PrescriptionsAPI.d.ts +52 -0
- package/lib/api/PrescriptionsAPI.js +105 -0
- package/lib/api/TournesDECIAPI.d.ts +58 -0
- package/lib/api/TournesDECIAPI.js +81 -0
- package/lib/api/UtilisateursAPI.d.ts +15 -12
- package/lib/api/UtilisateursAPI.js +34 -36
- package/lib/api/WorkflowsAPI.d.ts +78 -0
- package/lib/api/WorkflowsAPI.js +70 -0
- package/lib/auth/oauth2.d.ts +57 -0
- package/lib/auth/oauth2.js +56 -0
- package/lib/client.d.ts +63 -0
- package/lib/client.js +176 -0
- package/lib/collection.d.ts +42 -0
- package/lib/collection.js +59 -0
- package/lib/core.d.ts +23 -3
- package/lib/core.js +27 -31
- package/lib/error/SessionExpiredError.d.ts +3 -0
- package/lib/error/SessionExpiredError.js +11 -0
- package/lib/index.d.ts +28 -8
- package/lib/index.js +49 -8
- package/lib/metarisc.d.ts +47 -13
- package/lib/metarisc.js +73 -22
- package/lib/model/ActiviteErp.d.ts +28 -0
- package/lib/model/ActiviteErp.js +28 -0
- package/lib/model/AdressePostale.d.ts +8 -6
- package/lib/model/AnomalieDECI.d.ts +2 -2
- package/lib/model/AnomaliePEI.d.ts +8 -0
- package/lib/model/Avis.d.ts +7 -0
- package/lib/model/Avis.js +8 -0
- package/lib/model/Commission.d.ts +14 -0
- package/lib/model/Commission.js +11 -0
- package/lib/model/CommissionMembre.d.ts +15 -0
- package/lib/model/CommissionMembre.js +12 -0
- package/lib/model/CommissionPreferences.d.ts +3 -0
- package/lib/model/Contact.d.ts +13 -2
- package/lib/model/Contact.js +7 -0
- package/lib/model/DescriptifTechniqueDECI.d.ts +34 -0
- package/lib/model/DescriptifTechniqueDECI.js +38 -0
- package/lib/model/DescriptifTechniqueDECIBase.d.ts +23 -9
- package/lib/model/DescriptifTechniqueDECIBase.js +15 -1
- package/lib/model/DescriptifTechniqueERP.d.ts +15 -0
- package/lib/model/DescriptifTechniqueERP.js +18 -0
- package/lib/model/DescriptifTechniqueERPBase.d.ts +27 -0
- package/lib/model/DescriptifTechniqueERPBase.js +18 -0
- package/lib/model/DescriptifTechniquePENA.d.ts +14 -20
- package/lib/model/DescriptifTechniquePENA.js +15 -17
- package/lib/model/DescriptifTechniquePIBI.d.ts +17 -12
- package/lib/model/DescriptifTechniquePIBI.js +15 -6
- package/lib/model/Dossier.d.ts +20 -10
- package/lib/model/Dossier.js +12 -0
- package/lib/model/ERP.d.ts +13 -0
- package/lib/model/Email.d.ts +3 -3
- package/lib/model/Evenement.d.ts +14 -0
- package/lib/model/Evenement.js +10 -0
- package/lib/model/FeedMessage.d.ts +6 -0
- package/lib/model/FeedMessage.js +8 -0
- package/lib/model/FeedMessageBase.d.ts +10 -0
- package/lib/model/FeedMessageBase.js +8 -0
- package/lib/model/FeedMessageTexte.d.ts +8 -0
- package/lib/model/FeedMessageTexte.js +8 -0
- package/lib/model/ModelError.d.ts +6 -0
- package/lib/model/Notification.d.ts +13 -9
- package/lib/model/Notification.js +5 -0
- package/lib/model/Organisation.d.ts +1 -1
- package/lib/model/OrganisationGeoservice.d.ts +12 -0
- package/lib/model/OrganisationGeoservice.js +8 -0
- package/lib/model/OrganisationMembre.d.ts +13 -0
- package/lib/model/OrganisationMembre.js +9 -0
- package/lib/model/OrganisationPreferences.d.ts +5 -0
- package/lib/model/PEI.d.ts +14 -0
- package/lib/model/PassageCommission.d.ts +12 -0
- package/lib/model/PassageCommission.js +9 -0
- package/lib/model/PassageCommissionDossier.d.ts +15 -0
- package/lib/model/PassageCommissionDossier.js +10 -0
- package/lib/model/PieceJointe.d.ts +8 -1
- package/lib/model/PieceJointe.js +8 -0
- package/lib/model/Ping.d.ts +3 -0
- package/lib/model/Prescription.d.ts +12 -0
- package/lib/model/Prescription.js +9 -0
- package/lib/model/PrescriptionSupportReglementaire.d.ts +17 -0
- package/lib/model/PrescriptionSupportReglementaire.js +13 -0
- package/{src/model/POIReferencesExterieuresInner.ts → lib/model/ReferenceExterieure.d.ts} +1 -1
- package/lib/model/ReglesDeci.d.ts +11 -0
- package/lib/model/TourneeDeci.d.ts +19 -0
- package/lib/model/TourneeDeci.js +8 -0
- package/lib/model/TourneeDeciBase.d.ts +11 -0
- package/lib/model/TourneeDeciBase.js +8 -0
- package/lib/model/TourneeDeciModele.d.ts +9 -0
- package/lib/model/TourneeDeciModele.js +8 -0
- package/lib/model/TourneeDeciPei.d.ts +17 -0
- package/lib/model/TourneeDeciPei.js +10 -0
- package/lib/model/TourneeDeciPeiListeAnomaliesInner.d.ts +5 -0
- package/lib/model/TourneeDeciSimple.d.ts +13 -0
- package/lib/model/TourneeDeciSimple.js +8 -0
- package/lib/model/Utilisateur.d.ts +8 -6
- package/lib/model/Workflow.d.ts +15 -4
- package/lib/model/Workflow.js +7 -0
- package/lib/model/WorkflowAnalyseDeRisque.d.ts +18 -0
- package/lib/model/WorkflowAnalyseDeRisque.js +9 -0
- package/lib/model/WorkflowArriveeSecretariat.d.ts +11 -0
- package/lib/model/WorkflowArriveeSecretariat.js +9 -0
- package/lib/model/WorkflowBase.d.ts +11 -8
- package/lib/model/WorkflowBase.js +7 -0
- package/lib/model/WorkflowConsultationSis.d.ts +10 -0
- package/lib/model/WorkflowConsultationSis.js +9 -0
- package/lib/model/WorkflowDossiersLies.d.ts +8 -2
- package/lib/model/WorkflowDossiersLies.js +7 -0
- package/lib/model/WorkflowPassageCommissionSecurite.d.ts +10 -2
- package/lib/model/WorkflowPassageCommissionSecurite.js +7 -0
- package/lib/model/WorkflowRelectureSecretariat.d.ts +9 -0
- package/lib/model/WorkflowRelectureSecretariat.js +9 -0
- package/lib/model/WorkflowRemiseEnServicePEI.d.ts +8 -3
- package/lib/model/WorkflowRemiseEnServicePEI.js +7 -0
- package/lib/model/WorkflowStep.d.ts +6 -0
- package/lib/model/WorkflowStepWorkflow.d.ts +4 -0
- package/lib/model/WorkflowType.d.ts +5 -0
- package/lib/model/WorkflowValidation.d.ts +9 -0
- package/lib/model/WorkflowValidation.js +9 -0
- package/lib/model/WorkflowVisite.d.ts +10 -0
- package/lib/model/WorkflowVisite.js +9 -0
- package/lib/tus.d.ts +7 -0
- package/lib/tus.js +57 -0
- package/lib/utils.d.ts +12 -1
- package/lib/utils.js +53 -4
- package/package.json +26 -20
- package/src/api/AnomaliesAPI.ts +68 -0
- package/src/api/CommissionsAPI.ts +139 -0
- package/src/api/CommissionsMembresAPI.ts +68 -0
- package/src/api/ContactsAPI.ts +68 -0
- package/src/api/ControlesPeiAPI.ts +54 -0
- package/src/api/DatesPassageCommissionAPI.ts +55 -0
- package/src/api/DocumentsAPI.ts +68 -0
- package/src/api/DossiersAPI.ts +133 -191
- package/src/api/ERPAPI.ts +152 -0
- package/src/api/EvenementsAPI.ts +82 -0
- package/src/api/FeedAPI.ts +40 -0
- package/src/api/HealthcheckAPI.ts +25 -0
- package/src/api/MoiAPI.ts +26 -0
- package/src/api/NotificationsAPI.ts +77 -101
- package/src/api/OrdresDuJourAPI.ts +26 -0
- package/src/api/OrganisationsAPI.ts +154 -0
- package/src/api/PEIAPI.ts +166 -0
- package/src/api/PingAPI.ts +11 -11
- package/src/api/PrescriptionsAPI.ts +124 -0
- package/src/api/TournesDECIAPI.ts +96 -0
- package/src/api/UtilisateursAPI.ts +77 -72
- package/src/api/WorkflowsAPI.ts +83 -0
- package/src/auth/oauth2.ts +112 -0
- package/src/client.ts +215 -0
- package/src/collection.ts +96 -0
- package/src/core.ts +56 -54
- package/src/error/SessionExpiredError.ts +8 -0
- package/src/index.ts +43 -8
- package/src/metarisc.ts +184 -51
- package/src/model/ActiviteErp.ts +29 -0
- package/src/model/AdressePostale.ts +8 -6
- package/src/model/AnomalieDECI.ts +2 -2
- package/src/model/AnomaliePEI.ts +9 -0
- package/src/model/Avis.ts +8 -0
- package/src/model/Commission.ts +16 -0
- package/src/model/CommissionMembre.ts +17 -0
- package/src/model/CommissionPreferences.ts +3 -0
- package/src/model/Contact.ts +14 -2
- package/src/model/DescriptifTechniqueDECI.ts +39 -0
- package/src/model/DescriptifTechniqueDECIBase.ts +25 -11
- package/src/model/DescriptifTechniqueERP.ts +18 -0
- package/src/model/DescriptifTechniqueERPBase.ts +30 -0
- package/src/model/DescriptifTechniquePENA.ts +20 -22
- package/src/model/DescriptifTechniquePIBI.ts +26 -14
- package/src/model/Dossier.ts +22 -10
- package/src/model/ERP.ts +14 -0
- package/src/model/Email.ts +3 -3
- package/src/model/Evenement.ts +15 -0
- package/src/model/FeedMessage.ts +8 -0
- package/src/model/FeedMessageBase.ts +11 -0
- package/src/model/FeedMessageTexte.ts +11 -0
- package/src/model/ModelError.ts +6 -0
- package/src/model/Notification.ts +13 -9
- package/src/model/Organisation.ts +1 -1
- package/src/model/OrganisationGeoservice.ts +14 -0
- package/src/model/OrganisationMembre.ts +15 -0
- package/src/model/OrganisationPreferences.ts +5 -0
- package/src/model/PEI.ts +15 -0
- package/src/model/PassageCommission.ts +13 -0
- package/src/model/PassageCommissionDossier.ts +17 -0
- package/src/model/PieceJointe.ts +9 -1
- package/src/model/Ping.ts +3 -0
- package/src/model/Prescription.ts +14 -0
- package/src/model/PrescriptionSupportReglementaire.ts +19 -0
- package/{lib/model/POIReferencesExterieuresInner.d.ts → src/model/ReferenceExterieure.ts} +1 -1
- package/src/model/ReglesDeci.ts +9 -0
- package/src/model/TourneeDeci.ts +21 -0
- package/src/model/TourneeDeciBase.ts +12 -0
- package/src/model/TourneeDeciModele.ts +13 -0
- package/src/model/TourneeDeciPei.ts +19 -0
- package/src/model/TourneeDeciPeiListeAnomaliesInner.ts +6 -0
- package/src/model/TourneeDeciSimple.ts +21 -0
- package/src/model/Utilisateur.ts +8 -6
- package/src/model/Workflow.ts +16 -4
- package/src/model/WorkflowAnalyseDeRisque.ts +29 -0
- package/src/model/WorkflowArriveeSecretariat.ts +16 -0
- package/src/model/WorkflowBase.ts +12 -8
- package/src/model/WorkflowConsultationSis.ts +14 -0
- package/src/model/WorkflowDossiersLies.ts +11 -2
- package/src/model/WorkflowPassageCommissionSecurite.ts +14 -2
- package/src/model/WorkflowRelectureSecretariat.ts +12 -0
- package/src/model/WorkflowRemiseEnServicePEI.ts +11 -3
- package/src/model/WorkflowStep.ts +7 -0
- package/src/model/WorkflowStepWorkflow.ts +4 -0
- package/src/model/WorkflowType.ts +6 -0
- package/src/model/WorkflowValidation.ts +12 -0
- package/src/model/WorkflowVisite.ts +14 -0
- package/src/tus.ts +64 -0
- package/src/utils.ts +62 -11
- package/lib/api/OrganisationAPI.d.ts +0 -11
- package/lib/api/OrganisationAPI.js +0 -28
- package/lib/api/POIAPI.d.ts +0 -49
- package/lib/api/POIAPI.js +0 -106
- package/lib/api/SupportAPI.d.ts +0 -24
- package/lib/api/SupportAPI.js +0 -60
- package/lib/model/DescriptifTechnique.d.ts +0 -40
- package/lib/model/DescriptifTechnique.js +0 -45
- package/lib/model/DescriptifTechniqueBase.d.ts +0 -5
- package/lib/model/DescriptifTechniquePENAAllOfRealimentation.d.ts +0 -10
- package/lib/model/DescriptifTechniquePENAAllOfRealimentation.js +0 -9
- package/lib/model/DescriptifTechniquePENAAllOfVolumes.d.ts +0 -4
- package/lib/model/DescriptifTechniquePIBIAllOfPesees.d.ts +0 -6
- package/lib/model/Document.d.ts +0 -3
- package/lib/model/Feature.d.ts +0 -6
- package/lib/model/FeatureGeometry.d.ts +0 -5
- package/lib/model/GetFeature200Response.d.ts +0 -7
- package/lib/model/GetFeature200ResponseCrs.d.ts +0 -5
- package/lib/model/GetFeature200ResponseCrsProperties.d.ts +0 -3
- package/lib/model/GetNotification404Response.d.ts +0 -6
- package/lib/model/POI.d.ts +0 -13
- package/lib/model/PaginateContacts200Response.d.ts +0 -6
- package/lib/model/PaginateDossiers200Response.d.ts +0 -6
- package/lib/model/PaginateDossiers200Response.js +0 -2
- package/lib/model/PaginateDossiers200ResponseMeta.d.ts +0 -4
- package/lib/model/PaginateDossiers200ResponseMeta.js +0 -2
- package/lib/model/PaginateHistorique200Response.d.ts +0 -6
- package/lib/model/PaginateHistorique200Response.js +0 -2
- package/lib/model/PaginateMoiEmails200Response.d.ts +0 -6
- package/lib/model/PaginateMoiEmails200Response.js +0 -2
- package/lib/model/PaginateMoiEmails200ResponseMeta.d.ts +0 -4
- package/lib/model/PaginateMoiEmails200ResponseMeta.js +0 -2
- package/lib/model/PaginateMoiEmails200ResponseMetaPagination.d.ts +0 -7
- package/lib/model/PaginateMoiEmails200ResponseMetaPagination.js +0 -2
- package/lib/model/PaginateNotifications200Response.d.ts +0 -6
- package/lib/model/PaginateNotifications200Response.js +0 -2
- package/lib/model/PaginatePiecesJointes200Response.d.ts +0 -6
- package/lib/model/PaginatePiecesJointes200Response.js +0 -2
- package/lib/model/PaginatePoi200Response.d.ts +0 -6
- package/lib/model/PaginatePoi200Response.js +0 -2
- package/lib/model/PaginatePoi200ResponseMeta.d.ts +0 -4
- package/lib/model/PaginatePoi200ResponseMeta.js +0 -2
- package/lib/model/PaginateSuiviAdministratif200Response.d.ts +0 -6
- package/lib/model/PaginateSuiviAdministratif200Response.js +0 -2
- package/lib/model/PaginateTags200Response.d.ts +0 -6
- package/lib/model/PaginateTags200Response.js +0 -2
- package/lib/model/PaginateTickets200Response.d.ts +0 -6
- package/lib/model/PaginateTickets200Response.js +0 -2
- package/lib/model/PaginateTickets200ResponseMeta.d.ts +0 -4
- package/lib/model/PaginateTickets200ResponseMeta.js +0 -2
- package/lib/model/PaginateWorkflowDocuments200Response.d.ts +0 -6
- package/lib/model/PaginateWorkflowDocuments200Response.js +0 -2
- package/lib/model/PaginateWorkflows200Response.d.ts +0 -6
- package/lib/model/PaginateWorkflows200Response.js +0 -2
- package/lib/model/PaginationMetadata1.d.ts +0 -7
- package/lib/model/PaginationMetadata1.js +0 -2
- package/lib/model/PaginationMetadata2.d.ts +0 -7
- package/lib/model/PaginationMetadata2.js +0 -2
- package/lib/model/PatchPoiRequest.d.ts +0 -3
- package/lib/model/PatchPoiRequest.js +0 -2
- package/lib/model/Ping200Response.d.ts +0 -3
- package/lib/model/Ping200Response.js +0 -2
- package/lib/model/PostDossierRequest.d.ts +0 -5
- package/lib/model/PostDossierRequest.js +0 -2
- package/lib/model/PostNotification400Response.d.ts +0 -6
- package/lib/model/PostNotification400Response.js +0 -2
- package/lib/model/PostNotification500Response.d.ts +0 -6
- package/lib/model/PostNotification500Response.js +0 -2
- package/lib/model/PostNotificationRequest.d.ts +0 -9
- package/lib/model/PostNotificationRequest.js +0 -2
- package/lib/model/PostTicketRequest.d.ts +0 -10
- package/lib/model/PostTicketRequest.js +0 -2
- package/lib/model/SuiviAdministratif.d.ts +0 -6
- package/lib/model/SuiviAdministratif.js +0 -2
- package/lib/model/Ticket.d.ts +0 -17
- package/lib/model/Ticket.js +0 -12
- package/lib/model/Type.d.ts +0 -5
- package/lib/model/Type.js +0 -2
- package/lib/oauth2.d.ts +0 -13
- package/lib/oauth2.js +0 -14
- package/src/api/OrganisationAPI.ts +0 -27
- package/src/api/POIAPI.ts +0 -134
- package/src/api/SupportAPI.ts +0 -66
- package/src/model/DescriptifTechnique.ts +0 -46
- package/src/model/DescriptifTechniqueBase.ts +0 -5
- package/src/model/DescriptifTechniquePENAAllOfRealimentation.ts +0 -11
- package/src/model/DescriptifTechniquePENAAllOfVolumes.ts +0 -4
- package/src/model/DescriptifTechniquePIBIAllOfPesees.ts +0 -6
- package/src/model/Document.ts +0 -3
- package/src/model/Feature.ts +0 -7
- package/src/model/FeatureGeometry.ts +0 -5
- package/src/model/GetFeature200Response.ts +0 -8
- package/src/model/GetFeature200ResponseCrs.ts +0 -6
- package/src/model/GetFeature200ResponseCrsProperties.ts +0 -3
- package/src/model/GetNotification404Response.ts +0 -6
- package/src/model/POI.ts +0 -14
- package/src/model/PaginateContacts200Response.ts +0 -7
- package/src/model/PaginateDossiers200Response.ts +0 -7
- package/src/model/PaginateDossiers200ResponseMeta.ts +0 -5
- package/src/model/PaginateHistorique200Response.ts +0 -7
- package/src/model/PaginateMoiEmails200Response.ts +0 -7
- package/src/model/PaginateMoiEmails200ResponseMeta.ts +0 -5
- package/src/model/PaginateMoiEmails200ResponseMetaPagination.ts +0 -7
- package/src/model/PaginateNotifications200Response.ts +0 -7
- package/src/model/PaginatePiecesJointes200Response.ts +0 -7
- package/src/model/PaginatePoi200Response.ts +0 -7
- package/src/model/PaginatePoi200ResponseMeta.ts +0 -5
- package/src/model/PaginateSuiviAdministratif200Response.ts +0 -7
- package/src/model/PaginateTags200Response.ts +0 -7
- package/src/model/PaginateTickets200Response.ts +0 -7
- package/src/model/PaginateTickets200ResponseMeta.ts +0 -5
- package/src/model/PaginateWorkflowDocuments200Response.ts +0 -7
- package/src/model/PaginateWorkflows200Response.ts +0 -7
- package/src/model/PaginationMetadata1.ts +0 -7
- package/src/model/PaginationMetadata2.ts +0 -7
- package/src/model/PatchPoiRequest.ts +0 -3
- package/src/model/Ping200Response.ts +0 -3
- package/src/model/PostDossierRequest.ts +0 -5
- package/src/model/PostNotification400Response.ts +0 -6
- package/src/model/PostNotification500Response.ts +0 -6
- package/src/model/PostNotificationRequest.ts +0 -9
- package/src/model/PostTicketRequest.ts +0 -10
- package/src/model/SuiviAdministratif.ts +0 -6
- package/src/model/Ticket.ts +0 -18
- package/src/model/Type.ts +0 -5
- package/src/oauth2.ts +0 -20
- package/tests/index.mjs +0 -7
- /package/lib/model/{DescriptifTechniqueBase.js → AnomaliePEI.js} +0 -0
- /package/lib/model/{DescriptifTechniquePENAAllOfVolumes.js → CommissionPreferences.js} +0 -0
- /package/lib/model/{DescriptifTechniquePIBIAllOfPesees.js → ERP.js} +0 -0
- /package/lib/model/{Document.js → ModelError.js} +0 -0
- /package/lib/model/{Feature.js → OrganisationPreferences.js} +0 -0
- /package/lib/model/{FeatureGeometry.js → PEI.js} +0 -0
- /package/lib/model/{GetFeature200Response.js → Ping.js} +0 -0
- /package/lib/model/{GetFeature200ResponseCrs.js → ReferenceExterieure.js} +0 -0
- /package/lib/model/{GetFeature200ResponseCrsProperties.js → ReglesDeci.js} +0 -0
- /package/lib/model/{GetNotification404Response.js → TourneeDeciPeiListeAnomaliesInner.js} +0 -0
- /package/lib/model/{POI.js → WorkflowStep.js} +0 -0
- /package/lib/model/{POIReferencesExterieuresInner.js → WorkflowStepWorkflow.js} +0 -0
- /package/lib/model/{PaginateContacts200Response.js → WorkflowType.js} +0 -0
package/.eslintrc
CHANGED
|
@@ -1,15 +1,74 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
2
|
+
"root": true,
|
|
3
|
+
"parser": "@typescript-eslint/parser",
|
|
4
|
+
"plugins": [
|
|
5
|
+
"@typescript-eslint",
|
|
6
|
+
"unused-imports",
|
|
7
|
+
"import"
|
|
8
|
+
],
|
|
9
|
+
"extends": [
|
|
10
|
+
"eslint:recommended",
|
|
11
|
+
"plugin:@typescript-eslint/eslint-recommended",
|
|
12
|
+
"plugin:@typescript-eslint/recommended"
|
|
13
|
+
],
|
|
14
|
+
"rules": {
|
|
15
|
+
"@typescript-eslint/no-explicit-any": [
|
|
16
|
+
"off"
|
|
17
|
+
],
|
|
18
|
+
"@typescript-eslint/ban-types": [
|
|
19
|
+
"error", {
|
|
20
|
+
"extendDefaults": true,
|
|
21
|
+
"types": {
|
|
22
|
+
"{}": false
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"no-multiple-empty-lines": [
|
|
27
|
+
"warn", {
|
|
28
|
+
"max": 1,
|
|
29
|
+
"maxEOF": 0,
|
|
30
|
+
"maxBOF": 0
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
"unused-imports/no-unused-imports": [
|
|
34
|
+
"error"
|
|
35
|
+
],
|
|
36
|
+
"import/no-duplicates": [
|
|
37
|
+
"error", {
|
|
38
|
+
"considerQueryString": true,
|
|
39
|
+
"prefer-inline": true
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"comma-dangle": [
|
|
43
|
+
"error", {
|
|
44
|
+
"arrays": "never",
|
|
45
|
+
"objects": "never",
|
|
46
|
+
"imports": "never",
|
|
47
|
+
"exports": "never",
|
|
48
|
+
"functions": "never"
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
"space-in-parens": [
|
|
52
|
+
"error", "never"
|
|
53
|
+
],
|
|
54
|
+
"no-multi-spaces": [
|
|
55
|
+
"error"
|
|
56
|
+
],
|
|
57
|
+
"space-before-function-paren": [
|
|
58
|
+
"error", {
|
|
59
|
+
"anonymous": "never",
|
|
60
|
+
"named": "never",
|
|
61
|
+
"asyncArrow": "always"
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
"space-before-blocks": [
|
|
65
|
+
"error", "always"
|
|
66
|
+
],
|
|
67
|
+
"object-curly-spacing": [
|
|
68
|
+
"error", "always"
|
|
69
|
+
],
|
|
70
|
+
"array-bracket-spacing": [
|
|
71
|
+
"error", "never"
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -19,11 +19,5 @@ jobs:
|
|
|
19
19
|
registry-url: 'https://registry.npmjs.org'
|
|
20
20
|
|
|
21
21
|
- run: npm install
|
|
22
|
-
|
|
23
|
-
- run:
|
|
24
|
-
|
|
25
|
-
- run: npx eslint . --ext .ts
|
|
26
|
-
|
|
27
|
-
- run: npm publish --access=public
|
|
28
|
-
env:
|
|
29
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
22
|
+
|
|
23
|
+
- run: npx eslint . --ext .ts
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
name: "NPM Publish"
|
|
2
|
+
|
|
3
|
+
on: workflow_dispatch
|
|
4
|
+
|
|
5
|
+
jobs:
|
|
6
|
+
|
|
7
|
+
build:
|
|
8
|
+
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
|
|
11
|
+
steps:
|
|
12
|
+
|
|
13
|
+
- uses: actions/checkout@v3
|
|
14
|
+
|
|
15
|
+
- uses: actions/setup-node@v3
|
|
16
|
+
with:
|
|
17
|
+
registry-url: 'https://registry.npmjs.org'
|
|
18
|
+
|
|
19
|
+
- run: npm install
|
|
20
|
+
|
|
21
|
+
- run: npm run compile
|
|
22
|
+
|
|
23
|
+
- name: Bump package version
|
|
24
|
+
run: |
|
|
25
|
+
git config --global user.name github-actions
|
|
26
|
+
git config --global user.email github-actions@github.com
|
|
27
|
+
npm version prerelease --preid alpha
|
|
28
|
+
git push origin main --follow-tags --force
|
|
29
|
+
|
|
30
|
+
- run: npm publish --access=public
|
|
31
|
+
env:
|
|
32
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
package/README.md
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
# Metarisc JS
|
|
3
2
|
|
|
4
3
|
La librairie Metarisc JS offre un accès simple et pratique à l'API Metarisc à partir d'applications écrites en langage JS. Elle comprend un ensemble de classes et de fonctions pour l'ensemble des ressources de l'API.
|
|
@@ -13,20 +12,88 @@ npm i @metarisc/metarisc-js
|
|
|
13
12
|
|
|
14
13
|
Pour utiliser la librairie, il suffit de l'importer comme ceci :
|
|
15
14
|
|
|
16
|
-
```
|
|
17
|
-
import { Metarisc } from
|
|
15
|
+
```ts
|
|
16
|
+
import { Metarisc } from "@metarisc/metarisc-js";
|
|
18
17
|
```
|
|
19
18
|
|
|
20
19
|
## Utilisation
|
|
21
20
|
|
|
22
21
|
### Requêtes
|
|
23
22
|
|
|
24
|
-
Pour effectuer une requête sur Metarisc,
|
|
23
|
+
Pour effectuer une requête sur Metarisc, il faut tout d'adord initialisé le client metarisc de cette manière :
|
|
24
|
+
|
|
25
|
+
```ts
|
|
26
|
+
const m = new Metarisc({
|
|
27
|
+
metarisc_url: "https://api.metarisc.fr",
|
|
28
|
+
client_id: "CLIENT_ID",
|
|
29
|
+
client_secret: "CLIENT_SECRET"
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
m.dossiers.getDossier("123456");
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Ensuite vous pouvez faire vos requêtes.
|
|
36
|
+
|
|
37
|
+
#### Requêtes simple
|
|
38
|
+
|
|
39
|
+
Pour faire un appel API après initialisation du client, vous pouvez utiliser l'accès rapide à l'API souhaitée.
|
|
40
|
+
|
|
41
|
+
Exemple :
|
|
42
|
+
|
|
43
|
+
```ts
|
|
44
|
+
m.dossiers.getDossier("123456");
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Le type de retour d'une requête simple est :
|
|
48
|
+
|
|
49
|
+
```ts
|
|
50
|
+
Promise<AxiosResponse<T>>;
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
(voir les documentations suivantes [Promise](https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Promise) et [AxiosResponse](https://axios-http.com/docs/res_schema))
|
|
54
|
+
|
|
55
|
+
#### Requêtes paginées
|
|
56
|
+
|
|
57
|
+
Pour récupérer des résultats paginés Metarisc (voir la [documentation](http://metarisc.fr/docs/api/#/#pagination)), il suffit de faire appel à l'api souhaitée de la même manière que pour une requête simple.
|
|
25
58
|
|
|
26
59
|
Exemple :
|
|
27
60
|
|
|
28
61
|
```ts
|
|
29
62
|
const m = new Metarisc(config);
|
|
30
|
-
m.NotificationsAPI.getNotification('123456');
|
|
31
63
|
m.NotificationsAPI.paginateNotifications();
|
|
32
|
-
```
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Le type de retour d'une requête paginée est :
|
|
67
|
+
|
|
68
|
+
```ts
|
|
69
|
+
AsyncGenerator<T>;
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
(voir la documentation suivante [AsyncGenerator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/AsyncGenerator))
|
|
73
|
+
|
|
74
|
+
#### Écouteur d'événements pour les requêtes
|
|
75
|
+
|
|
76
|
+
Il est possible d'ajouter un écouteur d'événements sur chaque requête effectuée par le client Metarisc. Pour ce faire, vous pouvez utiliser la méthode on() de l'objet core, en spécifiant le nom de l'événement on("request", function)
|
|
77
|
+
|
|
78
|
+
```ts
|
|
79
|
+
m.on("request", (config: Event): void => {
|
|
80
|
+
//Action à effectuer à chaque requête
|
|
81
|
+
});
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
Cet écouteur est particulièrement utile pour effectuer des vérifications, comme la validation du token d'authentification avant l'envoi de chaque requête.
|
|
85
|
+
|
|
86
|
+
La fonction de rappel (callback) reçoit en paramètre un objet Event. Cet objet contient une propriété detail, où sont stockées toutes les informations relatives à la requête entrante.
|
|
87
|
+
|
|
88
|
+
```ts
|
|
89
|
+
m.on("request", (config: Event): void => {
|
|
90
|
+
console.log(config.detail); // Retourne un objet de type RequestConfig
|
|
91
|
+
//{
|
|
92
|
+
//body?: any;
|
|
93
|
+
//headers?: { [name: string]: string | string[] };
|
|
94
|
+
//params?: { [param: string]: string | string[] };
|
|
95
|
+
//endpoint?: string;
|
|
96
|
+
//method?: string;
|
|
97
|
+
//}
|
|
98
|
+
});
|
|
99
|
+
```
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Core, MetariscConfig } from "../core";
|
|
2
|
+
import type { AxiosResponse } from "axios";
|
|
3
|
+
import { Client } from "../client";
|
|
4
|
+
import { Collection } from "../collection";
|
|
5
|
+
import { AnomalieDECI } from '../model/AnomalieDECI';
|
|
6
|
+
export declare class AnomaliesAPI extends Core {
|
|
7
|
+
constructor(config: MetariscConfig, client?: Client);
|
|
8
|
+
/**
|
|
9
|
+
* Suppression d'une anomalie DECI type dans la bibliothèque DECI.
|
|
10
|
+
*/
|
|
11
|
+
deleteAnomalie(anomalieId: string): Promise<AxiosResponse<void>>;
|
|
12
|
+
/**
|
|
13
|
+
* Détails d'une anomalie type DECI présente dans la bibliothèque DECI.
|
|
14
|
+
*/
|
|
15
|
+
getAnomalie(anomalieId: string): Promise<AxiosResponse<AnomalieDECI>>;
|
|
16
|
+
/**
|
|
17
|
+
* Retourne une liste des anomalies types dans la bibliothèque DECI.
|
|
18
|
+
*/
|
|
19
|
+
paginateAnomalies(page?: number, perPage?: number, sort?: string, texte?: string, code?: string): Collection<AnomalieDECI>;
|
|
20
|
+
/**
|
|
21
|
+
* Ajout d'une nouvelle anomalie DECI type dans la bibliothèque DECI.
|
|
22
|
+
*/
|
|
23
|
+
postAnomalie(params: {
|
|
24
|
+
code: number;
|
|
25
|
+
texte: string;
|
|
26
|
+
indice_de_gravite: number;
|
|
27
|
+
}): Promise<AxiosResponse<AnomalieDECI>>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AnomaliesAPI = void 0;
|
|
4
|
+
const core_1 = require("../core");
|
|
5
|
+
const utils_1 = require("../utils");
|
|
6
|
+
class AnomaliesAPI extends core_1.Core {
|
|
7
|
+
constructor(config, client) {
|
|
8
|
+
super(config, client);
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Suppression d'une anomalie DECI type dans la bibliothèque DECI.
|
|
12
|
+
*/
|
|
13
|
+
async deleteAnomalie(anomalieId) {
|
|
14
|
+
const pathVariable = { 'anomalie_id': (new String(anomalieId)).toString() };
|
|
15
|
+
return this.request({
|
|
16
|
+
method: 'DELETE',
|
|
17
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/anomalies/{anomalie_id}'),
|
|
18
|
+
params: {},
|
|
19
|
+
body: utils_1.Utils.payloadFilter({})
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Détails d'une anomalie type DECI présente dans la bibliothèque DECI.
|
|
24
|
+
*/
|
|
25
|
+
async getAnomalie(anomalieId) {
|
|
26
|
+
const pathVariable = { 'anomalie_id': (new String(anomalieId)).toString() };
|
|
27
|
+
return this.request({
|
|
28
|
+
method: 'GET',
|
|
29
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/anomalies/{anomalie_id}'),
|
|
30
|
+
params: {},
|
|
31
|
+
body: utils_1.Utils.payloadFilter({})
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Retourne une liste des anomalies types dans la bibliothèque DECI.
|
|
36
|
+
*/
|
|
37
|
+
paginateAnomalies(page, perPage, sort, texte, code) {
|
|
38
|
+
const pathVariable = {};
|
|
39
|
+
return this.collect({
|
|
40
|
+
method: 'GET',
|
|
41
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/anomalies'),
|
|
42
|
+
params: { 'page': page?.toString(), 'per_page': perPage?.toString(), 'sort': sort, 'texte': texte, 'code': code }
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Ajout d'une nouvelle anomalie DECI type dans la bibliothèque DECI.
|
|
47
|
+
*/
|
|
48
|
+
async postAnomalie(params) {
|
|
49
|
+
const pathVariable = {};
|
|
50
|
+
return this.request({
|
|
51
|
+
method: 'POST',
|
|
52
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/anomalies'),
|
|
53
|
+
params: {},
|
|
54
|
+
body: utils_1.Utils.payloadFilter(params)
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
exports.AnomaliesAPI = AnomaliesAPI;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { Core, MetariscConfig } from "../core";
|
|
2
|
+
import type { AxiosResponse } from "axios";
|
|
3
|
+
import { Client } from "../client";
|
|
4
|
+
import { Collection } from "../collection";
|
|
5
|
+
import { Commission } from '../model/Commission';
|
|
6
|
+
import { CommissionMembre } from '../model/CommissionMembre';
|
|
7
|
+
import { CommissionPreferences } from '../model/CommissionPreferences';
|
|
8
|
+
import { PassageCommission } from '../model/PassageCommission';
|
|
9
|
+
export declare class CommissionsAPI extends Core {
|
|
10
|
+
constructor(config: MetariscConfig, client?: Client);
|
|
11
|
+
/**
|
|
12
|
+
* Récupération des détails de la commission.
|
|
13
|
+
*/
|
|
14
|
+
getCommission(commissionId: string): Promise<AxiosResponse<Commission>>;
|
|
15
|
+
/**
|
|
16
|
+
* Récupération des préférences de la commission.
|
|
17
|
+
*/
|
|
18
|
+
getCommissionPreferences(commissionId: string): Promise<AxiosResponse<CommissionPreferences>>;
|
|
19
|
+
/**
|
|
20
|
+
* Liste des commissions.
|
|
21
|
+
*/
|
|
22
|
+
paginateCommissions(page?: number, perPage?: number): Collection<Commission>;
|
|
23
|
+
/**
|
|
24
|
+
* Récupération de la liste des dates de passage de la commission.
|
|
25
|
+
*/
|
|
26
|
+
paginateCommissionDates(commissionId: string, page?: number, perPage?: number): Collection<PassageCommission>;
|
|
27
|
+
/**
|
|
28
|
+
* Récupération de la liste des membres de la commission.
|
|
29
|
+
*/
|
|
30
|
+
paginateCommissionMembres(commissionId: string, page?: number, perPage?: number): Collection<CommissionMembre>;
|
|
31
|
+
/**
|
|
32
|
+
* Ajoute une commission.
|
|
33
|
+
*/
|
|
34
|
+
postCommission(params: {
|
|
35
|
+
type: string;
|
|
36
|
+
libelle: string;
|
|
37
|
+
presidence_id?: string;
|
|
38
|
+
}): Promise<AxiosResponse<Commission>>;
|
|
39
|
+
/**
|
|
40
|
+
* Ajout d'une date de passage en commission.
|
|
41
|
+
*/
|
|
42
|
+
postCommissionDate(commissionId: string, params: {
|
|
43
|
+
date_debut: Date;
|
|
44
|
+
date_fin: Date;
|
|
45
|
+
type: string;
|
|
46
|
+
libelle: string;
|
|
47
|
+
}): Promise<AxiosResponse<PassageCommission>>;
|
|
48
|
+
/**
|
|
49
|
+
* Ajout d'un membre dans la commission.
|
|
50
|
+
*/
|
|
51
|
+
postMembresCommission(commissionId: string, params: {
|
|
52
|
+
titre: string;
|
|
53
|
+
presence_obligatoire: boolean;
|
|
54
|
+
}): Promise<AxiosResponse<CommissionMembre>>;
|
|
55
|
+
/**
|
|
56
|
+
* Mise à jour des préférences de la commission.
|
|
57
|
+
*/
|
|
58
|
+
postCommissionPreferences(commissionId: string): Promise<AxiosResponse<CommissionPreferences>>;
|
|
59
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CommissionsAPI = void 0;
|
|
4
|
+
const core_1 = require("../core");
|
|
5
|
+
const utils_1 = require("../utils");
|
|
6
|
+
class CommissionsAPI extends core_1.Core {
|
|
7
|
+
constructor(config, client) {
|
|
8
|
+
super(config, client);
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Récupération des détails de la commission.
|
|
12
|
+
*/
|
|
13
|
+
async getCommission(commissionId) {
|
|
14
|
+
const pathVariable = { 'commission_id': (new String(commissionId)).toString() };
|
|
15
|
+
return this.request({
|
|
16
|
+
method: 'GET',
|
|
17
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions/{commission_id}'),
|
|
18
|
+
params: {},
|
|
19
|
+
body: utils_1.Utils.payloadFilter({})
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Récupération des préférences de la commission.
|
|
24
|
+
*/
|
|
25
|
+
async getCommissionPreferences(commissionId) {
|
|
26
|
+
const pathVariable = { 'commission_id': (new String(commissionId)).toString() };
|
|
27
|
+
return this.request({
|
|
28
|
+
method: 'GET',
|
|
29
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions/{commission_id}/preferences'),
|
|
30
|
+
params: {},
|
|
31
|
+
body: utils_1.Utils.payloadFilter({})
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Liste des commissions.
|
|
36
|
+
*/
|
|
37
|
+
paginateCommissions(page, perPage) {
|
|
38
|
+
const pathVariable = {};
|
|
39
|
+
return this.collect({
|
|
40
|
+
method: 'GET',
|
|
41
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions'),
|
|
42
|
+
params: { 'page': page?.toString(), 'per_page': perPage?.toString() }
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Récupération de la liste des dates de passage de la commission.
|
|
47
|
+
*/
|
|
48
|
+
paginateCommissionDates(commissionId, page, perPage) {
|
|
49
|
+
const pathVariable = { 'commission_id': (new String(commissionId)).toString() };
|
|
50
|
+
return this.collect({
|
|
51
|
+
method: 'GET',
|
|
52
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions/{commission_id}/dates'),
|
|
53
|
+
params: { 'page': page?.toString(), 'per_page': perPage?.toString() }
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Récupération de la liste des membres de la commission.
|
|
58
|
+
*/
|
|
59
|
+
paginateCommissionMembres(commissionId, page, perPage) {
|
|
60
|
+
const pathVariable = { 'commission_id': (new String(commissionId)).toString() };
|
|
61
|
+
return this.collect({
|
|
62
|
+
method: 'GET',
|
|
63
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions/{commission_id}/membres'),
|
|
64
|
+
params: { 'page': page?.toString(), 'per_page': perPage?.toString() }
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Ajoute une commission.
|
|
69
|
+
*/
|
|
70
|
+
async postCommission(params) {
|
|
71
|
+
const pathVariable = {};
|
|
72
|
+
return this.request({
|
|
73
|
+
method: 'POST',
|
|
74
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions'),
|
|
75
|
+
params: {},
|
|
76
|
+
body: utils_1.Utils.payloadFilter(params)
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Ajout d'une date de passage en commission.
|
|
81
|
+
*/
|
|
82
|
+
async postCommissionDate(commissionId, params) {
|
|
83
|
+
const pathVariable = { 'commission_id': (new String(commissionId)).toString() };
|
|
84
|
+
return this.request({
|
|
85
|
+
method: 'POST',
|
|
86
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions/{commission_id}/dates'),
|
|
87
|
+
params: {},
|
|
88
|
+
body: utils_1.Utils.payloadFilter(params)
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Ajout d'un membre dans la commission.
|
|
93
|
+
*/
|
|
94
|
+
async postMembresCommission(commissionId, params) {
|
|
95
|
+
const pathVariable = { 'commission_id': (new String(commissionId)).toString() };
|
|
96
|
+
return this.request({
|
|
97
|
+
method: 'POST',
|
|
98
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions/{commission_id}/membres'),
|
|
99
|
+
params: {},
|
|
100
|
+
body: utils_1.Utils.payloadFilter(params)
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Mise à jour des préférences de la commission.
|
|
105
|
+
*/
|
|
106
|
+
async postCommissionPreferences(commissionId) {
|
|
107
|
+
const pathVariable = { 'commission_id': (new String(commissionId)).toString() };
|
|
108
|
+
return this.request({
|
|
109
|
+
method: 'POST',
|
|
110
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions/{commission_id}/preferences'),
|
|
111
|
+
params: {},
|
|
112
|
+
body: utils_1.Utils.payloadFilter({})
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
exports.CommissionsAPI = CommissionsAPI;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Core, MetariscConfig } from "../core";
|
|
2
|
+
import type { AxiosResponse } from "axios";
|
|
3
|
+
import { Client } from "../client";
|
|
4
|
+
import { Collection } from "../collection";
|
|
5
|
+
import { CommissionMembre } from '../model/CommissionMembre';
|
|
6
|
+
export declare class CommissionsMembresAPI extends Core {
|
|
7
|
+
constructor(config: MetariscConfig, client?: Client);
|
|
8
|
+
/**
|
|
9
|
+
* Suppression d'un membre de commission existant.
|
|
10
|
+
*/
|
|
11
|
+
deleteMembre(membreId: string): Promise<AxiosResponse<void>>;
|
|
12
|
+
/**
|
|
13
|
+
* Récupération d'une fiche d'un membre d'une commission.
|
|
14
|
+
*/
|
|
15
|
+
getMembre(membreId: string): Promise<AxiosResponse<CommissionMembre>>;
|
|
16
|
+
/**
|
|
17
|
+
* Récupération de la liste membres des commissions.
|
|
18
|
+
*/
|
|
19
|
+
paginateMembres(page?: number, perPage?: number): Collection<CommissionMembre>;
|
|
20
|
+
/**
|
|
21
|
+
* Mise à jour d'un membre de commission existant.
|
|
22
|
+
*/
|
|
23
|
+
updateMembre(membreId: string, params: {
|
|
24
|
+
titre?: string;
|
|
25
|
+
presence_obligatoire?: boolean;
|
|
26
|
+
}): Promise<AxiosResponse<CommissionMembre>>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CommissionsMembresAPI = void 0;
|
|
4
|
+
const core_1 = require("../core");
|
|
5
|
+
const utils_1 = require("../utils");
|
|
6
|
+
class CommissionsMembresAPI extends core_1.Core {
|
|
7
|
+
constructor(config, client) {
|
|
8
|
+
super(config, client);
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Suppression d'un membre de commission existant.
|
|
12
|
+
*/
|
|
13
|
+
async deleteMembre(membreId) {
|
|
14
|
+
const pathVariable = { 'membre_id': (new String(membreId)).toString() };
|
|
15
|
+
return this.request({
|
|
16
|
+
method: 'DELETE',
|
|
17
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions_membres/{membre_id}'),
|
|
18
|
+
params: {},
|
|
19
|
+
body: utils_1.Utils.payloadFilter({})
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Récupération d'une fiche d'un membre d'une commission.
|
|
24
|
+
*/
|
|
25
|
+
async getMembre(membreId) {
|
|
26
|
+
const pathVariable = { 'membre_id': (new String(membreId)).toString() };
|
|
27
|
+
return this.request({
|
|
28
|
+
method: 'GET',
|
|
29
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions_membres/{membre_id}'),
|
|
30
|
+
params: {},
|
|
31
|
+
body: utils_1.Utils.payloadFilter({})
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Récupération de la liste membres des commissions.
|
|
36
|
+
*/
|
|
37
|
+
paginateMembres(page, perPage) {
|
|
38
|
+
const pathVariable = {};
|
|
39
|
+
return this.collect({
|
|
40
|
+
method: 'GET',
|
|
41
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions_membres'),
|
|
42
|
+
params: { 'page': page?.toString(), 'per_page': perPage?.toString() }
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Mise à jour d'un membre de commission existant.
|
|
47
|
+
*/
|
|
48
|
+
async updateMembre(membreId, params) {
|
|
49
|
+
const pathVariable = { 'membre_id': (new String(membreId)).toString() };
|
|
50
|
+
return this.request({
|
|
51
|
+
method: 'POST',
|
|
52
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions_membres/{membre_id}'),
|
|
53
|
+
params: {},
|
|
54
|
+
body: utils_1.Utils.payloadFilter(params)
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
exports.CommissionsMembresAPI = CommissionsMembresAPI;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Core, MetariscConfig } from "../core";
|
|
2
|
+
import type { AxiosResponse } from "axios";
|
|
3
|
+
import { Client } from "../client";
|
|
4
|
+
import { Collection } from "../collection";
|
|
5
|
+
import { Contact } from '../model/Contact';
|
|
6
|
+
export declare class ContactsAPI extends Core {
|
|
7
|
+
constructor(config: MetariscConfig, client?: Client);
|
|
8
|
+
/**
|
|
9
|
+
* Suppression d'une fiche contact existante.
|
|
10
|
+
*/
|
|
11
|
+
deleteContact(contactId: string): Promise<AxiosResponse<void>>;
|
|
12
|
+
/**
|
|
13
|
+
* Récupération d'une fiche contact.
|
|
14
|
+
*/
|
|
15
|
+
getContact(contactId: string): Promise<AxiosResponse<Contact>>;
|
|
16
|
+
/**
|
|
17
|
+
* Récupération de la liste des contacts.
|
|
18
|
+
*/
|
|
19
|
+
paginateContacts(page?: number, perPage?: number): Collection<Contact>;
|
|
20
|
+
/**
|
|
21
|
+
* Mise à jour d'une fiche contact existante.
|
|
22
|
+
*/
|
|
23
|
+
updateContact(contactId: string, params: {
|
|
24
|
+
nom?: string;
|
|
25
|
+
prenom?: string;
|
|
26
|
+
fonction?: string;
|
|
27
|
+
telephone_fixe?: string;
|
|
28
|
+
telephone_portable?: string;
|
|
29
|
+
telephone_fax?: string;
|
|
30
|
+
adresse?: string;
|
|
31
|
+
site_web_url?: string;
|
|
32
|
+
civilite?: string;
|
|
33
|
+
societe?: string;
|
|
34
|
+
email?: string;
|
|
35
|
+
observations?: string;
|
|
36
|
+
}): Promise<AxiosResponse<Contact>>;
|
|
37
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ContactsAPI = void 0;
|
|
4
|
+
const core_1 = require("../core");
|
|
5
|
+
const utils_1 = require("../utils");
|
|
6
|
+
class ContactsAPI extends core_1.Core {
|
|
7
|
+
constructor(config, client) {
|
|
8
|
+
super(config, client);
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Suppression d'une fiche contact existante.
|
|
12
|
+
*/
|
|
13
|
+
async deleteContact(contactId) {
|
|
14
|
+
const pathVariable = { 'contact_id': (new String(contactId)).toString() };
|
|
15
|
+
return this.request({
|
|
16
|
+
method: 'DELETE',
|
|
17
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/contacts/{contact_id}'),
|
|
18
|
+
params: {},
|
|
19
|
+
body: utils_1.Utils.payloadFilter({})
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Récupération d'une fiche contact.
|
|
24
|
+
*/
|
|
25
|
+
async getContact(contactId) {
|
|
26
|
+
const pathVariable = { 'contact_id': (new String(contactId)).toString() };
|
|
27
|
+
return this.request({
|
|
28
|
+
method: 'GET',
|
|
29
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/contacts/{contact_id}'),
|
|
30
|
+
params: {},
|
|
31
|
+
body: utils_1.Utils.payloadFilter({})
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Récupération de la liste des contacts.
|
|
36
|
+
*/
|
|
37
|
+
paginateContacts(page, perPage) {
|
|
38
|
+
const pathVariable = {};
|
|
39
|
+
return this.collect({
|
|
40
|
+
method: 'GET',
|
|
41
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/contacts'),
|
|
42
|
+
params: { 'page': page?.toString(), 'per_page': perPage?.toString() }
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Mise à jour d'une fiche contact existante.
|
|
47
|
+
*/
|
|
48
|
+
async updateContact(contactId, params) {
|
|
49
|
+
const pathVariable = { 'contact_id': (new String(contactId)).toString() };
|
|
50
|
+
return this.request({
|
|
51
|
+
method: 'POST',
|
|
52
|
+
endpoint: utils_1.Utils.constructPath(pathVariable, '/contacts/{contact_id}'),
|
|
53
|
+
params: {},
|
|
54
|
+
body: utils_1.Utils.payloadFilter(params)
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
exports.ContactsAPI = ContactsAPI;
|