@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
package/lib/stores/file.js
DELETED
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
import * as fs from "fs";
|
|
2
|
-
import * as path from "path";
|
|
3
|
-
import { JSONUtils } from "../utils/serializers.js";
|
|
4
|
-
import { Store, StoreNotFoundError, StoreParameters } from "./store.js";
|
|
5
|
-
class FileStoreParameters extends StoreParameters {
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Simple file storage of object
|
|
9
|
-
*
|
|
10
|
-
* Storage structure
|
|
11
|
-
* /folder/{uuid}
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* Parameters:
|
|
15
|
-
* folder: to store to
|
|
16
|
-
*
|
|
17
|
-
* @category CoreServices
|
|
18
|
-
* @WebdaModda
|
|
19
|
-
*/
|
|
20
|
-
class FileStore extends Store {
|
|
21
|
-
/**
|
|
22
|
-
* Load the parameters for a service
|
|
23
|
-
*/
|
|
24
|
-
loadParameters(params) {
|
|
25
|
-
return new FileStoreParameters(params, this);
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Create the storage folder if does not exist
|
|
29
|
-
*/
|
|
30
|
-
computeParameters() {
|
|
31
|
-
super.computeParameters();
|
|
32
|
-
if (!fs.existsSync(this.parameters.folder)) {
|
|
33
|
-
fs.mkdirSync(this.parameters.folder);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Get the file path of an object
|
|
38
|
-
* @param uid of the object
|
|
39
|
-
* @returns
|
|
40
|
-
*/
|
|
41
|
-
file(uid) {
|
|
42
|
-
return `${this.parameters.folder}/${uid}${FileStore.EXTENSION}`;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* @override
|
|
46
|
-
*/
|
|
47
|
-
async _exists(uid) {
|
|
48
|
-
return fs.existsSync(this.file(uid));
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* @override
|
|
52
|
-
*/
|
|
53
|
-
async find(query) {
|
|
54
|
-
const files = fs
|
|
55
|
-
.readdirSync(this.parameters.folder)
|
|
56
|
-
.filter(file => {
|
|
57
|
-
return !fs.statSync(path.join(this.parameters.folder, file)).isDirectory();
|
|
58
|
-
})
|
|
59
|
-
.map(f => f.substring(0, f.length - FileStore.EXTENSION.length))
|
|
60
|
-
.sort();
|
|
61
|
-
return this.simulateFind(query, files);
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* @override
|
|
65
|
-
*/
|
|
66
|
-
async _save(object) {
|
|
67
|
-
fs.writeFileSync(this.file(object.getUuid()), JSON.stringify(object.toStoredJSON(), undefined, this.parameters.beautify));
|
|
68
|
-
return object;
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* @inheritdoc
|
|
72
|
-
*/
|
|
73
|
-
async _upsertItemToCollection(uid, prop, item, index, itemWriteCondition, itemWriteConditionField, updateDate) {
|
|
74
|
-
try {
|
|
75
|
-
// Need to keep sync to avoid conflicts
|
|
76
|
-
return await this.simulateUpsertItemToCollection(this.initModel(JSONUtils.loadFile(this.file(uid))), prop, item, updateDate, index, itemWriteCondition, itemWriteConditionField);
|
|
77
|
-
}
|
|
78
|
-
catch (err) {
|
|
79
|
-
throw new StoreNotFoundError(uid, this.getName());
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* @inheritdoc
|
|
84
|
-
*/
|
|
85
|
-
async _removeAttribute(uuid, attribute, writeCondition, writeConditionField) {
|
|
86
|
-
const res = await this._get(uuid, true);
|
|
87
|
-
this.checkUpdateCondition(res, writeConditionField, writeCondition);
|
|
88
|
-
delete res[attribute];
|
|
89
|
-
await this._save(res);
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* @inheritdoc
|
|
93
|
-
*/
|
|
94
|
-
async _deleteItemFromCollection(uid, prop, index, itemWriteCondition, itemWriteConditionField, updateDate) {
|
|
95
|
-
const res = await this._get(uid, true);
|
|
96
|
-
this.checkCollectionUpdateCondition(res, prop, itemWriteConditionField, itemWriteCondition, index);
|
|
97
|
-
res[prop].splice(index, 1);
|
|
98
|
-
res._lastUpdate = updateDate;
|
|
99
|
-
return this._save(res);
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* @inheritdoc
|
|
103
|
-
*/
|
|
104
|
-
async _delete(uid) {
|
|
105
|
-
const filePath = this.file(uid);
|
|
106
|
-
if (fs.existsSync(filePath)) {
|
|
107
|
-
fs.unlinkSync(filePath);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* @inheritdoc
|
|
112
|
-
*/
|
|
113
|
-
async _patch(object, uid, writeCondition, writeConditionField) {
|
|
114
|
-
const stored = await this._get(uid, true);
|
|
115
|
-
this.checkUpdateCondition(stored, writeConditionField, writeCondition);
|
|
116
|
-
for (const prop in object) {
|
|
117
|
-
stored[prop] = object[prop];
|
|
118
|
-
}
|
|
119
|
-
return this._save(stored);
|
|
120
|
-
}
|
|
121
|
-
/**
|
|
122
|
-
* @override
|
|
123
|
-
*/
|
|
124
|
-
async _update(object, uid, writeCondition, writeConditionField) {
|
|
125
|
-
const stored = await this._get(uid, true);
|
|
126
|
-
this.checkUpdateCondition(stored, writeConditionField, writeCondition);
|
|
127
|
-
return this._save(this.initModel(object));
|
|
128
|
-
}
|
|
129
|
-
/**
|
|
130
|
-
* @override
|
|
131
|
-
*/
|
|
132
|
-
async getAll(uids) {
|
|
133
|
-
if (!uids) {
|
|
134
|
-
uids = [];
|
|
135
|
-
const files = fs.readdirSync(this.parameters.folder);
|
|
136
|
-
for (const file in files) {
|
|
137
|
-
uids.push(files[file].substring(0, files[file].length - FileStore.EXTENSION.length));
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
const result = [];
|
|
141
|
-
for (const i in uids) {
|
|
142
|
-
const model = this._get(uids[i]);
|
|
143
|
-
result.push(model);
|
|
144
|
-
}
|
|
145
|
-
return (await Promise.all(result)).filter(f => f !== undefined);
|
|
146
|
-
}
|
|
147
|
-
/**
|
|
148
|
-
* @override
|
|
149
|
-
*/
|
|
150
|
-
async _get(uid, raiseIfNotFound = false) {
|
|
151
|
-
const res = await this.exists(uid);
|
|
152
|
-
if (res) {
|
|
153
|
-
const data = JSON.parse(fs.readFileSync(this.file(uid)).toString());
|
|
154
|
-
if (data.__type !== this._modelType && this.parameters.strict) {
|
|
155
|
-
return undefined;
|
|
156
|
-
}
|
|
157
|
-
return this.initModel(data);
|
|
158
|
-
}
|
|
159
|
-
else if (raiseIfNotFound) {
|
|
160
|
-
throw new StoreNotFoundError(uid, this.getName());
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
/**
|
|
164
|
-
* @override
|
|
165
|
-
*/
|
|
166
|
-
async _incrementAttributes(uid, params, updateDate) {
|
|
167
|
-
const stored = await this._get(uid, true);
|
|
168
|
-
params.forEach(({ property: prop, value }) => {
|
|
169
|
-
if (stored[prop] === undefined) {
|
|
170
|
-
stored[prop] = 0;
|
|
171
|
-
}
|
|
172
|
-
stored._lastUpdate = updateDate;
|
|
173
|
-
stored[prop] += value;
|
|
174
|
-
});
|
|
175
|
-
stored._lastUpdate = updateDate;
|
|
176
|
-
return this._save(stored);
|
|
177
|
-
}
|
|
178
|
-
/**
|
|
179
|
-
* @override
|
|
180
|
-
*/
|
|
181
|
-
async __clean() {
|
|
182
|
-
// This is only during test
|
|
183
|
-
(await import("fs-extra")).emptyDirSync(this.parameters.folder);
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
FileStore.EXTENSION = ".json";
|
|
187
|
-
export { FileStore };
|
|
188
|
-
//# sourceMappingURL=file.js.map
|
package/lib/stores/file.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"file.js","sourceRoot":"","sources":["../../src/stores/file.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAE7B,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,KAAK,EAAmB,kBAAkB,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAGtF,MAAM,mBAAoB,SAAQ,eAAe;CAiBhD;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,SAAgG,SAAQ,KAG7G;IAGC;;OAEG;IACH,cAAc,CAAC,MAAW;QACxB,OAAO,IAAI,mBAAmB,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IAC/C,CAAC;IAED;;OAEG;IACH,iBAAiB;QACf,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC1B,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC;YAC3C,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;QACvC,CAAC;IACH,CAAC;IAED;;;;OAIG;IACH,IAAI,CAAC,GAAG;QACN,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,IAAI,GAAG,GAAG,SAAS,CAAC,SAAS,EAAE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CAAC;IAED;;OAEG;IACH,KAAK,CAAC,oBAAoB,CACxB,GAAW,EACX,MAA6C,EAC7C,UAAgB;QAEhB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;QAC1C,MAAM,CAAC,OAAO,CAAC,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE;YAC3C,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,SAAS,EAAE,CAAC;gBAC/B,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YACnB,CAAC;YACD,MAAM,CAAC,WAAW,GAAG,UAAU,CAAC;YAChC,MAAM,CAAC,IAAI,CAAC,IAAI,KAAK,CAAC;QACxB,CAAC,CAAC,CAAC;QACH,MAAM,CAAC,WAAW,GAAG,UAAU,CAAC;QAChC,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC5B,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,OAAO;QACX,2BAA2B;QAC3B,CAAC,MAAM,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;IAClE,CAAC;;AAtNM,mBAAS,GAAG,OAAO,CAAC;AAyN7B,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { FileStore } from "../index.js";
|
|
2
|
-
import { StoreTest } from "./store.spec.js";
|
|
3
|
-
declare class FileStoreTest extends StoreTest<FileStore<any>> {
|
|
4
|
-
getUserStore(): Promise<FileStore<any>>;
|
|
5
|
-
getIdentStore(): Promise<FileStore<any>>;
|
|
6
|
-
update(delay?: number): Promise<void>;
|
|
7
|
-
cov(): Promise<void>;
|
|
8
|
-
configuration(): Promise<void>;
|
|
9
|
-
cacheMishit(): Promise<void>;
|
|
10
|
-
computeParams(): void;
|
|
11
|
-
}
|
|
12
|
-
export { FileStoreTest };
|
|
13
|
-
//# sourceMappingURL=file.spec.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"file.spec.d.ts","sourceRoot":"","sources":["../../src/stores/file.spec.ts"],"names":[],"mappings":"AAKA,OAAO,EAAa,SAAS,EAAuC,MAAM,UAAU,CAAC;AAGrF,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAYzC,cACM,aAAc,SAAQ,SAAS,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IAC7C,YAAY,IAAI,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IAIvC,aAAa,IAAI,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IAgBxC,MAAM,CAAC,KAAK,GAAE,MAAY;IAM1B,GAAG;IA2EH,aAAa;IAeb,WAAW;IASjB,aAAa;CAMd;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
package/lib/stores/file.spec.js
DELETED
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
import { suite, test } from "@testdeck/mocha";
|
|
8
|
-
import * as assert from "assert";
|
|
9
|
-
import { existsSync } from "fs";
|
|
10
|
-
import pkg from "fs-extra";
|
|
11
|
-
import * as sinon from "sinon";
|
|
12
|
-
import { FileStore, ModelMapLoaderImplementation } from "../index.js";
|
|
13
|
-
import { StoreNotFoundError, UpdateConditionFailError } from "./store.js";
|
|
14
|
-
import { StoreTest } from "./store.spec.js";
|
|
15
|
-
const { removeSync } = pkg;
|
|
16
|
-
let FileStoreTest = class FileStoreTest extends StoreTest {
|
|
17
|
-
async getUserStore() {
|
|
18
|
-
return this.addService(FileStore, { folder: "./test/data/idents", model: "Webda/User" }, "Users");
|
|
19
|
-
}
|
|
20
|
-
async getIdentStore() {
|
|
21
|
-
const identStore = new FileStore(this.webda, "Idents", {
|
|
22
|
-
model: "WebdaTest/Ident",
|
|
23
|
-
folder: "./test/data/idents"
|
|
24
|
-
});
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
const original = identStore._get.bind(identStore);
|
|
27
|
-
// @ts-ignore
|
|
28
|
-
identStore._get = async (...args) => {
|
|
29
|
-
await this.sleep(1);
|
|
30
|
-
return original(...args);
|
|
31
|
-
};
|
|
32
|
-
return await identStore.resolve().init();
|
|
33
|
-
}
|
|
34
|
-
async update(delay = 100) {
|
|
35
|
-
// Increase the delay for FileStore
|
|
36
|
-
return super.update(delay);
|
|
37
|
-
}
|
|
38
|
-
async cov() {
|
|
39
|
-
const identStore = this.identStore;
|
|
40
|
-
const userStore = this.userStore;
|
|
41
|
-
const user = await userStore.save({});
|
|
42
|
-
let ident = await identStore.save({
|
|
43
|
-
_user: user.getUuid()
|
|
44
|
-
});
|
|
45
|
-
identStore.getParameters().strict = true;
|
|
46
|
-
let res = await identStore.get(user.getUuid());
|
|
47
|
-
assert.strictEqual(res, undefined);
|
|
48
|
-
const stub = sinon.stub(identStore, "_get").callsFake(async () => user);
|
|
49
|
-
try {
|
|
50
|
-
res = await identStore.get(user.getUuid());
|
|
51
|
-
assert.strictEqual(res, undefined);
|
|
52
|
-
await assert.rejects(() => identStore.update({
|
|
53
|
-
uuid: user.getUuid(),
|
|
54
|
-
plop: true
|
|
55
|
-
}), StoreNotFoundError);
|
|
56
|
-
await user.refresh();
|
|
57
|
-
assert.strictEqual(user.plop, undefined);
|
|
58
|
-
user.idents ?? (user.idents = []);
|
|
59
|
-
user.idents.push(new ModelMapLoaderImplementation(identStore._model, { uuid: ident.getUuid() }, user));
|
|
60
|
-
userStore["initModel"](user);
|
|
61
|
-
await identStore.delete(user.getUuid());
|
|
62
|
-
}
|
|
63
|
-
finally {
|
|
64
|
-
stub.restore();
|
|
65
|
-
}
|
|
66
|
-
identStore.incrementAttribute("test", "test", 12);
|
|
67
|
-
await identStore.create({ uuid: "test_cache" });
|
|
68
|
-
await identStore.get("test_cache");
|
|
69
|
-
assert.notStrictEqual(await identStore["_cacheStore"].get("test_cache"), undefined);
|
|
70
|
-
identStore.emitStoreEvent("Store.PartialUpdated", {
|
|
71
|
-
object_id: "test_cache",
|
|
72
|
-
partial_update: {},
|
|
73
|
-
store: identStore
|
|
74
|
-
});
|
|
75
|
-
assert.strictEqual(await identStore["_cacheStore"].get("test"), undefined);
|
|
76
|
-
// Shoud return directly
|
|
77
|
-
await identStore.incrementAttribute("test", "test", 0);
|
|
78
|
-
removeSync(identStore.getParameters().folder);
|
|
79
|
-
// Should not fail
|
|
80
|
-
await identStore.__clean();
|
|
81
|
-
// Should recreate folder
|
|
82
|
-
identStore.computeParameters();
|
|
83
|
-
existsSync(identStore.getParameters().folder);
|
|
84
|
-
ident = new identStore._model();
|
|
85
|
-
identStore.newModel(ident);
|
|
86
|
-
assert.notStrictEqual(ident.getUuid(), undefined);
|
|
87
|
-
// Test guard-rails (seems hardly reachable so might be useless)
|
|
88
|
-
assert.throws(() => identStore.checkCollectionUpdateCondition(ident, "plops", undefined, 1, null), UpdateConditionFailError);
|
|
89
|
-
// @ts-ignore
|
|
90
|
-
ident.plops = [];
|
|
91
|
-
assert.throws(() => identStore.checkCollectionUpdateCondition(ident, "plops", undefined, 1, null), UpdateConditionFailError);
|
|
92
|
-
identStore.checkCollectionUpdateCondition(ident, "plops", undefined, 0, null);
|
|
93
|
-
assert.rejects(() => identStore.simulateUpsertItemToCollection(undefined, "__proto__", undefined, new Date()), /Cannot update __proto__: js\/prototype-polluting-assignment/);
|
|
94
|
-
}
|
|
95
|
-
async configuration() {
|
|
96
|
-
const identStore = this.identStore;
|
|
97
|
-
assert.strictEqual(identStore.canTriggerConfiguration("plop", () => { }), false);
|
|
98
|
-
assert.strictEqual(await identStore.getConfiguration("plop"), undefined);
|
|
99
|
-
await identStore.save({ plop: 1, other: true, uuid: "plop" });
|
|
100
|
-
assert.deepStrictEqual(await identStore.getConfiguration("plop"), {
|
|
101
|
-
other: true,
|
|
102
|
-
plop: 1
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
async cacheMishit() {
|
|
106
|
-
const identStore = this.identStore;
|
|
107
|
-
const ident = await identStore.save({ uuid: "test" });
|
|
108
|
-
await identStore._cacheStore.__clean();
|
|
109
|
-
// @ts-ignore
|
|
110
|
-
await ident.patch({ retest: true });
|
|
111
|
-
}
|
|
112
|
-
computeParams() {
|
|
113
|
-
const usersStore = this.userStore;
|
|
114
|
-
removeSync(usersStore.getParameters().folder);
|
|
115
|
-
usersStore.computeParameters();
|
|
116
|
-
assert.ok(existsSync(usersStore.getParameters().folder));
|
|
117
|
-
}
|
|
118
|
-
};
|
|
119
|
-
__decorate([
|
|
120
|
-
test
|
|
121
|
-
], FileStoreTest.prototype, "update", null);
|
|
122
|
-
__decorate([
|
|
123
|
-
test
|
|
124
|
-
], FileStoreTest.prototype, "cov", null);
|
|
125
|
-
__decorate([
|
|
126
|
-
test
|
|
127
|
-
], FileStoreTest.prototype, "configuration", null);
|
|
128
|
-
__decorate([
|
|
129
|
-
test
|
|
130
|
-
], FileStoreTest.prototype, "cacheMishit", null);
|
|
131
|
-
__decorate([
|
|
132
|
-
test
|
|
133
|
-
], FileStoreTest.prototype, "computeParams", null);
|
|
134
|
-
FileStoreTest = __decorate([
|
|
135
|
-
suite
|
|
136
|
-
], FileStoreTest);
|
|
137
|
-
export { FileStoreTest };
|
|
138
|
-
//# sourceMappingURL=file.spec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"file.spec.js","source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 @@
|
|
|
1
|
-
import { CoreModel } from "../models/coremodel.js";
|
|
2
|
-
import { Service, ServiceParameters } from "../services/service.js";
|
|
3
|
-
import { Store } from "./store.js";
|
|
4
|
-
export type MapUpdates = "created" | "deleted" | {
|
|
5
|
-
[key: string]: any;
|
|
6
|
-
};
|
|
7
|
-
export interface Mapper {
|
|
8
|
-
uuid: string;
|
|
9
|
-
[key: string]: any;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Mapper configuration
|
|
13
|
-
*/
|
|
14
|
-
export declare class MapperParameters extends ServiceParameters {
|
|
15
|
-
/**
|
|
16
|
-
* Field to duplicate
|
|
17
|
-
*/
|
|
18
|
-
fields: string[];
|
|
19
|
-
/**
|
|
20
|
-
* Source service
|
|
21
|
-
*/
|
|
22
|
-
source: string;
|
|
23
|
-
/**
|
|
24
|
-
* Target store
|
|
25
|
-
*/
|
|
26
|
-
target: string;
|
|
27
|
-
/**
|
|
28
|
-
* Async
|
|
29
|
-
*
|
|
30
|
-
* @default false
|
|
31
|
-
*/
|
|
32
|
-
async: boolean;
|
|
33
|
-
/**
|
|
34
|
-
* Attribute to use for link
|
|
35
|
-
*
|
|
36
|
-
* Depending on the type
|
|
37
|
-
* - string[]: will consider each string as id
|
|
38
|
-
* - string: will be consider as id
|
|
39
|
-
* - Object: each keys will be consider as id
|
|
40
|
-
*/
|
|
41
|
-
attribute: string;
|
|
42
|
-
/**
|
|
43
|
-
* The object will contain a Mapper
|
|
44
|
-
*/
|
|
45
|
-
targetAttribute: string;
|
|
46
|
-
/**
|
|
47
|
-
* Delete source if target object is deleted
|
|
48
|
-
*/
|
|
49
|
-
cascade: boolean;
|
|
50
|
-
constructor(params: any);
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Map object to another object
|
|
54
|
-
* @WebdaModda Mapper
|
|
55
|
-
*/
|
|
56
|
-
declare class MapperService<T extends MapperParameters = MapperParameters> extends Service<T> {
|
|
57
|
-
targetStore: Store<CoreModel & {
|
|
58
|
-
[key: string]: any[];
|
|
59
|
-
}>;
|
|
60
|
-
sourceService: Store;
|
|
61
|
-
/**
|
|
62
|
-
* @override
|
|
63
|
-
*/
|
|
64
|
-
loadParameters(params: any): MapperParameters;
|
|
65
|
-
/**
|
|
66
|
-
* @override
|
|
67
|
-
*/
|
|
68
|
-
resolve(): this;
|
|
69
|
-
/**
|
|
70
|
-
* Get index of the mapper for an object
|
|
71
|
-
* @param map
|
|
72
|
-
* @param uuid
|
|
73
|
-
* @returns
|
|
74
|
-
*/
|
|
75
|
-
getMapper(map: any[], uuid: string): number;
|
|
76
|
-
/**
|
|
77
|
-
* Create an object mapper
|
|
78
|
-
*
|
|
79
|
-
* @param map map to create mapper for
|
|
80
|
-
* @param object for the mapper to represent
|
|
81
|
-
* @param updates to the object being made
|
|
82
|
-
* @returns mapper object and found = true if updates will impact the mapper
|
|
83
|
-
*/
|
|
84
|
-
createMapper(object: CoreModel, updates: any): [mapper: Mapper, found: boolean];
|
|
85
|
-
/**
|
|
86
|
-
* Update a mapper after source object was modified
|
|
87
|
-
*
|
|
88
|
-
* @param source
|
|
89
|
-
* @param target
|
|
90
|
-
* @param mapper
|
|
91
|
-
* @returns
|
|
92
|
-
*/
|
|
93
|
-
_handleUpdatedMap(source: CoreModel, target: CoreModel, updates: any): Promise<Date>;
|
|
94
|
-
/**
|
|
95
|
-
* Update a mapper after source object was modified without change in target
|
|
96
|
-
*
|
|
97
|
-
* @param source
|
|
98
|
-
* @param target
|
|
99
|
-
* @param mapper
|
|
100
|
-
* @returns
|
|
101
|
-
*/
|
|
102
|
-
_handleUpdatedMapMapper(source: CoreModel, target: CoreModel, mapper: Mapper): Promise<Date>;
|
|
103
|
-
/**
|
|
104
|
-
* Remove the mapper for a deleted object
|
|
105
|
-
*
|
|
106
|
-
* @param source
|
|
107
|
-
* @param target
|
|
108
|
-
* @returns
|
|
109
|
-
*/
|
|
110
|
-
_handleDeletedMap(source: CoreModel, target: CoreModel): Promise<Date>;
|
|
111
|
-
/**
|
|
112
|
-
* Add the mapper for a newly created object
|
|
113
|
-
*
|
|
114
|
-
* @param source
|
|
115
|
-
* @param target
|
|
116
|
-
* @returns
|
|
117
|
-
*/
|
|
118
|
-
_handleCreatedMap(source: CoreModel, target: CoreModel): Promise<Date>;
|
|
119
|
-
/**
|
|
120
|
-
* Return true if property belongs to the mapped properties
|
|
121
|
-
*
|
|
122
|
-
* @param property
|
|
123
|
-
* @returns
|
|
124
|
-
*/
|
|
125
|
-
isMapped(property: string): boolean;
|
|
126
|
-
/**
|
|
127
|
-
* Handle the map from a partial update
|
|
128
|
-
*
|
|
129
|
-
* @param uid
|
|
130
|
-
* @param updateDate
|
|
131
|
-
* @param prop
|
|
132
|
-
*/
|
|
133
|
-
_handleMapFromPartial(uid: string, updateDate: Date, property?: string | string[]): Promise<void>;
|
|
134
|
-
/**
|
|
135
|
-
* Manage one mapping update
|
|
136
|
-
*
|
|
137
|
-
* @param store
|
|
138
|
-
* @param object
|
|
139
|
-
* @param map
|
|
140
|
-
* @param updates
|
|
141
|
-
* @returns
|
|
142
|
-
*/
|
|
143
|
-
handleMap(object: CoreModel, updates: MapUpdates): Promise<void>;
|
|
144
|
-
/**
|
|
145
|
-
* Recompute the whole mappers
|
|
146
|
-
*/
|
|
147
|
-
recompute(): Promise<void>;
|
|
148
|
-
}
|
|
149
|
-
export { MapperService };
|
|
150
|
-
//# sourceMappingURL=mapper.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mapper.d.ts","sourceRoot":"","sources":["../../src/stores/mapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAY,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAU,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACzE,OAAO,EAAkF,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhH,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG;IAAE,CAAC,GAAG,EAA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