@webda/core 4.0.0-beta.2 → 4.0.0-beta.3
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/README.md +252 -0
- package/lib/application/application.d.ts +437 -0
- package/lib/application/application.d.ts.map +1 -0
- package/lib/application/application.js +792 -0
- package/lib/application/application.js.map +1 -0
- package/lib/application/hooks.d.ts +34 -0
- package/lib/application/hooks.d.ts.map +1 -0
- package/lib/application/hooks.js +57 -0
- package/lib/application/hooks.js.map +1 -0
- package/lib/application/iapplication.d.ts +43 -0
- package/lib/application/iapplication.d.ts.map +1 -0
- package/lib/application/iapplication.js +2 -0
- package/lib/application/iapplication.js.map +1 -0
- package/lib/application/iconfiguration.d.ts +176 -0
- package/lib/application/iconfiguration.d.ts.map +1 -0
- package/lib/application/iconfiguration.js +8 -0
- package/lib/application/iconfiguration.js.map +1 -0
- package/lib/application/runner.d.ts +8 -0
- package/lib/application/runner.d.ts.map +1 -0
- package/lib/application/runner.js +26 -0
- package/lib/application/runner.js.map +1 -0
- package/lib/{unpackedapplication.d.ts → application/unpackedapplication.d.ts} +43 -23
- package/lib/application/unpackedapplication.d.ts.map +1 -0
- package/lib/application/unpackedapplication.js +492 -0
- package/lib/application/unpackedapplication.js.map +1 -0
- package/lib/bin/cli-phase.d.ts +28 -0
- package/lib/bin/cli-phase.d.ts.map +1 -0
- package/lib/bin/cli-phase.js +44 -0
- package/lib/bin/cli-phase.js.map +1 -0
- package/lib/bin/cli.d.ts +161 -0
- package/lib/bin/cli.d.ts.map +1 -0
- package/lib/bin/cli.js +828 -0
- package/lib/bin/cli.js.map +1 -0
- package/lib/bin/launcher.d.ts +3 -0
- package/lib/bin/launcher.d.ts.map +1 -0
- package/lib/bin/launcher.js +50 -0
- package/lib/bin/launcher.js.map +1 -0
- package/lib/cache/cache.d.ts +33 -0
- package/lib/cache/cache.d.ts.map +1 -0
- package/lib/cache/cache.js +8 -0
- package/lib/cache/cache.js.map +1 -0
- package/lib/{services/configuration.d.ts → configurations/configuration.service.d.ts} +58 -58
- package/lib/configurations/configuration.service.d.ts.map +1 -0
- package/lib/configurations/configuration.service.js +248 -0
- package/lib/configurations/configuration.service.js.map +1 -0
- package/lib/configurations/fileconfiguration.service.d.ts +30 -0
- package/lib/configurations/fileconfiguration.service.d.ts.map +1 -0
- package/lib/configurations/fileconfiguration.service.js +65 -0
- package/lib/configurations/fileconfiguration.service.js.map +1 -0
- package/lib/configurations/kubernetesconfiguration.service.d.ts +43 -0
- package/lib/configurations/kubernetesconfiguration.service.d.ts.map +1 -0
- package/lib/configurations/kubernetesconfiguration.service.js +83 -0
- package/lib/configurations/kubernetesconfiguration.service.js.map +1 -0
- package/lib/contexts/execution.d.ts +33 -0
- package/lib/contexts/execution.d.ts.map +1 -0
- package/lib/contexts/execution.js +73 -0
- package/lib/contexts/execution.js.map +1 -0
- package/lib/contexts/globalcontext.d.ts +29 -0
- package/lib/contexts/globalcontext.d.ts.map +1 -0
- package/lib/contexts/globalcontext.js +38 -0
- package/lib/contexts/globalcontext.js.map +1 -0
- package/lib/{utils → contexts}/httpcontext.d.ts +44 -19
- package/lib/contexts/httpcontext.d.ts.map +1 -0
- package/lib/{utils → contexts}/httpcontext.js +95 -27
- package/lib/contexts/httpcontext.js.map +1 -0
- package/lib/contexts/icontext.d.ts +236 -0
- package/lib/contexts/icontext.d.ts.map +1 -0
- package/lib/contexts/icontext.js +230 -0
- package/lib/contexts/icontext.js.map +1 -0
- package/lib/contexts/operationcontext.d.ts +179 -0
- package/lib/contexts/operationcontext.d.ts.map +1 -0
- package/lib/contexts/operationcontext.js +358 -0
- package/lib/contexts/operationcontext.js.map +1 -0
- package/lib/contexts/simplecontext.d.ts +31 -0
- package/lib/contexts/simplecontext.d.ts.map +1 -0
- package/lib/contexts/simplecontext.js +45 -0
- package/lib/contexts/simplecontext.js.map +1 -0
- package/lib/contexts/webcontext.d.ts +218 -0
- package/lib/contexts/webcontext.d.ts.map +1 -0
- package/lib/contexts/webcontext.js +389 -0
- package/lib/contexts/webcontext.js.map +1 -0
- package/lib/core/authorizer.d.ts +23 -0
- package/lib/core/authorizer.d.ts.map +1 -0
- package/lib/core/authorizer.js +17 -0
- package/lib/core/authorizer.js.map +1 -0
- package/lib/core/core.d.ts +225 -0
- package/lib/core/core.d.ts.map +1 -0
- package/lib/core/core.js +576 -0
- package/lib/core/core.js.map +1 -0
- package/lib/core/hooks.d.ts +72 -0
- package/lib/core/hooks.d.ts.map +1 -0
- package/lib/core/hooks.js +73 -0
- package/lib/core/hooks.js.map +1 -0
- package/lib/core/icore.d.ts +249 -0
- package/lib/core/icore.d.ts.map +1 -0
- package/lib/core/icore.js +15 -0
- package/lib/core/icore.js.map +1 -0
- package/lib/core/instancestorage.d.ts +61 -0
- package/lib/core/instancestorage.d.ts.map +1 -0
- package/lib/core/instancestorage.js +75 -0
- package/lib/core/instancestorage.js.map +1 -0
- package/lib/core/operations.d.ts +181 -0
- package/lib/core/operations.d.ts.map +1 -0
- package/lib/core/operations.js +559 -0
- package/lib/core/operations.js.map +1 -0
- package/lib/errors/errors.d.ts +126 -0
- package/lib/errors/errors.d.ts.map +1 -0
- package/lib/errors/errors.js +165 -0
- package/lib/errors/errors.js.map +1 -0
- package/lib/events/asynceventemitter.d.ts +159 -0
- package/lib/events/asynceventemitter.d.ts.map +1 -0
- package/lib/events/asynceventemitter.js +152 -0
- package/lib/events/asynceventemitter.js.map +1 -0
- package/lib/events/events.d.ts +112 -0
- package/lib/events/events.d.ts.map +1 -0
- package/lib/events/events.js +45 -0
- package/lib/events/events.js.map +1 -0
- package/lib/index.d.ts +82 -53
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +81 -62
- package/lib/index.js.map +1 -1
- package/lib/loggers/console.service.d.ts +24 -0
- package/lib/loggers/console.service.d.ts.map +1 -0
- package/lib/loggers/console.service.js +30 -0
- package/lib/loggers/console.service.js.map +1 -0
- package/lib/loggers/file.service.d.ts +25 -0
- package/lib/loggers/file.service.d.ts.map +1 -0
- package/lib/loggers/file.service.js +33 -0
- package/lib/loggers/file.service.js.map +1 -0
- package/lib/loggers/hooks.d.ts +20 -0
- package/lib/loggers/hooks.d.ts.map +1 -0
- package/lib/loggers/hooks.js +40 -0
- package/lib/loggers/hooks.js.map +1 -0
- package/lib/loggers/ilogger.d.ts +76 -0
- package/lib/loggers/ilogger.d.ts.map +1 -0
- package/lib/loggers/ilogger.js +108 -0
- package/lib/loggers/ilogger.js.map +1 -0
- package/lib/loggers/logger.d.ts +13 -0
- package/lib/loggers/logger.d.ts.map +1 -0
- package/lib/loggers/logger.js +18 -0
- package/lib/loggers/logger.js.map +1 -0
- package/lib/loggers/memory.service.d.ts +18 -0
- package/lib/loggers/memory.service.d.ts.map +1 -0
- package/lib/loggers/memory.service.js +21 -0
- package/lib/loggers/memory.service.js.map +1 -0
- package/lib/loggers/params.d.ts +47 -0
- package/lib/loggers/params.d.ts.map +1 -0
- package/lib/loggers/params.js +56 -0
- package/lib/loggers/params.js.map +1 -0
- package/lib/metrics/metrics.d.ts +25 -0
- package/lib/metrics/metrics.d.ts.map +1 -0
- package/lib/metrics/metrics.js +51 -0
- package/lib/metrics/metrics.js.map +1 -0
- package/lib/models/aclmodel.d.ts +20 -76
- package/lib/models/aclmodel.d.ts.map +1 -1
- package/lib/models/aclmodel.js +27 -203
- package/lib/models/aclmodel.js.map +1 -1
- package/lib/models/coremodel.model.d.ts +5 -0
- package/lib/models/coremodel.model.d.ts.map +1 -0
- package/lib/models/coremodel.model.js +5 -0
- package/lib/models/coremodel.model.js.map +1 -0
- package/lib/models/decorator.d.ts +63 -0
- package/lib/models/decorator.d.ts.map +1 -0
- package/lib/models/decorator.js +63 -0
- package/lib/models/decorator.js.map +1 -0
- package/lib/models/deployment.d.ts +1 -1
- package/lib/models/deployment.d.ts.map +1 -1
- package/lib/models/ident.model.d.ts +89 -0
- package/lib/models/ident.model.d.ts.map +1 -0
- package/lib/models/ident.model.js +115 -0
- package/lib/models/ident.model.js.map +1 -0
- package/lib/models/ownermodel.model.d.ts +68 -0
- package/lib/models/ownermodel.model.d.ts.map +1 -0
- package/lib/models/ownermodel.model.js +112 -0
- package/lib/models/ownermodel.model.js.map +1 -0
- package/lib/models/registry.model.d.ts +76 -0
- package/lib/models/registry.model.d.ts.map +1 -0
- package/lib/models/registry.model.js +104 -0
- package/lib/models/registry.model.js.map +1 -0
- package/lib/models/rolemodel.model.d.ts +28 -0
- package/lib/models/rolemodel.model.d.ts.map +1 -0
- package/lib/models/{rolemodel.js → rolemodel.model.js} +23 -5
- package/lib/models/rolemodel.model.js.map +1 -0
- package/lib/models/simpleuser.model.d.ts +78 -0
- package/lib/models/simpleuser.model.d.ts.map +1 -0
- package/lib/models/simpleuser.model.js +123 -0
- package/lib/models/simpleuser.model.js.map +1 -0
- package/lib/models/types.d.ts +113 -0
- package/lib/models/types.d.ts.map +1 -0
- package/lib/models/types.js +2 -0
- package/lib/models/types.js.map +1 -0
- package/lib/models/user.model.d.ts +103 -0
- package/lib/models/user.model.d.ts.map +1 -0
- package/lib/models/user.model.js +125 -0
- package/lib/models/user.model.js.map +1 -0
- package/lib/queues/{memoryqueue.d.ts → memoryqueue.service.d.ts} +26 -13
- package/lib/queues/memoryqueue.service.d.ts.map +1 -0
- package/lib/queues/{memoryqueue.js → memoryqueue.service.js} +55 -31
- package/lib/queues/memoryqueue.service.js.map +1 -0
- package/lib/queues/pubsubservice.d.ts +8 -6
- package/lib/queues/pubsubservice.d.ts.map +1 -1
- package/lib/queues/pubsubservice.js +5 -4
- package/lib/queues/pubsubservice.js.map +1 -1
- package/lib/queues/queueservice.d.ts +9 -11
- package/lib/queues/queueservice.d.ts.map +1 -1
- package/lib/queues/queueservice.js +41 -13
- package/lib/queues/queueservice.js.map +1 -1
- package/lib/rest/hooks.d.ts +8 -0
- package/lib/rest/hooks.d.ts.map +1 -0
- package/lib/rest/hooks.js +10 -0
- package/lib/rest/hooks.js.map +1 -0
- package/lib/rest/irest.d.ts +212 -0
- package/lib/rest/irest.d.ts.map +1 -0
- package/lib/rest/irest.js +39 -0
- package/lib/rest/irest.js.map +1 -0
- package/lib/rest/originfilter.d.ts +38 -0
- package/lib/rest/originfilter.d.ts.map +1 -0
- package/lib/rest/originfilter.js +61 -0
- package/lib/rest/originfilter.js.map +1 -0
- package/lib/rest/restoperationstransport.service.d.ts +193 -0
- package/lib/rest/restoperationstransport.service.d.ts.map +1 -0
- package/lib/rest/restoperationstransport.service.js +780 -0
- package/lib/rest/restoperationstransport.service.js.map +1 -0
- package/lib/rest/router.service.d.ts +244 -0
- package/lib/rest/router.service.d.ts.map +1 -0
- package/lib/rest/router.service.js +843 -0
- package/lib/rest/router.service.js.map +1 -0
- package/lib/schemas/hooks.d.ts +48 -0
- package/lib/schemas/hooks.d.ts.map +1 -0
- package/lib/schemas/hooks.js +152 -0
- package/lib/schemas/hooks.js.map +1 -0
- package/lib/services/audit.model.d.ts +208 -0
- package/lib/services/audit.model.d.ts.map +1 -0
- package/lib/services/audit.model.js +431 -0
- package/lib/services/audit.model.js.map +1 -0
- package/lib/services/{authentication.d.ts → authentication.service.d.ts} +140 -59
- package/lib/services/authentication.service.d.ts.map +1 -0
- package/lib/services/authentication.service.js +932 -0
- package/lib/services/authentication.service.js.map +1 -0
- package/lib/services/binary.service.d.ts +808 -0
- package/lib/services/binary.service.d.ts.map +1 -0
- package/lib/services/binary.service.js +1365 -0
- package/lib/services/binary.service.js.map +1 -0
- package/lib/services/cloudbinary.d.ts +17 -12
- package/lib/services/cloudbinary.d.ts.map +1 -1
- package/lib/services/cloudbinary.js +23 -17
- package/lib/services/cloudbinary.js.map +1 -1
- package/lib/services/command.d.ts +118 -0
- package/lib/services/command.d.ts.map +1 -0
- package/lib/services/command.js +97 -0
- package/lib/services/command.js.map +1 -0
- package/lib/services/cron.service.d.ts +142 -0
- package/lib/services/cron.service.d.ts.map +1 -0
- package/lib/services/cron.service.js +291 -0
- package/lib/services/cron.service.js.map +1 -0
- package/lib/services/{cryptoservice.d.ts → cryptoservice.service.d.ts} +75 -141
- package/lib/services/cryptoservice.service.d.ts.map +1 -0
- package/lib/services/cryptoservice.service.js +527 -0
- package/lib/services/cryptoservice.service.js.map +1 -0
- package/lib/services/debugmailer.service.d.ts +49 -0
- package/lib/services/debugmailer.service.d.ts.map +1 -0
- package/lib/services/{debugmailer.js → debugmailer.service.js} +25 -10
- package/lib/services/debugmailer.service.js.map +1 -0
- package/lib/services/domainservice.service.d.ts +203 -0
- package/lib/services/domainservice.service.d.ts.map +1 -0
- package/lib/services/domainservice.service.js +600 -0
- package/lib/services/domainservice.service.js.map +1 -0
- package/lib/services/httpserver.service.d.ts +248 -0
- package/lib/services/httpserver.service.d.ts.map +1 -0
- package/lib/services/httpserver.service.js +673 -0
- package/lib/services/httpserver.service.js.map +1 -0
- package/lib/services/iauthentication.d.ts +9 -0
- package/lib/services/iauthentication.d.ts.map +1 -0
- package/lib/services/iauthentication.js +2 -0
- package/lib/services/iauthentication.js.map +1 -0
- package/lib/services/icryptoservice.d.ts +127 -0
- package/lib/services/icryptoservice.d.ts.map +1 -0
- package/lib/services/icryptoservice.js +68 -0
- package/lib/services/icryptoservice.js.map +1 -0
- package/lib/services/imailer.d.ts +17 -0
- package/lib/services/imailer.d.ts.map +1 -0
- package/lib/services/imailer.js +2 -0
- package/lib/services/imailer.js.map +1 -0
- package/lib/services/iservice.d.ts +104 -0
- package/lib/services/iservice.d.ts.map +1 -0
- package/lib/services/iservice.js +63 -0
- package/lib/services/iservice.js.map +1 -0
- package/lib/services/mailer.service.d.ts +220 -0
- package/lib/services/mailer.service.d.ts.map +1 -0
- package/lib/services/mailer.service.js +251 -0
- package/lib/services/mailer.service.js.map +1 -0
- package/lib/services/{notificationservice.d.ts → notificationservice.service.d.ts} +10 -11
- package/lib/services/notificationservice.service.d.ts.map +1 -0
- package/lib/services/{notificationservice.js → notificationservice.service.js} +24 -12
- package/lib/services/notificationservice.service.js.map +1 -0
- package/lib/services/oauth.d.ts +52 -28
- package/lib/services/oauth.d.ts.map +1 -1
- package/lib/services/oauth.js +365 -254
- package/lib/services/oauth.js.map +1 -1
- package/lib/services/operationstransport.d.ts +65 -0
- package/lib/services/operationstransport.d.ts.map +1 -0
- package/lib/services/operationstransport.js +103 -0
- package/lib/services/operationstransport.js.map +1 -0
- package/lib/services/{prometheus.d.ts → prometheus.service.d.ts} +13 -12
- package/lib/services/prometheus.service.d.ts.map +1 -0
- package/lib/services/prometheus.service.js +203 -0
- package/lib/services/prometheus.service.js.map +1 -0
- package/lib/services/{resource.d.ts → resource.service.d.ts} +34 -15
- package/lib/services/resource.service.d.ts.map +1 -0
- package/lib/services/resource.service.js +301 -0
- package/lib/services/resource.service.js.map +1 -0
- package/lib/services/service.d.ts +87 -188
- package/lib/services/service.d.ts.map +1 -1
- package/lib/services/service.js +407 -422
- package/lib/services/service.js.map +1 -1
- package/lib/services/servicecommands.d.ts +99 -0
- package/lib/services/servicecommands.d.ts.map +1 -0
- package/lib/services/servicecommands.js +165 -0
- package/lib/services/servicecommands.js.map +1 -0
- package/lib/services/serviceparameters.d.ts +33 -0
- package/lib/services/serviceparameters.d.ts.map +1 -0
- package/lib/services/serviceparameters.js +79 -0
- package/lib/services/serviceparameters.js.map +1 -0
- package/lib/{utils → session}/cookie.d.ts +32 -19
- package/lib/session/cookie.d.ts.map +1 -0
- package/lib/{utils → session}/cookie.js +76 -23
- package/lib/session/cookie.js.map +1 -0
- package/lib/session/manager.model.d.ts +71 -0
- package/lib/session/manager.model.d.ts.map +1 -0
- package/lib/session/manager.model.js +155 -0
- package/lib/session/manager.model.js.map +1 -0
- package/lib/session/session.d.ts +57 -0
- package/lib/session/session.d.ts.map +1 -0
- package/lib/session/session.js +126 -0
- package/lib/session/session.js.map +1 -0
- package/lib/stores/istore.d.ts +99 -0
- package/lib/stores/istore.d.ts.map +1 -0
- package/lib/stores/istore.js +26 -0
- package/lib/stores/istore.js.map +1 -0
- package/lib/stores/memory.service.d.ts +114 -0
- package/lib/stores/memory.service.d.ts.map +1 -0
- package/lib/stores/memory.service.js +343 -0
- package/lib/stores/memory.service.js.map +1 -0
- package/lib/stores/store.d.ts +126 -626
- package/lib/stores/store.d.ts.map +1 -1
- package/lib/stores/store.js +257 -1117
- package/lib/stores/store.js.map +1 -1
- package/lib/templates/templates.d.ts +39 -0
- package/lib/templates/templates.d.ts.map +1 -0
- package/lib/templates/templates.js +92 -0
- package/lib/templates/templates.js.map +1 -0
- package/lib/test/application.d.ts +174 -0
- package/lib/test/application.d.ts.map +1 -0
- package/lib/test/application.js +288 -0
- package/lib/test/application.js.map +1 -0
- package/lib/test/asyncstorage.d.ts +16 -0
- package/lib/test/asyncstorage.d.ts.map +1 -0
- package/lib/test/asyncstorage.js +32 -0
- package/lib/test/asyncstorage.js.map +1 -0
- package/lib/test/core.d.ts +63 -0
- package/lib/test/core.d.ts.map +1 -0
- package/lib/test/core.js +190 -0
- package/lib/test/core.js.map +1 -0
- package/lib/test/index.d.ts +7 -0
- package/lib/test/index.d.ts.map +1 -0
- package/lib/test/index.js +8 -0
- package/lib/test/index.js.map +1 -0
- package/lib/test/internal.d.ts +34 -0
- package/lib/test/internal.d.ts.map +1 -0
- package/lib/test/internal.js +156 -0
- package/lib/test/internal.js.map +1 -0
- package/lib/test/objects.d.ts +318 -0
- package/lib/test/objects.d.ts.map +1 -0
- package/lib/test/objects.js +443 -0
- package/lib/test/objects.js.map +1 -0
- package/lib/utils/abstractdeployer.d.ts +4 -2
- package/lib/utils/abstractdeployer.d.ts.map +1 -1
- package/lib/utils/abstractdeployer.js +3 -0
- package/lib/utils/abstractdeployer.js.map +1 -1
- package/package.json +85 -60
- package/test/cachedapp/webda.config.json +1 -5
- package/test/config-cached.json +1 -5
- package/test/config.json +0 -9
- package/test/my-cnf.json +9 -0
- package/webda.module.json +3463 -2482
- package/lib/application.d.ts +0 -888
- package/lib/application.d.ts.map +0 -1
- package/lib/application.js +0 -768
- package/lib/application.js.map +0 -1
- package/lib/application.spec.d.ts +0 -2
- package/lib/application.spec.d.ts.map +0 -1
- package/lib/application.spec.js +0 -248
- package/lib/application.spec.js.map +0 -1
- package/lib/core.d.ts +0 -743
- package/lib/core.d.ts.map +0 -1
- package/lib/core.js +0 -1334
- package/lib/core.js.map +0 -1
- package/lib/core.spec.d.ts +0 -2
- package/lib/core.spec.d.ts.map +0 -1
- package/lib/core.spec.js +0 -790
- package/lib/core.spec.js.map +0 -1
- package/lib/errors.d.ts +0 -64
- package/lib/errors.d.ts.map +0 -1
- package/lib/errors.js +0 -97
- package/lib/errors.js.map +0 -1
- package/lib/errors.spec.d.ts +0 -2
- package/lib/errors.spec.d.ts.map +0 -1
- package/lib/errors.spec.js +0 -33
- package/lib/errors.spec.js.map +0 -1
- package/lib/models/aclmodel.spec.d.ts +0 -2
- package/lib/models/aclmodel.spec.d.ts.map +0 -1
- package/lib/models/aclmodel.spec.js +0 -187
- package/lib/models/aclmodel.spec.js.map +0 -1
- package/lib/models/coremodel.d.ts +0 -896
- package/lib/models/coremodel.d.ts.map +0 -1
- package/lib/models/coremodel.js +0 -1214
- package/lib/models/coremodel.js.map +0 -1
- package/lib/models/coremodel.spec.d.ts +0 -2
- package/lib/models/coremodel.spec.d.ts.map +0 -1
- package/lib/models/coremodel.spec.js +0 -464
- package/lib/models/coremodel.spec.js.map +0 -1
- package/lib/models/ident.d.ts +0 -68
- package/lib/models/ident.d.ts.map +0 -1
- package/lib/models/ident.js +0 -26
- package/lib/models/ident.js.map +0 -1
- package/lib/models/ident.spec.d.ts +0 -2
- package/lib/models/ident.spec.d.ts.map +0 -1
- package/lib/models/ident.spec.js +0 -24
- package/lib/models/ident.spec.js.map +0 -1
- package/lib/models/ownermodel.d.ts +0 -51
- package/lib/models/ownermodel.d.ts.map +0 -1
- package/lib/models/ownermodel.js +0 -65
- package/lib/models/ownermodel.js.map +0 -1
- package/lib/models/ownermodel.spec.d.ts +0 -2
- package/lib/models/ownermodel.spec.d.ts.map +0 -1
- package/lib/models/ownermodel.spec.js +0 -215
- package/lib/models/ownermodel.spec.js.map +0 -1
- package/lib/models/relations.d.ts +0 -182
- package/lib/models/relations.d.ts.map +0 -1
- package/lib/models/relations.js +0 -157
- package/lib/models/relations.js.map +0 -1
- package/lib/models/relations.spec.d.ts +0 -14
- package/lib/models/relations.spec.d.ts.map +0 -1
- package/lib/models/relations.spec.js +0 -217
- package/lib/models/relations.spec.js.map +0 -1
- package/lib/models/rolemodel.d.ts +0 -11
- package/lib/models/rolemodel.d.ts.map +0 -1
- package/lib/models/rolemodel.js.map +0 -1
- package/lib/models/rolemodel.spec.d.ts +0 -2
- package/lib/models/rolemodel.spec.d.ts.map +0 -1
- package/lib/models/rolemodel.spec.js +0 -90
- package/lib/models/rolemodel.spec.js.map +0 -1
- package/lib/models/simpleuser.d.ts +0 -47
- package/lib/models/simpleuser.d.ts.map +0 -1
- package/lib/models/simpleuser.js +0 -84
- package/lib/models/simpleuser.js.map +0 -1
- package/lib/models/test.d.ts +0 -11
- package/lib/models/test.d.ts.map +0 -1
- package/lib/models/test.js +0 -7
- package/lib/models/test.js.map +0 -1
- package/lib/models/user.d.ts +0 -67
- package/lib/models/user.d.ts.map +0 -1
- package/lib/models/user.js +0 -86
- package/lib/models/user.js.map +0 -1
- package/lib/models/user.spec.d.ts +0 -2
- package/lib/models/user.spec.d.ts.map +0 -1
- package/lib/models/user.spec.js +0 -89
- package/lib/models/user.spec.js.map +0 -1
- package/lib/queues/filequeue.d.ts +0 -59
- package/lib/queues/filequeue.d.ts.map +0 -1
- package/lib/queues/filequeue.js +0 -131
- package/lib/queues/filequeue.js.map +0 -1
- package/lib/queues/filequeue.spec.d.ts +0 -2
- package/lib/queues/filequeue.spec.d.ts.map +0 -1
- package/lib/queues/filequeue.spec.js +0 -84
- package/lib/queues/filequeue.spec.js.map +0 -1
- package/lib/queues/memoryqueue.d.ts.map +0 -1
- package/lib/queues/memoryqueue.js.map +0 -1
- package/lib/queues/memoryqueue.spec.d.ts +0 -2
- package/lib/queues/memoryqueue.spec.d.ts.map +0 -1
- package/lib/queues/memoryqueue.spec.js +0 -203
- package/lib/queues/memoryqueue.spec.js.map +0 -1
- package/lib/queues/queue.spec.d.ts +0 -6
- package/lib/queues/queue.spec.d.ts.map +0 -1
- package/lib/queues/queue.spec.js +0 -55
- package/lib/queues/queue.spec.js.map +0 -1
- package/lib/rest/restdomainservice.d.ts +0 -63
- package/lib/rest/restdomainservice.d.ts.map +0 -1
- package/lib/rest/restdomainservice.js +0 -687
- package/lib/rest/restdomainservice.js.map +0 -1
- package/lib/rest/restdomainservice.spec.d.ts +0 -2
- package/lib/rest/restdomainservice.spec.d.ts.map +0 -1
- package/lib/rest/restdomainservice.spec.js +0 -124
- package/lib/rest/restdomainservice.spec.js.map +0 -1
- package/lib/rest/router.d.ts +0 -174
- package/lib/rest/router.d.ts.map +0 -1
- package/lib/rest/router.js +0 -429
- package/lib/rest/router.js.map +0 -1
- package/lib/rest/router.spec.d.ts +0 -2
- package/lib/rest/router.spec.d.ts.map +0 -1
- package/lib/rest/router.spec.js +0 -255
- package/lib/rest/router.spec.js.map +0 -1
- package/lib/services/asyncevents.d.ts +0 -152
- package/lib/services/asyncevents.d.ts.map +0 -1
- package/lib/services/asyncevents.js +0 -217
- package/lib/services/asyncevents.js.map +0 -1
- package/lib/services/asyncevents.spec.d.ts +0 -2
- package/lib/services/asyncevents.spec.d.ts.map +0 -1
- package/lib/services/asyncevents.spec.js +0 -118
- package/lib/services/asyncevents.spec.js.map +0 -1
- package/lib/services/authentication.d.ts.map +0 -1
- package/lib/services/authentication.js +0 -773
- package/lib/services/authentication.js.map +0 -1
- package/lib/services/authentication.spec.d.ts +0 -2
- package/lib/services/authentication.spec.d.ts.map +0 -1
- package/lib/services/authentication.spec.js +0 -458
- package/lib/services/authentication.spec.js.map +0 -1
- package/lib/services/binary.d.ts +0 -477
- package/lib/services/binary.d.ts.map +0 -1
- package/lib/services/binary.js +0 -617
- package/lib/services/binary.js.map +0 -1
- package/lib/services/binary.spec.d.ts +0 -41
- package/lib/services/binary.spec.d.ts.map +0 -1
- package/lib/services/binary.spec.js +0 -151
- package/lib/services/binary.spec.js.map +0 -1
- package/lib/services/cloudbinary.spec.d.ts +0 -6
- package/lib/services/cloudbinary.spec.d.ts.map +0 -1
- package/lib/services/cloudbinary.spec.js +0 -66
- package/lib/services/cloudbinary.spec.js.map +0 -1
- package/lib/services/configuration.d.ts.map +0 -1
- package/lib/services/configuration.js +0 -193
- package/lib/services/configuration.js.map +0 -1
- package/lib/services/configuration.spec.d.ts +0 -2
- package/lib/services/configuration.spec.d.ts.map +0 -1
- package/lib/services/configuration.spec.js +0 -130
- package/lib/services/configuration.spec.js.map +0 -1
- package/lib/services/cron.d.ts +0 -74
- package/lib/services/cron.d.ts.map +0 -1
- package/lib/services/cron.js +0 -141
- package/lib/services/cron.js.map +0 -1
- package/lib/services/cron.spec.d.ts +0 -2
- package/lib/services/cron.spec.d.ts.map +0 -1
- package/lib/services/cron.spec.js +0 -76
- package/lib/services/cron.spec.js.map +0 -1
- package/lib/services/cryptoservice.d.ts.map +0 -1
- package/lib/services/cryptoservice.js +0 -433
- package/lib/services/cryptoservice.js.map +0 -1
- package/lib/services/cryptoservice.spec.d.ts +0 -2
- package/lib/services/cryptoservice.spec.d.ts.map +0 -1
- package/lib/services/cryptoservice.spec.js +0 -177
- package/lib/services/cryptoservice.spec.js.map +0 -1
- package/lib/services/debugmailer.d.ts +0 -36
- package/lib/services/debugmailer.d.ts.map +0 -1
- package/lib/services/debugmailer.js.map +0 -1
- package/lib/services/debugmailer.spec.d.ts +0 -2
- package/lib/services/debugmailer.spec.d.ts.map +0 -1
- package/lib/services/debugmailer.spec.js +0 -32
- package/lib/services/debugmailer.spec.js.map +0 -1
- package/lib/services/domainservice.d.ts +0 -272
- package/lib/services/domainservice.d.ts.map +0 -1
- package/lib/services/domainservice.js +0 -651
- package/lib/services/domainservice.js.map +0 -1
- package/lib/services/domainservice.spec.d.ts +0 -2
- package/lib/services/domainservice.spec.d.ts.map +0 -1
- package/lib/services/domainservice.spec.js +0 -592
- package/lib/services/domainservice.spec.js.map +0 -1
- package/lib/services/filebinary.d.ts +0 -136
- package/lib/services/filebinary.d.ts.map +0 -1
- package/lib/services/filebinary.js +0 -373
- package/lib/services/filebinary.js.map +0 -1
- package/lib/services/filebinary.spec.d.ts +0 -25
- package/lib/services/filebinary.spec.d.ts.map +0 -1
- package/lib/services/filebinary.spec.js +0 -428
- package/lib/services/filebinary.spec.js.map +0 -1
- package/lib/services/fileconfiguration.d.ts +0 -23
- package/lib/services/fileconfiguration.d.ts.map +0 -1
- package/lib/services/fileconfiguration.js +0 -48
- package/lib/services/fileconfiguration.js.map +0 -1
- package/lib/services/fileconfiguration.spec.d.ts +0 -2
- package/lib/services/fileconfiguration.spec.d.ts.map +0 -1
- package/lib/services/fileconfiguration.spec.js +0 -215
- package/lib/services/fileconfiguration.spec.js.map +0 -1
- package/lib/services/invitationservice.d.ts +0 -223
- package/lib/services/invitationservice.d.ts.map +0 -1
- package/lib/services/invitationservice.js +0 -529
- package/lib/services/invitationservice.js.map +0 -1
- package/lib/services/invitationservice.spec.d.ts +0 -2
- package/lib/services/invitationservice.spec.d.ts.map +0 -1
- package/lib/services/invitationservice.spec.js +0 -567
- package/lib/services/invitationservice.spec.js.map +0 -1
- package/lib/services/kubernetesconfiguration.d.ts +0 -27
- package/lib/services/kubernetesconfiguration.d.ts.map +0 -1
- package/lib/services/kubernetesconfiguration.js +0 -52
- package/lib/services/kubernetesconfiguration.js.map +0 -1
- package/lib/services/kubernetesconfiguration.spec.d.ts +0 -2
- package/lib/services/kubernetesconfiguration.spec.d.ts.map +0 -1
- package/lib/services/kubernetesconfiguration.spec.js +0 -206
- package/lib/services/kubernetesconfiguration.spec.js.map +0 -1
- package/lib/services/mailer.d.ts +0 -166
- package/lib/services/mailer.d.ts.map +0 -1
- package/lib/services/mailer.js +0 -176
- package/lib/services/mailer.js.map +0 -1
- package/lib/services/mailer.spec.d.ts +0 -2
- package/lib/services/mailer.spec.d.ts.map +0 -1
- package/lib/services/mailer.spec.js +0 -158
- package/lib/services/mailer.spec.js.map +0 -1
- package/lib/services/notificationservice.d.ts.map +0 -1
- package/lib/services/notificationservice.js.map +0 -1
- package/lib/services/notificationservice.spec.d.ts +0 -2
- package/lib/services/notificationservice.spec.d.ts.map +0 -1
- package/lib/services/notificationservice.spec.js +0 -83
- package/lib/services/notificationservice.spec.js.map +0 -1
- package/lib/services/oauth.spec.d.ts +0 -2
- package/lib/services/oauth.spec.d.ts.map +0 -1
- package/lib/services/oauth.spec.js +0 -208
- package/lib/services/oauth.spec.js.map +0 -1
- package/lib/services/prometheus.d.ts.map +0 -1
- package/lib/services/prometheus.js +0 -160
- package/lib/services/prometheus.js.map +0 -1
- package/lib/services/prometheus.spec.d.ts +0 -2
- package/lib/services/prometheus.spec.d.ts.map +0 -1
- package/lib/services/prometheus.spec.js +0 -76
- package/lib/services/prometheus.spec.js.map +0 -1
- package/lib/services/resource.d.ts.map +0 -1
- package/lib/services/resource.js +0 -170
- package/lib/services/resource.js.map +0 -1
- package/lib/services/resource.spec.d.ts +0 -2
- package/lib/services/resource.spec.d.ts.map +0 -1
- package/lib/services/resource.spec.js +0 -140
- package/lib/services/resource.spec.js.map +0 -1
- package/lib/services/service.spec.d.ts +0 -2
- package/lib/services/service.spec.d.ts.map +0 -1
- package/lib/services/service.spec.js +0 -286
- package/lib/services/service.spec.js.map +0 -1
- package/lib/stores/aggregator.d.ts +0 -48
- package/lib/stores/aggregator.d.ts.map +0 -1
- package/lib/stores/aggregator.js +0 -80
- package/lib/stores/aggregator.js.map +0 -1
- package/lib/stores/file.d.ts +0 -108
- package/lib/stores/file.d.ts.map +0 -1
- package/lib/stores/file.js +0 -188
- package/lib/stores/file.js.map +0 -1
- package/lib/stores/file.spec.d.ts +0 -13
- package/lib/stores/file.spec.d.ts.map +0 -1
- package/lib/stores/file.spec.js +0 -138
- package/lib/stores/file.spec.js.map +0 -1
- package/lib/stores/mapper.d.ts +0 -150
- package/lib/stores/mapper.d.ts.map +0 -1
- package/lib/stores/mapper.js +0 -293
- package/lib/stores/mapper.js.map +0 -1
- package/lib/stores/mapper.spec.d.ts +0 -2
- package/lib/stores/mapper.spec.d.ts.map +0 -1
- package/lib/stores/mapper.spec.js +0 -167
- package/lib/stores/mapper.spec.js.map +0 -1
- package/lib/stores/memory.d.ts +0 -152
- package/lib/stores/memory.d.ts.map +0 -1
- package/lib/stores/memory.js +0 -371
- package/lib/stores/memory.js.map +0 -1
- package/lib/stores/memory.spec.d.ts +0 -14
- package/lib/stores/memory.spec.d.ts.map +0 -1
- package/lib/stores/memory.spec.js +0 -263
- package/lib/stores/memory.spec.js.map +0 -1
- package/lib/stores/modelmapper.d.ts +0 -62
- package/lib/stores/modelmapper.d.ts.map +0 -1
- package/lib/stores/modelmapper.js +0 -197
- package/lib/stores/modelmapper.js.map +0 -1
- package/lib/stores/store.spec.d.ts +0 -57
- package/lib/stores/store.spec.d.ts.map +0 -1
- package/lib/stores/store.spec.js +0 -737
- package/lib/stores/store.spec.js.map +0 -1
- package/lib/test.d.ts +0 -265
- package/lib/test.d.ts.map +0 -1
- package/lib/test.js +0 -622
- package/lib/test.js.map +0 -1
- package/lib/unpackedapplication.d.ts.map +0 -1
- package/lib/unpackedapplication.js +0 -350
- package/lib/unpackedapplication.js.map +0 -1
- package/lib/utils/abstractdeployer.spec.d.ts +0 -2
- package/lib/utils/abstractdeployer.spec.d.ts.map +0 -1
- package/lib/utils/abstractdeployer.spec.js +0 -21
- package/lib/utils/abstractdeployer.spec.js.map +0 -1
- package/lib/utils/case.d.ts +0 -8
- package/lib/utils/case.d.ts.map +0 -1
- package/lib/utils/case.js +0 -43
- package/lib/utils/case.js.map +0 -1
- package/lib/utils/case.spec.d.ts +0 -2
- package/lib/utils/case.spec.d.ts.map +0 -1
- package/lib/utils/case.spec.js +0 -50
- package/lib/utils/case.spec.js.map +0 -1
- package/lib/utils/context.d.ts +0 -482
- package/lib/utils/context.d.ts.map +0 -1
- package/lib/utils/context.js +0 -739
- package/lib/utils/context.js.map +0 -1
- package/lib/utils/context.spec.d.ts +0 -10
- package/lib/utils/context.spec.d.ts.map +0 -1
- package/lib/utils/context.spec.js +0 -383
- package/lib/utils/context.spec.js.map +0 -1
- package/lib/utils/cookie.d.ts.map +0 -1
- package/lib/utils/cookie.js.map +0 -1
- package/lib/utils/cookie.spec.d.ts +0 -2
- package/lib/utils/cookie.spec.d.ts.map +0 -1
- package/lib/utils/cookie.spec.js +0 -88
- package/lib/utils/cookie.spec.js.map +0 -1
- package/lib/utils/esm.d.ts +0 -14
- package/lib/utils/esm.d.ts.map +0 -1
- package/lib/utils/esm.js +0 -19
- package/lib/utils/esm.js.map +0 -1
- package/lib/utils/httpcontext.d.ts.map +0 -1
- package/lib/utils/httpcontext.js.map +0 -1
- package/lib/utils/httpcontext.spec.d.ts +0 -5
- package/lib/utils/httpcontext.spec.d.ts.map +0 -1
- package/lib/utils/httpcontext.spec.js +0 -77
- package/lib/utils/httpcontext.spec.js.map +0 -1
- package/lib/utils/logger.d.ts +0 -92
- package/lib/utils/logger.d.ts.map +0 -1
- package/lib/utils/logger.js +0 -121
- package/lib/utils/logger.js.map +0 -1
- package/lib/utils/logger.spec.d.ts +0 -2
- package/lib/utils/logger.spec.d.ts.map +0 -1
- package/lib/utils/logger.spec.js +0 -48
- package/lib/utils/logger.spec.js.map +0 -1
- package/lib/utils/serializers.d.ts +0 -162
- package/lib/utils/serializers.d.ts.map +0 -1
- package/lib/utils/serializers.js +0 -420
- package/lib/utils/serializers.js.map +0 -1
- package/lib/utils/serializers.spec.d.ts +0 -2
- package/lib/utils/serializers.spec.d.ts.map +0 -1
- package/lib/utils/serializers.spec.js +0 -311
- package/lib/utils/serializers.spec.js.map +0 -1
- package/lib/utils/session.d.ts +0 -123
- package/lib/utils/session.d.ts.map +0 -1
- package/lib/utils/session.js +0 -156
- package/lib/utils/session.js.map +0 -1
- package/lib/utils/session.spec.d.ts +0 -2
- package/lib/utils/session.spec.d.ts.map +0 -1
- package/lib/utils/session.spec.js +0 -81
- package/lib/utils/session.spec.js.map +0 -1
- package/lib/utils/throttler.d.ts +0 -99
- package/lib/utils/throttler.d.ts.map +0 -1
- package/lib/utils/throttler.js +0 -160
- package/lib/utils/throttler.js.map +0 -1
- package/lib/utils/throttler.spec.d.ts +0 -2
- package/lib/utils/throttler.spec.d.ts.map +0 -1
- package/lib/utils/throttler.spec.js +0 -53
- package/lib/utils/throttler.spec.js.map +0 -1
- package/lib/utils/waiter.d.ts +0 -94
- package/lib/utils/waiter.d.ts.map +0 -1
- package/lib/utils/waiter.js +0 -148
- package/lib/utils/waiter.js.map +0 -1
- package/lib/utils/waiter.spec.d.ts +0 -2
- package/lib/utils/waiter.spec.d.ts.map +0 -1
- package/lib/utils/waiter.spec.js +0 -98
- package/lib/utils/waiter.spec.js.map +0 -1
- package/test/jsonutils/mdocs.yaml +0 -56
- package/test/jsonutils/test.json +0 -3
- package/test/jsonutils/test.yml +0 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"simpleuser.model.js","sourceRoot":"","sources":["../../src/models/simpleuser.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAW,YAAY,EAAY,MAAM,eAAe,CAAC;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAEvC;;;;;GAKG;AACH,MAAM,OAAO,UAAW,SAAQ,IAAI;IAClC;;OAEG;IACH,YAAY,IAA2B;QACrC,KAAK,CAAC,IAAI,CAAC,CAAC;IACd,CAAC;IACD;;OAEG;IACH,OAAO,GAAa,EAAE,CAAC;IACvB;;OAEG;IACH,MAAM,GAAa,EAAE,CAAC;IACtB;;OAEG;IACM,OAAO,GAAuC,IAAI,YAAY,CAAC,KAAK,EAAE,IAAI,EAAE,OAAO,CAAuC,CAAC;IACpI;;;OAGG;IACH,SAAS;QACP,OAAO,IAAI,CAAC,O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IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACtC,IAAI,GAAG,GAAG,CAAC,EAAE,CAAC;YACZ,OAAO;QACT,CAAC;QACD,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;IAC7B,CAAC;IAED,gFAAgF;IAChF,MAAM;QACJ,MAAM,MAAM,GAAS,KAAK,CAAC,MAAkB,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACpE,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;YACpC,MAAM,CAAC,GAAG,CAAC,GAAI,IAAY,CAAC,GAAG,CAAC,CAAC;QACnC,CAAC;QACD,MAAM,CAAC,MAAM,CAAC,MAAM,EAAG,IAAY,CAAC,aAAa,CAAC,CAAC,CAAC;QACpD,OAAO,MAAM,CAAC;IAChB,CAAC;CACF"}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import type { ModelMetadata } from "@webda/compiler";
|
|
2
|
+
import type { Model, ModelClass } from "@webda/models";
|
|
3
|
+
import type { OmitByTypeRecursive } from "@webda/tsc-esm";
|
|
4
|
+
import type { HttpMethodType } from "../contexts/httpcontext.js";
|
|
5
|
+
import type { IContextAware } from "../contexts/icontext.js";
|
|
6
|
+
/**
|
|
7
|
+
* Add the @webda/core metadata on models
|
|
8
|
+
*/
|
|
9
|
+
export type ModelDefinition<T extends Model = Model> = ModelClass<T> & {
|
|
10
|
+
Metadata: ModelMetadata;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Expose parameters for the model
|
|
14
|
+
*/
|
|
15
|
+
export interface ExposeParameters {
|
|
16
|
+
/**
|
|
17
|
+
* If model have parent but you still want it to be exposed as root
|
|
18
|
+
* in domain-like service: DomainService, GraphQL
|
|
19
|
+
*
|
|
20
|
+
* It would create alias for the model in the root too
|
|
21
|
+
*/
|
|
22
|
+
root?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* You can select to not expose some methods like create, update, delete, get, query
|
|
25
|
+
*/
|
|
26
|
+
restrict: {
|
|
27
|
+
/**
|
|
28
|
+
* Create a new object
|
|
29
|
+
*/
|
|
30
|
+
create?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Update an existing object
|
|
33
|
+
*
|
|
34
|
+
* Includes PUT and PATCH
|
|
35
|
+
*/
|
|
36
|
+
update?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Query the object
|
|
39
|
+
*/
|
|
40
|
+
query?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Get a single object
|
|
43
|
+
*/
|
|
44
|
+
get?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Delete an object
|
|
47
|
+
*/
|
|
48
|
+
delete?: boolean;
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Reference to a user model
|
|
53
|
+
*/
|
|
54
|
+
export interface IUser extends Model {
|
|
55
|
+
/**
|
|
56
|
+
* Get the user email
|
|
57
|
+
*/
|
|
58
|
+
getEmail(): string | undefined;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Define a object that can define permission on attribute level
|
|
62
|
+
*/
|
|
63
|
+
export interface IAttributeLevelPermissionModel extends IContextAware {
|
|
64
|
+
attributePermission(attribute: string | symbol, value: any, action: "READ" | "WRITE"): any;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Define an Action on a model
|
|
68
|
+
*
|
|
69
|
+
* It is basically a method designed to be called by the API or external
|
|
70
|
+
* systems
|
|
71
|
+
*/
|
|
72
|
+
export interface ModelAction {
|
|
73
|
+
/**
|
|
74
|
+
* Method for the route
|
|
75
|
+
*
|
|
76
|
+
* By default ["PUT"]
|
|
77
|
+
*/
|
|
78
|
+
methods?: HttpMethodType[];
|
|
79
|
+
/**
|
|
80
|
+
* Define if the action is global or per object
|
|
81
|
+
*
|
|
82
|
+
* The method that implement the action must be called
|
|
83
|
+
* `_${actionName}`
|
|
84
|
+
*/
|
|
85
|
+
global?: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Additional openapi info
|
|
88
|
+
*/
|
|
89
|
+
openapi?: any;
|
|
90
|
+
/**
|
|
91
|
+
* Method of the action
|
|
92
|
+
*/
|
|
93
|
+
method?: string;
|
|
94
|
+
/**
|
|
95
|
+
* Name of the method implementing the action, when the action is exposed
|
|
96
|
+
* under another name with `@Action({ name })`
|
|
97
|
+
*/
|
|
98
|
+
handler?: string;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Define an export of actions from Model
|
|
102
|
+
*/
|
|
103
|
+
export type ModelActions = {
|
|
104
|
+
[key: string]: ModelAction;
|
|
105
|
+
};
|
|
106
|
+
/**
|
|
107
|
+
* Raw model without methods
|
|
108
|
+
*
|
|
109
|
+
* This is used to represent a model without methods and stripping out the helper methods
|
|
110
|
+
*/
|
|
111
|
+
export type RawModel<T extends object> = Partial<OmitByTypeRecursive<Omit<T, "__dirty" | "Events" | "__type" | "__types" | "_new" | "context">, Function>>;
|
|
112
|
+
export type { ModelGraphBinaryDefinition } from "@webda/compiler";
|
|
113
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/models/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAA8B,MAAM,iBAAiB,CAAC;AACjF,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAE7D;;GAEG;AACH,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,KAA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AM,IAAI,OAAO,CAC9C,mBAAmB,CAAC,IAAI,CAAC,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC,EAAE,QAAQ,CAAC,CACzG,CAAC;AAEF,YAAY,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/models/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { IOperationContext } from "../contexts/icontext.js";
|
|
2
|
+
import { type ModelEvents, type Settable, UuidModel, WEBDA_EVENTS } from "@webda/models";
|
|
3
|
+
export type UserEvents<T> = ModelEvents<T> & {
|
|
4
|
+
Login: {
|
|
5
|
+
user: T;
|
|
6
|
+
};
|
|
7
|
+
Logout: {
|
|
8
|
+
user: T;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* First basic model for User
|
|
13
|
+
* @class
|
|
14
|
+
* @WebdaModel
|
|
15
|
+
*/
|
|
16
|
+
export declare class User extends UuidModel {
|
|
17
|
+
[WEBDA_EVENTS]: UserEvents<this>;
|
|
18
|
+
/** Create a new User
|
|
19
|
+
* @param data - initial data
|
|
20
|
+
*/
|
|
21
|
+
constructor(data?: Settable<User>);
|
|
22
|
+
/**
|
|
23
|
+
* Password of the user if defined
|
|
24
|
+
*/
|
|
25
|
+
__password?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Display name for this user
|
|
28
|
+
* @optional
|
|
29
|
+
* @Frontend
|
|
30
|
+
*/
|
|
31
|
+
displayName: string;
|
|
32
|
+
/**
|
|
33
|
+
* Last time the password was recovered
|
|
34
|
+
*/
|
|
35
|
+
_lastPasswordRecovery?: number;
|
|
36
|
+
/**
|
|
37
|
+
* Define the user avatar if exists
|
|
38
|
+
*/
|
|
39
|
+
_avatar?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Contains the locale of the user if known
|
|
42
|
+
*/
|
|
43
|
+
locale?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Contain main user email if exists
|
|
46
|
+
*/
|
|
47
|
+
email?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Return displayable public entry
|
|
50
|
+
* @returns the result
|
|
51
|
+
* @Frontend
|
|
52
|
+
*/
|
|
53
|
+
toPublicEntry(): any;
|
|
54
|
+
/**
|
|
55
|
+
* Get email
|
|
56
|
+
* @returns the result
|
|
57
|
+
*/
|
|
58
|
+
getEmail(): string | undefined;
|
|
59
|
+
/**
|
|
60
|
+
* Get user groups
|
|
61
|
+
* @returns the list of results
|
|
62
|
+
*/
|
|
63
|
+
getGroups(): string[];
|
|
64
|
+
/**
|
|
65
|
+
* Get roles
|
|
66
|
+
* @returns the list of results
|
|
67
|
+
*/
|
|
68
|
+
getRoles(): string[];
|
|
69
|
+
/**
|
|
70
|
+
* Get display name
|
|
71
|
+
* @returns the result string
|
|
72
|
+
*/
|
|
73
|
+
getDisplayName(): string;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @param timestamp - the timestamp
|
|
77
|
+
* @returns true if the condition is met
|
|
78
|
+
*/
|
|
79
|
+
lastPasswordRecoveryBefore(timestamp: number): boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Get the password
|
|
82
|
+
* @returns the result
|
|
83
|
+
*/
|
|
84
|
+
getPassword(): string;
|
|
85
|
+
/**
|
|
86
|
+
* Set the user password hash
|
|
87
|
+
* @param password - the password
|
|
88
|
+
*/
|
|
89
|
+
setPassword(password: string): void;
|
|
90
|
+
/**
|
|
91
|
+
* Only the user themselves can act on their own object
|
|
92
|
+
* @param ctx - the operation context
|
|
93
|
+
* @param action - the action to check
|
|
94
|
+
* @returns the result
|
|
95
|
+
*/
|
|
96
|
+
canAct(ctx: IOperationContext, action: string): Promise<string | boolean>;
|
|
97
|
+
/**
|
|
98
|
+
* String representation of the user
|
|
99
|
+
* @returns the result
|
|
100
|
+
*/
|
|
101
|
+
toString(): string;
|
|
102
|
+
}
|
|
103
|
+
//# sourceMappingURL=user.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.model.d.ts","sourceRoot":"","sources":["../../src/models/user.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,QAAQ,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAEzF,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,GAAG;IAC3C,KAAK,EAAE;QAAE,IAAI,EAAE,CAAC,CAAA;KAAE,CAAC;IACnB,MAAM,EAAE;QAAE,IAAI,EAAE,CAAC,CAAA;KAAE,CAAC;CACrB,CAAC;AACF;;;;GAIG;AACH,qBAAa,IAAK,SAAQ,SAAS;IACjC,CAAC,YAAY,CAAC,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC;IACjC;;OAEG;IACH,YAAY,IAAI,CAAC,EAAE,QAAQ,CAAC,IAAI,CAAC,EAGhC;IAED;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAK;IAEnC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;OAIG;IACH,aAAa,IAAI,GAAG,CAOnB;IAED;;;OAGG;IACH,QAAQ,IAAI,MAAM,GAAG,SAAS,CAE7B;IAED;;;OAGG;IACH,SAAS,IAAI,MAAM,EAAE,CAEpB;IAED;;;OAGG;IACH,QAAQ,IAAI,MAAM,EAAE,CAEnB;IAED;;;OAGG;IACH,cAAc,IAAI,MAAM,CAEvB;IAED;;;;OAIG;IACH,0BAA0B,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAErD;IAED;;;OAGG;IACH,WAAW,WAEV;IAED;;;OAGG;IACH,WAAW,CAAC,QAAQ,EAAE,MAAM,QAE3B;IAED;;;;;OAKG;IACG,MAAM,CAAC,GAAG,EAAE,iBAAiB,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,OAAO,CAAC,CAK9E;IAED;;;OAGG;IACH,QAAQ,WAEP;CACF"}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { UuidModel, WEBDA_EVENTS } from "@webda/models";
|
|
2
|
+
/**
|
|
3
|
+
* First basic model for User
|
|
4
|
+
* @class
|
|
5
|
+
* @WebdaModel
|
|
6
|
+
*/
|
|
7
|
+
export class User extends UuidModel {
|
|
8
|
+
[WEBDA_EVENTS];
|
|
9
|
+
/** Create a new User
|
|
10
|
+
* @param data - initial data
|
|
11
|
+
*/
|
|
12
|
+
constructor(data) {
|
|
13
|
+
super();
|
|
14
|
+
Object.assign(this, data);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Password of the user if defined
|
|
18
|
+
*/
|
|
19
|
+
__password;
|
|
20
|
+
/**
|
|
21
|
+
* Display name for this user
|
|
22
|
+
* @optional
|
|
23
|
+
* @Frontend
|
|
24
|
+
*/
|
|
25
|
+
displayName;
|
|
26
|
+
/**
|
|
27
|
+
* Last time the password was recovered
|
|
28
|
+
*/
|
|
29
|
+
_lastPasswordRecovery = 0;
|
|
30
|
+
/**
|
|
31
|
+
* Define the user avatar if exists
|
|
32
|
+
*/
|
|
33
|
+
_avatar;
|
|
34
|
+
/**
|
|
35
|
+
* Contains the locale of the user if known
|
|
36
|
+
*/
|
|
37
|
+
locale;
|
|
38
|
+
/**
|
|
39
|
+
* Contain main user email if exists
|
|
40
|
+
*/
|
|
41
|
+
email;
|
|
42
|
+
/**
|
|
43
|
+
* Return displayable public entry
|
|
44
|
+
* @returns the result
|
|
45
|
+
* @Frontend
|
|
46
|
+
*/
|
|
47
|
+
toPublicEntry() {
|
|
48
|
+
return {
|
|
49
|
+
displayName: this.displayName,
|
|
50
|
+
uuid: this.getUUID(),
|
|
51
|
+
avatar: this._avatar,
|
|
52
|
+
email: this.getEmail()
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Get email
|
|
57
|
+
* @returns the result
|
|
58
|
+
*/
|
|
59
|
+
getEmail() {
|
|
60
|
+
return this.email;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Get user groups
|
|
64
|
+
* @returns the list of results
|
|
65
|
+
*/
|
|
66
|
+
getGroups() {
|
|
67
|
+
return [];
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Get roles
|
|
71
|
+
* @returns the list of results
|
|
72
|
+
*/
|
|
73
|
+
getRoles() {
|
|
74
|
+
return [];
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Get display name
|
|
78
|
+
* @returns the result string
|
|
79
|
+
*/
|
|
80
|
+
getDisplayName() {
|
|
81
|
+
return this.displayName;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @param timestamp - the timestamp
|
|
86
|
+
* @returns true if the condition is met
|
|
87
|
+
*/
|
|
88
|
+
lastPasswordRecoveryBefore(timestamp) {
|
|
89
|
+
return this._lastPasswordRecovery < timestamp;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Get the password
|
|
93
|
+
* @returns the result
|
|
94
|
+
*/
|
|
95
|
+
getPassword() {
|
|
96
|
+
return this.__password;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Set the user password hash
|
|
100
|
+
* @param password - the password
|
|
101
|
+
*/
|
|
102
|
+
setPassword(password) {
|
|
103
|
+
this.__password = password;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Only the user themselves can act on their own object
|
|
107
|
+
* @param ctx - the operation context
|
|
108
|
+
* @param action - the action to check
|
|
109
|
+
* @returns the result
|
|
110
|
+
*/
|
|
111
|
+
async canAct(ctx, action) {
|
|
112
|
+
if (!ctx.getCurrentUserId() || ctx.getCurrentUserId() !== this.getUUID()) {
|
|
113
|
+
return "You can't act on this user";
|
|
114
|
+
}
|
|
115
|
+
return true;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* String representation of the user
|
|
119
|
+
* @returns the result
|
|
120
|
+
*/
|
|
121
|
+
toString() {
|
|
122
|
+
return `User[${this.getUUID()}]`;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
//# sourceMappingURL=user.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.model.js","sourceRoot":"","sources":["../../src/models/user.model.ts"],"names":[],"mappings":"AACA,OAAO,EAAmC,SAAS,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAMzF;;;;GAIG;AACH,MAAM,OAAO,IAAK,SAAQ,SAAS;IACjC,CAAC,YAAY,CAAC,CAAmB;IACjC;;OAEG;IACH,YAAY,IAAqB;QAC/B,KAAK,EAAE,CAAC;QACR,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC5B,CAAC;IAED;;OAEG;IACH,UAAU,CAAU;IACpB;;;;OAIG;IACH,WAAW,CAAS;IACpB;;OAEG;IACH,qBAAqB,GAAY,CAAC,CAAC;IAEnC;;OAEG;IACH,OAAO,CAAU;IACjB;;OAEG;IACH,MAAM,CAAU;IAChB;;OAEG;IACH,KAAK,CAAU;IAEf;;;;OAIG;IACH,aAAa;QACX,OAAO;YACL,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,IAAI,EAAE,IAAI,CAAC,OAAO,EAAE;YACpB,MAAM,EAAE,IAAI,CAAC,OAAO;YACpB,KAAK,EAAE,IAAI,CAAC,QAAQ,EAAE;SACvB,CAAC;IACJ,CAAC;IAED;;;OAGG;IACH,QAAQ;QACN,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAED;;;OAGG;IACH,SAAS;QACP,OAAO,EAAE,CAAC;IACZ,CAAC;IAED;;;OAGG;IACH,QAAQ;QACN,OAAO,EAAE,CAAC;IACZ,CAAC;IAED;;;OAGG;IACH,cAAc;QACZ,OAAO,IAAI,CAAC,WAAW,CAAC;IAC1B,CAAC;IAED;;;;OAIG;IACH,0BAA0B,CAAC,SAAiB;QAC1C,OAAO,IAAI,CAAC,qBAAqB,GAAG,SAAS,CAAC;IAChD,CAAC;IAED;;;OAGG;IACH,WAAW;QACT,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAED;;;OAGG;IACH,WAAW,CAAC,QAAgB;QAC1B,IAAI,CAAC,UAAU,GAAG,QAAQ,CAAC;IAC7B,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CAAC,GAAsB,EAAE,MAAc;QACjD,IAAI,CAAC,GAAG,CAAC,gBAAgB,EAAE,IAAI,GAAG,CAAC,gBAAgB,EAAE,KAAK,IAAI,CAAC,OAAO,EAAE,EAAE,CAAC;YACzE,OAAO,4BAA4B,CAAC;QACtC,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;OAGG;IACH,QAAQ;QACN,OAAO,QAAQ,IAAI,CAAC,OAAO,EAAE,GAAG,CAAC;IACnC,CAAC;CACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { type MessageReceipt, Queue, QueueParameters } from "./queueservice.js";
|
|
2
|
+
/** Parameters for the in-memory FIFO queue, including message expiration and receive timeout */
|
|
3
3
|
export declare class MemoryQueueParameters extends QueueParameters {
|
|
4
4
|
/**
|
|
5
5
|
* Number of seconds before droping message
|
|
@@ -7,7 +7,26 @@ export declare class MemoryQueueParameters extends QueueParameters {
|
|
|
7
7
|
* @default 30
|
|
8
8
|
*/
|
|
9
9
|
expire?: number;
|
|
10
|
-
|
|
10
|
+
/**
|
|
11
|
+
* Number of seconds to wait for receiving new message
|
|
12
|
+
*/
|
|
13
|
+
timeout?: number;
|
|
14
|
+
/**
|
|
15
|
+
* Load parameters with defaults for expiration and timeout
|
|
16
|
+
* @param params - the service parameters
|
|
17
|
+
* @returns this for chaining
|
|
18
|
+
*/
|
|
19
|
+
load(params?: any): this;
|
|
20
|
+
/**
|
|
21
|
+
* Get the expiration delay in milliseconds
|
|
22
|
+
* @returns the result number
|
|
23
|
+
*/
|
|
24
|
+
get expireMs(): number;
|
|
25
|
+
/**
|
|
26
|
+
* Get the receive timeout in milliseconds
|
|
27
|
+
* @returns the result number
|
|
28
|
+
*/
|
|
29
|
+
get timeoutMs(): number;
|
|
11
30
|
}
|
|
12
31
|
/**
|
|
13
32
|
* FIFO Queue in Memory
|
|
@@ -20,15 +39,9 @@ export declare class MemoryQueue<T = any, K extends MemoryQueueParameters = Memo
|
|
|
20
39
|
* Allow to cancel timeout
|
|
21
40
|
*/
|
|
22
41
|
private pendingReads;
|
|
23
|
-
/**
|
|
24
|
-
* Load parameters
|
|
25
|
-
*
|
|
26
|
-
* @param params
|
|
27
|
-
* @ignore
|
|
28
|
-
*/
|
|
29
|
-
loadParameters(params: any): ServiceParameters;
|
|
30
42
|
/**
|
|
31
43
|
* Return queue size
|
|
44
|
+
* @returns the result number
|
|
32
45
|
*/
|
|
33
46
|
size(): Promise<number>;
|
|
34
47
|
/**
|
|
@@ -42,13 +55,13 @@ export declare class MemoryQueue<T = any, K extends MemoryQueueParameters = Memo
|
|
|
42
55
|
new (): L;
|
|
43
56
|
}): MessageReceipt<L>[];
|
|
44
57
|
/**
|
|
45
|
-
* @
|
|
58
|
+
* @override
|
|
46
59
|
*/
|
|
47
60
|
receiveMessage<L>(proto?: {
|
|
48
61
|
new (): L;
|
|
49
62
|
}): Promise<MessageReceipt<L>[]>;
|
|
50
63
|
/**
|
|
51
|
-
* @
|
|
64
|
+
* @override
|
|
52
65
|
*/
|
|
53
66
|
deleteMessage(receipt: any): Promise<void>;
|
|
54
67
|
/**
|
|
@@ -56,4 +69,4 @@ export declare class MemoryQueue<T = any, K extends MemoryQueueParameters = Memo
|
|
|
56
69
|
*/
|
|
57
70
|
__clean(): Promise<void>;
|
|
58
71
|
}
|
|
59
|
-
//# sourceMappingURL=memoryqueue.d.ts.map
|
|
72
|
+
//# sourceMappingURL=memoryqueue.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memoryqueue.service.d.ts","sourceRoot":"","sources":["../../src/queues/memoryqueue.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAMhF,gGAAgG;AAChG,qBAAa,qBAAsB,SAAQ,eAAe;IACxD;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;;OAIG;IACH,IAAI,CAAC,MAAM,GAAE,GAAQ,GAAG,IAAI,CAI3B;IAED;;;OAGG;IACH,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED;;;OAGG;IACH,IAAI,SAAS,IAAI,MAAM,CAEtB;CACF;AAED;;;;GAIG;AACH,qBAAa,WAAW,CAAC,CAAC,GAAG,GAAG,EAAE,CAAC,SAAS,qBAAqB,GAAG,qBAAqB,CAAE,SAAQ,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC;IAC5G,OAAO,CAAC,MAAM,CAAgB;IAC9B;;OAEG;IACH,OAAO,CAAC,YAAY,CAAsB;IAE1C;;;OAGG;IACG,IAAI,IAAI,OAAO,CAAC,MAAM,CAAC,CAE5B;IAED;;OAEG;IACG,WAAW,CAAC,MAAM,KAAA,iBAevB;IAED;;OAEG;IACH,OAAO,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE;QAAE,QAAQ,CAAC,CAAA;KAAE,GAAG,cAAc,CAAC,CAAC,CAAC,EAAE,CAcrD;IAED;;OAEG;IACG,cAAc,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE;QAAE,QAAQ,CAAC,CAAA;KAAE,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,CAqB3E;IAED;;OAEG;IACG,aAAa,CAAC,OAAO,KAAA,iBAI1B;IAED;;OAEG;IACG,OAAO,kBAEZ;CACF"}
|
|
@@ -1,11 +1,41 @@
|
|
|
1
1
|
import { randomUUID } from "crypto";
|
|
2
|
-
import { JSONUtils } from "
|
|
2
|
+
import { JSONUtils } from "@webda/utils";
|
|
3
3
|
import { Queue, QueueParameters } from "./queueservice.js";
|
|
4
|
+
/** Parameters for the in-memory FIFO queue, including message expiration and receive timeout */
|
|
4
5
|
export class MemoryQueueParameters extends QueueParameters {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Number of seconds before droping message
|
|
8
|
+
*
|
|
9
|
+
* @default 30
|
|
10
|
+
*/
|
|
11
|
+
expire;
|
|
12
|
+
/**
|
|
13
|
+
* Number of seconds to wait for receiving new message
|
|
14
|
+
*/
|
|
15
|
+
timeout;
|
|
16
|
+
/**
|
|
17
|
+
* Load parameters with defaults for expiration and timeout
|
|
18
|
+
* @param params - the service parameters
|
|
19
|
+
* @returns this for chaining
|
|
20
|
+
*/
|
|
21
|
+
load(params = {}) {
|
|
22
|
+
super.load(params);
|
|
23
|
+
this.expire ??= 30;
|
|
24
|
+
return this;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Get the expiration delay in milliseconds
|
|
28
|
+
* @returns the result number
|
|
29
|
+
*/
|
|
30
|
+
get expireMs() {
|
|
31
|
+
return (this.expire || 30) * 1000;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Get the receive timeout in milliseconds
|
|
35
|
+
* @returns the result number
|
|
36
|
+
*/
|
|
37
|
+
get timeoutMs() {
|
|
38
|
+
return (this.timeout || 0) * 1000;
|
|
9
39
|
}
|
|
10
40
|
}
|
|
11
41
|
/**
|
|
@@ -14,25 +44,14 @@ export class MemoryQueueParameters extends QueueParameters {
|
|
|
14
44
|
* @WebdaModda
|
|
15
45
|
*/
|
|
16
46
|
export class MemoryQueue extends Queue {
|
|
17
|
-
|
|
18
|
-
super(...arguments);
|
|
19
|
-
this._queue = {};
|
|
20
|
-
/**
|
|
21
|
-
* Allow to cancel timeout
|
|
22
|
-
*/
|
|
23
|
-
this.pendingReads = [];
|
|
24
|
-
}
|
|
47
|
+
_queue = {};
|
|
25
48
|
/**
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
* @param params
|
|
29
|
-
* @ignore
|
|
49
|
+
* Allow to cancel timeout
|
|
30
50
|
*/
|
|
31
|
-
|
|
32
|
-
return new MemoryQueueParameters(params);
|
|
33
|
-
}
|
|
51
|
+
pendingReads = [];
|
|
34
52
|
/**
|
|
35
53
|
* Return queue size
|
|
54
|
+
* @returns the result number
|
|
36
55
|
*/
|
|
37
56
|
async size() {
|
|
38
57
|
return Object.keys(this._queue).length;
|
|
@@ -60,9 +79,10 @@ export class MemoryQueue extends Queue {
|
|
|
60
79
|
* @override
|
|
61
80
|
*/
|
|
62
81
|
getItem(proto) {
|
|
82
|
+
const time = Date.now();
|
|
63
83
|
for (const i in this._queue) {
|
|
64
|
-
if (this._queue[i].Claimed <
|
|
65
|
-
this._queue[i].Claimed =
|
|
84
|
+
if (this._queue[i].Claimed < time - this.parameters.expireMs) {
|
|
85
|
+
this._queue[i].Claimed = time;
|
|
66
86
|
return [
|
|
67
87
|
{
|
|
68
88
|
ReceiptHandle: this._queue[i].ReceiptHandle,
|
|
@@ -74,28 +94,32 @@ export class MemoryQueue extends Queue {
|
|
|
74
94
|
return [];
|
|
75
95
|
}
|
|
76
96
|
/**
|
|
77
|
-
* @
|
|
97
|
+
* @override
|
|
78
98
|
*/
|
|
79
99
|
async receiveMessage(proto) {
|
|
80
100
|
const items = this.getItem(proto);
|
|
81
101
|
if (items.length > 0) {
|
|
82
102
|
return items;
|
|
83
103
|
}
|
|
84
|
-
// We wait
|
|
104
|
+
// We wait before returning an empty array or a message if interrupted
|
|
85
105
|
await new Promise(resolve => {
|
|
86
|
-
const timeout =
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
106
|
+
const timeout = this.parameters.timeoutMs
|
|
107
|
+
? setTimeout(() => {
|
|
108
|
+
this.pendingReads = this.pendingReads.filter(r => r !== resolve);
|
|
109
|
+
resolve();
|
|
110
|
+
}, this.parameters.timeoutMs)
|
|
111
|
+
: undefined;
|
|
90
112
|
this.pendingReads.push(() => {
|
|
91
|
-
|
|
113
|
+
if (timeout) {
|
|
114
|
+
clearTimeout(timeout);
|
|
115
|
+
}
|
|
92
116
|
resolve();
|
|
93
117
|
});
|
|
94
118
|
});
|
|
95
119
|
return this.getItem();
|
|
96
120
|
}
|
|
97
121
|
/**
|
|
98
|
-
* @
|
|
122
|
+
* @override
|
|
99
123
|
*/
|
|
100
124
|
async deleteMessage(receipt) {
|
|
101
125
|
if (this._queue[receipt]) {
|
|
@@ -109,4 +133,4 @@ export class MemoryQueue extends Queue {
|
|
|
109
133
|
this._queue = {};
|
|
110
134
|
}
|
|
111
135
|
}
|
|
112
|
-
//# sourceMappingURL=memoryqueue.js.map
|
|
136
|
+
//# sourceMappingURL=memoryqueue.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memoryqueue.service.js","sourceRoot":"","sources":["../../src/queues/memoryqueue.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAuB,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAMhF,gGAAgG;AAChG,MAAM,OAAO,qBAAsB,SAAQ,eAAe;IACxD;;;;OAIG;IACH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AC;YACd,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC1B,IAAI,OAAO,EAAE,CAAC;oBACZ,YAAY,CAAC,OAAO,CAAC,CAAC;gBACxB,CAAC;gBACD,OAAO,EAAE,CAAC;YACZ,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;QACH,OAAO,IAAI,CAAC,OAAO,EAAE,CAAC;IACxB,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,aAAa,CAAC,OAAO;QACzB,IAAI,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC;YACzB,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAC9B,CAAC;IACH,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,OAAO;QACX,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC;IACnB,CAAC;CACF"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { Counter, Gauge, Histogram } from "../
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Counter, Gauge, Histogram } from "../metrics/metrics.js";
|
|
2
|
+
import { ServiceParameters } from "../services/serviceparameters.js";
|
|
3
|
+
import { Service } from "../services/service.js";
|
|
4
|
+
import { CancelablePromise } from "@webda/utils";
|
|
5
|
+
/** Abstract base for publish/subscribe messaging services with metrics tracking */
|
|
4
6
|
export default abstract class PubSubService<T = any, K extends ServiceParameters = ServiceParameters> extends Service<K> {
|
|
5
7
|
/**
|
|
6
8
|
* @override
|
|
@@ -23,9 +25,9 @@ export default abstract class PubSubService<T = any, K extends ServiceParameters
|
|
|
23
25
|
abstract sendMessage(event: T): Promise<void>;
|
|
24
26
|
/**
|
|
25
27
|
* Unserialize into class
|
|
26
|
-
* @param data
|
|
27
|
-
* @param proto
|
|
28
|
-
* @returns
|
|
28
|
+
* @param data - the data to process
|
|
29
|
+
* @param proto - the proto
|
|
30
|
+
* @returns the result
|
|
29
31
|
*/
|
|
30
32
|
unserialize<L>(data: string, proto?: {
|
|
31
33
|
new (): L;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pubsubservice.d.ts","sourceRoot":"","sources":["../../src/queues/pubsubservice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"pubsubservice.d.ts","sourceRoot":"","sources":["../../src/queues/pubsubservice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEjD,mFAAmF;AACnF,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,aAAa,CACzC,CAAC,GAAG,GAAG,EACP,CAAC,SAAS,iBAAiB,GAAG,iBAAiB,CAC/C,SAAQ,OAAO,CAAC,CAAC,CAAC;IAClB;;OAEG;IACH,UAAkB,OAAO,EAAE;QACzB,MAAM,EAAE,OAAO,CAAC;QAChB,mBAAmB,EAAE,SAAS,CAAC;QAC/B,aAAa,EAAE,OAAO,CAAC;QACvB,iBAAiB,EAAE,OAAO,CAAC;QAC3B,gBAAgB,EAAE,KAAK,CAAC;KACzB,CAAC;IACF;;OAEG;IACH,WAAW,IAAI,IAAI,CAsBlB;IACD;;;OAGG;IACH,QAAQ,CAAC,WAAW,CAAC,KAAK,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE9C;;;;;OAKG;IACH,WAAW,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE;QAAE,QAAQ,CAAC,CAAA;KAAE,GAAG,CAAC,CAKrD;IAED;;;OAGG;IACH,QAAQ,CAAC,IAAI,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAEjC;;;;OAIG;IACH,QAAQ,CAAC,OAAO,CACd,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,EACrC,cAAc,CAAC,EAAE;QAAE,QAAQ,CAAC,CAAA;KAAE,EAC9B,MAAM,CAAC,EAAE,MAAM,IAAI,GAClB,iBAAiB,CAAC;CACtB;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Counter, Gauge, Histogram } from "../
|
|
1
|
+
import { Counter, Gauge, Histogram } from "../metrics/metrics.js";
|
|
2
2
|
import { Service } from "../services/service.js";
|
|
3
|
+
/** Abstract base for publish/subscribe messaging services with metrics tracking */
|
|
3
4
|
export default class PubSubService extends Service {
|
|
4
5
|
/**
|
|
5
6
|
* @override
|
|
@@ -29,9 +30,9 @@ export default class PubSubService extends Service {
|
|
|
29
30
|
}
|
|
30
31
|
/**
|
|
31
32
|
* Unserialize into class
|
|
32
|
-
* @param data
|
|
33
|
-
* @param proto
|
|
34
|
-
* @returns
|
|
33
|
+
* @param data - the data to process
|
|
34
|
+
* @param proto - the proto
|
|
35
|
+
* @returns the result
|
|
35
36
|
*/
|
|
36
37
|
unserialize(data, proto) {
|
|
37
38
|
if (proto) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pubsubservice.js","sourceRoot":"","sources":["../../src/queues/pubsubservice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"pubsubservice.js","sourceRoot":"","sources":["../../src/queues/pubsubservice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElE,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAGjD,mFAAmF;AACnF,MAAM,CAAC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