@webda/core 3.16.4 → 4.0.0-beta.2
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/lib/application.d.ts +29 -8
- package/lib/application.d.ts.map +1 -0
- package/lib/application.js +65 -38
- package/lib/application.js.map +1 -1
- package/lib/application.spec.d.ts +1 -0
- package/lib/application.spec.d.ts.map +1 -0
- package/lib/application.spec.js +57 -43
- package/lib/application.spec.js.map +1 -1
- package/lib/core.d.ts +16 -12
- package/lib/core.d.ts.map +1 -0
- package/lib/core.js +105 -80
- package/lib/core.js.map +1 -1
- package/lib/core.spec.d.ts +1 -0
- package/lib/core.spec.d.ts.map +1 -0
- package/lib/core.spec.js +96 -67
- package/lib/core.spec.js.map +1 -1
- package/lib/errors.d.ts +59 -60
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +92 -108
- package/lib/errors.js.map +1 -1
- package/lib/errors.spec.d.ts +1 -0
- package/lib/errors.spec.d.ts.map +1 -0
- package/lib/errors.spec.js +1 -1
- package/lib/errors.spec.js.map +1 -1
- package/lib/index.d.ts +6 -3
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +6 -3
- package/lib/index.js.map +1 -1
- package/lib/models/aclmodel.d.ts +2 -2
- package/lib/models/aclmodel.d.ts.map +1 -0
- package/lib/models/aclmodel.js +8 -9
- package/lib/models/aclmodel.js.map +1 -1
- package/lib/models/aclmodel.spec.d.ts +1 -0
- package/lib/models/aclmodel.spec.d.ts.map +1 -0
- package/lib/models/aclmodel.spec.js +3 -3
- package/lib/models/aclmodel.spec.js.map +1 -1
- package/lib/models/coremodel.d.ts +15 -0
- package/lib/models/coremodel.d.ts.map +1 -0
- package/lib/models/coremodel.js +35 -28
- package/lib/models/coremodel.js.map +1 -1
- package/lib/models/coremodel.spec.d.ts +1 -0
- package/lib/models/coremodel.spec.d.ts.map +1 -0
- package/lib/models/coremodel.spec.js +33 -31
- package/lib/models/coremodel.spec.js.map +1 -1
- package/lib/models/deployment.d.ts +1 -0
- package/lib/models/deployment.d.ts.map +1 -0
- package/lib/models/ident.d.ts +17 -2
- package/lib/models/ident.d.ts.map +1 -0
- package/lib/models/ident.js +0 -14
- package/lib/models/ident.js.map +1 -1
- package/lib/models/ident.spec.d.ts +1 -0
- package/lib/models/ident.spec.d.ts.map +1 -0
- package/lib/models/ident.spec.js +1 -20
- package/lib/models/ident.spec.js.map +1 -1
- package/lib/models/ownermodel.d.ts +1 -0
- package/lib/models/ownermodel.d.ts.map +1 -0
- package/lib/models/ownermodel.spec.d.ts +1 -0
- package/lib/models/ownermodel.spec.d.ts.map +1 -0
- package/lib/models/ownermodel.spec.js +57 -33
- package/lib/models/ownermodel.spec.js.map +1 -1
- package/lib/models/relations.d.ts +1 -0
- package/lib/models/relations.d.ts.map +1 -0
- package/lib/models/relations.js +3 -3
- package/lib/models/relations.js.map +1 -1
- package/lib/models/relations.spec.d.ts +2 -0
- package/lib/models/relations.spec.d.ts.map +1 -0
- package/lib/models/relations.spec.js +10 -17
- package/lib/models/relations.spec.js.map +1 -1
- package/lib/models/rolemodel.d.ts +1 -0
- package/lib/models/rolemodel.d.ts.map +1 -0
- package/lib/models/rolemodel.js +2 -2
- package/lib/models/rolemodel.js.map +1 -1
- package/lib/models/rolemodel.spec.d.ts +1 -0
- package/lib/models/rolemodel.spec.d.ts.map +1 -0
- package/lib/models/rolemodel.spec.js +5 -1
- package/lib/models/rolemodel.spec.js.map +1 -1
- package/lib/models/simpleuser.d.ts +47 -0
- package/lib/models/simpleuser.d.ts.map +1 -0
- package/lib/models/simpleuser.js +84 -0
- package/lib/models/simpleuser.js.map +1 -0
- package/lib/models/test.d.ts +11 -0
- package/lib/models/test.d.ts.map +1 -0
- package/lib/models/test.js +7 -0
- package/lib/models/test.js.map +1 -0
- package/lib/models/user.d.ts +2 -35
- package/lib/models/user.d.ts.map +1 -0
- package/lib/models/user.js +3 -74
- package/lib/models/user.js.map +1 -1
- package/lib/models/user.spec.d.ts +1 -0
- package/lib/models/user.spec.d.ts.map +1 -0
- package/lib/models/user.spec.js +7 -6
- package/lib/models/user.spec.js.map +1 -1
- package/lib/queues/filequeue.d.ts +1 -0
- package/lib/queues/filequeue.d.ts.map +1 -0
- package/lib/queues/filequeue.js +5 -5
- package/lib/queues/filequeue.js.map +1 -1
- package/lib/queues/filequeue.spec.d.ts +1 -0
- package/lib/queues/filequeue.spec.d.ts.map +1 -0
- package/lib/queues/filequeue.spec.js +11 -5
- package/lib/queues/filequeue.spec.js.map +1 -1
- package/lib/queues/memoryqueue.d.ts +14 -0
- package/lib/queues/memoryqueue.d.ts.map +1 -0
- package/lib/queues/memoryqueue.js +38 -7
- package/lib/queues/memoryqueue.js.map +1 -1
- package/lib/queues/memoryqueue.spec.d.ts +1 -0
- package/lib/queues/memoryqueue.spec.d.ts.map +1 -0
- package/lib/queues/memoryqueue.spec.js +18 -7
- package/lib/queues/memoryqueue.spec.js.map +1 -1
- package/lib/queues/pubsubservice.d.ts +1 -0
- package/lib/queues/pubsubservice.d.ts.map +1 -0
- package/lib/queues/queue.spec.d.ts +3 -2
- package/lib/queues/queue.spec.d.ts.map +1 -0
- package/lib/queues/queue.spec.js +5 -3
- package/lib/queues/queue.spec.js.map +1 -1
- package/lib/queues/queueservice.d.ts +1 -0
- package/lib/queues/queueservice.d.ts.map +1 -0
- package/lib/queues/queueservice.js +7 -7
- package/lib/queues/queueservice.js.map +1 -1
- package/lib/rest/restdomainservice.d.ts +63 -0
- package/lib/rest/restdomainservice.d.ts.map +1 -0
- package/lib/rest/restdomainservice.js +687 -0
- package/lib/rest/restdomainservice.js.map +1 -0
- package/lib/rest/restdomainservice.spec.d.ts +2 -0
- package/lib/rest/restdomainservice.spec.d.ts.map +1 -0
- package/lib/rest/restdomainservice.spec.js +124 -0
- package/lib/rest/restdomainservice.spec.js.map +1 -0
- package/lib/{router.d.ts → rest/router.d.ts} +6 -4
- package/lib/rest/router.d.ts.map +1 -0
- package/lib/{router.js → rest/router.js} +33 -23
- package/lib/rest/router.js.map +1 -0
- package/lib/rest/router.spec.d.ts +2 -0
- package/lib/rest/router.spec.d.ts.map +1 -0
- package/lib/{router.spec.js → rest/router.spec.js} +54 -28
- package/lib/rest/router.spec.js.map +1 -0
- package/lib/services/asyncevents.d.ts +1 -0
- package/lib/services/asyncevents.d.ts.map +1 -0
- package/lib/services/asyncevents.js +4 -4
- package/lib/services/asyncevents.js.map +1 -1
- package/lib/services/asyncevents.spec.d.ts +1 -0
- package/lib/services/asyncevents.spec.d.ts.map +1 -0
- package/lib/services/asyncevents.spec.js +10 -10
- package/lib/services/asyncevents.spec.js.map +1 -1
- package/lib/services/authentication.d.ts +2 -1
- package/lib/services/authentication.d.ts.map +1 -0
- package/lib/services/authentication.js +26 -25
- package/lib/services/authentication.js.map +1 -1
- package/lib/services/authentication.spec.d.ts +1 -0
- package/lib/services/authentication.spec.d.ts.map +1 -0
- package/lib/services/authentication.spec.js +24 -24
- package/lib/services/authentication.spec.js.map +1 -1
- package/lib/services/binary.d.ts +13 -87
- package/lib/services/binary.d.ts.map +1 -0
- package/lib/services/binary.js +39 -421
- package/lib/services/binary.js.map +1 -1
- package/lib/services/binary.spec.d.ts +19 -22
- package/lib/services/binary.spec.d.ts.map +1 -0
- package/lib/services/binary.spec.js +87 -374
- package/lib/services/binary.spec.js.map +1 -1
- package/lib/services/cloudbinary.d.ts +3 -2
- package/lib/services/cloudbinary.d.ts.map +1 -0
- package/lib/services/cloudbinary.js +1 -1
- package/lib/services/cloudbinary.js.map +1 -1
- package/lib/services/cloudbinary.spec.d.ts +1 -8
- package/lib/services/cloudbinary.spec.d.ts.map +1 -0
- package/lib/services/cloudbinary.spec.js +4 -130
- package/lib/services/cloudbinary.spec.js.map +1 -1
- package/lib/services/configuration.d.ts +10 -1
- package/lib/services/configuration.d.ts.map +1 -0
- package/lib/services/configuration.js +22 -7
- package/lib/services/configuration.js.map +1 -1
- package/lib/services/configuration.spec.d.ts +1 -0
- package/lib/services/configuration.spec.d.ts.map +1 -0
- package/lib/services/configuration.spec.js +60 -17
- package/lib/services/configuration.spec.js.map +1 -1
- package/lib/services/cron.d.ts +2 -1
- package/lib/services/cron.d.ts.map +1 -0
- package/lib/services/cron.js +10 -10
- package/lib/services/cron.js.map +1 -1
- package/lib/services/cron.spec.d.ts +1 -0
- package/lib/services/cron.spec.d.ts.map +1 -0
- package/lib/services/cron.spec.js +2 -2
- package/lib/services/cron.spec.js.map +1 -1
- package/lib/services/cryptoservice.d.ts +3 -2
- package/lib/services/cryptoservice.d.ts.map +1 -0
- package/lib/services/cryptoservice.js +29 -30
- package/lib/services/cryptoservice.js.map +1 -1
- package/lib/services/cryptoservice.spec.d.ts +1 -0
- package/lib/services/cryptoservice.spec.d.ts.map +1 -0
- package/lib/services/cryptoservice.spec.js +17 -17
- package/lib/services/cryptoservice.spec.js.map +1 -1
- package/lib/services/debugmailer.d.ts +2 -2
- package/lib/services/debugmailer.d.ts.map +1 -0
- package/lib/services/debugmailer.js +1 -2
- package/lib/services/debugmailer.js.map +1 -1
- package/lib/services/debugmailer.spec.d.ts +1 -0
- package/lib/services/debugmailer.spec.d.ts.map +1 -0
- package/lib/services/debugmailer.spec.js +6 -3
- package/lib/services/debugmailer.spec.js.map +1 -1
- package/lib/services/domainservice.d.ts +167 -47
- package/lib/services/domainservice.d.ts.map +1 -0
- package/lib/services/domainservice.js +520 -753
- package/lib/services/domainservice.js.map +1 -1
- package/lib/services/domainservice.spec.d.ts +1 -0
- package/lib/services/domainservice.spec.d.ts.map +1 -0
- package/lib/services/domainservice.spec.js +201 -31
- package/lib/services/domainservice.spec.js.map +1 -1
- package/lib/services/filebinary.d.ts +8 -5
- package/lib/services/filebinary.d.ts.map +1 -0
- package/lib/services/filebinary.js +34 -32
- package/lib/services/filebinary.js.map +1 -1
- package/lib/services/filebinary.spec.d.ts +12 -8
- package/lib/services/filebinary.spec.d.ts.map +1 -0
- package/lib/services/filebinary.spec.js +135 -122
- package/lib/services/filebinary.spec.js.map +1 -1
- package/lib/services/fileconfiguration.d.ts +2 -1
- package/lib/services/fileconfiguration.d.ts.map +1 -0
- package/lib/services/fileconfiguration.js +1 -1
- package/lib/services/fileconfiguration.js.map +1 -1
- package/lib/services/fileconfiguration.spec.d.ts +1 -0
- package/lib/services/fileconfiguration.spec.d.ts.map +1 -0
- package/lib/services/fileconfiguration.spec.js +65 -27
- package/lib/services/fileconfiguration.spec.js.map +1 -1
- package/lib/services/invitationservice.d.ts +2 -1
- package/lib/services/invitationservice.d.ts.map +1 -0
- package/lib/services/invitationservice.js +19 -16
- package/lib/services/invitationservice.js.map +1 -1
- package/lib/services/invitationservice.spec.d.ts +1 -0
- package/lib/services/invitationservice.spec.d.ts.map +1 -0
- package/lib/services/invitationservice.spec.js +73 -22
- package/lib/services/invitationservice.spec.js.map +1 -1
- package/lib/services/kubernetesconfiguration.d.ts +1 -0
- package/lib/services/kubernetesconfiguration.d.ts.map +1 -0
- package/lib/services/kubernetesconfiguration.js +0 -2
- package/lib/services/kubernetesconfiguration.js.map +1 -1
- package/lib/services/kubernetesconfiguration.spec.d.ts +1 -0
- package/lib/services/kubernetesconfiguration.spec.d.ts.map +1 -0
- package/lib/services/kubernetesconfiguration.spec.js +67 -8
- package/lib/services/kubernetesconfiguration.spec.js.map +1 -1
- package/lib/services/mailer.d.ts +1 -0
- package/lib/services/mailer.d.ts.map +1 -0
- package/lib/services/mailer.js +3 -3
- package/lib/services/mailer.js.map +1 -1
- package/lib/services/mailer.spec.d.ts +1 -0
- package/lib/services/mailer.spec.d.ts.map +1 -0
- package/lib/services/mailer.spec.js +18 -4
- package/lib/services/mailer.spec.js.map +1 -1
- package/lib/services/notificationservice.d.ts +1 -0
- package/lib/services/notificationservice.d.ts.map +1 -0
- package/lib/services/notificationservice.js +1 -1
- package/lib/services/notificationservice.js.map +1 -1
- package/lib/services/notificationservice.spec.d.ts +1 -0
- package/lib/services/notificationservice.spec.d.ts.map +1 -0
- package/lib/services/notificationservice.spec.js +8 -3
- package/lib/services/notificationservice.spec.js.map +1 -1
- package/lib/services/oauth.d.ts +6 -3
- package/lib/services/oauth.d.ts.map +1 -0
- package/lib/services/oauth.js +11 -8
- package/lib/services/oauth.js.map +1 -1
- package/lib/services/oauth.spec.d.ts +1 -0
- package/lib/services/oauth.spec.d.ts.map +1 -0
- package/lib/services/oauth.spec.js +39 -15
- package/lib/services/oauth.spec.js.map +1 -1
- package/lib/services/prometheus.d.ts +1 -0
- package/lib/services/prometheus.d.ts.map +1 -0
- package/lib/services/prometheus.spec.d.ts +1 -0
- package/lib/services/prometheus.spec.d.ts.map +1 -0
- package/lib/services/prometheus.spec.js +38 -19
- package/lib/services/prometheus.spec.js.map +1 -1
- package/lib/services/resource.d.ts +21 -1
- package/lib/services/resource.d.ts.map +1 -0
- package/lib/services/resource.js +20 -3
- package/lib/services/resource.js.map +1 -1
- package/lib/services/resource.spec.d.ts +1 -0
- package/lib/services/resource.spec.d.ts.map +1 -0
- package/lib/services/resource.spec.js +38 -20
- package/lib/services/resource.spec.js.map +1 -1
- package/lib/services/service.d.ts +2 -2
- package/lib/services/service.d.ts.map +1 -0
- package/lib/services/service.js +13 -23
- package/lib/services/service.js.map +1 -1
- package/lib/services/service.spec.d.ts +1 -0
- package/lib/services/service.spec.d.ts.map +1 -0
- package/lib/services/service.spec.js +58 -40
- package/lib/services/service.spec.js.map +1 -1
- package/lib/stores/aggregator.d.ts +10 -3
- package/lib/stores/aggregator.d.ts.map +1 -0
- package/lib/stores/aggregator.js +6 -6
- package/lib/stores/aggregator.js.map +1 -1
- package/lib/stores/file.d.ts +3 -2
- package/lib/stores/file.d.ts.map +1 -0
- package/lib/stores/file.js +13 -13
- package/lib/stores/file.js.map +1 -1
- package/lib/stores/file.spec.d.ts +5 -11
- package/lib/stores/file.spec.d.ts.map +1 -0
- package/lib/stores/file.spec.js +20 -114
- package/lib/stores/file.spec.js.map +1 -1
- package/lib/stores/mapper.d.ts +2 -1
- package/lib/stores/mapper.d.ts.map +1 -0
- package/lib/stores/mapper.js +12 -12
- package/lib/stores/mapper.js.map +1 -1
- package/lib/stores/mapper.spec.d.ts +1 -0
- package/lib/stores/mapper.spec.d.ts.map +1 -0
- package/lib/stores/mapper.spec.js +24 -17
- package/lib/stores/mapper.spec.js.map +1 -1
- package/lib/stores/memory.d.ts +2 -1
- package/lib/stores/memory.d.ts.map +1 -0
- package/lib/stores/memory.js +15 -15
- package/lib/stores/memory.js.map +1 -1
- package/lib/stores/memory.spec.d.ts +7 -13
- package/lib/stores/memory.spec.d.ts.map +1 -0
- package/lib/stores/memory.spec.js +118 -183
- package/lib/stores/memory.spec.js.map +1 -1
- package/lib/stores/modelmapper.d.ts +1 -0
- package/lib/stores/modelmapper.d.ts.map +1 -0
- package/lib/stores/modelmapper.js +8 -10
- package/lib/stores/modelmapper.js.map +1 -1
- package/lib/stores/store.d.ts +4 -145
- package/lib/stores/store.d.ts.map +1 -0
- package/lib/stores/store.js +54 -654
- package/lib/stores/store.js.map +1 -1
- package/lib/stores/store.spec.d.ts +11 -19
- package/lib/stores/store.spec.d.ts.map +1 -0
- package/lib/stores/store.spec.js +99 -268
- package/lib/stores/store.spec.js.map +1 -1
- package/lib/test.d.ts +109 -6
- package/lib/test.d.ts.map +1 -0
- package/lib/test.js +245 -22
- package/lib/test.js.map +1 -1
- package/lib/unpackedapplication.d.ts +3 -2
- package/lib/unpackedapplication.d.ts.map +1 -0
- package/lib/unpackedapplication.js +29 -16
- package/lib/unpackedapplication.js.map +1 -1
- package/lib/utils/abstractdeployer.d.ts +1 -0
- package/lib/utils/abstractdeployer.d.ts.map +1 -0
- package/lib/utils/abstractdeployer.spec.d.ts +1 -0
- package/lib/utils/abstractdeployer.spec.d.ts.map +1 -0
- package/lib/utils/case.d.ts +1 -0
- package/lib/utils/case.d.ts.map +1 -0
- package/lib/utils/case.spec.d.ts +1 -0
- package/lib/utils/case.spec.d.ts.map +1 -0
- package/lib/utils/context.d.ts +37 -17
- package/lib/utils/context.d.ts.map +1 -0
- package/lib/utils/context.js +53 -42
- package/lib/utils/context.js.map +1 -1
- package/lib/utils/context.spec.d.ts +1 -0
- package/lib/utils/context.spec.d.ts.map +1 -0
- package/lib/utils/context.spec.js +21 -14
- package/lib/utils/context.spec.js.map +1 -1
- package/lib/utils/cookie.d.ts +1 -0
- package/lib/utils/cookie.d.ts.map +1 -0
- package/lib/utils/cookie.js +2 -2
- package/lib/utils/cookie.js.map +1 -1
- package/lib/utils/cookie.spec.d.ts +1 -0
- package/lib/utils/cookie.spec.d.ts.map +1 -0
- package/lib/utils/cookie.spec.js +20 -10
- package/lib/utils/cookie.spec.js.map +1 -1
- package/lib/utils/esm.d.ts +1 -0
- package/lib/utils/esm.d.ts.map +1 -0
- package/lib/utils/httpcontext.d.ts +1 -0
- package/lib/utils/httpcontext.d.ts.map +1 -0
- package/lib/utils/httpcontext.js +7 -7
- package/lib/utils/httpcontext.js.map +1 -1
- package/lib/utils/httpcontext.spec.d.ts +1 -0
- package/lib/utils/httpcontext.spec.d.ts.map +1 -0
- package/lib/utils/httpcontext.spec.js +7 -7
- package/lib/utils/httpcontext.spec.js.map +1 -1
- package/lib/utils/logger.d.ts +1 -0
- package/lib/utils/logger.d.ts.map +1 -0
- package/lib/utils/logger.spec.d.ts +1 -0
- package/lib/utils/logger.spec.d.ts.map +1 -0
- package/lib/utils/logger.spec.js +5 -5
- package/lib/utils/logger.spec.js.map +1 -1
- package/lib/utils/serializers.d.ts +6 -4
- package/lib/utils/serializers.d.ts.map +1 -0
- package/lib/utils/serializers.js +30 -27
- package/lib/utils/serializers.js.map +1 -1
- package/lib/utils/serializers.spec.d.ts +1 -0
- package/lib/utils/serializers.spec.d.ts.map +1 -0
- package/lib/utils/serializers.spec.js +12 -14
- package/lib/utils/serializers.spec.js.map +1 -1
- package/lib/utils/session.d.ts +2 -5
- package/lib/utils/session.d.ts.map +1 -0
- package/lib/utils/session.js +1 -11
- package/lib/utils/session.js.map +1 -1
- package/lib/utils/session.spec.d.ts +1 -0
- package/lib/utils/session.spec.d.ts.map +1 -0
- package/lib/utils/session.spec.js +22 -12
- package/lib/utils/session.spec.js.map +1 -1
- package/lib/utils/throttler.d.ts +1 -4
- package/lib/utils/throttler.d.ts.map +1 -0
- package/lib/utils/throttler.js +1 -9
- package/lib/utils/throttler.js.map +1 -1
- package/lib/utils/throttler.spec.d.ts +1 -0
- package/lib/utils/throttler.spec.d.ts.map +1 -0
- package/lib/utils/throttler.spec.js +4 -6
- package/lib/utils/throttler.spec.js.map +1 -1
- package/lib/utils/waiter.d.ts +1 -0
- package/lib/utils/waiter.d.ts.map +1 -0
- package/lib/utils/waiter.js +3 -3
- package/lib/utils/waiter.js.map +1 -1
- package/lib/utils/waiter.spec.d.ts +1 -0
- package/lib/utils/waiter.spec.d.ts.map +1 -0
- package/lib/utils/waiter.spec.js +6 -6
- package/lib/utils/waiter.spec.js.map +1 -1
- package/package.json +20 -16
- package/test/config.json +6 -90
- package/test/data/.env +1 -0
- package/webda.module.json +607 -377
- package/lib/router.js.map +0 -1
- package/lib/router.spec.d.ts +0 -1
- package/lib/router.spec.js.map +0 -1
- package/lib/stores/aliasstore.d.ts +0 -108
- package/lib/stores/aliasstore.js +0 -168
- package/lib/stores/aliasstore.js.map +0 -1
- package/lib/stores/aliasstore.spec.d.ts +0 -11
- package/lib/stores/aliasstore.spec.js +0 -89
- package/lib/stores/aliasstore.spec.js.map +0 -1
- package/lib/stores/webdaql/WebdaQLLexer.d.ts +0 -54
- package/lib/stores/webdaql/WebdaQLLexer.js +0 -295
- package/lib/stores/webdaql/WebdaQLLexer.js.map +0 -1
- package/lib/stores/webdaql/WebdaQLParserLexer.d.ts +0 -54
- package/lib/stores/webdaql/WebdaQLParserLexer.js +0 -295
- package/lib/stores/webdaql/WebdaQLParserLexer.js.map +0 -1
- package/lib/stores/webdaql/WebdaQLParserListener.d.ts +0 -296
- package/lib/stores/webdaql/WebdaQLParserListener.js +0 -3
- package/lib/stores/webdaql/WebdaQLParserListener.js.map +0 -1
- package/lib/stores/webdaql/WebdaQLParserParser.d.ts +0 -311
- package/lib/stores/webdaql/WebdaQLParserParser.js +0 -1807
- package/lib/stores/webdaql/WebdaQLParserParser.js.map +0 -1
- package/lib/stores/webdaql/WebdaQLParserVisitor.d.ts +0 -181
- package/lib/stores/webdaql/WebdaQLParserVisitor.js +0 -3
- package/lib/stores/webdaql/WebdaQLParserVisitor.js.map +0 -1
- package/lib/stores/webdaql/query.d.ts +0 -390
- package/lib/stores/webdaql/query.js +0 -702
- package/lib/stores/webdaql/query.js.map +0 -1
- package/lib/stores/webdaql/query.spec.d.ts +0 -1
- package/lib/stores/webdaql/query.spec.js +0 -206
- package/lib/stores/webdaql/query.spec.js.map +0 -1
- package/test/config-file-missing-file-no-default.json +0 -44
- package/test/config-file-missing-file.json +0 -55
- package/test/config-file-no-reload.json +0 -69
- package/test/config-file-reload.json +0 -68
- package/test/config-invitation.json +0 -63
- package/test/config-kube-reload.json +0 -68
- package/test/config-reload.json +0 -66
- package/test/config.old.json +0 -152
- package/test/moddas/annotatedservice.js +0 -23
- package/test/moddas/debugmailer.js +0 -13
- package/test/moddas/fakeservice.js +0 -4
- package/test/moddas/voidstore.js +0 -66
- package/test/models/ident.js +0 -36
- package/test/models/task.js +0 -42
|
@@ -1,390 +0,0 @@
|
|
|
1
|
-
import { AbstractParseTreeVisitor, ParseTree } from "antlr4ts/tree/index.js";
|
|
2
|
-
import { WebdaQLLexer } from "./WebdaQLLexer.js";
|
|
3
|
-
import { AndLogicExpressionContext, BinaryComparisonExpressionContext, BooleanLiteralContext, ContainsExpressionContext, InExpressionContext, IntegerLiteralContext, LikeExpressionContext, LimitExpressionContext, OffsetExpressionContext, OrLogicExpressionContext, OrderExpressionContext, OrderFieldExpressionContext, SetExpressionContext, StringLiteralContext, WebdaqlContext } from "./WebdaQLParserParser.js";
|
|
4
|
-
import { WebdaQLParserVisitor } from "./WebdaQLParserVisitor.js";
|
|
5
|
-
type value = boolean | string | number;
|
|
6
|
-
/**
|
|
7
|
-
* Meta Query Language
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*/
|
|
11
|
-
export declare namespace WebdaQL {
|
|
12
|
-
interface OrderBy {
|
|
13
|
-
field: string;
|
|
14
|
-
direction: "ASC" | "DESC";
|
|
15
|
-
}
|
|
16
|
-
function PrependCondition(query?: string, condition?: string): string;
|
|
17
|
-
/**
|
|
18
|
-
* Create Expression based on the parsed token
|
|
19
|
-
*
|
|
20
|
-
* Expression allow to optimize and split between Query and Filter
|
|
21
|
-
*/
|
|
22
|
-
class ExpressionBuilder extends AbstractParseTreeVisitor<Query> implements WebdaQLParserVisitor<any> {
|
|
23
|
-
/**
|
|
24
|
-
* Contain the parsed limit
|
|
25
|
-
*/
|
|
26
|
-
limit: number;
|
|
27
|
-
/**
|
|
28
|
-
* Contain the parsed offset
|
|
29
|
-
*/
|
|
30
|
-
offset: string;
|
|
31
|
-
orderBy: OrderBy[];
|
|
32
|
-
/**
|
|
33
|
-
* Default result for the override
|
|
34
|
-
* @returns
|
|
35
|
-
*/
|
|
36
|
-
protected defaultResult(): Query;
|
|
37
|
-
/**
|
|
38
|
-
* Get offset
|
|
39
|
-
* @returns
|
|
40
|
-
*/
|
|
41
|
-
getOffset(): string;
|
|
42
|
-
/**
|
|
43
|
-
* Get limit
|
|
44
|
-
* @returns
|
|
45
|
-
*/
|
|
46
|
-
getLimit(): number;
|
|
47
|
-
/**
|
|
48
|
-
* Read the limit
|
|
49
|
-
* @param ctx
|
|
50
|
-
*/
|
|
51
|
-
visitLimitExpression(ctx: LimitExpressionContext): void;
|
|
52
|
-
/**
|
|
53
|
-
* Read the offset if provided
|
|
54
|
-
* @param ctx
|
|
55
|
-
*/
|
|
56
|
-
visitOffsetExpression(ctx: OffsetExpressionContext): void;
|
|
57
|
-
/**
|
|
58
|
-
* Visit a order field expression
|
|
59
|
-
*/
|
|
60
|
-
visitOrderFieldExpression(ctx: OrderFieldExpressionContext): OrderBy;
|
|
61
|
-
/**
|
|
62
|
-
* Read the order by values
|
|
63
|
-
*/
|
|
64
|
-
visitOrderExpression(ctx: OrderExpressionContext): void;
|
|
65
|
-
/**
|
|
66
|
-
* Return only AndExpression
|
|
67
|
-
* @param ctx
|
|
68
|
-
* @returns
|
|
69
|
-
*/
|
|
70
|
-
visitWebdaql(ctx: WebdaqlContext): Query;
|
|
71
|
-
/**
|
|
72
|
-
* Simplify Logic expression and regroup them
|
|
73
|
-
* @param ctx
|
|
74
|
-
* @returns
|
|
75
|
-
*/
|
|
76
|
-
getComparison(ctx: AndLogicExpressionContext | OrLogicExpressionContext): any[];
|
|
77
|
-
/**
|
|
78
|
-
* Get the AndExpression, regrouping all the parameters
|
|
79
|
-
*
|
|
80
|
-
* By default the parser is doing a AND (b AND (c AND d)) creating 3 depth expressions
|
|
81
|
-
* This visitor simplify to a AND b AND c AND d with only one Expression
|
|
82
|
-
*/
|
|
83
|
-
visitAndLogicExpression(ctx: AndLogicExpressionContext): AndExpression;
|
|
84
|
-
/**
|
|
85
|
-
* Implement the BinaryComparison with all methods managed
|
|
86
|
-
*/
|
|
87
|
-
visitBinaryComparisonExpression(ctx: BinaryComparisonExpressionContext): ComparisonExpression<ComparisonOperator>;
|
|
88
|
-
/**
|
|
89
|
-
* Visit each value of the [..., ..., ...] set
|
|
90
|
-
*/
|
|
91
|
-
visitSetExpression(ctx: SetExpressionContext): value[];
|
|
92
|
-
/**
|
|
93
|
-
* a LIKE "%A?"
|
|
94
|
-
* @param ctx
|
|
95
|
-
* @returns
|
|
96
|
-
*/
|
|
97
|
-
visitLikeExpression(ctx: LikeExpressionContext): ComparisonExpression<"LIKE">;
|
|
98
|
-
/**
|
|
99
|
-
* Map the a IN ['b','c']
|
|
100
|
-
*/
|
|
101
|
-
visitInExpression(ctx: InExpressionContext): ComparisonExpression<"IN">;
|
|
102
|
-
/**
|
|
103
|
-
* Map the a CONTAINS 'b'
|
|
104
|
-
*/
|
|
105
|
-
visitContainsExpression(ctx: ContainsExpressionContext): ComparisonExpression<"CONTAINS">;
|
|
106
|
-
/**
|
|
107
|
-
* Get the OrExpression, regrouping all the parameters
|
|
108
|
-
*
|
|
109
|
-
* By default the parser is doing a OR (b OR (c OR d)) creating 3 depth expressions
|
|
110
|
-
* This visitor simplify to a OR b OR c OR d with only one Expression
|
|
111
|
-
*/
|
|
112
|
-
visitOrLogicExpression(ctx: OrLogicExpressionContext): OrExpression;
|
|
113
|
-
/**
|
|
114
|
-
* Read the string literal (removing the simple or double bracket)
|
|
115
|
-
*/
|
|
116
|
-
visitStringLiteral(ctx: StringLiteralContext): string;
|
|
117
|
-
/**
|
|
118
|
-
* Read the boolean literal
|
|
119
|
-
*/
|
|
120
|
-
visitBooleanLiteral(ctx: BooleanLiteralContext): boolean;
|
|
121
|
-
/**
|
|
122
|
-
* Read the number literal
|
|
123
|
-
*/
|
|
124
|
-
visitIntegerLiteral(ctx: IntegerLiteralContext): number;
|
|
125
|
-
}
|
|
126
|
-
/**
|
|
127
|
-
* Represent a full Query
|
|
128
|
-
*/
|
|
129
|
-
interface Query {
|
|
130
|
-
/**
|
|
131
|
-
* Filtering part of the expression
|
|
132
|
-
*/
|
|
133
|
-
filter: Expression;
|
|
134
|
-
/**
|
|
135
|
-
* Limit value
|
|
136
|
-
*/
|
|
137
|
-
limit?: number;
|
|
138
|
-
/**
|
|
139
|
-
* Offset value
|
|
140
|
-
*/
|
|
141
|
-
continuationToken?: string;
|
|
142
|
-
/**
|
|
143
|
-
* Order by clause
|
|
144
|
-
*/
|
|
145
|
-
orderBy?: OrderBy[];
|
|
146
|
-
/**
|
|
147
|
-
* Get the string representation of the query
|
|
148
|
-
*/
|
|
149
|
-
toString(): string;
|
|
150
|
-
}
|
|
151
|
-
/**
|
|
152
|
-
* Represent the query expression or subset
|
|
153
|
-
*/
|
|
154
|
-
abstract class Expression<T = string> {
|
|
155
|
-
operator: T;
|
|
156
|
-
constructor(operator: T);
|
|
157
|
-
/**
|
|
158
|
-
* Evaluate the expression for the target object
|
|
159
|
-
* @param target to evaluate
|
|
160
|
-
*/
|
|
161
|
-
abstract eval(target: any): boolean;
|
|
162
|
-
/**
|
|
163
|
-
* Return the representation of the expression
|
|
164
|
-
* @param depth
|
|
165
|
-
*/
|
|
166
|
-
abstract toString(depth?: number): string;
|
|
167
|
-
}
|
|
168
|
-
type ComparisonOperator = "=" | "<=" | ">=" | "<" | ">" | "!=" | "LIKE" | "IN" | "CONTAINS";
|
|
169
|
-
/**
|
|
170
|
-
* Comparison expression
|
|
171
|
-
*/
|
|
172
|
-
class ComparisonExpression<T extends ComparisonOperator = ComparisonOperator> extends Expression<T> {
|
|
173
|
-
/**
|
|
174
|
-
* Right side of the comparison
|
|
175
|
-
*/
|
|
176
|
-
value: value | value[];
|
|
177
|
-
/**
|
|
178
|
-
* Attribute to read from the object (split by .)
|
|
179
|
-
*/
|
|
180
|
-
attribute: string[];
|
|
181
|
-
/**
|
|
182
|
-
*
|
|
183
|
-
* @param operator of the expression
|
|
184
|
-
* @param attribute of the object to read
|
|
185
|
-
* @param value
|
|
186
|
-
*/
|
|
187
|
-
constructor(operator: T, attribute: string, value: value | any[]);
|
|
188
|
-
static likeToRegex(like: string): RegExp;
|
|
189
|
-
/**
|
|
190
|
-
* Read the value from the object
|
|
191
|
-
*
|
|
192
|
-
* @param target
|
|
193
|
-
* @returns
|
|
194
|
-
*/
|
|
195
|
-
static getAttributeValue(target: any, attribute: string[]): any;
|
|
196
|
-
/**
|
|
197
|
-
* Set the value of the attribute based on the assignment
|
|
198
|
-
*
|
|
199
|
-
* If used as a Set expression
|
|
200
|
-
* @param target
|
|
201
|
-
*/
|
|
202
|
-
setAttributeValue(target: any): void;
|
|
203
|
-
/**
|
|
204
|
-
* @override
|
|
205
|
-
*/
|
|
206
|
-
eval(target: any): boolean;
|
|
207
|
-
/**
|
|
208
|
-
* Return a string represantation of a value
|
|
209
|
-
*/
|
|
210
|
-
toStringValue(value: value | value[]): string;
|
|
211
|
-
/**
|
|
212
|
-
* Allow subclass to create different display
|
|
213
|
-
*/
|
|
214
|
-
toStringAttribute(): string;
|
|
215
|
-
/**
|
|
216
|
-
* Allow subclass to create different display
|
|
217
|
-
*/
|
|
218
|
-
toStringOperator(): T;
|
|
219
|
-
/**
|
|
220
|
-
* @override
|
|
221
|
-
*/
|
|
222
|
-
toString(): string;
|
|
223
|
-
}
|
|
224
|
-
/**
|
|
225
|
-
* Abstract logic expression (AND|OR)
|
|
226
|
-
*
|
|
227
|
-
* Could add XOR in the future
|
|
228
|
-
*/
|
|
229
|
-
abstract class LogicalExpression<T> extends Expression<T> {
|
|
230
|
-
/**
|
|
231
|
-
* Contains the members of the logical expression
|
|
232
|
-
*/
|
|
233
|
-
children: Expression[];
|
|
234
|
-
/**
|
|
235
|
-
*
|
|
236
|
-
* @param operator
|
|
237
|
-
* @param children
|
|
238
|
-
*/
|
|
239
|
-
constructor(operator: T, children: Expression[]);
|
|
240
|
-
/**
|
|
241
|
-
* @override
|
|
242
|
-
*/
|
|
243
|
-
toString(depth?: number): string;
|
|
244
|
-
}
|
|
245
|
-
/**
|
|
246
|
-
* AND Expression implementation
|
|
247
|
-
*/
|
|
248
|
-
class AndExpression extends LogicalExpression<"AND"> {
|
|
249
|
-
/**
|
|
250
|
-
* @param children Expressions to use for AND
|
|
251
|
-
*/
|
|
252
|
-
constructor(children: Expression[]);
|
|
253
|
-
/**
|
|
254
|
-
* @override
|
|
255
|
-
*/
|
|
256
|
-
eval(target: any): boolean;
|
|
257
|
-
}
|
|
258
|
-
/**
|
|
259
|
-
* OR Expression implementation
|
|
260
|
-
*/
|
|
261
|
-
class OrExpression extends LogicalExpression<"OR"> {
|
|
262
|
-
/**
|
|
263
|
-
* @param children Expressions to use for OR
|
|
264
|
-
*/
|
|
265
|
-
constructor(children: Expression[]);
|
|
266
|
-
/**
|
|
267
|
-
* @override
|
|
268
|
-
*/
|
|
269
|
-
eval(target: any): boolean;
|
|
270
|
-
}
|
|
271
|
-
/**
|
|
272
|
-
*
|
|
273
|
-
*/
|
|
274
|
-
class QueryValidator {
|
|
275
|
-
protected sql: string;
|
|
276
|
-
protected lexer: WebdaQLLexer;
|
|
277
|
-
protected tree: WebdaqlContext;
|
|
278
|
-
protected query: Query;
|
|
279
|
-
protected builder: ExpressionBuilder;
|
|
280
|
-
constructor(sql: string, builder?: ExpressionBuilder);
|
|
281
|
-
hasCondition(): boolean;
|
|
282
|
-
toString(): string;
|
|
283
|
-
merge(query: string, type?: "OR" | "AND"): this;
|
|
284
|
-
/**
|
|
285
|
-
* Get offset
|
|
286
|
-
* @returns
|
|
287
|
-
*/
|
|
288
|
-
getOffset(): string;
|
|
289
|
-
/**
|
|
290
|
-
* Get limit
|
|
291
|
-
* @returns
|
|
292
|
-
*/
|
|
293
|
-
getLimit(): number;
|
|
294
|
-
/**
|
|
295
|
-
* Get the expression by itself
|
|
296
|
-
* @returns
|
|
297
|
-
*/
|
|
298
|
-
getExpression(): Expression;
|
|
299
|
-
/**
|
|
300
|
-
* Retrieve parsed query
|
|
301
|
-
* @returns
|
|
302
|
-
*/
|
|
303
|
-
getQuery(): Query;
|
|
304
|
-
/**
|
|
305
|
-
* Verify if a target fit the expression
|
|
306
|
-
* @param target
|
|
307
|
-
* @returns
|
|
308
|
-
*/
|
|
309
|
-
eval(target: any): boolean;
|
|
310
|
-
/**
|
|
311
|
-
* Display parse tree back as query
|
|
312
|
-
* @param tree
|
|
313
|
-
* @returns
|
|
314
|
-
*/
|
|
315
|
-
displayTree(tree?: ParseTree): string;
|
|
316
|
-
}
|
|
317
|
-
/**
|
|
318
|
-
* For now reuse same parser
|
|
319
|
-
*/
|
|
320
|
-
class SetterValidator extends QueryValidator {
|
|
321
|
-
constructor(sql: string);
|
|
322
|
-
eval(target: any): boolean;
|
|
323
|
-
assign(target: any, expression: Expression): void;
|
|
324
|
-
}
|
|
325
|
-
class PartialValidator extends QueryValidator {
|
|
326
|
-
builder: PartialExpressionBuilder;
|
|
327
|
-
constructor(query: string, builder?: PartialExpressionBuilder);
|
|
328
|
-
/**
|
|
329
|
-
* Eval the query
|
|
330
|
-
* @param target
|
|
331
|
-
* @param partial
|
|
332
|
-
* @returns
|
|
333
|
-
*/
|
|
334
|
-
eval(target: any, partial?: boolean): boolean;
|
|
335
|
-
/**
|
|
336
|
-
* Return if the result ignored some fields
|
|
337
|
-
* @returns
|
|
338
|
-
*/
|
|
339
|
-
wasPartialMatch(): boolean;
|
|
340
|
-
}
|
|
341
|
-
class PartialComparisonExpression<T extends ComparisonOperator = ComparisonOperator> extends ComparisonExpression<T> {
|
|
342
|
-
protected builder: PartialExpressionBuilder;
|
|
343
|
-
constructor(builder: PartialExpressionBuilder, op: T, attribute: string, value: any);
|
|
344
|
-
/**
|
|
345
|
-
* Override the eval to check if the attribute is present
|
|
346
|
-
* if not and we are in partial mode, return true
|
|
347
|
-
*
|
|
348
|
-
* @param target
|
|
349
|
-
* @returns
|
|
350
|
-
*/
|
|
351
|
-
eval(target: any): boolean;
|
|
352
|
-
}
|
|
353
|
-
class PartialExpressionBuilder extends ExpressionBuilder {
|
|
354
|
-
/**
|
|
355
|
-
* Enforce the partial mode
|
|
356
|
-
*/
|
|
357
|
-
partial: boolean;
|
|
358
|
-
/**
|
|
359
|
-
* If eval was called in partial mode
|
|
360
|
-
*/
|
|
361
|
-
partialMatch: boolean;
|
|
362
|
-
setPartial(partial: boolean): void;
|
|
363
|
-
setPartialMatch(partial: boolean): void;
|
|
364
|
-
/**
|
|
365
|
-
* a LIKE "%A?"
|
|
366
|
-
* @param ctx
|
|
367
|
-
* @returns
|
|
368
|
-
*/
|
|
369
|
-
visitLikeExpression(ctx: any): PartialComparisonExpression<"LIKE">;
|
|
370
|
-
/**
|
|
371
|
-
* Implement the BinaryComparison with all methods managed
|
|
372
|
-
*/
|
|
373
|
-
visitBinaryComparisonExpression(ctx: any): PartialComparisonExpression<any>;
|
|
374
|
-
/**
|
|
375
|
-
* Map the a IN ['b','c']
|
|
376
|
-
*/
|
|
377
|
-
visitInExpression(ctx: any): PartialComparisonExpression<"IN">;
|
|
378
|
-
/**
|
|
379
|
-
* Map the a CONTAINS 'b'
|
|
380
|
-
*/
|
|
381
|
-
visitContainsExpression(ctx: any): PartialComparisonExpression<"CONTAINS">;
|
|
382
|
-
}
|
|
383
|
-
/**
|
|
384
|
-
* Remove artifact from sanitize-html inside query
|
|
385
|
-
* @param query
|
|
386
|
-
* @returns
|
|
387
|
-
*/
|
|
388
|
-
function unsanitize(query: string): string;
|
|
389
|
-
}
|
|
390
|
-
export {};
|