@communecter/cocolight-api-client 1.0.149 → 1.0.151
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/dist/1035.cocolight-api-client.browser.js +1 -0
- package/dist/1035.cocolight-api-client.cjs +1 -0
- package/dist/1035.cocolight-api-client.mjs.js +1 -0
- package/dist/1483.cocolight-api-client.browser.js +1 -0
- package/dist/1483.cocolight-api-client.cjs +1 -0
- package/dist/1483.cocolight-api-client.mjs.js +1 -0
- package/dist/1491.cocolight-api-client.browser.js +1 -0
- package/dist/1491.cocolight-api-client.cjs +1 -0
- package/dist/1491.cocolight-api-client.mjs.js +1 -0
- package/dist/1494.cocolight-api-client.browser.js +1 -0
- package/dist/1494.cocolight-api-client.cjs +1 -0
- package/dist/1494.cocolight-api-client.mjs.js +1 -0
- package/dist/1641.cocolight-api-client.browser.js +1 -0
- package/dist/1641.cocolight-api-client.cjs +1 -0
- package/dist/1641.cocolight-api-client.mjs.js +1 -0
- package/dist/1678.cocolight-api-client.browser.js +1 -0
- package/dist/1678.cocolight-api-client.cjs +1 -0
- package/dist/1678.cocolight-api-client.mjs.js +1 -0
- package/dist/2041.cocolight-api-client.browser.js +1 -0
- package/dist/2041.cocolight-api-client.cjs +1 -0
- package/dist/2041.cocolight-api-client.mjs.js +1 -0
- package/dist/2302.cocolight-api-client.browser.js +1 -0
- package/dist/2302.cocolight-api-client.cjs +1 -0
- package/dist/2302.cocolight-api-client.mjs.js +1 -0
- package/dist/2313.cocolight-api-client.browser.js +1 -0
- package/dist/2313.cocolight-api-client.cjs +1 -0
- package/dist/2313.cocolight-api-client.mjs.js +1 -0
- package/dist/2379.cocolight-api-client.browser.js +1 -0
- package/dist/2379.cocolight-api-client.cjs +1 -0
- package/dist/2379.cocolight-api-client.mjs.js +1 -0
- package/dist/2439.cocolight-api-client.browser.js +1 -0
- package/dist/2439.cocolight-api-client.cjs +1 -0
- package/dist/2439.cocolight-api-client.mjs.js +1 -0
- package/dist/2594.cocolight-api-client.browser.js +1 -0
- package/dist/2594.cocolight-api-client.cjs +1 -0
- package/dist/2594.cocolight-api-client.mjs.js +1 -0
- package/dist/2766.cocolight-api-client.browser.js +1 -0
- package/dist/2766.cocolight-api-client.cjs +1 -0
- package/dist/2766.cocolight-api-client.mjs.js +1 -0
- package/dist/2812.cocolight-api-client.browser.js +1 -0
- package/dist/2812.cocolight-api-client.cjs +1 -0
- package/dist/2812.cocolight-api-client.mjs.js +1 -0
- package/dist/2918.cocolight-api-client.browser.js +1 -0
- package/dist/2918.cocolight-api-client.cjs +1 -0
- package/dist/2918.cocolight-api-client.mjs.js +1 -0
- package/dist/3028.cocolight-api-client.browser.js +1 -0
- package/dist/3028.cocolight-api-client.cjs +1 -0
- package/dist/3028.cocolight-api-client.mjs.js +1 -0
- package/dist/3330.cocolight-api-client.browser.js +1 -0
- package/dist/3330.cocolight-api-client.cjs +1 -0
- package/dist/3330.cocolight-api-client.mjs.js +1 -0
- package/dist/3371.cocolight-api-client.browser.js +1 -0
- package/dist/3371.cocolight-api-client.cjs +1 -0
- package/dist/3371.cocolight-api-client.mjs.js +1 -0
- package/dist/3401.cocolight-api-client.browser.js +1 -0
- package/dist/3401.cocolight-api-client.cjs +1 -0
- package/dist/3401.cocolight-api-client.mjs.js +1 -0
- package/dist/3516.cocolight-api-client.browser.js +1 -0
- package/dist/3516.cocolight-api-client.cjs +1 -0
- package/dist/3516.cocolight-api-client.mjs.js +1 -0
- package/dist/3593.cocolight-api-client.browser.js +1 -0
- package/dist/3593.cocolight-api-client.cjs +1 -0
- package/dist/3593.cocolight-api-client.mjs.js +1 -0
- package/dist/3764.cocolight-api-client.browser.js +1 -0
- package/dist/3764.cocolight-api-client.cjs +1 -0
- package/dist/3764.cocolight-api-client.mjs.js +1 -0
- package/dist/3873.cocolight-api-client.browser.js +1 -0
- package/dist/3873.cocolight-api-client.cjs +1 -0
- package/dist/3873.cocolight-api-client.mjs.js +1 -0
- package/dist/3911.cocolight-api-client.browser.js +1 -0
- package/dist/3911.cocolight-api-client.cjs +1 -0
- package/dist/3911.cocolight-api-client.mjs.js +1 -0
- package/dist/4031.cocolight-api-client.browser.js +1 -0
- package/dist/4031.cocolight-api-client.cjs +1 -0
- package/dist/4031.cocolight-api-client.mjs.js +1 -0
- package/dist/4152.cocolight-api-client.browser.js +1 -0
- package/dist/4152.cocolight-api-client.cjs +1 -0
- package/dist/4152.cocolight-api-client.mjs.js +1 -0
- package/dist/4203.cocolight-api-client.browser.js +1 -0
- package/dist/4203.cocolight-api-client.cjs +1 -0
- package/dist/4203.cocolight-api-client.mjs.js +1 -0
- package/dist/424.cocolight-api-client.browser.js +1 -0
- package/dist/424.cocolight-api-client.cjs +1 -0
- package/dist/424.cocolight-api-client.mjs.js +1 -0
- package/dist/435.cocolight-api-client.browser.js +1 -0
- package/dist/435.cocolight-api-client.cjs +1 -0
- package/dist/435.cocolight-api-client.mjs.js +1 -0
- package/dist/4402.cocolight-api-client.browser.js +1 -0
- package/dist/4402.cocolight-api-client.cjs +1 -0
- package/dist/4402.cocolight-api-client.mjs.js +1 -0
- package/dist/4425.cocolight-api-client.browser.js +1 -0
- package/dist/4425.cocolight-api-client.cjs +1 -0
- package/dist/4425.cocolight-api-client.mjs.js +1 -0
- package/dist/4472.cocolight-api-client.browser.js +1 -0
- package/dist/4472.cocolight-api-client.cjs +1 -0
- package/dist/4472.cocolight-api-client.mjs.js +1 -0
- package/dist/4914.cocolight-api-client.browser.js +1 -0
- package/dist/4914.cocolight-api-client.cjs +1 -0
- package/dist/4914.cocolight-api-client.mjs.js +1 -0
- package/dist/4959.cocolight-api-client.browser.js +1 -0
- package/dist/4959.cocolight-api-client.cjs +1 -0
- package/dist/4959.cocolight-api-client.mjs.js +1 -0
- package/dist/5100.cocolight-api-client.browser.js +1 -0
- package/dist/5100.cocolight-api-client.cjs +1 -0
- package/dist/5100.cocolight-api-client.mjs.js +1 -0
- package/dist/5111.cocolight-api-client.browser.js +1 -0
- package/dist/5111.cocolight-api-client.cjs +1 -0
- package/dist/5111.cocolight-api-client.mjs.js +1 -0
- package/dist/5286.cocolight-api-client.browser.js +1 -0
- package/dist/5286.cocolight-api-client.cjs +1 -0
- package/dist/5286.cocolight-api-client.mjs.js +1 -0
- package/dist/5380.cocolight-api-client.browser.js +1 -0
- package/dist/5380.cocolight-api-client.cjs +1 -0
- package/dist/5380.cocolight-api-client.mjs.js +1 -0
- package/dist/5383.cocolight-api-client.browser.js +1 -0
- package/dist/5383.cocolight-api-client.cjs +1 -0
- package/dist/5383.cocolight-api-client.mjs.js +1 -0
- package/dist/5480.cocolight-api-client.browser.js +1 -0
- package/dist/5480.cocolight-api-client.cjs +1 -0
- package/dist/5480.cocolight-api-client.mjs.js +1 -0
- package/dist/5541.cocolight-api-client.browser.js +1 -0
- package/dist/5541.cocolight-api-client.cjs +1 -0
- package/dist/5541.cocolight-api-client.mjs.js +1 -0
- package/dist/5839.cocolight-api-client.browser.js +1 -0
- package/dist/5839.cocolight-api-client.cjs +1 -0
- package/dist/5839.cocolight-api-client.mjs.js +1 -0
- package/dist/5862.cocolight-api-client.browser.js +1 -0
- package/dist/5862.cocolight-api-client.cjs +1 -0
- package/dist/5862.cocolight-api-client.mjs.js +1 -0
- package/dist/5869.cocolight-api-client.browser.js +1 -0
- package/dist/5869.cocolight-api-client.cjs +1 -0
- package/dist/5869.cocolight-api-client.mjs.js +1 -0
- package/dist/588.cocolight-api-client.cjs +1 -1
- package/dist/588.cocolight-api-client.mjs.js +1 -1
- package/dist/601.cocolight-api-client.browser.js +1 -0
- package/dist/601.cocolight-api-client.cjs +1 -0
- package/dist/601.cocolight-api-client.mjs.js +1 -0
- package/dist/6012.cocolight-api-client.browser.js +1 -0
- package/dist/6012.cocolight-api-client.cjs +1 -0
- package/dist/6012.cocolight-api-client.mjs.js +1 -0
- package/dist/6200.cocolight-api-client.browser.js +1 -0
- package/dist/6200.cocolight-api-client.cjs +1 -0
- package/dist/6200.cocolight-api-client.mjs.js +1 -0
- package/dist/6369.cocolight-api-client.browser.js +1 -0
- package/dist/6369.cocolight-api-client.cjs +1 -0
- package/dist/6369.cocolight-api-client.mjs.js +1 -0
- package/dist/7009.cocolight-api-client.browser.js +1 -0
- package/dist/7009.cocolight-api-client.cjs +1 -0
- package/dist/7009.cocolight-api-client.mjs.js +1 -0
- package/dist/725.cocolight-api-client.browser.js +1 -0
- package/dist/725.cocolight-api-client.cjs +1 -0
- package/dist/725.cocolight-api-client.mjs.js +1 -0
- package/dist/7320.cocolight-api-client.browser.js +1 -0
- package/dist/7339.cocolight-api-client.browser.js +1 -0
- package/dist/7339.cocolight-api-client.cjs +1 -0
- package/dist/7339.cocolight-api-client.mjs.js +1 -0
- package/dist/7398.cocolight-api-client.browser.js +1 -0
- package/dist/7398.cocolight-api-client.cjs +1 -0
- package/dist/7398.cocolight-api-client.mjs.js +1 -0
- package/dist/7888.cocolight-api-client.browser.js +1 -0
- package/dist/7888.cocolight-api-client.cjs +1 -0
- package/dist/7888.cocolight-api-client.mjs.js +1 -0
- package/dist/7975.cocolight-api-client.browser.js +1 -0
- package/dist/7975.cocolight-api-client.cjs +1 -0
- package/dist/7975.cocolight-api-client.mjs.js +1 -0
- package/dist/809.cocolight-api-client.browser.js +1 -0
- package/dist/809.cocolight-api-client.cjs +1 -0
- package/dist/809.cocolight-api-client.mjs.js +1 -0
- package/dist/8300.cocolight-api-client.browser.js +1 -0
- package/dist/8300.cocolight-api-client.cjs +1 -0
- package/dist/8300.cocolight-api-client.mjs.js +1 -0
- package/dist/8317.cocolight-api-client.browser.js +1 -0
- package/dist/8317.cocolight-api-client.cjs +1 -0
- package/dist/8317.cocolight-api-client.mjs.js +1 -0
- package/dist/8525.cocolight-api-client.browser.js +1 -0
- package/dist/8525.cocolight-api-client.cjs +1 -0
- package/dist/8525.cocolight-api-client.mjs.js +1 -0
- package/dist/8894.cocolight-api-client.browser.js +1 -0
- package/dist/8894.cocolight-api-client.cjs +1 -0
- package/dist/8894.cocolight-api-client.mjs.js +1 -0
- package/dist/9301.cocolight-api-client.browser.js +1 -0
- package/dist/9301.cocolight-api-client.cjs +1 -0
- package/dist/9301.cocolight-api-client.mjs.js +1 -0
- package/dist/9438.cocolight-api-client.browser.js +1 -0
- package/dist/9438.cocolight-api-client.cjs +1 -0
- package/dist/9438.cocolight-api-client.mjs.js +1 -0
- package/dist/9478.cocolight-api-client.browser.js +1 -0
- package/dist/9478.cocolight-api-client.cjs +1 -0
- package/dist/9478.cocolight-api-client.mjs.js +1 -0
- package/dist/9568.cocolight-api-client.browser.js +1 -0
- package/dist/9568.cocolight-api-client.cjs +1 -0
- package/dist/9568.cocolight-api-client.mjs.js +1 -0
- package/dist/cocolight-api-client.browser.js +3 -3
- package/dist/cocolight-api-client.cjs +1 -1
- package/dist/cocolight-api-client.mjs.js +1 -1
- package/dist/cocolight-api-client.vite.mjs.js +1 -1
- package/dist/cocolight-api-client.vite.mjs.js.map +1 -1
- package/package.json +3 -2
- package/src/ApiClient.ts +53 -13
- package/src/api/BaseEntity.ts +241 -6
- package/src/api/EndpointApi.ts +17 -1
- package/src/api/EndpointApi.types.ts +218 -430
- package/src/api/Event.ts +6 -0
- package/src/api/Organization.ts +21 -85
- package/src/api/Poi.ts +10 -101
- package/src/api/Project.ts +6 -0
- package/src/api/User.ts +19 -1
- package/src/costum/normalize.ts +7 -0
- package/src/costum/registry.ts +138 -0
- package/src/costum/runtime-map.ts +221 -0
- package/src/costum/runtime.ts +221 -0
- package/src/costum/schemas/CercleTravailleursSociauxLiberauxLaPlumeSociale.ts +19 -0
- package/src/costum/schemas/FabEn.ts +19 -0
- package/src/costum/schemas/LivingLabInnovationSocialeBraspanon.ts +19 -0
- package/src/costum/schemas/alfph.ts +27 -0
- package/src/costum/schemas/campagne.ts +19 -0
- package/src/costum/schemas/chtitube.ts +19 -0
- package/src/costum/schemas/circuitCourt.ts +19 -0
- package/src/costum/schemas/cmcasHauteBretagne.ts +19 -0
- package/src/costum/schemas/coFinancementTierslieux.ts +27 -0
- package/src/costum/schemas/coeurNumerique.ts +19 -0
- package/src/costum/schemas/communLundi.ts +19 -0
- package/src/costum/schemas/cressReunion.ts +35 -0
- package/src/costum/schemas/cressReunionNetwork.ts +35 -0
- package/src/costum/schemas/ctenat.ts +43 -0
- package/src/costum/schemas/cyberReunion.ts +19 -0
- package/src/costum/schemas/ekisphere.ts +35 -0
- package/src/costum/schemas/equipementsSportifs974.ts +19 -0
- package/src/costum/schemas/federationDesCae.ts +19 -0
- package/src/costum/schemas/formationGenerique.ts +35 -0
- package/src/costum/schemas/franceTierslieux.ts +19 -0
- package/src/costum/schemas/hinaura.ts +27 -0
- package/src/costum/schemas/hubmayotte.ts +19 -0
- package/src/costum/schemas/hubnouvellecaledonie.ts +19 -0
- package/src/costum/schemas/hubpolynesiefrancaise.ts +19 -0
- package/src/costum/schemas/hubreunion.ts +19 -0
- package/src/costum/schemas/hubterritoires.ts +19 -0
- package/src/costum/schemas/hubwallisetfutuna.ts +19 -0
- package/src/costum/schemas/hva.ts +27 -0
- package/src/costum/schemas/ibv2.ts +19 -0
- package/src/costum/schemas/institutBleu.ts +19 -0
- package/src/costum/schemas/journalInsoumisChambery.ts +27 -0
- package/src/costum/schemas/kpacite.ts +19 -0
- package/src/costum/schemas/laCompagnieDesTierslieux.ts +43 -0
- package/src/costum/schemas/laMaisonDesFaiseurs.ts +19 -0
- package/src/costum/schemas/laReunionPourUnNumeriqueInclusif.ts +19 -0
- package/src/costum/schemas/laSemaineDesTierslieux.ts +19 -0
- package/src/costum/schemas/labEnCommuns.ts +19 -0
- package/src/costum/schemas/lakou.ts +27 -0
- package/src/costum/schemas/lesCommunsDesTierslieux.ts +19 -0
- package/src/costum/schemas/mayottePourUnNumeriqueInclusif.ts +19 -0
- package/src/costum/schemas/meir.ts +27 -0
- package/src/costum/schemas/navigatorDesTierslieux.ts +19 -0
- package/src/costum/schemas/notragora.ts +27 -0
- package/src/costum/schemas/nouvellecaledoniePourUnNumeriqueInclusif.ts +19 -0
- package/src/costum/schemas/openAtlas.ts +19 -0
- package/src/costum/schemas/polynesieFrancaisePourUnNumeriqueInclusif.ts +19 -0
- package/src/costum/schemas/prdr.ts +19 -0
- package/src/costum/schemas/reseauTierslieux.ts +19 -0
- package/src/costum/schemas/rfflabs.ts +19 -0
- package/src/costum/schemas/ries.ts +19 -0
- package/src/costum/schemas/siteDuPactePourLaTransition.ts +27 -0
- package/src/costum/schemas/sportSanteBienetre.ts +43 -0
- package/src/costum/schemas/suppa.ts +19 -0
- package/src/costum/schemas/terramies.ts +19 -0
- package/src/costum/schemas/testeTplFormation.ts +35 -0
- package/src/costum/schemas/tierslieuxbelgique.ts +19 -0
- package/src/costum/schemas/tierslieuxorg1.ts +35 -0
- package/src/costum/schemas/transiter.ts +35 -0
- package/src/costum/schemas/vhelioPeiTour2025.ts +19 -0
- package/src/costum/schemas/wallisetfutunaPourUnNumeriqueInclusif.ts +19 -0
- package/src/costum/symbol.ts +26 -0
- package/src/costum/types.ts +895 -0
- package/src/endpoints.module.ts +329 -219
- package/src/forms/entityForm.ts +142 -0
- package/src/index.ts +14 -0
- package/types/ApiClient.d.ts +1 -0
- package/types/api/BaseEntity.d.ts +69 -2
- package/types/api/EndpointApi.d.ts +11 -1
- package/types/api/EndpointApi.types.d.ts +36 -272
- package/types/api/Event.d.ts +2 -0
- package/types/api/Organization.d.ts +15 -71
- package/types/api/Poi.d.ts +2 -36
- package/types/api/Project.d.ts +2 -0
- package/types/api/User.d.ts +14 -0
- package/types/costum/normalize.d.ts +2 -0
- package/types/costum/registry.d.ts +11 -0
- package/types/costum/runtime-map.d.ts +3 -0
- package/types/costum/runtime.d.ts +99 -0
- package/types/costum/schemas/CercleTravailleursSociauxLiberauxLaPlumeSociale.d.ts +3 -0
- package/types/costum/schemas/FabEn.d.ts +3 -0
- package/types/costum/schemas/LivingLabInnovationSocialeBraspanon.d.ts +3 -0
- package/types/costum/schemas/alfph.d.ts +3 -0
- package/types/costum/schemas/campagne.d.ts +3 -0
- package/types/costum/schemas/chtitube.d.ts +3 -0
- package/types/costum/schemas/circuitCourt.d.ts +3 -0
- package/types/costum/schemas/cmcasHauteBretagne.d.ts +3 -0
- package/types/costum/schemas/coFinancementTierslieux.d.ts +3 -0
- package/types/costum/schemas/coeurNumerique.d.ts +3 -0
- package/types/costum/schemas/communLundi.d.ts +3 -0
- package/types/costum/schemas/cressReunion.d.ts +3 -0
- package/types/costum/schemas/cressReunionNetwork.d.ts +3 -0
- package/types/costum/schemas/ctenat.d.ts +3 -0
- package/types/costum/schemas/cyberReunion.d.ts +3 -0
- package/types/costum/schemas/ekisphere.d.ts +3 -0
- package/types/costum/schemas/equipementsSportifs974.d.ts +3 -0
- package/types/costum/schemas/federationDesCae.d.ts +3 -0
- package/types/costum/schemas/formationGenerique.d.ts +3 -0
- package/types/costum/schemas/franceTierslieux.d.ts +3 -0
- package/types/costum/schemas/hinaura.d.ts +3 -0
- package/types/costum/schemas/hubmayotte.d.ts +3 -0
- package/types/costum/schemas/hubnouvellecaledonie.d.ts +3 -0
- package/types/costum/schemas/hubpolynesiefrancaise.d.ts +3 -0
- package/types/costum/schemas/hubreunion.d.ts +3 -0
- package/types/costum/schemas/hubterritoires.d.ts +3 -0
- package/types/costum/schemas/hubwallisetfutuna.d.ts +3 -0
- package/types/costum/schemas/hva.d.ts +3 -0
- package/types/costum/schemas/ibv2.d.ts +3 -0
- package/types/costum/schemas/institutBleu.d.ts +3 -0
- package/types/costum/schemas/journalInsoumisChambery.d.ts +3 -0
- package/types/costum/schemas/kpacite.d.ts +3 -0
- package/types/costum/schemas/laCompagnieDesTierslieux.d.ts +3 -0
- package/types/costum/schemas/laMaisonDesFaiseurs.d.ts +3 -0
- package/types/costum/schemas/laReunionPourUnNumeriqueInclusif.d.ts +3 -0
- package/types/costum/schemas/laSemaineDesTierslieux.d.ts +3 -0
- package/types/costum/schemas/labEnCommuns.d.ts +3 -0
- package/types/costum/schemas/lakou.d.ts +3 -0
- package/types/costum/schemas/lesCommunsDesTierslieux.d.ts +3 -0
- package/types/costum/schemas/mayottePourUnNumeriqueInclusif.d.ts +3 -0
- package/types/costum/schemas/meir.d.ts +3 -0
- package/types/costum/schemas/navigatorDesTierslieux.d.ts +3 -0
- package/types/costum/schemas/notragora.d.ts +3 -0
- package/types/costum/schemas/nouvellecaledoniePourUnNumeriqueInclusif.d.ts +3 -0
- package/types/costum/schemas/openAtlas.d.ts +3 -0
- package/types/costum/schemas/polynesieFrancaisePourUnNumeriqueInclusif.d.ts +3 -0
- package/types/costum/schemas/prdr.d.ts +3 -0
- package/types/costum/schemas/reseauTierslieux.d.ts +3 -0
- package/types/costum/schemas/rfflabs.d.ts +3 -0
- package/types/costum/schemas/ries.d.ts +3 -0
- package/types/costum/schemas/siteDuPactePourLaTransition.d.ts +3 -0
- package/types/costum/schemas/sportSanteBienetre.d.ts +3 -0
- package/types/costum/schemas/suppa.d.ts +3 -0
- package/types/costum/schemas/terramies.d.ts +3 -0
- package/types/costum/schemas/testeTplFormation.d.ts +3 -0
- package/types/costum/schemas/tierslieuxbelgique.d.ts +3 -0
- package/types/costum/schemas/tierslieuxorg1.d.ts +3 -0
- package/types/costum/schemas/transiter.d.ts +3 -0
- package/types/costum/schemas/vhelioPeiTour2025.d.ts +3 -0
- package/types/costum/schemas/wallisetfutunaPourUnNumeriqueInclusif.d.ts +3 -0
- package/types/costum/symbol.d.ts +25 -0
- package/types/costum/types.d.ts +822 -0
- package/types/endpoints.module.d.ts +1393 -6162
- package/types/forms/entityForm.d.ts +28 -0
- package/types/index.d.ts +4 -0
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
export interface DocumentListData {
|
|
2
|
+
pathParams?: {
|
|
3
|
+
/**
|
|
4
|
+
* ID MongoDB de l'élément
|
|
5
|
+
*/
|
|
6
|
+
id: string;
|
|
7
|
+
/**
|
|
8
|
+
* Type d'élément
|
|
9
|
+
*/
|
|
10
|
+
type: "citoyens" | "organizations" | "projects" | "events" | "poi";
|
|
11
|
+
[k: string]: unknown;
|
|
12
|
+
};
|
|
13
|
+
[k: string]: unknown;
|
|
14
|
+
}
|
|
1
15
|
export interface PersonRegisterData {
|
|
2
16
|
/**
|
|
3
17
|
* Nom complet de l'utilisateur
|
|
@@ -2574,7 +2588,7 @@ export interface AddOrganizationData {
|
|
|
2574
2588
|
* Rôle principal de l’organisation
|
|
2575
2589
|
*/
|
|
2576
2590
|
role: "admin" | "member";
|
|
2577
|
-
tags?: string[];
|
|
2591
|
+
tags?: "" | string[];
|
|
2578
2592
|
/**
|
|
2579
2593
|
* Email de l’organisation
|
|
2580
2594
|
*/
|
|
@@ -2598,18 +2612,12 @@ export interface AddOrganizationData {
|
|
|
2598
2612
|
isOpenEdition: boolean;
|
|
2599
2613
|
[k: string]: unknown;
|
|
2600
2614
|
};
|
|
2601
|
-
|
|
2602
|
-
* Coordonnées géographiques
|
|
2603
|
-
*/
|
|
2604
|
-
geo?: {
|
|
2615
|
+
geo?: "" | {
|
|
2605
2616
|
"@type"?: "GeoCoordinates";
|
|
2606
2617
|
latitude: string | number;
|
|
2607
2618
|
longitude: string | number;
|
|
2608
2619
|
};
|
|
2609
|
-
|
|
2610
|
-
* Position géographique GeoJSON
|
|
2611
|
-
*/
|
|
2612
|
-
geoPosition?: {
|
|
2620
|
+
geoPosition?: "" | {
|
|
2613
2621
|
/**
|
|
2614
2622
|
* Type GeoJSON (doit être 'Point')
|
|
2615
2623
|
*/
|
|
@@ -2624,7 +2632,7 @@ export interface AddOrganizationData {
|
|
|
2624
2632
|
/**
|
|
2625
2633
|
* Indicateur pour forcer la conversion en float côté serveur
|
|
2626
2634
|
*/
|
|
2627
|
-
float
|
|
2635
|
+
float?: true;
|
|
2628
2636
|
[k: string]: unknown;
|
|
2629
2637
|
};
|
|
2630
2638
|
/**
|
|
@@ -2641,7 +2649,7 @@ export interface AddOrganizationData {
|
|
|
2641
2649
|
tags: string[];
|
|
2642
2650
|
};
|
|
2643
2651
|
};
|
|
2644
|
-
address?: {
|
|
2652
|
+
address?: "" | {
|
|
2645
2653
|
"@type": "PostalAddress";
|
|
2646
2654
|
addressCountry: string;
|
|
2647
2655
|
codeInsee: string;
|
|
@@ -2669,34 +2677,6 @@ export interface AddOrganizationData {
|
|
|
2669
2677
|
streetAddress?: string;
|
|
2670
2678
|
};
|
|
2671
2679
|
scope: "";
|
|
2672
|
-
/**
|
|
2673
|
-
* Nom de la structure porteuse (différent du nom du tiers-lieu)
|
|
2674
|
-
*/
|
|
2675
|
-
holderOrganization?: string;
|
|
2676
|
-
/**
|
|
2677
|
-
* Mode de gestion (Association, Collectif citoyen, SCIC, etc.)
|
|
2678
|
-
*/
|
|
2679
|
-
manageModel?: string;
|
|
2680
|
-
/**
|
|
2681
|
-
* Famille(s) de tiers-lieux (Coworking, Fablab, Foodlab, etc.)
|
|
2682
|
-
*/
|
|
2683
|
-
typePlace?: string;
|
|
2684
|
-
/**
|
|
2685
|
-
* Réseau accompagnateur (ex: Compagnon France Tiers-Lieux)
|
|
2686
|
-
*/
|
|
2687
|
-
compagnon?: string;
|
|
2688
|
-
/**
|
|
2689
|
-
* Surface bâtie en m²
|
|
2690
|
-
*/
|
|
2691
|
-
buildingSurfaceArea?: number;
|
|
2692
|
-
/**
|
|
2693
|
-
* Surface extérieure en m²
|
|
2694
|
-
*/
|
|
2695
|
-
siteSurfaceArea?: number;
|
|
2696
|
-
/**
|
|
2697
|
-
* Date d'ouverture du tiers-lieu (format libre, ex: 05/05/2026)
|
|
2698
|
-
*/
|
|
2699
|
-
openingDate?: string;
|
|
2700
2680
|
/**
|
|
2701
2681
|
* Horaires d'ouverture (7 entrées, une par jour de la semaine ; "" pour un jour fermé). Doit rester synchronisé avec VIRTUAL_OPENING_HOURS dans Organization.ts.
|
|
2702
2682
|
*
|
|
@@ -2855,17 +2835,11 @@ export interface AddOrganizationData {
|
|
|
2855
2835
|
*/
|
|
2856
2836
|
mainTag?: string;
|
|
2857
2837
|
/**
|
|
2858
|
-
*
|
|
2859
|
-
*/
|
|
2860
|
-
costumSlug?: string;
|
|
2861
|
-
/**
|
|
2862
|
-
* ID Mongo du costum d'origine
|
|
2863
|
-
*/
|
|
2864
|
-
costumId?: string;
|
|
2865
|
-
/**
|
|
2866
|
-
* Type d'entité du costum (ex: projects)
|
|
2838
|
+
* Réseaux sociaux — objet keyé par plateforme (facebook/twitter/instagram/linkedin/youtube/mastodon/telegram/...). dataBinding org legacy `socialNetwork` (Organization.php:82).
|
|
2867
2839
|
*/
|
|
2868
|
-
|
|
2840
|
+
socialNetwork?: {
|
|
2841
|
+
[k: string]: string;
|
|
2842
|
+
};
|
|
2869
2843
|
[k: string]: unknown;
|
|
2870
2844
|
}
|
|
2871
2845
|
export interface AddProjectData {
|
|
@@ -2905,7 +2879,7 @@ export interface AddProjectData {
|
|
|
2905
2879
|
* Visibilité (true/false)
|
|
2906
2880
|
*/
|
|
2907
2881
|
public: boolean;
|
|
2908
|
-
tags?: string[];
|
|
2882
|
+
tags?: "" | string[];
|
|
2909
2883
|
/**
|
|
2910
2884
|
* Description courte
|
|
2911
2885
|
*/
|
|
@@ -2929,18 +2903,12 @@ export interface AddProjectData {
|
|
|
2929
2903
|
crowdfunding?: boolean;
|
|
2930
2904
|
[k: string]: unknown;
|
|
2931
2905
|
};
|
|
2932
|
-
|
|
2933
|
-
* Coordonnées géographiques
|
|
2934
|
-
*/
|
|
2935
|
-
geo?: {
|
|
2906
|
+
geo?: "" | {
|
|
2936
2907
|
"@type"?: "GeoCoordinates";
|
|
2937
2908
|
latitude: string | number;
|
|
2938
2909
|
longitude: string | number;
|
|
2939
2910
|
};
|
|
2940
|
-
|
|
2941
|
-
* Position géographique GeoJSON
|
|
2942
|
-
*/
|
|
2943
|
-
geoPosition?: {
|
|
2911
|
+
geoPosition?: "" | {
|
|
2944
2912
|
/**
|
|
2945
2913
|
* Type GeoJSON (doit être 'Point')
|
|
2946
2914
|
*/
|
|
@@ -2955,10 +2923,10 @@ export interface AddProjectData {
|
|
|
2955
2923
|
/**
|
|
2956
2924
|
* Indicateur pour forcer la conversion en float côté serveur
|
|
2957
2925
|
*/
|
|
2958
|
-
float
|
|
2926
|
+
float?: true;
|
|
2959
2927
|
[k: string]: unknown;
|
|
2960
2928
|
};
|
|
2961
|
-
address?: {
|
|
2929
|
+
address?: "" | {
|
|
2962
2930
|
"@type": "PostalAddress";
|
|
2963
2931
|
addressCountry: string;
|
|
2964
2932
|
codeInsee: string;
|
|
@@ -2986,18 +2954,6 @@ export interface AddProjectData {
|
|
|
2986
2954
|
streetAddress?: string;
|
|
2987
2955
|
};
|
|
2988
2956
|
scope: "";
|
|
2989
|
-
/**
|
|
2990
|
-
* Slug du costum d'origine
|
|
2991
|
-
*/
|
|
2992
|
-
costumSlug?: string;
|
|
2993
|
-
/**
|
|
2994
|
-
* ID Mongo du costum d'origine
|
|
2995
|
-
*/
|
|
2996
|
-
costumId?: string;
|
|
2997
|
-
/**
|
|
2998
|
-
* Type d'entité du costum (ex: projects)
|
|
2999
|
-
*/
|
|
3000
|
-
costumType?: string;
|
|
3001
2957
|
[k: string]: unknown;
|
|
3002
2958
|
}
|
|
3003
2959
|
export interface AddPoiData {
|
|
@@ -3050,23 +3006,17 @@ export interface AddPoiData {
|
|
|
3050
3006
|
* Description
|
|
3051
3007
|
*/
|
|
3052
3008
|
description?: string;
|
|
3053
|
-
tags?: string[];
|
|
3009
|
+
tags?: "" | string[];
|
|
3054
3010
|
/**
|
|
3055
3011
|
* URLs externes associées
|
|
3056
3012
|
*/
|
|
3057
3013
|
urls?: string[];
|
|
3058
|
-
|
|
3059
|
-
* Coordonnées géographiques
|
|
3060
|
-
*/
|
|
3061
|
-
geo?: {
|
|
3014
|
+
geo?: "" | {
|
|
3062
3015
|
"@type"?: "GeoCoordinates";
|
|
3063
3016
|
latitude: string | number;
|
|
3064
3017
|
longitude: string | number;
|
|
3065
3018
|
};
|
|
3066
|
-
|
|
3067
|
-
* Position géographique GeoJSON
|
|
3068
|
-
*/
|
|
3069
|
-
geoPosition?: {
|
|
3019
|
+
geoPosition?: "" | {
|
|
3070
3020
|
/**
|
|
3071
3021
|
* Type GeoJSON (doit être 'Point')
|
|
3072
3022
|
*/
|
|
@@ -3081,10 +3031,10 @@ export interface AddPoiData {
|
|
|
3081
3031
|
/**
|
|
3082
3032
|
* Indicateur pour forcer la conversion en float côté serveur
|
|
3083
3033
|
*/
|
|
3084
|
-
float
|
|
3034
|
+
float?: true;
|
|
3085
3035
|
[k: string]: unknown;
|
|
3086
3036
|
};
|
|
3087
|
-
address?: {
|
|
3037
|
+
address?: "" | {
|
|
3088
3038
|
"@type": "PostalAddress";
|
|
3089
3039
|
addressCountry: string;
|
|
3090
3040
|
codeInsee: string;
|
|
@@ -3112,174 +3062,6 @@ export interface AddPoiData {
|
|
|
3112
3062
|
streetAddress?: string;
|
|
3113
3063
|
};
|
|
3114
3064
|
scope?: "";
|
|
3115
|
-
/**
|
|
3116
|
-
* Catégorie du POI
|
|
3117
|
-
*/
|
|
3118
|
-
categorie?: string;
|
|
3119
|
-
/**
|
|
3120
|
-
* Type d'équipement
|
|
3121
|
-
*/
|
|
3122
|
-
equip_type_name?: string;
|
|
3123
|
-
/**
|
|
3124
|
-
* Nom de l'institution associée
|
|
3125
|
-
*/
|
|
3126
|
-
inst_nom?: string;
|
|
3127
|
-
/**
|
|
3128
|
-
* Accessibilité handicapé
|
|
3129
|
-
*/
|
|
3130
|
-
inst_acc_handi_bool?: boolean;
|
|
3131
|
-
/**
|
|
3132
|
-
* Transport
|
|
3133
|
-
*/
|
|
3134
|
-
inst_trans_bool?: boolean;
|
|
3135
|
-
/**
|
|
3136
|
-
* Famille du type d'équipement
|
|
3137
|
-
*/
|
|
3138
|
-
equip_type_famille?: string;
|
|
3139
|
-
/**
|
|
3140
|
-
* Date de création de l'institution
|
|
3141
|
-
*/
|
|
3142
|
-
inst_date_creation?: string;
|
|
3143
|
-
/**
|
|
3144
|
-
* Date de l'enquête
|
|
3145
|
-
*/
|
|
3146
|
-
inst_enqu_date?: string;
|
|
3147
|
-
/**
|
|
3148
|
-
* Date de mise à jour
|
|
3149
|
-
*/
|
|
3150
|
-
equip_maj_date?: string;
|
|
3151
|
-
/**
|
|
3152
|
-
* Nature de l'équipement
|
|
3153
|
-
*/
|
|
3154
|
-
equip_nature?: string;
|
|
3155
|
-
/**
|
|
3156
|
-
* Type de sol
|
|
3157
|
-
*/
|
|
3158
|
-
equip_sol?: string;
|
|
3159
|
-
/**
|
|
3160
|
-
* Surface
|
|
3161
|
-
*/
|
|
3162
|
-
equip_surf?: number;
|
|
3163
|
-
/**
|
|
3164
|
-
* Éclairage
|
|
3165
|
-
*/
|
|
3166
|
-
equip_eclair?: boolean;
|
|
3167
|
-
/**
|
|
3168
|
-
* Nom de l'APS
|
|
3169
|
-
*/
|
|
3170
|
-
aps_name?: string[];
|
|
3171
|
-
/**
|
|
3172
|
-
* Accessibilité libre
|
|
3173
|
-
*/
|
|
3174
|
-
equip_acc_libre?: boolean;
|
|
3175
|
-
/**
|
|
3176
|
-
* Type d'accessibilité handicapé
|
|
3177
|
-
*/
|
|
3178
|
-
inst_acc_handi_type?: string;
|
|
3179
|
-
/**
|
|
3180
|
-
* Type de transport
|
|
3181
|
-
*/
|
|
3182
|
-
inst_trans_type?: string;
|
|
3183
|
-
/**
|
|
3184
|
-
* Participation
|
|
3185
|
-
*/
|
|
3186
|
-
inst_part_bool?: boolean;
|
|
3187
|
-
/**
|
|
3188
|
-
* Type de participation
|
|
3189
|
-
*/
|
|
3190
|
-
inst_part_type?: string[];
|
|
3191
|
-
/**
|
|
3192
|
-
* Nom du propriétaire de l'équipement
|
|
3193
|
-
*/
|
|
3194
|
-
equip_prop_nom?: string;
|
|
3195
|
-
/**
|
|
3196
|
-
* Type du propriétaire de l'équipement
|
|
3197
|
-
*/
|
|
3198
|
-
equip_prop_type?: string;
|
|
3199
|
-
/**
|
|
3200
|
-
* Type de gestion de l'équipement
|
|
3201
|
-
*/
|
|
3202
|
-
equip_gest_type?: string;
|
|
3203
|
-
/**
|
|
3204
|
-
* Accessibilité pour personnes à mobilité réduite
|
|
3205
|
-
*/
|
|
3206
|
-
equip_pmr_acc?: boolean;
|
|
3207
|
-
/**
|
|
3208
|
-
* Chemin pour personnes à mobilité réduite
|
|
3209
|
-
*/
|
|
3210
|
-
equip_pmr_chem?: boolean;
|
|
3211
|
-
/**
|
|
3212
|
-
* Douche pour personnes à mobilité réduite
|
|
3213
|
-
*/
|
|
3214
|
-
equip_pmr_douche?: boolean;
|
|
3215
|
-
/**
|
|
3216
|
-
* Sanitaire pour personnes à mobilité réduite
|
|
3217
|
-
*/
|
|
3218
|
-
equip_pmr_sanit?: boolean;
|
|
3219
|
-
/**
|
|
3220
|
-
* Tribune pour personnes à mobilité réduite
|
|
3221
|
-
*/
|
|
3222
|
-
equip_pmr_trib?: boolean;
|
|
3223
|
-
/**
|
|
3224
|
-
* Vestiaire pour personnes à mobilité réduite
|
|
3225
|
-
*/
|
|
3226
|
-
equip_pmr_vest?: boolean;
|
|
3227
|
-
/**
|
|
3228
|
-
* Aire de repos pour personnes à mobilité réduite
|
|
3229
|
-
*/
|
|
3230
|
-
equip_pshs_aire?: boolean;
|
|
3231
|
-
/**
|
|
3232
|
-
* Chemin pour personnes à mobilité réduite
|
|
3233
|
-
*/
|
|
3234
|
-
equip_pshs_chem?: boolean;
|
|
3235
|
-
/**
|
|
3236
|
-
* Sanitaire pour personnes à mobilité réduite
|
|
3237
|
-
*/
|
|
3238
|
-
equip_pshs_sanit?: boolean;
|
|
3239
|
-
/**
|
|
3240
|
-
* Tribune pour personnes à mobilité réduite
|
|
3241
|
-
*/
|
|
3242
|
-
equip_pshs_trib?: boolean;
|
|
3243
|
-
/**
|
|
3244
|
-
* Vestiaire pour personnes à mobilité réduite
|
|
3245
|
-
*/
|
|
3246
|
-
equip_pshs_vest?: boolean;
|
|
3247
|
-
/**
|
|
3248
|
-
* Signalisation pour personnes à mobilité réduite
|
|
3249
|
-
*/
|
|
3250
|
-
equip_pshs_sign?: boolean;
|
|
3251
|
-
/**
|
|
3252
|
-
* Largeur de l'équipement
|
|
3253
|
-
*/
|
|
3254
|
-
equip_larg?: number;
|
|
3255
|
-
/**
|
|
3256
|
-
* Longueur de l'équipement
|
|
3257
|
-
*/
|
|
3258
|
-
equip_long?: number;
|
|
3259
|
-
/**
|
|
3260
|
-
* Douche
|
|
3261
|
-
*/
|
|
3262
|
-
equip_douche?: boolean;
|
|
3263
|
-
/**
|
|
3264
|
-
* Type de localisation de l'équipement
|
|
3265
|
-
*/
|
|
3266
|
-
equip_loc_type?: string[];
|
|
3267
|
-
/**
|
|
3268
|
-
* Utilisateur de l'équipement
|
|
3269
|
-
*/
|
|
3270
|
-
equip_utilisateur?: string[];
|
|
3271
|
-
/**
|
|
3272
|
-
* Slug du costum d'origine
|
|
3273
|
-
*/
|
|
3274
|
-
costumSlug?: string;
|
|
3275
|
-
/**
|
|
3276
|
-
* ID Mongo du costum d'origine
|
|
3277
|
-
*/
|
|
3278
|
-
costumId?: string;
|
|
3279
|
-
/**
|
|
3280
|
-
* Type d'entité du costum (ex: projects)
|
|
3281
|
-
*/
|
|
3282
|
-
costumType?: string;
|
|
3283
3065
|
[k: string]: unknown;
|
|
3284
3066
|
}
|
|
3285
3067
|
export interface AddEventData {
|
|
@@ -3523,18 +3305,12 @@ export interface AddEventData {
|
|
|
3523
3305
|
}[];
|
|
3524
3306
|
})
|
|
3525
3307
|
];
|
|
3526
|
-
|
|
3527
|
-
* Coordonnées géographiques
|
|
3528
|
-
*/
|
|
3529
|
-
geo?: {
|
|
3308
|
+
geo?: "" | {
|
|
3530
3309
|
"@type"?: "GeoCoordinates";
|
|
3531
3310
|
latitude: string | number;
|
|
3532
3311
|
longitude: string | number;
|
|
3533
3312
|
};
|
|
3534
|
-
|
|
3535
|
-
* Position géographique GeoJSON
|
|
3536
|
-
*/
|
|
3537
|
-
geoPosition?: {
|
|
3313
|
+
geoPosition?: "" | {
|
|
3538
3314
|
/**
|
|
3539
3315
|
* Type GeoJSON (doit être 'Point')
|
|
3540
3316
|
*/
|
|
@@ -3549,7 +3325,7 @@ export interface AddEventData {
|
|
|
3549
3325
|
/**
|
|
3550
3326
|
* Indicateur pour forcer la conversion en float côté serveur
|
|
3551
3327
|
*/
|
|
3552
|
-
float
|
|
3328
|
+
float?: true;
|
|
3553
3329
|
[k: string]: unknown;
|
|
3554
3330
|
};
|
|
3555
3331
|
address?: "" | {
|
|
@@ -3580,18 +3356,6 @@ export interface AddEventData {
|
|
|
3580
3356
|
streetAddress?: string;
|
|
3581
3357
|
};
|
|
3582
3358
|
scope: "";
|
|
3583
|
-
/**
|
|
3584
|
-
* Slug du costum d'origine
|
|
3585
|
-
*/
|
|
3586
|
-
costumSlug?: string;
|
|
3587
|
-
/**
|
|
3588
|
-
* ID Mongo du costum d'origine
|
|
3589
|
-
*/
|
|
3590
|
-
costumId?: string;
|
|
3591
|
-
/**
|
|
3592
|
-
* Type d'entité du costum (ex: projects)
|
|
3593
|
-
*/
|
|
3594
|
-
costumType?: string;
|
|
3595
3359
|
[k: string]: unknown;
|
|
3596
3360
|
}
|
|
3597
3361
|
export interface DeleteElementData {
|
package/types/api/Event.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ type EventItemNormalized = import("./serverDataType/Event.js").EventItemNormaliz
|
|
|
6
6
|
export declare class Event extends BaseEntity<EventItemNormalized> {
|
|
7
7
|
static entityType: string;
|
|
8
8
|
static entityTag: string;
|
|
9
|
+
/** Bloc de création où injecter les champs costum (CostumScope). */
|
|
10
|
+
static COSTUM_ADD_CONSTANT: string;
|
|
9
11
|
static SCHEMA_CONSTANTS: string[];
|
|
10
12
|
static ADD_BLOCKS: Map<"PROFIL_IMAGE" | "ADD_EVENT", "updateImageProfil" | "addEvent">;
|
|
11
13
|
static UPDATE_BLOCKS: Map<"UPDATE_BLOCK_SLUG" | "PROFIL_IMAGE", "updateImageProfil" | "updateSlug">;
|
|
@@ -7,6 +7,8 @@ import type { User } from "./User.js";
|
|
|
7
7
|
export declare class Organization extends BaseEntity<OrganizationItemNormalized> {
|
|
8
8
|
static entityType: string;
|
|
9
9
|
static entityTag: string;
|
|
10
|
+
/** Bloc de création où injecter les champs costum (CostumScope). */
|
|
11
|
+
static COSTUM_ADD_CONSTANT: string;
|
|
10
12
|
static SCHEMA_CONSTANTS: string[];
|
|
11
13
|
static VIRTUAL_SCHEMAS: {
|
|
12
14
|
VIRTUAL_OPENING_HOURS: {
|
|
@@ -63,34 +65,14 @@ export declare class Organization extends BaseEntity<OrganizationItemNormalized>
|
|
|
63
65
|
};
|
|
64
66
|
};
|
|
65
67
|
/**
|
|
66
|
-
* Champs
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
* Même pattern qu'Action.ts/VIRTUAL_ACTION_EDITABLE : déclaration uniquement pour
|
|
71
|
-
* autoriser l'écriture sur le draft. Le persiste réel se fait via CUSTOM_FIELD_HANDLERS.
|
|
68
|
+
* Champs de BASE (DATA_BINDING) sans `UPDATE_BLOCK_*` dédié : `telephone`/`video`. Déclarés ici
|
|
69
|
+
* pour être writable sur le draft, persistés à l'édition via CUSTOM_FIELD_HANDLERS → UPDATE_PATH_VALUE.
|
|
70
|
+
* (Les champs TIERS-LIEU costum — holderOrganization/manageModel/typePlace/buildingSurfaceArea/
|
|
71
|
+
* siteSurfaceArea/openingDate — sont désormais gérés par CostumScope/auto-derive, cf. inc1b/inc2.)
|
|
72
72
|
*/
|
|
73
|
-
|
|
73
|
+
VIRTUAL_ORG_BASE_FIELDS: {
|
|
74
74
|
type: string;
|
|
75
75
|
properties: {
|
|
76
|
-
holderOrganization: {
|
|
77
|
-
type: string;
|
|
78
|
-
};
|
|
79
|
-
manageModel: {
|
|
80
|
-
type: string;
|
|
81
|
-
};
|
|
82
|
-
typePlace: {
|
|
83
|
-
type: string;
|
|
84
|
-
};
|
|
85
|
-
buildingSurfaceArea: {
|
|
86
|
-
type: string;
|
|
87
|
-
};
|
|
88
|
-
siteSurfaceArea: {
|
|
89
|
-
type: string;
|
|
90
|
-
};
|
|
91
|
-
openingDate: {
|
|
92
|
-
type: string;
|
|
93
|
-
};
|
|
94
76
|
telephone: {
|
|
95
77
|
type: string;
|
|
96
78
|
};
|
|
@@ -103,33 +85,15 @@ export declare class Organization extends BaseEntity<OrganizationItemNormalized>
|
|
|
103
85
|
};
|
|
104
86
|
};
|
|
105
87
|
};
|
|
106
|
-
static CUSTOM_FIELD_HANDLERS: Map<"
|
|
88
|
+
static CUSTOM_FIELD_HANDLERS: Map<"openingHours" | "video" | "telephone", {
|
|
107
89
|
readonly updateMethod: "updateOpeningHours";
|
|
108
90
|
readonly schemaConstant: "VIRTUAL_OPENING_HOURS";
|
|
109
|
-
} | {
|
|
110
|
-
readonly updateMethod: "updateHolderOrganization";
|
|
111
|
-
readonly schemaConstant: "VIRTUAL_ORG_TIERS_LIEU_FIELDS";
|
|
112
|
-
} | {
|
|
113
|
-
readonly updateMethod: "updateManageModel";
|
|
114
|
-
readonly schemaConstant: "VIRTUAL_ORG_TIERS_LIEU_FIELDS";
|
|
115
|
-
} | {
|
|
116
|
-
readonly updateMethod: "updateTypePlace";
|
|
117
|
-
readonly schemaConstant: "VIRTUAL_ORG_TIERS_LIEU_FIELDS";
|
|
118
|
-
} | {
|
|
119
|
-
readonly updateMethod: "updateBuildingSurfaceArea";
|
|
120
|
-
readonly schemaConstant: "VIRTUAL_ORG_TIERS_LIEU_FIELDS";
|
|
121
|
-
} | {
|
|
122
|
-
readonly updateMethod: "updateSiteSurfaceArea";
|
|
123
|
-
readonly schemaConstant: "VIRTUAL_ORG_TIERS_LIEU_FIELDS";
|
|
124
|
-
} | {
|
|
125
|
-
readonly updateMethod: "updateOpeningDate";
|
|
126
|
-
readonly schemaConstant: "VIRTUAL_ORG_TIERS_LIEU_FIELDS";
|
|
127
91
|
} | {
|
|
128
92
|
readonly updateMethod: "updateTelephone";
|
|
129
|
-
readonly schemaConstant: "
|
|
93
|
+
readonly schemaConstant: "VIRTUAL_ORG_BASE_FIELDS";
|
|
130
94
|
} | {
|
|
131
95
|
readonly updateMethod: "updateVideo";
|
|
132
|
-
readonly schemaConstant: "
|
|
96
|
+
readonly schemaConstant: "VIRTUAL_ORG_BASE_FIELDS";
|
|
133
97
|
}>;
|
|
134
98
|
static ADD_BLOCKS: Map<"UPDATE_BLOCK_SOCIAL" | "PROFIL_IMAGE" | "ADD_ORGANIZATION", "updateImageProfil" | "updateSocial" | "addOrganization">;
|
|
135
99
|
static UPDATE_BLOCKS: Map<"UPDATE_BLOCK_DESCRIPTION" | "UPDATE_BLOCK_INFO" | "UPDATE_BLOCK_SOCIAL" | "UPDATE_BLOCK_LOCALITY" | "UPDATE_BLOCK_SLUG" | "PROFIL_IMAGE", "updateImageProfil" | "updateDescription" | "updateSocial" | "updateLocality" | "updateInfo" | "updateSlug">;
|
|
@@ -364,33 +328,13 @@ export declare class Organization extends BaseEntity<OrganizationItemNormalized>
|
|
|
364
328
|
updateOpeningHours(hours: OpeningHoursEntry[]): Promise<unknown>;
|
|
365
329
|
/**
|
|
366
330
|
* ───────────────────────────────
|
|
367
|
-
* Champs
|
|
368
|
-
*
|
|
369
|
-
*
|
|
370
|
-
*
|
|
371
|
-
* flow `org.data.X = Y` + `save()` les drop silencieusement (les schémas de
|
|
372
|
-
* UPDATE_BLOCK_INFO/DESCRIPTION/SOCIAL/LOCALITY filtrent strictement).
|
|
373
|
-
*
|
|
374
|
-
* Pattern identique à Action.ts (CUSTOM_FIELD_HANDLERS → updateXxx → updateField).
|
|
375
|
-
* Voir tests/integration/advanced/tiers-lieux-save-fields.test.ts pour la preuve.
|
|
331
|
+
* Champs de BASE sans `UPDATE_BLOCK_*` dédié : `telephone` / `video` (dispatch UPDATE_PATH_VALUE).
|
|
332
|
+
* Les champs TIERS-LIEU costum (holderOrganization/manageModel/typePlace/buildingSurfaceArea/
|
|
333
|
+
* siteSurfaceArea/openingDate) sont gérés par CostumScope (création) + auto-derive de `_costumCtx`
|
|
334
|
+
* depuis `source.key` (chargement) → dispatch générique `_dispatchCostumFieldUpdates`. cf. inc1b/inc2.
|
|
376
335
|
* ───────────────────────────────
|
|
377
336
|
*/
|
|
378
|
-
/** Met à jour `
|
|
379
|
-
updateHolderOrganization(value: string): Promise<unknown>;
|
|
380
|
-
/** Met à jour `manageModel` (mode de gestion : association, SCIC, SCOP, etc.). */
|
|
381
|
-
updateManageModel(value: string): Promise<unknown>;
|
|
382
|
-
/**
|
|
383
|
-
* Met à jour `typePlace` (famille(s) de tiers-lieux).
|
|
384
|
-
* Format : string CSV "label1, label2" (le backend stocke tel quel).
|
|
385
|
-
*/
|
|
386
|
-
updateTypePlace(value: string): Promise<unknown>;
|
|
387
|
-
/** Met à jour `buildingSurfaceArea` (surface bâtie en m²). `setType: "int"` force le cast. */
|
|
388
|
-
updateBuildingSurfaceArea(value: number): Promise<unknown>;
|
|
389
|
-
/** Met à jour `siteSurfaceArea` (surface extérieure en m²). `setType: "int"` force le cast. */
|
|
390
|
-
updateSiteSurfaceArea(value: number): Promise<unknown>;
|
|
391
|
-
/** Met à jour `openingDate` (format libre, ex: "05/05/2026" ou "01/MM/YYYY"). */
|
|
392
|
-
updateOpeningDate(value: string): Promise<unknown>;
|
|
393
|
-
/** Met à jour `telephone` (téléphone du tiers-lieu, distinct des champs citoyen fixe/mobile). */
|
|
337
|
+
/** Met à jour `telephone` (téléphone de la structure, distinct des champs citoyen fixe/mobile). */
|
|
394
338
|
updateTelephone(value: string): Promise<unknown>;
|
|
395
339
|
/** Met à jour `video` (liste d'URLs de vidéos de présentation). */
|
|
396
340
|
updateVideo(value: string[]): Promise<unknown>;
|
package/types/api/Poi.d.ts
CHANGED
|
@@ -4,50 +4,16 @@ import type { AddPoiData } from "./EndpointApi.types.js";
|
|
|
4
4
|
export declare class Poi extends BaseEntity<PoiItemNormalized> {
|
|
5
5
|
static entityType: string;
|
|
6
6
|
static entityTag: string;
|
|
7
|
+
/** Bloc de création où injecter les champs costum (CostumScope). */
|
|
8
|
+
static COSTUM_ADD_CONSTANT: string;
|
|
7
9
|
static SCHEMA_CONSTANTS: string[];
|
|
8
10
|
static ADD_BLOCKS: Map<"PROFIL_IMAGE" | "ADD_POI", "updateImageProfil" | "addPoi">;
|
|
9
11
|
static UPDATE_BLOCKS: Map<"UPDATE_BLOCK_DESCRIPTION" | "UPDATE_BLOCK_INFO" | "UPDATE_BLOCK_LOCALITY" | "UPDATE_BLOCK_SLUG" | "PROFIL_IMAGE", "updateImageProfil" | "updateDescription" | "updateLocality" | "updateInfo" | "updateSlug">;
|
|
10
|
-
/**
|
|
11
|
-
* Champs « équipement sportif » (RES) éditables hors `UPDATE_BLOCK_*` : déclarés en
|
|
12
|
-
* VIRTUAL_SCHEMA (autorise l'écriture sur le draft + fixe les types) et persistés à
|
|
13
|
-
* l'update via `CUSTOM_FIELD_HANDLERS` → `updateEquipmentField` → `UPDATE_PATH_VALUE`.
|
|
14
|
-
* Même pattern qu'`Organization`/`Action`. (Ils restent aussi dans `ADD_POI` pour la création.)
|
|
15
|
-
*/
|
|
16
|
-
static VIRTUAL_SCHEMAS: {
|
|
17
|
-
VIRTUAL_POI_EQUIPMENT: {
|
|
18
|
-
type: string;
|
|
19
|
-
properties: {
|
|
20
|
-
[k: string]: Record<string, unknown>;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
static CUSTOM_FIELD_HANDLERS: Map<string, {
|
|
25
|
-
updateMethod: string;
|
|
26
|
-
schemaConstant?: string;
|
|
27
|
-
}>;
|
|
28
|
-
/** setType backend par champ équipement (consommé par `updateEquipmentField`). */
|
|
29
|
-
private static readonly EQUIPMENT_SETTYPE;
|
|
30
12
|
defaultFields: Record<string, any>;
|
|
31
13
|
removeFields: string[];
|
|
32
14
|
transforms: Record<string, (val: any, full?: any) => any>;
|
|
33
15
|
_add: (payload: Record<string, any>) => Promise<void>;
|
|
34
16
|
_update: (payload: Record<string, any>) => Promise<boolean>;
|
|
35
|
-
/**
|
|
36
|
-
* Handler générique des champs « équipement sportif » (RES), enregistré dans
|
|
37
|
-
* `CUSTOM_FIELD_HANDLERS`. Persiste un champ via `UPDATE_PATH_VALUE` avec le `setType`
|
|
38
|
-
* adéquat (lu dans `EQUIPMENT_SETTYPE`). `fieldName` est fourni par `_invokeCustomFieldHandler`.
|
|
39
|
-
*
|
|
40
|
-
* Effacement façon `Action` : `null`/`""` → on envoie `""` SANS `setType` → le backend fait
|
|
41
|
-
* `!empty($value)` → `$unset` (sinon `floatval("")=0` écraserait au lieu d'effacer).
|
|
42
|
-
*/
|
|
43
|
-
updateEquipmentField(value: unknown, fieldName: string): Promise<unknown>;
|
|
44
|
-
/**
|
|
45
|
-
* Override confiné à `Poi` : forwarde `fieldName` au handler (2e argument) pour permettre
|
|
46
|
-
* un handler générique unique (`updateEquipmentField`) couvrant les ~39 champs équipement,
|
|
47
|
-
* sans toucher `BaseEntity._invokeCustomFieldHandler` (utilisé par les autres entités, qui
|
|
48
|
-
* ne passent que `value`). Copie volontaire du corps de base + le forward du `fieldName`.
|
|
49
|
-
*/
|
|
50
|
-
protected _invokeCustomFieldHandler(methodName: string, value: any, fieldName: string): Promise<any>;
|
|
51
17
|
addPoi(data?: Partial<AddPoiData>): Promise<unknown>;
|
|
52
18
|
/**
|
|
53
19
|
* Supprime ce POI via `DELETE_ELEMENT` (`type=poi`).
|
package/types/api/Project.d.ts
CHANGED
|
@@ -9,6 +9,8 @@ type ProjectItemNormalized = import("./serverDataType/Project.js").ProjectItemNo
|
|
|
9
9
|
export declare class Project extends BaseEntity<ProjectItemNormalized> {
|
|
10
10
|
static entityType: string;
|
|
11
11
|
static entityTag: string;
|
|
12
|
+
/** Bloc de création où injecter les champs costum (CostumScope). */
|
|
13
|
+
static COSTUM_ADD_CONSTANT: string;
|
|
12
14
|
static SCHEMA_CONSTANTS: string[];
|
|
13
15
|
static ADD_BLOCKS: Map<"PROFIL_IMAGE" | "ADD_PROJECT", "addProject" | "updateImageProfil">;
|
|
14
16
|
static UPDATE_BLOCKS: Map<"UPDATE_BLOCK_DESCRIPTION" | "UPDATE_BLOCK_INFO" | "UPDATE_BLOCK_SOCIAL" | "UPDATE_BLOCK_LOCALITY" | "UPDATE_BLOCK_SLUG" | "PROFIL_IMAGE", "updateImageProfil" | "updateDescription" | "updateSocial" | "updateLocality" | "updateInfo" | "updateSlug">;
|
package/types/api/User.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { BaseEntity } from "./BaseEntity.js";
|
|
2
2
|
import { Notifications } from "./Notifications.js";
|
|
3
|
+
import { type CostumScope } from "../costum/runtime.js";
|
|
3
4
|
import type { Badge } from "./Badge.js";
|
|
4
5
|
import type { PaginatorPage, PaginatorState } from "./BaseEntity.js";
|
|
5
6
|
import type { ChangePasswordData, DeleteAccountData, GetSubscriptionsAdminData, GetSubscriptionsData, GetOrganizationsNoAdminData, GetOrganizationsAdminData, GetUserEligiblePlacesData, GetFriendsAdminData } from "./EndpointApi.types.js";
|
|
6
7
|
import type { Organization } from "./Organization.js";
|
|
8
|
+
import type { KnownCostumSlug } from "../costum/types.js";
|
|
7
9
|
import type { NotificationItemData } from "./serverDataType/Notification.js";
|
|
8
10
|
import type { EntityTypes } from "@/types/entities.js";
|
|
9
11
|
type ApiClient = import("../ApiClient.js").default;
|
|
@@ -284,6 +286,18 @@ export declare class User extends BaseEntity<UserItemNormalized> {
|
|
|
284
286
|
* Crée une instance d'événement et la récupère si nécessaire.
|
|
285
287
|
*/
|
|
286
288
|
event(eventData?: Parameters<BaseEntity<UserItemNormalized>["event"]>[0]): Promise<import("./Event.js").Event>;
|
|
289
|
+
/**
|
|
290
|
+
* Ouvre un *scope costum* : les entités créées via le scope (`poi`/`organization`/`project`/`event`)
|
|
291
|
+
* portent le contexte costum (costumSlug + champs costum validés par le binding du costum à `element/save`).
|
|
292
|
+
*
|
|
293
|
+
* @example
|
|
294
|
+
* const tl = await me.costum("reseauTierslieux");
|
|
295
|
+
* const org = await tl.organization({ name: "Mon TL", manageModel: "Association", buildingSurfaceArea: "120" });
|
|
296
|
+
* await org.save();
|
|
297
|
+
*
|
|
298
|
+
* @param slug - slug d'un costum connu (registry généré). Slug hors registry => erreur (live-fetch = inc2).
|
|
299
|
+
*/
|
|
300
|
+
costum(slug: KnownCostumSlug): Promise<CostumScope>;
|
|
287
301
|
/**
|
|
288
302
|
* {@inheritDoc BaseEntity#badge}
|
|
289
303
|
*
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { CostumExtensionModule, KnownCostumSlug, Collection } from "./types.js";
|
|
2
|
+
export interface CostumMeta {
|
|
3
|
+
costumId: string;
|
|
4
|
+
costumType: Collection;
|
|
5
|
+
host: string | null;
|
|
6
|
+
engine: string | null;
|
|
7
|
+
}
|
|
8
|
+
export declare const COSTUM_META: Record<KnownCostumSlug, CostumMeta>;
|
|
9
|
+
export declare const COSTUM_SCHEMAS: Record<KnownCostumSlug, () => Promise<{
|
|
10
|
+
default: CostumExtensionModule;
|
|
11
|
+
}>>;
|