@bitblit/ratchet-epsilon-common 4.0.99-alpha → 4.0.102-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{types/background → background}/background-dynamo-log-table-handler.d.ts +3 -3
- package/dist/{es/background → background}/background-dynamo-log-table-handler.js +6 -2
- package/dist/{types/background → background}/background-execution-event.d.ts +1 -1
- package/dist/{types/background → background}/background-execution-listener.d.ts +1 -1
- package/dist/{types/background → background}/background-handler.d.ts +5 -9
- package/dist/{es/background → background}/background-handler.js +15 -7
- package/dist/{types/background → background}/background-http-adapter-handler.d.ts +7 -11
- package/dist/{es/background → background}/background-http-adapter-handler.js +13 -8
- package/dist/{types/background → background}/background-queue-response-internal.d.ts +1 -1
- package/dist/{types/background → background}/background-validator.d.ts +5 -8
- package/dist/{es/background → background}/background-validator.js +5 -3
- package/dist/{es/background → background}/epsilon-background-process-error.js +6 -1
- package/dist/{types/background → background}/internal-background-entry.d.ts +1 -1
- package/dist/{types/background → background}/manager/abstract-background-manager.d.ts +3 -10
- package/dist/{es/background → background}/manager/abstract-background-manager.js +5 -4
- package/dist/{types/background → background}/manager/aws-sqs-sns-background-manager.d.ts +4 -11
- package/dist/{es/background → background}/manager/aws-sqs-sns-background-manager.js +9 -5
- package/dist/{types/background → background}/manager/background-manager-like.d.ts +2 -9
- package/dist/background/manager/background-manager.spec.js +73 -0
- package/dist/{types/background → background}/manager/single-thread-local-background-manager.d.ts +3 -10
- package/dist/{es/background → background}/manager/single-thread-local-background-manager.js +6 -6
- package/dist/{types/background → background}/s3-background-transaction-logger.d.ts +2 -2
- package/dist/{es/background → background}/s3-background-transaction-logger.js +6 -3
- package/dist/{types/build → build}/ratchet-epsilon-common-info.d.ts +1 -1
- package/dist/{types/built-in → built-in}/background/echo-processor.d.ts +2 -2
- package/dist/{es/built-in → built-in}/background/echo-processor.js +4 -3
- package/dist/{types/built-in → built-in}/background/log-and-enqueue-echo-processor.d.ts +2 -2
- package/dist/{es/built-in → built-in}/background/log-and-enqueue-echo-processor.js +2 -2
- package/dist/{types/built-in → built-in}/background/log-message-background-error-processor.d.ts +2 -2
- package/dist/{es/built-in → built-in}/background/log-message-background-error-processor.js +1 -1
- package/dist/{types/built-in → built-in}/background/no-op-processor.d.ts +2 -2
- package/dist/{es/built-in → built-in}/background/no-op-processor.js +1 -1
- package/dist/{types/built-in → built-in}/background/retry-processor.d.ts +2 -2
- package/dist/{es/built-in → built-in}/background/retry-processor.js +8 -4
- package/dist/{types/built-in → built-in}/background/sample-delay-processor.d.ts +2 -2
- package/dist/{es/built-in → built-in}/background/sample-delay-processor.js +2 -1
- package/dist/{types/built-in → built-in}/background/sample-input-validated-processor.d.ts +3 -3
- package/dist/{es/built-in → built-in}/background/sample-input-validated-processor.js +1 -1
- package/dist/{es/built-in → built-in}/built-in-trace-id-generators.js +2 -2
- package/dist/{types/built-in → built-in}/daemon/daemon-authorizer-function.d.ts +2 -2
- package/dist/{types/built-in → built-in}/daemon/daemon-config.d.ts +2 -2
- package/dist/{types/built-in → built-in}/daemon/daemon-group-selection-function.d.ts +1 -1
- package/dist/{types/built-in → built-in}/daemon/daemon-handler.d.ts +6 -12
- package/dist/{es/built-in → built-in}/daemon/daemon-handler.js +9 -8
- package/dist/built-in/daemon/daemon-process-state-list.d.ts +5 -0
- package/dist/{types/built-in → built-in}/http/apollo-filter.d.ts +2 -2
- package/dist/{es/built-in → built-in}/http/apollo-filter.js +6 -5
- package/dist/{types/built-in → built-in}/http/built-in-auth-filters.d.ts +3 -3
- package/dist/{es/built-in → built-in}/http/built-in-auth-filters.js +5 -5
- package/dist/{types/built-in → built-in}/http/built-in-authorizers.d.ts +2 -2
- package/dist/{es/built-in → built-in}/http/built-in-authorizers.js +1 -1
- package/dist/{types/built-in → built-in}/http/built-in-filters.d.ts +2 -2
- package/dist/{es/built-in → built-in}/http/built-in-filters.js +9 -9
- package/dist/{types/built-in → built-in}/http/built-in-handlers.d.ts +2 -2
- package/dist/{es/built-in → built-in}/http/built-in-handlers.js +10 -10
- package/dist/{types/built-in → built-in}/http/log-level-manipulation-filter.d.ts +1 -4
- package/dist/{es/built-in → built-in}/http/log-level-manipulation-filter.js +2 -2
- package/dist/{types/built-in → built-in}/http/run-handler-as-filter.d.ts +5 -5
- package/dist/{es/built-in → built-in}/http/run-handler-as-filter.js +8 -8
- package/dist/built-in/http/run-handler-as-filter.spec.js +40 -0
- package/dist/{types/cli-bootstrap → cli-bootstrap}/ratchet-cli-handler.d.ts +2 -2
- package/dist/{es/cli-bootstrap → cli-bootstrap}/ratchet-cli-handler.js +6 -6
- package/dist/cli-bootstrap/run-background-process-from-command-line.d.ts +3 -0
- package/dist/{es/cli-bootstrap → cli-bootstrap}/run-background-process-from-command-line.js +2 -2
- package/dist/{types/config → config}/background/background-config.d.ts +4 -4
- package/dist/{types/config → config}/background/background-error-processor.d.ts +1 -1
- package/dist/{types/config → config}/background/background-processor.d.ts +1 -1
- package/dist/{types/config → config}/background/background-transaction-log.d.ts +1 -1
- package/dist/{types/config → config}/background/background-transaction-logger.d.ts +1 -1
- package/dist/config/cron/cron-background-entry.d.ts +6 -0
- package/dist/{types/config → config}/cron/cron-config.d.ts +1 -1
- package/dist/{types/config → config}/dynamo-db-config.d.ts +1 -1
- package/dist/{types/config → config}/epsilon-config.d.ts +8 -8
- package/dist/{types/config → config}/epsilon-logger-config.d.ts +3 -2
- package/dist/{types/config → config}/http/authorizer-function.d.ts +3 -3
- package/dist/{types/config → config}/http/extended-api-gateway-event.d.ts +1 -1
- package/dist/{types/config → config}/http/filter-chain-context.d.ts +4 -4
- package/dist/{types/config → config}/http/filter-function.d.ts +1 -1
- package/dist/{types/config → config}/http/handler-function.d.ts +1 -1
- package/dist/{types/config → config}/http/http-config.d.ts +5 -5
- package/dist/{types/config → config}/http/http-processing-config.d.ts +2 -2
- package/dist/{types/config → config}/http/mapped-http-processing-config.d.ts +1 -1
- package/dist/{types/config → config}/inter-api/inter-api-config.d.ts +2 -2
- package/dist/config/inter-api/inter-api-process-mapping.d.ts +6 -0
- package/dist/{types/config → config}/open-api/open-api-document.d.ts +2 -2
- package/dist/{types/config → config}/s3-config.d.ts +1 -1
- package/dist/{types/config → config}/sns-config.d.ts +1 -1
- package/dist/{es/epsilon-build-properties.js → epsilon-build-properties.js} +1 -1
- package/dist/{types/epsilon-constants.d.ts → epsilon-constants.d.ts} +1 -1
- package/dist/{es/epsilon-constants.js → epsilon-constants.js} +14 -13
- package/dist/{types/epsilon-global-handler.d.ts → epsilon-global-handler.d.ts} +3 -6
- package/dist/{es/epsilon-global-handler.js → epsilon-global-handler.js} +29 -24
- package/dist/{types/epsilon-instance.d.ts → epsilon-instance.d.ts} +6 -11
- package/dist/epsilon-logging-extension-processor.d.ts +6 -0
- package/dist/{es/epsilon-logging-extension-processor.js → epsilon-logging-extension-processor.js} +1 -1
- package/dist/{types/http → http}/auth/api-gateway-adapter-authentication-handler.d.ts +0 -10
- package/dist/{es/http → http}/auth/api-gateway-adapter-authentication-handler.js +4 -3
- package/dist/{types/http → http}/auth/auth0-web-token-manipulator.d.ts +2 -2
- package/dist/{es/http → http}/auth/auth0-web-token-manipulator.js +6 -1
- package/dist/{types/http → http}/auth/basic-auth-token.d.ts +0 -3
- package/dist/{types/http → http}/auth/google-web-token-manipulator.d.ts +2 -2
- package/dist/{es/http → http}/auth/google-web-token-manipulator.js +6 -3
- package/dist/http/auth/google-web-token-manipulator.spec.js +10 -0
- package/dist/{types/http → http}/auth/jwt-ratchet-local-web-token-manipulator.d.ts +3 -5
- package/dist/{es/http → http}/auth/jwt-ratchet-local-web-token-manipulator.js +5 -3
- package/dist/{types/http → http}/auth/local-web-token-manipulator.d.ts +4 -5
- package/dist/{es/http → http}/auth/local-web-token-manipulator.js +9 -5
- package/dist/http/auth/local-web-token-manipulator.spec.js +24 -0
- package/dist/{types/http → http}/auth/web-token-manipulator.d.ts +1 -4
- package/dist/{types/http → http}/error/bad-gateway.d.ts +1 -1
- package/dist/{es/http → http}/error/bad-gateway.js +2 -2
- package/dist/{types/http → http}/error/bad-request-error.d.ts +1 -1
- package/dist/{es/http → http}/error/bad-request-error.js +2 -2
- package/dist/{types/http → http}/error/conflict-error.d.ts +1 -1
- package/dist/{es/http → http}/error/conflict-error.js +2 -2
- package/dist/{es/http → http}/error/epsilon-http-error.js +9 -3
- package/dist/http/error/epsilon-http-error.spec.js +11 -0
- package/dist/{types/http → http}/error/forbidden-error.d.ts +1 -1
- package/dist/{es/http → http}/error/forbidden-error.js +2 -2
- package/dist/{types/http → http}/error/gateway-timeout.d.ts +1 -1
- package/dist/{es/http → http}/error/gateway-timeout.js +2 -2
- package/dist/{types/http → http}/error/method-not-allowed-error.d.ts +1 -1
- package/dist/{es/http → http}/error/method-not-allowed-error.js +2 -2
- package/dist/{types/http → http}/error/misconfigured-error.d.ts +1 -1
- package/dist/{es/http → http}/error/misconfigured-error.js +2 -2
- package/dist/{types/http → http}/error/not-found-error.d.ts +1 -1
- package/dist/{es/http → http}/error/not-found-error.js +2 -2
- package/dist/{types/http → http}/error/not-implemented.d.ts +1 -1
- package/dist/{es/http → http}/error/not-implemented.js +2 -2
- package/dist/{types/http → http}/error/request-timeout-error.d.ts +1 -1
- package/dist/{es/http → http}/error/request-timeout-error.js +2 -2
- package/dist/{types/http → http}/error/service-unavailable.d.ts +1 -1
- package/dist/{es/http → http}/error/service-unavailable.js +2 -2
- package/dist/{types/http → http}/error/too-many-requests-error.d.ts +1 -1
- package/dist/{es/http → http}/error/too-many-requests-error.js +2 -2
- package/dist/{types/http → http}/error/unauthorized-error.d.ts +1 -1
- package/dist/{es/http → http}/error/unauthorized-error.js +2 -2
- package/dist/{types/http → http}/event-util.d.ts +3 -25
- package/dist/{es/http → http}/event-util.js +9 -8
- package/dist/http/event-util.spec.js +157 -0
- package/dist/{types/http → http}/response-util.d.ts +2 -2
- package/dist/{es/http → http}/response-util.js +2 -2
- package/dist/http/response-util.spec.d.ts +1 -0
- package/dist/http/response-util.spec.js +88 -0
- package/dist/http/route/epsilon-router.d.ts +8 -0
- package/dist/http/route/epsilon-router.js +1 -0
- package/dist/http/route/extended-auth-response-context.js +1 -0
- package/dist/{types/http → http}/route/route-mapping.d.ts +3 -3
- package/dist/http/route/route-mapping.js +1 -0
- package/dist/http/route/route-validator-config.js +1 -0
- package/dist/{types/http → http}/route/router-util.d.ts +9 -12
- package/dist/{es/http → http}/route/router-util.js +10 -10
- package/dist/http/route/router-util.spec.d.ts +1 -0
- package/dist/http/route/router-util.spec.js +23 -0
- package/dist/{types/http → http}/web-handler.d.ts +4 -7
- package/dist/{es/http → http}/web-handler.js +11 -10
- package/dist/http/web-handler.spec.d.ts +1 -0
- package/dist/http/web-handler.spec.js +32 -0
- package/dist/{types/http → http}/web-v2-handler.d.ts +2 -5
- package/dist/{es/http → http}/web-v2-handler.js +3 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/inter-api/inter-api-entry.js +1 -0
- package/dist/{types/inter-api → inter-api}/inter-api-util.d.ts +3 -3
- package/dist/{es/inter-api → inter-api}/inter-api-util.js +6 -5
- package/dist/inter-api/inter-api-util.spec.d.ts +1 -0
- package/dist/inter-api/inter-api-util.spec.js +61 -0
- package/dist/{types/inter-api-manager.d.ts → inter-api-manager.d.ts} +2 -5
- package/dist/{es/inter-api-manager.js → inter-api-manager.js} +5 -3
- package/dist/{types/lambda-event-handler → lambda-event-handler}/cron-epsilon-lambda-event-handler.d.ts +5 -5
- package/dist/{es/lambda-event-handler → lambda-event-handler}/cron-epsilon-lambda-event-handler.js +5 -4
- package/dist/lambda-event-handler/cron-epsilon-lambda-event-handler.spec.d.ts +1 -0
- package/dist/lambda-event-handler/cron-epsilon-lambda-event-handler.spec.js +50 -0
- package/dist/{types/lambda-event-handler → lambda-event-handler}/dynamo-epsilon-lambda-event-handler.d.ts +2 -2
- package/dist/{es/lambda-event-handler → lambda-event-handler}/dynamo-epsilon-lambda-event-handler.js +4 -3
- package/dist/{types/lambda-event-handler → lambda-event-handler}/generic-sns-epsilon-lambda-event-handler.d.ts +2 -2
- package/dist/{es/lambda-event-handler → lambda-event-handler}/generic-sns-epsilon-lambda-event-handler.js +4 -3
- package/dist/{types/lambda-event-handler → lambda-event-handler}/inter-api-epsilon-lambda-event-handler.d.ts +2 -2
- package/dist/{es/lambda-event-handler → lambda-event-handler}/inter-api-epsilon-lambda-event-handler.js +2 -1
- package/dist/{types/lambda-event-handler → lambda-event-handler}/s3-epsilon-lambda-event-handler.d.ts +2 -2
- package/dist/{es/lambda-event-handler → lambda-event-handler}/s3-epsilon-lambda-event-handler.js +4 -3
- package/dist/{types/local-container-server.d.ts → local-container-server.d.ts} +1 -4
- package/dist/{es/local-container-server.js → local-container-server.js} +8 -4
- package/dist/local-server-cert.js +67 -0
- package/dist/{types/local-server.d.ts → local-server.d.ts} +2 -5
- package/dist/{es/local-server.js → local-server.js} +11 -8
- package/dist/open-api-util/open-api-doc-modifications.js +1 -0
- package/dist/{types/open-api-util → open-api-util}/open-api-doc-modifier.d.ts +1 -4
- package/dist/{es/open-api-util → open-api-util}/open-api-doc-modifier.js +2 -1
- package/dist/open-api-util/open-api-doc-modifier.spec.d.ts +1 -0
- package/dist/open-api-util/open-api-doc-modifier.spec.js +16 -0
- package/dist/{es/open-api-util → open-api-util}/yaml-combiner.js +2 -2
- package/dist/open-api-util/yaml-combiner.spec.d.ts +1 -0
- package/dist/open-api-util/yaml-combiner.spec.js +22 -0
- package/dist/{types/sample → sample}/sample-server-components.d.ts +2 -2
- package/dist/{es/sample → sample}/sample-server-components.js +25 -24
- package/dist/sample/sample-server-static-files.js +593 -0
- package/dist/{types/sample → sample}/test-error-server.d.ts +1 -4
- package/dist/{es/sample → sample}/test-error-server.js +4 -2
- package/dist/{types/util → util}/context-util.d.ts +3 -3
- package/dist/{es/util → util}/context-util.js +11 -5
- package/dist/{types/util → util}/cron-util.d.ts +2 -2
- package/dist/{es/util → util}/cron-util.js +3 -3
- package/dist/util/cron-util.spec.d.ts +1 -0
- package/dist/util/cron-util.spec.js +124 -0
- package/dist/{types/util → util}/epsilon-config-parser.d.ts +6 -6
- package/dist/{es/util → util}/epsilon-config-parser.js +9 -9
- package/includes/cli.js +8 -10
- package/package.json +12 -15
- package/dist/cjs/background/background-dynamo-log-table-handler.js +0 -38
- package/dist/cjs/background/background-entry.js +0 -2
- package/dist/cjs/background/background-execution-event-type.js +0 -11
- package/dist/cjs/background/background-execution-event.js +0 -2
- package/dist/cjs/background/background-execution-listener.js +0 -2
- package/dist/cjs/background/background-handler.js +0 -269
- package/dist/cjs/background/background-http-adapter-handler.js +0 -127
- package/dist/cjs/background/background-meta-response-internal.js +0 -2
- package/dist/cjs/background/background-process-handling.js +0 -8
- package/dist/cjs/background/background-process-log-table-entry.js +0 -2
- package/dist/cjs/background/background-queue-response-internal.js +0 -2
- package/dist/cjs/background/background-validator.js +0 -88
- package/dist/cjs/background/epsilon-background-process-error.js +0 -93
- package/dist/cjs/background/internal-background-entry.js +0 -2
- package/dist/cjs/background/manager/abstract-background-manager.js +0 -92
- package/dist/cjs/background/manager/aws-sqs-sns-background-manager.js +0 -153
- package/dist/cjs/background/manager/background-manager-like.js +0 -2
- package/dist/cjs/background/manager/single-thread-local-background-manager.js +0 -49
- package/dist/cjs/background/s3-background-transaction-logger.js +0 -54
- package/dist/cjs/build/ratchet-epsilon-common-info.js +0 -18
- package/dist/cjs/built-in/background/echo-processor.js +0 -18
- package/dist/cjs/built-in/background/log-and-enqueue-echo-processor.js +0 -16
- package/dist/cjs/built-in/background/log-message-background-error-processor.js +0 -10
- package/dist/cjs/built-in/background/no-op-processor.js +0 -13
- package/dist/cjs/built-in/background/retry-processor.js +0 -41
- package/dist/cjs/built-in/background/sample-delay-processor.js +0 -16
- package/dist/cjs/built-in/background/sample-input-validated-processor-data.js +0 -2
- package/dist/cjs/built-in/background/sample-input-validated-processor.js +0 -16
- package/dist/cjs/built-in/built-in-trace-id-generators.js +0 -25
- package/dist/cjs/built-in/daemon/daemon-authorizer-function.js +0 -2
- package/dist/cjs/built-in/daemon/daemon-config.js +0 -2
- package/dist/cjs/built-in/daemon/daemon-group-selection-function.js +0 -2
- package/dist/cjs/built-in/daemon/daemon-handler.js +0 -62
- package/dist/cjs/built-in/daemon/daemon-process-state-list.js +0 -2
- package/dist/cjs/built-in/http/apollo-filter.js +0 -63
- package/dist/cjs/built-in/http/built-in-auth-filters.js +0 -115
- package/dist/cjs/built-in/http/built-in-authorizers.js +0 -43
- package/dist/cjs/built-in/http/built-in-filters.js +0 -222
- package/dist/cjs/built-in/http/built-in-handlers.js +0 -73
- package/dist/cjs/built-in/http/log-level-manipulation-filter.js +0 -20
- package/dist/cjs/built-in/http/run-handler-as-filter.js +0 -64
- package/dist/cjs/cli-bootstrap/ratchet-cli-handler.js +0 -24
- package/dist/cjs/cli-bootstrap/run-background-process-from-command-line.js +0 -26
- package/dist/cjs/config/background/background-aws-config.js +0 -2
- package/dist/cjs/config/background/background-config.js +0 -2
- package/dist/cjs/config/background/background-error-processor.js +0 -2
- package/dist/cjs/config/background/background-processor.js +0 -2
- package/dist/cjs/config/background/background-transaction-log.js +0 -2
- package/dist/cjs/config/background/background-transaction-logger.js +0 -2
- package/dist/cjs/config/cron/abstract-cron-entry.js +0 -2
- package/dist/cjs/config/cron/cron-background-entry.js +0 -2
- package/dist/cjs/config/cron/cron-config.js +0 -2
- package/dist/cjs/config/dynamo-db-config.js +0 -2
- package/dist/cjs/config/epsilon-config.js +0 -2
- package/dist/cjs/config/epsilon-lambda-event-handler.js +0 -2
- package/dist/cjs/config/epsilon-logger-config.js +0 -2
- package/dist/cjs/config/generic-aws-event-handler-function.js +0 -2
- package/dist/cjs/config/http/authorizer-function.js +0 -2
- package/dist/cjs/config/http/epsilon-authorization-context.js +0 -2
- package/dist/cjs/config/http/extended-api-gateway-event.js +0 -2
- package/dist/cjs/config/http/filter-chain-context.js +0 -2
- package/dist/cjs/config/http/filter-function.js +0 -2
- package/dist/cjs/config/http/handler-function.js +0 -2
- package/dist/cjs/config/http/http-config.js +0 -2
- package/dist/cjs/config/http/http-processing-config.js +0 -2
- package/dist/cjs/config/http/mapped-http-processing-config.js +0 -2
- package/dist/cjs/config/http/null-returned-object-handling.js +0 -9
- package/dist/cjs/config/inter-api/inter-api-aws-config.js +0 -2
- package/dist/cjs/config/inter-api/inter-api-config.js +0 -2
- package/dist/cjs/config/inter-api/inter-api-process-mapping.js +0 -2
- package/dist/cjs/config/logging-trace-id-generator.js +0 -2
- package/dist/cjs/config/open-api/open-api-document-components.js +0 -2
- package/dist/cjs/config/open-api/open-api-document-path.js +0 -2
- package/dist/cjs/config/open-api/open-api-document.js +0 -2
- package/dist/cjs/config/s3-config.js +0 -2
- package/dist/cjs/config/sns-config.js +0 -2
- package/dist/cjs/epsilon-build-properties.js +0 -28
- package/dist/cjs/epsilon-constants.js +0 -49
- package/dist/cjs/epsilon-global-handler.js +0 -155
- package/dist/cjs/epsilon-instance.js +0 -2
- package/dist/cjs/epsilon-logging-extension-processor.js +0 -19
- package/dist/cjs/http/auth/api-gateway-adapter-authentication-handler.js +0 -75
- package/dist/cjs/http/auth/auth0-web-token-manipulator.js +0 -62
- package/dist/cjs/http/auth/basic-auth-token.js +0 -2
- package/dist/cjs/http/auth/google-web-token-manipulator.js +0 -72
- package/dist/cjs/http/auth/jwt-ratchet-local-web-token-manipulator.js +0 -29
- package/dist/cjs/http/auth/local-web-token-manipulator.js +0 -74
- package/dist/cjs/http/auth/web-token-manipulator.js +0 -2
- package/dist/cjs/http/error/bad-gateway.js +0 -12
- package/dist/cjs/http/error/bad-request-error.js +0 -12
- package/dist/cjs/http/error/conflict-error.js +0 -12
- package/dist/cjs/http/error/epsilon-http-error.js +0 -132
- package/dist/cjs/http/error/forbidden-error.js +0 -12
- package/dist/cjs/http/error/gateway-timeout.js +0 -12
- package/dist/cjs/http/error/method-not-allowed-error.js +0 -12
- package/dist/cjs/http/error/misconfigured-error.js +0 -12
- package/dist/cjs/http/error/not-found-error.js +0 -12
- package/dist/cjs/http/error/not-implemented.js +0 -12
- package/dist/cjs/http/error/request-timeout-error.js +0 -12
- package/dist/cjs/http/error/service-unavailable.js +0 -12
- package/dist/cjs/http/error/too-many-requests-error.js +0 -12
- package/dist/cjs/http/error/unauthorized-error.js +0 -12
- package/dist/cjs/http/event-util.js +0 -180
- package/dist/cjs/http/response-util.js +0 -146
- package/dist/cjs/http/route/epsilon-router.js +0 -2
- package/dist/cjs/http/route/extended-auth-response-context.js +0 -2
- package/dist/cjs/http/route/route-mapping.js +0 -2
- package/dist/cjs/http/route/route-validator-config.js +0 -2
- package/dist/cjs/http/route/router-util.js +0 -238
- package/dist/cjs/http/web-handler.js +0 -122
- package/dist/cjs/http/web-v2-handler.js +0 -25
- package/dist/cjs/index.js +0 -135
- package/dist/cjs/inter-api/inter-api-entry.js +0 -2
- package/dist/cjs/inter-api/inter-api-util.js +0 -62
- package/dist/cjs/inter-api-manager.js +0 -67
- package/dist/cjs/lambda-event-handler/cron-epsilon-lambda-event-handler.js +0 -76
- package/dist/cjs/lambda-event-handler/dynamo-epsilon-lambda-event-handler.js +0 -36
- package/dist/cjs/lambda-event-handler/generic-sns-epsilon-lambda-event-handler.js +0 -32
- package/dist/cjs/lambda-event-handler/inter-api-epsilon-lambda-event-handler.js +0 -26
- package/dist/cjs/lambda-event-handler/s3-epsilon-lambda-event-handler.js +0 -44
- package/dist/cjs/local-container-server.js +0 -77
- package/dist/cjs/local-server-cert.js +0 -71
- package/dist/cjs/local-server.js +0 -164
- package/dist/cjs/open-api-util/open-api-doc-modifications.js +0 -2
- package/dist/cjs/open-api-util/open-api-doc-modifier.js +0 -83
- package/dist/cjs/open-api-util/yaml-combiner.js +0 -32
- package/dist/cjs/sample/sample-server-components.js +0 -188
- package/dist/cjs/sample/sample-server-static-files.js +0 -597
- package/dist/cjs/sample/test-error-server.js +0 -47
- package/dist/cjs/util/aws-util.js +0 -69
- package/dist/cjs/util/context-util.js +0 -104
- package/dist/cjs/util/cron-util.js +0 -72
- package/dist/cjs/util/epsilon-config-parser.js +0 -71
- package/dist/es/index.js +0 -132
- package/dist/es/local-server-cert.js +0 -67
- package/dist/es/sample/sample-server-static-files.js +0 -593
- package/dist/tsconfig.cjs.tsbuildinfo +0 -1
- package/dist/tsconfig.es.tsbuildinfo +0 -1
- package/dist/tsconfig.types.tsbuildinfo +0 -1
- package/dist/types/built-in/daemon/daemon-process-state-list.d.ts +0 -8
- package/dist/types/cli-bootstrap/run-background-process-from-command-line.d.ts +0 -12
- package/dist/types/config/cron/cron-background-entry.d.ts +0 -15
- package/dist/types/config/inter-api/inter-api-process-mapping.d.ts +0 -11
- package/dist/types/epsilon-logging-extension-processor.d.ts +0 -5
- package/dist/types/http/route/epsilon-router.d.ts +0 -8
- package/dist/types/index.d.ts +0 -135
- /package/dist/{types/background → background}/background-entry.d.ts +0 -0
- /package/dist/{es/background → background}/background-entry.js +0 -0
- /package/dist/{types/background → background}/background-execution-event-type.d.ts +0 -0
- /package/dist/{es/background → background}/background-execution-event-type.js +0 -0
- /package/dist/{es/background → background}/background-execution-event.js +0 -0
- /package/dist/{es/background → background}/background-execution-listener.js +0 -0
- /package/dist/{types/background → background}/background-meta-response-internal.d.ts +0 -0
- /package/dist/{es/background → background}/background-meta-response-internal.js +0 -0
- /package/dist/{types/background → background}/background-process-handling.d.ts +0 -0
- /package/dist/{es/background → background}/background-process-handling.js +0 -0
- /package/dist/{types/background → background}/background-process-log-table-entry.d.ts +0 -0
- /package/dist/{es/background → background}/background-process-log-table-entry.js +0 -0
- /package/dist/{es/background → background}/background-queue-response-internal.js +0 -0
- /package/dist/{types/background → background}/epsilon-background-process-error.d.ts +0 -0
- /package/dist/{es/background → background}/internal-background-entry.js +0 -0
- /package/dist/{es/background → background}/manager/background-manager-like.js +0 -0
- /package/dist/{es/built-in/background/sample-input-validated-processor-data.js → background/manager/background-manager.spec.d.ts} +0 -0
- /package/dist/{es/build → build}/ratchet-epsilon-common-info.js +0 -0
- /package/dist/{types/built-in → built-in}/background/sample-input-validated-processor-data.d.ts +0 -0
- /package/dist/{es/built-in/daemon/daemon-authorizer-function.js → built-in/background/sample-input-validated-processor-data.js} +0 -0
- /package/dist/{types/built-in → built-in}/built-in-trace-id-generators.d.ts +0 -0
- /package/dist/{es/built-in/daemon/daemon-config.js → built-in/daemon/daemon-authorizer-function.js} +0 -0
- /package/dist/{es/built-in/daemon/daemon-group-selection-function.js → built-in/daemon/daemon-config.js} +0 -0
- /package/dist/{es/built-in/daemon/daemon-process-state-list.js → built-in/daemon/daemon-group-selection-function.js} +0 -0
- /package/dist/{es/config/background/background-aws-config.js → built-in/daemon/daemon-process-state-list.js} +0 -0
- /package/dist/{es/config/background/background-config.js → built-in/http/run-handler-as-filter.spec.d.ts} +0 -0
- /package/dist/{types/config → config}/background/background-aws-config.d.ts +0 -0
- /package/dist/{es/config/background/background-error-processor.js → config/background/background-aws-config.js} +0 -0
- /package/dist/{es/config/background/background-processor.js → config/background/background-config.js} +0 -0
- /package/dist/{es/config/background/background-transaction-log.js → config/background/background-error-processor.js} +0 -0
- /package/dist/{es/config/background/background-transaction-logger.js → config/background/background-processor.js} +0 -0
- /package/dist/{es/config/cron/abstract-cron-entry.js → config/background/background-transaction-log.js} +0 -0
- /package/dist/{es/config/cron/cron-background-entry.js → config/background/background-transaction-logger.js} +0 -0
- /package/dist/{types/config → config}/cron/abstract-cron-entry.d.ts +0 -0
- /package/dist/{es/config/cron/cron-config.js → config/cron/abstract-cron-entry.js} +0 -0
- /package/dist/{es/config/dynamo-db-config.js → config/cron/cron-background-entry.js} +0 -0
- /package/dist/{es/config/epsilon-config.js → config/cron/cron-config.js} +0 -0
- /package/dist/{es/config/epsilon-lambda-event-handler.js → config/dynamo-db-config.js} +0 -0
- /package/dist/{es/config/epsilon-logger-config.js → config/epsilon-config.js} +0 -0
- /package/dist/{types/config → config}/epsilon-lambda-event-handler.d.ts +0 -0
- /package/dist/{es/config/generic-aws-event-handler-function.js → config/epsilon-lambda-event-handler.js} +0 -0
- /package/dist/{es/config/http/authorizer-function.js → config/epsilon-logger-config.js} +0 -0
- /package/dist/{types/config → config}/generic-aws-event-handler-function.d.ts +0 -0
- /package/dist/{es/config/http/epsilon-authorization-context.js → config/generic-aws-event-handler-function.js} +0 -0
- /package/dist/{es/config/http/extended-api-gateway-event.js → config/http/authorizer-function.js} +0 -0
- /package/dist/{types/config → config}/http/epsilon-authorization-context.d.ts +0 -0
- /package/dist/{es/config/http/filter-chain-context.js → config/http/epsilon-authorization-context.js} +0 -0
- /package/dist/{es/config/http/filter-function.js → config/http/extended-api-gateway-event.js} +0 -0
- /package/dist/{es/config/http/handler-function.js → config/http/filter-chain-context.js} +0 -0
- /package/dist/{es/config/http/http-config.js → config/http/filter-function.js} +0 -0
- /package/dist/{es/config/http/http-processing-config.js → config/http/handler-function.js} +0 -0
- /package/dist/{es/config/http/mapped-http-processing-config.js → config/http/http-config.js} +0 -0
- /package/dist/{es/config/inter-api/inter-api-aws-config.js → config/http/http-processing-config.js} +0 -0
- /package/dist/{es/config/inter-api/inter-api-config.js → config/http/mapped-http-processing-config.js} +0 -0
- /package/dist/{types/config → config}/http/null-returned-object-handling.d.ts +0 -0
- /package/dist/{es/config → config}/http/null-returned-object-handling.js +0 -0
- /package/dist/{types/config → config}/inter-api/inter-api-aws-config.d.ts +0 -0
- /package/dist/{es/config/inter-api/inter-api-process-mapping.js → config/inter-api/inter-api-aws-config.js} +0 -0
- /package/dist/{es/config/logging-trace-id-generator.js → config/inter-api/inter-api-config.js} +0 -0
- /package/dist/{es/config/open-api/open-api-document-components.js → config/inter-api/inter-api-process-mapping.js} +0 -0
- /package/dist/{types/config → config}/logging-trace-id-generator.d.ts +0 -0
- /package/dist/{es/config/open-api/open-api-document-path.js → config/logging-trace-id-generator.js} +0 -0
- /package/dist/{types/config → config}/open-api/open-api-document-components.d.ts +0 -0
- /package/dist/{es/config/open-api/open-api-document.js → config/open-api/open-api-document-components.js} +0 -0
- /package/dist/{types/config → config}/open-api/open-api-document-path.d.ts +0 -0
- /package/dist/{es/config/s3-config.js → config/open-api/open-api-document-path.js} +0 -0
- /package/dist/{es/config/sns-config.js → config/open-api/open-api-document.js} +0 -0
- /package/dist/{es/epsilon-instance.js → config/s3-config.js} +0 -0
- /package/dist/{es/http/auth/basic-auth-token.js → config/sns-config.js} +0 -0
- /package/dist/{types/epsilon-build-properties.d.ts → epsilon-build-properties.d.ts} +0 -0
- /package/dist/{es/http/auth/web-token-manipulator.js → epsilon-instance.js} +0 -0
- /package/dist/{es/http/route/epsilon-router.js → http/auth/basic-auth-token.js} +0 -0
- /package/dist/{es/http/route/extended-auth-response-context.js → http/auth/google-web-token-manipulator.spec.d.ts} +0 -0
- /package/dist/{es/http/route/route-mapping.js → http/auth/local-web-token-manipulator.spec.d.ts} +0 -0
- /package/dist/{es/http/route/route-validator-config.js → http/auth/web-token-manipulator.js} +0 -0
- /package/dist/{types/http → http}/error/epsilon-http-error.d.ts +0 -0
- /package/dist/{es/inter-api/inter-api-entry.js → http/error/epsilon-http-error.spec.d.ts} +0 -0
- /package/dist/{es/open-api-util/open-api-doc-modifications.js → http/event-util.spec.d.ts} +0 -0
- /package/dist/{types/http → http}/route/extended-auth-response-context.d.ts +0 -0
- /package/dist/{types/http → http}/route/route-validator-config.d.ts +0 -0
- /package/dist/{types/inter-api → inter-api}/inter-api-entry.d.ts +0 -0
- /package/dist/{types/local-server-cert.d.ts → local-server-cert.d.ts} +0 -0
- /package/dist/{types/open-api-util → open-api-util}/open-api-doc-modifications.d.ts +0 -0
- /package/dist/{types/open-api-util → open-api-util}/yaml-combiner.d.ts +0 -0
- /package/dist/{types/sample → sample}/sample-server-static-files.d.ts +0 -0
- /package/dist/{types/util → util}/aws-util.d.ts +0 -0
- /package/dist/{es/util → util}/aws-util.js +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BackgroundExecutionListener } from './background-execution-listener';
|
|
2
|
-
import { BackgroundExecutionEvent } from './background-execution-event';
|
|
3
|
-
import { DynamoRatchetLike } from '@bitblit/ratchet-aws';
|
|
1
|
+
import { BackgroundExecutionListener } from './background-execution-listener.js';
|
|
2
|
+
import { BackgroundExecutionEvent } from './background-execution-event.js';
|
|
3
|
+
import { DynamoRatchetLike } from '@bitblit/ratchet-aws/dist/dynamodb/dynamo-ratchet-like.js';
|
|
4
4
|
export declare class BackgroundDynamoLogTableHandler<T> implements BackgroundExecutionListener<T> {
|
|
5
5
|
private dynamo;
|
|
6
6
|
private tableName;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import { BackgroundExecutionEventType } from './background-execution-event-type';
|
|
2
|
-
import { ContextUtil } from '../util/context-util';
|
|
1
|
+
import { BackgroundExecutionEventType } from './background-execution-event-type.js';
|
|
2
|
+
import { ContextUtil } from '../util/context-util.js';
|
|
3
3
|
export class BackgroundDynamoLogTableHandler {
|
|
4
|
+
dynamo;
|
|
5
|
+
tableName;
|
|
6
|
+
env;
|
|
7
|
+
backgroundQueueName;
|
|
4
8
|
constructor(dynamo, tableName, env, backgroundQueueName) {
|
|
5
9
|
this.dynamo = dynamo;
|
|
6
10
|
this.tableName = tableName;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BackgroundExecutionEvent } from './background-execution-event';
|
|
1
|
+
import { BackgroundExecutionEvent } from './background-execution-event.js';
|
|
2
2
|
export interface BackgroundExecutionListener<T> {
|
|
3
3
|
label?: string;
|
|
4
4
|
onEvent(event: BackgroundExecutionEvent<T>): Promise<void>;
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import { Context, ProxyResult, SNSEvent } from 'aws-lambda';
|
|
2
|
-
import { ModelValidator } from '@bitblit/ratchet-misc';
|
|
3
|
-
import { BackgroundConfig } from '../config/background/background-config';
|
|
4
|
-
import { InternalBackgroundEntry } from './internal-background-entry';
|
|
5
|
-
import { EpsilonLambdaEventHandler } from '../config/epsilon-lambda-event-handler';
|
|
6
|
-
import { BackgroundManagerLike } from './manager/background-manager-like';
|
|
7
|
-
/**
|
|
8
|
-
* We use a FIFO queue so that 2 different Lambdas don't both work on the same
|
|
9
|
-
* thing at the same time.
|
|
10
|
-
*/
|
|
2
|
+
import { ModelValidator } from '@bitblit/ratchet-misc/dist/model-validator/model-validator.js';
|
|
3
|
+
import { BackgroundConfig } from '../config/background/background-config.js';
|
|
4
|
+
import { InternalBackgroundEntry } from './internal-background-entry.js';
|
|
5
|
+
import { EpsilonLambdaEventHandler } from '../config/epsilon-lambda-event-handler.js';
|
|
6
|
+
import { BackgroundManagerLike } from './manager/background-manager-like.js';
|
|
11
7
|
export declare class BackgroundHandler implements EpsilonLambdaEventHandler<SNSEvent> {
|
|
12
8
|
private cfg;
|
|
13
9
|
private mgr;
|
|
@@ -1,11 +1,19 @@
|
|
|
1
|
-
import { ErrorRatchet
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { ErrorRatchet } from '@bitblit/ratchet-common/dist/lang/error-ratchet.js';
|
|
2
|
+
import { Logger } from '@bitblit/ratchet-common/dist/logger/logger.js';
|
|
3
|
+
import { LambdaEventDetector } from '@bitblit/ratchet-aws/dist/lambda/lambda-event-detector.js';
|
|
4
|
+
import { EpsilonConstants } from '../epsilon-constants.js';
|
|
5
|
+
import { BackgroundValidator } from './background-validator.js';
|
|
6
|
+
import { BackgroundExecutionEventType } from './background-execution-event-type.js';
|
|
7
|
+
import { ContextUtil } from '../util/context-util.js';
|
|
8
|
+
import { AbstractBackgroundManager } from './manager/abstract-background-manager.js';
|
|
9
|
+
import { StringRatchet } from '@bitblit/ratchet-common/dist/lang/string-ratchet.js';
|
|
10
|
+
import { StopWatch } from '@bitblit/ratchet-common/dist/lang/stop-watch.js';
|
|
8
11
|
export class BackgroundHandler {
|
|
12
|
+
cfg;
|
|
13
|
+
mgr;
|
|
14
|
+
modelValidator;
|
|
15
|
+
processors;
|
|
16
|
+
validator;
|
|
9
17
|
constructor(cfg, mgr, modelValidator) {
|
|
10
18
|
this.cfg = cfg;
|
|
11
19
|
this.mgr = mgr;
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
import { Context } from 'aws-lambda';
|
|
2
|
-
import { ExtendedAPIGatewayEvent } from '../config/http/extended-api-gateway-event';
|
|
3
|
-
import { BackgroundQueueResponseInternal } from './background-queue-response-internal';
|
|
4
|
-
import { BackgroundConfig } from '../config/background/background-config';
|
|
5
|
-
import { ModelValidator } from '@bitblit/ratchet-misc';
|
|
6
|
-
import { BackgroundMetaResponseInternal } from './background-meta-response-internal';
|
|
7
|
-
import { BackgroundTransactionLog } from '../config/background/background-transaction-log';
|
|
8
|
-
import { BackgroundManagerLike } from './manager/background-manager-like';
|
|
9
|
-
/**
|
|
10
|
-
* We use a FIFO queue so that 2 different Lambdas don't both work on the same
|
|
11
|
-
* thing at the same time.
|
|
12
|
-
*/
|
|
2
|
+
import { ExtendedAPIGatewayEvent } from '../config/http/extended-api-gateway-event.js';
|
|
3
|
+
import { BackgroundQueueResponseInternal } from './background-queue-response-internal.js';
|
|
4
|
+
import { BackgroundConfig } from '../config/background/background-config.js';
|
|
5
|
+
import { ModelValidator } from '@bitblit/ratchet-misc/dist/model-validator/model-validator.js';
|
|
6
|
+
import { BackgroundMetaResponseInternal } from './background-meta-response-internal.js';
|
|
7
|
+
import { BackgroundTransactionLog } from '../config/background/background-transaction-log.js';
|
|
8
|
+
import { BackgroundManagerLike } from './manager/background-manager-like.js';
|
|
13
9
|
export declare class BackgroundHttpAdapterHandler {
|
|
14
10
|
private backgroundConfig;
|
|
15
11
|
private modelValidator;
|
|
@@ -1,12 +1,17 @@
|
|
|
1
|
-
import { Logger
|
|
2
|
-
import {
|
|
3
|
-
import { BackgroundProcessHandling } from './background-process-handling';
|
|
4
|
-
import { StringRatchet } from '@bitblit/ratchet-common';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { Logger } from '@bitblit/ratchet-common/dist/logger/logger.js';
|
|
2
|
+
import { PromiseRatchet } from '@bitblit/ratchet-common/dist/lang/promise-ratchet.js';
|
|
3
|
+
import { BackgroundProcessHandling } from './background-process-handling.js';
|
|
4
|
+
import { StringRatchet } from '@bitblit/ratchet-common/dist/lang/string-ratchet.js';
|
|
5
|
+
import { BooleanRatchet } from '@bitblit/ratchet-common/dist/lang/boolean-ratchet.js';
|
|
6
|
+
import { BadRequestError } from '../http/error/bad-request-error.js';
|
|
7
|
+
import { NotFoundError } from '../http/error/not-found-error.js';
|
|
8
|
+
import { StopWatch } from '@bitblit/ratchet-common/dist/lang/stop-watch.js';
|
|
8
9
|
export class BackgroundHttpAdapterHandler {
|
|
9
|
-
|
|
10
|
+
backgroundConfig;
|
|
11
|
+
modelValidator;
|
|
12
|
+
backgroundManager;
|
|
13
|
+
maxWaitInMsForBackgroundJobToStart;
|
|
14
|
+
constructor(backgroundConfig, modelValidator, backgroundManager, maxWaitInMsForBackgroundJobToStart = 10_000) {
|
|
10
15
|
this.backgroundConfig = backgroundConfig;
|
|
11
16
|
this.modelValidator = modelValidator;
|
|
12
17
|
this.backgroundManager = backgroundManager;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BackgroundProcessHandling } from './background-process-handling';
|
|
1
|
+
import { BackgroundProcessHandling } from './background-process-handling.js';
|
|
2
2
|
export interface BackgroundQueueResponseInternal {
|
|
3
3
|
processHandling: BackgroundProcessHandling;
|
|
4
4
|
startProcessorRequested: boolean;
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import { ModelValidator } from '@bitblit/ratchet-misc';
|
|
2
|
-
import { BackgroundConfig } from '../config/background/background-config';
|
|
3
|
-
import { BackgroundEntry } from './background-entry';
|
|
4
|
-
import { BackgroundProcessor } from '../config/background/background-processor';
|
|
5
|
-
import { BackgroundAwsConfig } from '../config/background/background-aws-config';
|
|
6
|
-
/**
|
|
7
|
-
* Handles all submission of work to the background processing system.
|
|
8
|
-
*/
|
|
1
|
+
import { ModelValidator } from '@bitblit/ratchet-misc/dist/model-validator/model-validator.js';
|
|
2
|
+
import { BackgroundConfig } from '../config/background/background-config.js';
|
|
3
|
+
import { BackgroundEntry } from './background-entry.js';
|
|
4
|
+
import { BackgroundProcessor } from '../config/background/background-processor.js';
|
|
5
|
+
import { BackgroundAwsConfig } from '../config/background/background-aws-config.js';
|
|
9
6
|
export declare class BackgroundValidator {
|
|
10
7
|
private cfg;
|
|
11
8
|
private modelValidator;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { Logger } from '@bitblit/ratchet-common';
|
|
2
|
-
import { ErrorRatchet } from '@bitblit/ratchet-common';
|
|
3
|
-
import { StringRatchet } from '@bitblit/ratchet-common';
|
|
1
|
+
import { Logger } from '@bitblit/ratchet-common/dist/logger/logger.js';
|
|
2
|
+
import { ErrorRatchet } from '@bitblit/ratchet-common/dist/lang/error-ratchet.js';
|
|
3
|
+
import { StringRatchet } from '@bitblit/ratchet-common/dist/lang/string-ratchet.js';
|
|
4
4
|
export class BackgroundValidator {
|
|
5
|
+
cfg;
|
|
6
|
+
modelValidator;
|
|
5
7
|
constructor(cfg, modelValidator) {
|
|
6
8
|
this.cfg = cfg;
|
|
7
9
|
this.modelValidator = modelValidator;
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import util from 'util';
|
|
2
2
|
export class EpsilonBackgroundProcessError extends Error {
|
|
3
|
+
static EPSILON_BACKGROUND_PROCESS_ERROR_FLAG_KEY = '__epsilonBackgroundProcessErrorFlag';
|
|
4
|
+
_errors;
|
|
5
|
+
_detailErrorCode;
|
|
6
|
+
_details;
|
|
7
|
+
_requestId;
|
|
8
|
+
_wrappedError;
|
|
3
9
|
constructor(...errors) {
|
|
4
10
|
super(EpsilonBackgroundProcessError.combineErrorStringsWithDefault(errors));
|
|
5
11
|
Object.setPrototypeOf(this, EpsilonBackgroundProcessError.prototype);
|
|
@@ -85,4 +91,3 @@ export class EpsilonBackgroundProcessError extends Error {
|
|
|
85
91
|
return this._wrappedError;
|
|
86
92
|
}
|
|
87
93
|
}
|
|
88
|
-
EpsilonBackgroundProcessError.EPSILON_BACKGROUND_PROCESS_ERROR_FLAG_KEY = '__epsilonBackgroundProcessErrorFlag';
|
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
import { BackgroundEntry } from '../background-entry';
|
|
2
|
-
import { InternalBackgroundEntry } from '../internal-background-entry';
|
|
3
|
-
import { BackgroundManagerLike } from './background-manager-like';
|
|
4
|
-
/**
|
|
5
|
-
* Handles all submission of work to the background processing system.
|
|
6
|
-
*
|
|
7
|
-
* Note that this does NOT validate the input, it just passes it along. This is
|
|
8
|
-
* because it creates a circular reference to the processors if we try since they
|
|
9
|
-
* define the type and validation.
|
|
10
|
-
*/
|
|
1
|
+
import { BackgroundEntry } from '../background-entry.js';
|
|
2
|
+
import { InternalBackgroundEntry } from '../internal-background-entry.js';
|
|
3
|
+
import { BackgroundManagerLike } from './background-manager-like.js';
|
|
11
4
|
export declare abstract class AbstractBackgroundManager implements BackgroundManagerLike {
|
|
12
5
|
abstract addEntryToQueue<T>(entry: BackgroundEntry<T>, fireStartMessage?: boolean): Promise<string>;
|
|
13
6
|
abstract fireImmediateProcessRequest<T>(entry: BackgroundEntry<T>): Promise<string>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { ErrorRatchet
|
|
2
|
-
import {
|
|
1
|
+
import { ErrorRatchet } from '@bitblit/ratchet-common/dist/lang/error-ratchet.js';
|
|
2
|
+
import { Logger } from '@bitblit/ratchet-common/dist/logger/logger.js';
|
|
3
|
+
import { RequireRatchet } from '@bitblit/ratchet-common/dist/lang/require-ratchet.js';
|
|
4
|
+
import { StringRatchet } from '@bitblit/ratchet-common/dist/lang/string-ratchet.js';
|
|
3
5
|
import { DateTime } from 'luxon';
|
|
4
|
-
import {
|
|
5
|
-
import { ContextUtil } from '../../util/context-util';
|
|
6
|
+
import { ContextUtil } from '../../util/context-util.js';
|
|
6
7
|
export class AbstractBackgroundManager {
|
|
7
8
|
createEntry(type, data) {
|
|
8
9
|
const rval = {
|
|
@@ -1,16 +1,9 @@
|
|
|
1
1
|
import { GetQueueAttributesCommandOutput, SQSClient } from '@aws-sdk/client-sqs';
|
|
2
|
-
import { BackgroundEntry } from '../background-entry';
|
|
3
|
-
import { BackgroundAwsConfig } from '../../config/background/background-aws-config';
|
|
4
|
-
import { InternalBackgroundEntry } from '../internal-background-entry';
|
|
5
|
-
import { AbstractBackgroundManager } from './abstract-background-manager';
|
|
2
|
+
import { BackgroundEntry } from '../background-entry.js';
|
|
3
|
+
import { BackgroundAwsConfig } from '../../config/background/background-aws-config.js';
|
|
4
|
+
import { InternalBackgroundEntry } from '../internal-background-entry.js';
|
|
5
|
+
import { AbstractBackgroundManager } from './abstract-background-manager.js';
|
|
6
6
|
import { SNSClient } from '@aws-sdk/client-sns';
|
|
7
|
-
/**
|
|
8
|
-
* Handles all submission of work to the background processing system.
|
|
9
|
-
*
|
|
10
|
-
* Note that this does NOT validate the input, it just passes it along. This is
|
|
11
|
-
* because it creates a circular reference to the processors if we try since they
|
|
12
|
-
* define the type and validation.
|
|
13
|
-
*/
|
|
14
7
|
export declare class AwsSqsSnsBackgroundManager extends AbstractBackgroundManager {
|
|
15
8
|
private _awsConfig;
|
|
16
9
|
private _sqs;
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ErrorRatchet } from '@bitblit/ratchet-common/dist/lang/error-ratchet.js';
|
|
2
|
+
import { Logger } from '@bitblit/ratchet-common/dist/logger/logger.js';
|
|
3
|
+
import { NumberRatchet } from '@bitblit/ratchet-common/dist/lang/number-ratchet.js';
|
|
2
4
|
import { DeleteMessageCommand, GetQueueAttributesCommand, ReceiveMessageCommand, SendMessageCommand, } from '@aws-sdk/client-sqs';
|
|
3
|
-
import { EpsilonConstants } from '../../epsilon-constants';
|
|
4
|
-
import { AbstractBackgroundManager } from './abstract-background-manager';
|
|
5
|
-
import { BackgroundValidator } from '../background-validator';
|
|
6
|
-
import { ErrorRatchet } from '@bitblit/ratchet-common';
|
|
5
|
+
import { EpsilonConstants } from '../../epsilon-constants.js';
|
|
6
|
+
import { AbstractBackgroundManager } from './abstract-background-manager.js';
|
|
7
|
+
import { BackgroundValidator } from '../background-validator.js';
|
|
7
8
|
import { PublishCommand } from '@aws-sdk/client-sns';
|
|
8
9
|
export class AwsSqsSnsBackgroundManager extends AbstractBackgroundManager {
|
|
10
|
+
_awsConfig;
|
|
11
|
+
_sqs;
|
|
12
|
+
_sns;
|
|
9
13
|
constructor(_awsConfig, _sqs, _sns) {
|
|
10
14
|
super();
|
|
11
15
|
this._awsConfig = _awsConfig;
|
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
import { BackgroundEntry } from '../background-entry';
|
|
2
|
-
import { InternalBackgroundEntry } from '../internal-background-entry';
|
|
1
|
+
import { BackgroundEntry } from '../background-entry.js';
|
|
2
|
+
import { InternalBackgroundEntry } from '../internal-background-entry.js';
|
|
3
3
|
import { Subject } from 'rxjs';
|
|
4
|
-
/**
|
|
5
|
-
* Classes implementing this interface handle all submission of work to the background processing system.
|
|
6
|
-
*
|
|
7
|
-
* Note that these do NOT validate the input, they just passes it along. This is
|
|
8
|
-
* because it creates a circular reference to the processors if we try since they
|
|
9
|
-
* define the type and validation.
|
|
10
|
-
*/
|
|
11
4
|
export interface BackgroundManagerLike {
|
|
12
5
|
get backgroundManagerName(): string;
|
|
13
6
|
immediateProcessQueue?(): Subject<InternalBackgroundEntry<any>>;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { Logger } from '@bitblit/ratchet-common/dist/logger/logger.js';
|
|
2
|
+
import { GetQueueAttributesCommand, SQSClient } from '@aws-sdk/client-sqs';
|
|
3
|
+
import { ModelValidator } from '@bitblit/ratchet-misc/dist/model-validator/model-validator.js';
|
|
4
|
+
import { AwsSqsSnsBackgroundManager } from './aws-sqs-sns-background-manager.js';
|
|
5
|
+
import { EchoProcessor } from '../../built-in/background/echo-processor.js';
|
|
6
|
+
import { NoOpProcessor } from '../../built-in/background/no-op-processor.js';
|
|
7
|
+
import { SNSClient } from '@aws-sdk/client-sns';
|
|
8
|
+
import { mockClient } from 'aws-sdk-client-mock';
|
|
9
|
+
let mockSqs;
|
|
10
|
+
let mockSns;
|
|
11
|
+
describe('#createEntry', function () {
|
|
12
|
+
mockSns = mockClient(SNSClient);
|
|
13
|
+
mockSqs = mockClient(SQSClient);
|
|
14
|
+
let backgroundMgr;
|
|
15
|
+
const fakeAccountNumber = '123456789012';
|
|
16
|
+
let backgroundConfig;
|
|
17
|
+
let backgroundAwsConfig;
|
|
18
|
+
const fakeModelValidator = new ModelValidator({ BackgroundBuiltInSampleInputValidatedProcessor: {} });
|
|
19
|
+
const echoProcessor = new EchoProcessor();
|
|
20
|
+
const noOpProcessor = new NoOpProcessor();
|
|
21
|
+
beforeEach(() => {
|
|
22
|
+
mockSqs.reset();
|
|
23
|
+
mockSns.reset();
|
|
24
|
+
backgroundConfig = {
|
|
25
|
+
processors: [echoProcessor, noOpProcessor],
|
|
26
|
+
httpSubmissionPath: '/background/',
|
|
27
|
+
implyTypeFromPathSuffix: true,
|
|
28
|
+
httpMetaEndpoint: '/background-meta',
|
|
29
|
+
};
|
|
30
|
+
backgroundAwsConfig = {
|
|
31
|
+
queueUrl: 'https://fake-sqs.fake-availability-zone.test.com/' + fakeAccountNumber + '/fakeQueue.fifo',
|
|
32
|
+
notificationArn: 'arn:aws:sns:fake-availability-zone:' + fakeAccountNumber + ':fakeSnsTopicName',
|
|
33
|
+
};
|
|
34
|
+
backgroundMgr = new AwsSqsSnsBackgroundManager(backgroundAwsConfig, mockSqs, mockSns);
|
|
35
|
+
});
|
|
36
|
+
it('Should return queue attributes', async () => {
|
|
37
|
+
mockSqs.on(GetQueueAttributesCommand).resolves({
|
|
38
|
+
Attributes: {
|
|
39
|
+
ApproximateNumberOfMessages: 1,
|
|
40
|
+
},
|
|
41
|
+
});
|
|
42
|
+
const queueAttr = await backgroundMgr.fetchCurrentQueueAttributes();
|
|
43
|
+
const msgCount = await backgroundMgr.fetchApproximateNumberOfQueueEntries();
|
|
44
|
+
Logger.info('Got : %j', queueAttr);
|
|
45
|
+
Logger.info('Msg: %d', msgCount);
|
|
46
|
+
expect(queueAttr).toBeTruthy();
|
|
47
|
+
expect(msgCount).toEqual(1);
|
|
48
|
+
});
|
|
49
|
+
it('Should round-trip guids with prefix no slash', async () => {
|
|
50
|
+
const prefix = 'test';
|
|
51
|
+
const guid = AwsSqsSnsBackgroundManager.generateBackgroundGuid();
|
|
52
|
+
expect(guid).toBeTruthy();
|
|
53
|
+
const path = AwsSqsSnsBackgroundManager.backgroundGuidToPath(prefix, guid);
|
|
54
|
+
const outGuid = AwsSqsSnsBackgroundManager.pathToBackgroundGuid(prefix, path);
|
|
55
|
+
expect(outGuid).toEqual(guid);
|
|
56
|
+
});
|
|
57
|
+
it('Should round-trip guids with prefix with slash', async () => {
|
|
58
|
+
const prefix = 'test/';
|
|
59
|
+
const guid = AwsSqsSnsBackgroundManager.generateBackgroundGuid();
|
|
60
|
+
expect(guid).toBeTruthy();
|
|
61
|
+
const path = AwsSqsSnsBackgroundManager.backgroundGuidToPath(prefix, guid);
|
|
62
|
+
const outGuid = AwsSqsSnsBackgroundManager.pathToBackgroundGuid(prefix, path);
|
|
63
|
+
expect(outGuid).toEqual(guid);
|
|
64
|
+
});
|
|
65
|
+
it('Should round-trip guids with no prefix', async () => {
|
|
66
|
+
const prefix = null;
|
|
67
|
+
const guid = AwsSqsSnsBackgroundManager.generateBackgroundGuid();
|
|
68
|
+
expect(guid).toBeTruthy();
|
|
69
|
+
const path = AwsSqsSnsBackgroundManager.backgroundGuidToPath(prefix, guid);
|
|
70
|
+
const outGuid = AwsSqsSnsBackgroundManager.pathToBackgroundGuid(prefix, path);
|
|
71
|
+
expect(outGuid).toEqual(guid);
|
|
72
|
+
});
|
|
73
|
+
});
|
package/dist/{types/background → background}/manager/single-thread-local-background-manager.d.ts
RENAMED
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
import { Subject } from 'rxjs';
|
|
2
|
-
import { BackgroundEntry } from '../background-entry';
|
|
3
|
-
import { InternalBackgroundEntry } from '../internal-background-entry';
|
|
4
|
-
import { AbstractBackgroundManager } from './abstract-background-manager';
|
|
5
|
-
/**
|
|
6
|
-
* Handles all submission of work to the background processing system.
|
|
7
|
-
*
|
|
8
|
-
* Note that this does NOT validate the input, it just passes it along. This is
|
|
9
|
-
* because it creates a circular reference to the processors if we try since they
|
|
10
|
-
* define the type and validation.
|
|
11
|
-
*/
|
|
2
|
+
import { BackgroundEntry } from '../background-entry.js';
|
|
3
|
+
import { InternalBackgroundEntry } from '../internal-background-entry.js';
|
|
4
|
+
import { AbstractBackgroundManager } from './abstract-background-manager.js';
|
|
12
5
|
export declare class SingleThreadLocalBackgroundManager extends AbstractBackgroundManager {
|
|
13
6
|
private _localBus;
|
|
14
7
|
get backgroundManagerName(): string;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Subject } from 'rxjs';
|
|
2
|
-
import { Logger } from '@bitblit/ratchet-common';
|
|
3
|
-
import { AbstractBackgroundManager } from './abstract-background-manager';
|
|
2
|
+
import { Logger } from '@bitblit/ratchet-common/dist/logger/logger.js';
|
|
3
|
+
import { AbstractBackgroundManager } from './abstract-background-manager.js';
|
|
4
4
|
export class SingleThreadLocalBackgroundManager extends AbstractBackgroundManager {
|
|
5
|
-
|
|
6
|
-
super();
|
|
7
|
-
this._localBus = new Subject();
|
|
8
|
-
}
|
|
5
|
+
_localBus = new Subject();
|
|
9
6
|
get backgroundManagerName() {
|
|
10
7
|
return 'SingleThreadLocalBackgroundManager';
|
|
11
8
|
}
|
|
9
|
+
constructor() {
|
|
10
|
+
super();
|
|
11
|
+
}
|
|
12
12
|
immediateProcessQueue() {
|
|
13
13
|
return this._localBus;
|
|
14
14
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BackgroundTransactionLogger } from '../config/background/background-transaction-logger';
|
|
2
|
-
import { BackgroundTransactionLog } from '../config/background/background-transaction-log';
|
|
1
|
+
import { BackgroundTransactionLogger } from '../config/background/background-transaction-logger.js';
|
|
2
|
+
import { BackgroundTransactionLog } from '../config/background/background-transaction-log.js';
|
|
3
3
|
import { S3Client } from '@aws-sdk/client-s3';
|
|
4
4
|
export declare class S3BackgroundTransactionLogger implements BackgroundTransactionLogger {
|
|
5
5
|
private cfg;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import { S3CacheRatchet } from '@bitblit/ratchet-aws';
|
|
2
|
-
import { AbstractBackgroundManager } from './manager/abstract-background-manager';
|
|
3
|
-
import { ErrorRatchet
|
|
1
|
+
import { S3CacheRatchet } from '@bitblit/ratchet-aws/dist/s3/s3-cache-ratchet.js';
|
|
2
|
+
import { AbstractBackgroundManager } from './manager/abstract-background-manager.js';
|
|
3
|
+
import { ErrorRatchet } from '@bitblit/ratchet-common/dist/lang/error-ratchet.js';
|
|
4
|
+
import { Logger } from '@bitblit/ratchet-common/dist/logger/logger.js';
|
|
4
5
|
export class S3BackgroundTransactionLogger {
|
|
6
|
+
cfg;
|
|
7
|
+
s3TransactionLogCacheRatchet;
|
|
5
8
|
constructor(cfg) {
|
|
6
9
|
this.cfg = cfg;
|
|
7
10
|
const err = S3BackgroundTransactionLogger.validateConfig(cfg);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BuildInformation } from '@bitblit/ratchet-common';
|
|
1
|
+
import { BuildInformation } from '@bitblit/ratchet-common/dist/build/build-information.js';
|
|
2
2
|
export declare class RatchetEpsilonCommonInfo {
|
|
3
3
|
private constructor();
|
|
4
4
|
static buildInformation(): BuildInformation;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BackgroundProcessor } from '../../config/background/background-processor';
|
|
2
|
-
import { BackgroundManagerLike } from '../../background/manager/background-manager-like';
|
|
1
|
+
import { BackgroundProcessor } from '../../config/background/background-processor.js';
|
|
2
|
+
import { BackgroundManagerLike } from '../../background/manager/background-manager-like.js';
|
|
3
3
|
export declare class EchoProcessor implements BackgroundProcessor<any> {
|
|
4
4
|
static TYPE_NAME: string;
|
|
5
5
|
get typeName(): string;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { ErrorRatchet
|
|
2
|
-
import {
|
|
1
|
+
import { ErrorRatchet } from '@bitblit/ratchet-common/dist/lang/error-ratchet.js';
|
|
2
|
+
import { Logger } from '@bitblit/ratchet-common/dist/logger/logger.js';
|
|
3
|
+
import { StringRatchet } from '@bitblit/ratchet-common/dist/lang/string-ratchet.js';
|
|
3
4
|
export class EchoProcessor {
|
|
5
|
+
static TYPE_NAME = 'EpsilonEcho';
|
|
4
6
|
get typeName() {
|
|
5
7
|
return EchoProcessor.TYPE_NAME;
|
|
6
8
|
}
|
|
@@ -11,4 +13,3 @@ export class EchoProcessor {
|
|
|
11
13
|
}
|
|
12
14
|
}
|
|
13
15
|
}
|
|
14
|
-
EchoProcessor.TYPE_NAME = 'EpsilonEcho';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BackgroundProcessor } from '../../config/background/background-processor';
|
|
2
|
-
import { BackgroundManagerLike } from '../../background/manager/background-manager-like';
|
|
1
|
+
import { BackgroundProcessor } from '../../config/background/background-processor.js';
|
|
2
|
+
import { BackgroundManagerLike } from '../../background/manager/background-manager-like.js';
|
|
3
3
|
export declare class LogAndEnqueueEchoProcessor implements BackgroundProcessor<any> {
|
|
4
4
|
get typeName(): string;
|
|
5
5
|
handleEvent(data: any, cfg: BackgroundManagerLike): Promise<void>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Logger } from '@bitblit/ratchet-common';
|
|
2
|
-
import { EchoProcessor } from './echo-processor';
|
|
1
|
+
import { Logger } from '@bitblit/ratchet-common/dist/logger/logger.js';
|
|
2
|
+
import { EchoProcessor } from './echo-processor.js';
|
|
3
3
|
export class LogAndEnqueueEchoProcessor {
|
|
4
4
|
get typeName() {
|
|
5
5
|
return 'EpsilonLogAndEnqueueEcho';
|
package/dist/{types/built-in → built-in}/background/log-message-background-error-processor.d.ts
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BackgroundErrorProcessor } from '../../config/background/background-error-processor';
|
|
2
|
-
import { InternalBackgroundEntry } from '../../background/internal-background-entry';
|
|
1
|
+
import { BackgroundErrorProcessor } from '../../config/background/background-error-processor.js';
|
|
2
|
+
import { InternalBackgroundEntry } from '../../background/internal-background-entry.js';
|
|
3
3
|
export declare class LogMessageBackgroundErrorProcessor implements BackgroundErrorProcessor {
|
|
4
4
|
handleError(submission: InternalBackgroundEntry<any>, error: Error): Promise<void>;
|
|
5
5
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Logger } from '@bitblit/ratchet-common';
|
|
1
|
+
import { Logger } from '@bitblit/ratchet-common/dist/logger/logger.js';
|
|
2
2
|
export class LogMessageBackgroundErrorProcessor {
|
|
3
3
|
async handleError(submission, error) {
|
|
4
4
|
Logger.error('-------- ERROR PROCESSED : %j : %s----', submission, error);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BackgroundProcessor } from '../../config/background/background-processor';
|
|
2
|
-
import { BackgroundManagerLike } from '../../background/manager/background-manager-like';
|
|
1
|
+
import { BackgroundProcessor } from '../../config/background/background-processor.js';
|
|
2
|
+
import { BackgroundManagerLike } from '../../background/manager/background-manager-like.js';
|
|
3
3
|
export declare class NoOpProcessor implements BackgroundProcessor<any> {
|
|
4
4
|
get typeName(): string;
|
|
5
5
|
handleEvent(data: any, mgr?: BackgroundManagerLike): Promise<void>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BackgroundProcessor } from '../../config/background/background-processor';
|
|
2
|
-
import { BackgroundManagerLike } from '../../background/manager/background-manager-like';
|
|
1
|
+
import { BackgroundProcessor } from '../../config/background/background-processor.js';
|
|
2
|
+
import { BackgroundManagerLike } from '../../background/manager/background-manager-like.js';
|
|
3
3
|
export declare class RetryProcessor implements BackgroundProcessor<any> {
|
|
4
4
|
private delegate;
|
|
5
5
|
private opts;
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Logger } from '@bitblit/ratchet-common/dist/logger/logger.js';
|
|
2
|
+
import { PromiseRatchet } from '@bitblit/ratchet-common/dist/lang/promise-ratchet.js';
|
|
3
|
+
import { DurationRatchet } from '@bitblit/ratchet-common/dist/lang/duration-ratchet.js';
|
|
4
|
+
import { NumberRatchet } from '@bitblit/ratchet-common/dist/lang/number-ratchet.js';
|
|
5
|
+
import { StringRatchet } from '@bitblit/ratchet-common/dist/lang/string-ratchet.js';
|
|
4
6
|
export class RetryProcessor {
|
|
7
|
+
delegate;
|
|
8
|
+
opts;
|
|
9
|
+
static RETRY_FIELD_NAME = '___RetryProcessorTryNumber';
|
|
5
10
|
constructor(delegate, opts) {
|
|
6
11
|
this.delegate = delegate;
|
|
7
12
|
this.opts = opts;
|
|
@@ -33,4 +38,3 @@ export class RetryProcessor {
|
|
|
33
38
|
}
|
|
34
39
|
}
|
|
35
40
|
}
|
|
36
|
-
RetryProcessor.RETRY_FIELD_NAME = '___RetryProcessorTryNumber';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BackgroundProcessor } from '../../config/background/background-processor';
|
|
2
|
-
import { BackgroundManagerLike } from '../../background/manager/background-manager-like';
|
|
1
|
+
import { BackgroundProcessor } from '../../config/background/background-processor.js';
|
|
2
|
+
import { BackgroundManagerLike } from '../../background/manager/background-manager-like.js';
|
|
3
3
|
export declare class SampleDelayProcessor implements BackgroundProcessor<any> {
|
|
4
4
|
get typeName(): string;
|
|
5
5
|
handleEvent(data: any, mgr?: BackgroundManagerLike): Promise<void>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Logger
|
|
1
|
+
import { Logger } from '@bitblit/ratchet-common/dist/logger/logger.js';
|
|
2
|
+
import { PromiseRatchet } from '@bitblit/ratchet-common/dist/lang/promise-ratchet.js';
|
|
2
3
|
export class SampleDelayProcessor {
|
|
3
4
|
get typeName() {
|
|
4
5
|
return 'EpsilonSampleDelay';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BackgroundProcessor } from '../../config/background/background-processor';
|
|
2
|
-
import { SampleInputValidatedProcessorData } from './sample-input-validated-processor-data';
|
|
3
|
-
import { BackgroundManagerLike } from '../../background/manager/background-manager-like';
|
|
1
|
+
import { BackgroundProcessor } from '../../config/background/background-processor.js';
|
|
2
|
+
import { SampleInputValidatedProcessorData } from './sample-input-validated-processor-data.js';
|
|
3
|
+
import { BackgroundManagerLike } from '../../background/manager/background-manager-like.js';
|
|
4
4
|
export declare class SampleInputValidatedProcessor implements BackgroundProcessor<SampleInputValidatedProcessorData> {
|
|
5
5
|
get typeName(): string;
|
|
6
6
|
handleEvent(data: SampleInputValidatedProcessorData, mgr?: BackgroundManagerLike): Promise<void>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { StringRatchet } from '@bitblit/ratchet-common';
|
|
2
|
-
import { ContextUtil } from '../util/context-util';
|
|
1
|
+
import { StringRatchet } from '@bitblit/ratchet-common/dist/lang/string-ratchet.js';
|
|
2
|
+
import { ContextUtil } from '../util/context-util.js';
|
|
3
3
|
export class BuiltInTraceIdGenerators {
|
|
4
4
|
static fullAwsRequestId() {
|
|
5
5
|
let rval = ContextUtil.currentRequestId();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DaemonProcessState } from '@bitblit/ratchet-aws';
|
|
2
|
-
import { ExtendedAPIGatewayEvent } from '../../config/http/extended-api-gateway-event';
|
|
1
|
+
import { DaemonProcessState } from '@bitblit/ratchet-aws/dist/daemon/daemon-process-state.js';
|
|
2
|
+
import { ExtendedAPIGatewayEvent } from '../../config/http/extended-api-gateway-event.js';
|
|
3
3
|
export interface DaemonAuthorizerFunction {
|
|
4
4
|
(evt: ExtendedAPIGatewayEvent, proc: DaemonProcessState): Promise<boolean>;
|
|
5
5
|
}
|