@bitblit/ratchet-epsilon-common 4.0.99-alpha → 4.0.103-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/bin/cli.js +10 -0
- package/{dist/types → lib}/background/background-dynamo-log-table-handler.d.ts +3 -3
- package/{dist/es → lib}/background/background-dynamo-log-table-handler.js +6 -2
- package/{dist/types → lib}/background/background-execution-event.d.ts +1 -1
- package/{dist/types → lib}/background/background-execution-listener.d.ts +1 -1
- package/{dist/types → lib}/background/background-handler.d.ts +5 -9
- package/{dist/es → lib}/background/background-handler.js +15 -7
- package/{dist/types → lib}/background/background-http-adapter-handler.d.ts +7 -11
- package/{dist/es → lib}/background/background-http-adapter-handler.js +13 -8
- package/{dist/types → lib}/background/background-queue-response-internal.d.ts +1 -1
- package/{dist/types → lib}/background/background-validator.d.ts +5 -8
- package/{dist/es → lib}/background/background-validator.js +5 -3
- package/{dist/es → lib}/background/epsilon-background-process-error.js +6 -1
- package/{dist/types → lib}/background/internal-background-entry.d.ts +1 -1
- package/{dist/types → lib}/background/manager/abstract-background-manager.d.ts +3 -10
- package/{dist/es → lib}/background/manager/abstract-background-manager.js +5 -4
- package/{dist/types → lib}/background/manager/aws-sqs-sns-background-manager.d.ts +4 -11
- package/{dist/es → lib}/background/manager/aws-sqs-sns-background-manager.js +9 -5
- package/{dist/types → lib}/background/manager/background-manager-like.d.ts +2 -9
- package/lib/background/manager/background-manager.spec.js +73 -0
- package/{dist/types → lib}/background/manager/single-thread-local-background-manager.d.ts +3 -10
- package/{dist/es → lib}/background/manager/single-thread-local-background-manager.js +6 -6
- package/{dist/types → lib}/background/s3-background-transaction-logger.d.ts +2 -2
- package/{dist/es → lib}/background/s3-background-transaction-logger.js +6 -3
- package/{dist/types → lib}/build/ratchet-epsilon-common-info.d.ts +1 -1
- package/{dist/types → lib}/built-in/background/echo-processor.d.ts +2 -2
- package/{dist/es → lib}/built-in/background/echo-processor.js +4 -3
- package/{dist/types → lib}/built-in/background/log-and-enqueue-echo-processor.d.ts +2 -2
- package/{dist/es → lib}/built-in/background/log-and-enqueue-echo-processor.js +2 -2
- package/{dist/types → lib}/built-in/background/log-message-background-error-processor.d.ts +2 -2
- package/{dist/es → lib}/built-in/background/log-message-background-error-processor.js +1 -1
- package/{dist/types → lib}/built-in/background/no-op-processor.d.ts +2 -2
- package/{dist/es → lib}/built-in/background/no-op-processor.js +1 -1
- package/{dist/types → lib}/built-in/background/retry-processor.d.ts +2 -2
- package/{dist/es → lib}/built-in/background/retry-processor.js +8 -4
- package/{dist/types → lib}/built-in/background/sample-delay-processor.d.ts +2 -2
- package/{dist/es → lib}/built-in/background/sample-delay-processor.js +2 -1
- package/{dist/types → lib}/built-in/background/sample-input-validated-processor.d.ts +3 -3
- package/{dist/es → lib}/built-in/background/sample-input-validated-processor.js +1 -1
- package/{dist/es → lib}/built-in/built-in-trace-id-generators.js +2 -2
- package/{dist/types → lib}/built-in/daemon/daemon-authorizer-function.d.ts +2 -2
- package/{dist/types → lib}/built-in/daemon/daemon-config.d.ts +2 -2
- package/{dist/types → lib}/built-in/daemon/daemon-group-selection-function.d.ts +1 -1
- package/{dist/types → lib}/built-in/daemon/daemon-handler.d.ts +6 -12
- package/{dist/es → lib}/built-in/daemon/daemon-handler.js +9 -8
- package/lib/built-in/daemon/daemon-process-state-list.d.ts +5 -0
- package/{dist/types → lib}/built-in/http/apollo-filter.d.ts +2 -2
- package/{dist/es → lib}/built-in/http/apollo-filter.js +6 -5
- package/{dist/types → lib}/built-in/http/built-in-auth-filters.d.ts +3 -3
- package/{dist/es → lib}/built-in/http/built-in-auth-filters.js +5 -5
- package/{dist/types → lib}/built-in/http/built-in-authorizers.d.ts +2 -2
- package/{dist/es → lib}/built-in/http/built-in-authorizers.js +1 -1
- package/{dist/types → lib}/built-in/http/built-in-filters.d.ts +2 -2
- package/{dist/es → lib}/built-in/http/built-in-filters.js +9 -9
- package/{dist/types → lib}/built-in/http/built-in-handlers.d.ts +2 -2
- package/{dist/es → lib}/built-in/http/built-in-handlers.js +10 -10
- package/{dist/types → lib}/built-in/http/log-level-manipulation-filter.d.ts +1 -4
- package/{dist/es → lib}/built-in/http/log-level-manipulation-filter.js +2 -2
- package/{dist/types → lib}/built-in/http/run-handler-as-filter.d.ts +5 -5
- package/{dist/es → lib}/built-in/http/run-handler-as-filter.js +8 -8
- package/lib/built-in/http/run-handler-as-filter.spec.js +40 -0
- package/{dist/types → lib}/cli-bootstrap/ratchet-cli-handler.d.ts +2 -2
- package/{dist/es → lib}/cli-bootstrap/ratchet-cli-handler.js +6 -6
- package/lib/cli-bootstrap/run-background-process-from-command-line.d.ts +3 -0
- package/{dist/es → lib}/cli-bootstrap/run-background-process-from-command-line.js +2 -2
- package/{dist/types → lib}/config/background/background-config.d.ts +4 -4
- package/{dist/types → lib}/config/background/background-error-processor.d.ts +1 -1
- package/{dist/types → lib}/config/background/background-processor.d.ts +1 -1
- package/{dist/types → lib}/config/background/background-transaction-log.d.ts +1 -1
- package/{dist/types → lib}/config/background/background-transaction-logger.d.ts +1 -1
- package/lib/config/cron/cron-background-entry.d.ts +6 -0
- package/{dist/types → lib}/config/cron/cron-config.d.ts +1 -1
- package/{dist/types → lib}/config/dynamo-db-config.d.ts +1 -1
- package/{dist/types → lib}/config/epsilon-config.d.ts +8 -8
- package/{dist/types → lib}/config/epsilon-logger-config.d.ts +3 -2
- package/{dist/types → lib}/config/http/authorizer-function.d.ts +3 -3
- package/{dist/types → lib}/config/http/extended-api-gateway-event.d.ts +1 -1
- package/{dist/types → lib}/config/http/filter-chain-context.d.ts +4 -4
- package/{dist/types → lib}/config/http/filter-function.d.ts +1 -1
- package/{dist/types → lib}/config/http/handler-function.d.ts +1 -1
- package/{dist/types → lib}/config/http/http-config.d.ts +5 -5
- package/{dist/types → lib}/config/http/http-processing-config.d.ts +2 -2
- package/{dist/types → lib}/config/http/mapped-http-processing-config.d.ts +1 -1
- package/{dist/types → lib}/config/inter-api/inter-api-config.d.ts +2 -2
- package/lib/config/inter-api/inter-api-process-mapping.d.ts +6 -0
- package/{dist/types → lib}/config/open-api/open-api-document.d.ts +2 -2
- package/{dist/types → lib}/config/s3-config.d.ts +1 -1
- package/{dist/types → lib}/config/sns-config.d.ts +1 -1
- package/{dist/es → lib}/epsilon-build-properties.js +1 -1
- package/{dist/types → lib}/epsilon-constants.d.ts +1 -1
- package/{dist/es → lib}/epsilon-constants.js +14 -13
- package/{dist/types → lib}/epsilon-global-handler.d.ts +3 -6
- package/{dist/es → lib}/epsilon-global-handler.js +29 -24
- package/{dist/types → lib}/epsilon-instance.d.ts +6 -11
- package/lib/epsilon-logging-extension-processor.d.ts +6 -0
- package/{dist/es → lib}/epsilon-logging-extension-processor.js +1 -1
- package/{dist/types → lib}/http/auth/api-gateway-adapter-authentication-handler.d.ts +0 -10
- package/{dist/es → lib}/http/auth/api-gateway-adapter-authentication-handler.js +4 -3
- package/{dist/types → lib}/http/auth/auth0-web-token-manipulator.d.ts +2 -2
- package/{dist/es → lib}/http/auth/auth0-web-token-manipulator.js +6 -1
- package/{dist/types → lib}/http/auth/basic-auth-token.d.ts +0 -3
- package/{dist/types → lib}/http/auth/google-web-token-manipulator.d.ts +2 -2
- package/{dist/es → lib}/http/auth/google-web-token-manipulator.js +6 -3
- package/lib/http/auth/google-web-token-manipulator.spec.js +10 -0
- package/{dist/types → lib}/http/auth/jwt-ratchet-local-web-token-manipulator.d.ts +3 -5
- package/{dist/es → lib}/http/auth/jwt-ratchet-local-web-token-manipulator.js +5 -3
- package/{dist/types → lib}/http/auth/local-web-token-manipulator.d.ts +4 -5
- package/{dist/es → lib}/http/auth/local-web-token-manipulator.js +9 -5
- package/lib/http/auth/local-web-token-manipulator.spec.js +24 -0
- package/{dist/types → lib}/http/auth/web-token-manipulator.d.ts +1 -4
- package/{dist/types → lib}/http/error/bad-gateway.d.ts +1 -1
- package/{dist/es → lib}/http/error/bad-gateway.js +2 -2
- package/{dist/types → lib}/http/error/bad-request-error.d.ts +1 -1
- package/{dist/es → lib}/http/error/bad-request-error.js +2 -2
- package/{dist/types → lib}/http/error/conflict-error.d.ts +1 -1
- package/{dist/es → lib}/http/error/conflict-error.js +2 -2
- package/{dist/es → lib}/http/error/epsilon-http-error.js +9 -3
- package/lib/http/error/epsilon-http-error.spec.js +11 -0
- package/{dist/types → lib}/http/error/forbidden-error.d.ts +1 -1
- package/{dist/es → lib}/http/error/forbidden-error.js +2 -2
- package/{dist/types → lib}/http/error/gateway-timeout.d.ts +1 -1
- package/{dist/es → lib}/http/error/gateway-timeout.js +2 -2
- package/{dist/types → lib}/http/error/method-not-allowed-error.d.ts +1 -1
- package/{dist/es → lib}/http/error/method-not-allowed-error.js +2 -2
- package/{dist/types → lib}/http/error/misconfigured-error.d.ts +1 -1
- package/{dist/es → lib}/http/error/misconfigured-error.js +2 -2
- package/{dist/types → lib}/http/error/not-found-error.d.ts +1 -1
- package/{dist/es → lib}/http/error/not-found-error.js +2 -2
- package/{dist/types → lib}/http/error/not-implemented.d.ts +1 -1
- package/{dist/es → lib}/http/error/not-implemented.js +2 -2
- package/{dist/types → lib}/http/error/request-timeout-error.d.ts +1 -1
- package/{dist/es → lib}/http/error/request-timeout-error.js +2 -2
- package/{dist/types → lib}/http/error/service-unavailable.d.ts +1 -1
- package/{dist/es → lib}/http/error/service-unavailable.js +2 -2
- package/{dist/types → lib}/http/error/too-many-requests-error.d.ts +1 -1
- package/{dist/es → lib}/http/error/too-many-requests-error.js +2 -2
- package/{dist/types → lib}/http/error/unauthorized-error.d.ts +1 -1
- package/{dist/es → lib}/http/error/unauthorized-error.js +2 -2
- package/{dist/types → lib}/http/event-util.d.ts +3 -25
- package/{dist/es → lib}/http/event-util.js +9 -8
- package/lib/http/event-util.spec.js +157 -0
- package/{dist/types → lib}/http/response-util.d.ts +2 -2
- package/{dist/es → lib}/http/response-util.js +2 -2
- package/lib/http/response-util.spec.d.ts +1 -0
- package/lib/http/response-util.spec.js +88 -0
- package/lib/http/route/epsilon-router.d.ts +8 -0
- package/lib/http/route/epsilon-router.js +1 -0
- package/lib/http/route/extended-auth-response-context.js +1 -0
- package/{dist/types → lib}/http/route/route-mapping.d.ts +3 -3
- package/lib/http/route/route-mapping.js +1 -0
- package/lib/http/route/route-validator-config.js +1 -0
- package/{dist/types → lib}/http/route/router-util.d.ts +9 -12
- package/{dist/es → lib}/http/route/router-util.js +10 -10
- package/lib/http/route/router-util.spec.d.ts +1 -0
- package/lib/http/route/router-util.spec.js +23 -0
- package/{dist/types → lib}/http/web-handler.d.ts +4 -7
- package/{dist/es → lib}/http/web-handler.js +11 -10
- package/lib/http/web-handler.spec.d.ts +1 -0
- package/lib/http/web-handler.spec.js +32 -0
- package/{dist/types → lib}/http/web-v2-handler.d.ts +2 -5
- package/{dist/es → lib}/http/web-v2-handler.js +3 -2
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/inter-api/inter-api-entry.js +1 -0
- package/{dist/types → lib}/inter-api/inter-api-util.d.ts +3 -3
- package/{dist/es → lib}/inter-api/inter-api-util.js +6 -5
- package/lib/inter-api/inter-api-util.spec.d.ts +1 -0
- package/lib/inter-api/inter-api-util.spec.js +61 -0
- package/{dist/types → lib}/inter-api-manager.d.ts +2 -5
- package/{dist/es → lib}/inter-api-manager.js +5 -3
- package/{dist/types → lib}/lambda-event-handler/cron-epsilon-lambda-event-handler.d.ts +5 -5
- package/{dist/es → lib}/lambda-event-handler/cron-epsilon-lambda-event-handler.js +5 -4
- package/lib/lambda-event-handler/cron-epsilon-lambda-event-handler.spec.d.ts +1 -0
- package/lib/lambda-event-handler/cron-epsilon-lambda-event-handler.spec.js +50 -0
- package/{dist/types → lib}/lambda-event-handler/dynamo-epsilon-lambda-event-handler.d.ts +2 -2
- package/{dist/es → lib}/lambda-event-handler/dynamo-epsilon-lambda-event-handler.js +4 -3
- package/{dist/types → lib}/lambda-event-handler/generic-sns-epsilon-lambda-event-handler.d.ts +2 -2
- package/{dist/es → lib}/lambda-event-handler/generic-sns-epsilon-lambda-event-handler.js +4 -3
- package/{dist/types → lib}/lambda-event-handler/inter-api-epsilon-lambda-event-handler.d.ts +2 -2
- package/{dist/es → lib}/lambda-event-handler/inter-api-epsilon-lambda-event-handler.js +2 -1
- package/{dist/types → lib}/lambda-event-handler/s3-epsilon-lambda-event-handler.d.ts +2 -2
- package/{dist/es → lib}/lambda-event-handler/s3-epsilon-lambda-event-handler.js +4 -3
- package/{dist/types → lib}/local-container-server.d.ts +1 -4
- package/{dist/es → lib}/local-container-server.js +8 -4
- package/lib/local-server-cert.js +67 -0
- package/{dist/types → lib}/local-server.d.ts +2 -5
- package/{dist/es → lib}/local-server.js +11 -8
- package/lib/open-api-util/open-api-doc-modifications.js +1 -0
- package/{dist/types → lib}/open-api-util/open-api-doc-modifier.d.ts +1 -4
- package/{dist/es → lib}/open-api-util/open-api-doc-modifier.js +2 -1
- package/lib/open-api-util/open-api-doc-modifier.spec.d.ts +1 -0
- package/lib/open-api-util/open-api-doc-modifier.spec.js +16 -0
- package/{dist/es → lib}/open-api-util/yaml-combiner.js +2 -2
- package/lib/open-api-util/yaml-combiner.spec.d.ts +1 -0
- package/lib/open-api-util/yaml-combiner.spec.js +22 -0
- package/{dist/types → lib}/sample/sample-server-components.d.ts +2 -2
- package/{dist/es → lib}/sample/sample-server-components.js +25 -24
- package/lib/sample/sample-server-static-files.js +593 -0
- package/{dist/types → lib}/sample/test-error-server.d.ts +1 -4
- package/{dist/es → lib}/sample/test-error-server.js +4 -2
- package/{dist/types → lib}/util/context-util.d.ts +3 -3
- package/{dist/es → lib}/util/context-util.js +11 -5
- package/{dist/types → lib}/util/cron-util.d.ts +2 -2
- package/{dist/es → lib}/util/cron-util.js +3 -3
- package/lib/util/cron-util.spec.d.ts +1 -0
- package/lib/util/cron-util.spec.js +124 -0
- package/{dist/types → lib}/util/epsilon-config-parser.d.ts +6 -6
- package/{dist/es → lib}/util/epsilon-config-parser.js +9 -9
- package/package.json +16 -19
- 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/includes/cli.js +0 -12
- /package/{dist/types → lib}/background/background-entry.d.ts +0 -0
- /package/{dist/es → lib}/background/background-entry.js +0 -0
- /package/{dist/types → lib}/background/background-execution-event-type.d.ts +0 -0
- /package/{dist/es → lib}/background/background-execution-event-type.js +0 -0
- /package/{dist/es → lib}/background/background-execution-event.js +0 -0
- /package/{dist/es → lib}/background/background-execution-listener.js +0 -0
- /package/{dist/types → lib}/background/background-meta-response-internal.d.ts +0 -0
- /package/{dist/es → lib}/background/background-meta-response-internal.js +0 -0
- /package/{dist/types → lib}/background/background-process-handling.d.ts +0 -0
- /package/{dist/es → lib}/background/background-process-handling.js +0 -0
- /package/{dist/types → lib}/background/background-process-log-table-entry.d.ts +0 -0
- /package/{dist/es → lib}/background/background-process-log-table-entry.js +0 -0
- /package/{dist/es → lib}/background/background-queue-response-internal.js +0 -0
- /package/{dist/types → lib}/background/epsilon-background-process-error.d.ts +0 -0
- /package/{dist/es → lib}/background/internal-background-entry.js +0 -0
- /package/{dist/es → lib}/background/manager/background-manager-like.js +0 -0
- /package/{dist/es/built-in/background/sample-input-validated-processor-data.js → lib/background/manager/background-manager.spec.d.ts} +0 -0
- /package/{dist/es → lib}/build/ratchet-epsilon-common-info.js +0 -0
- /package/{dist/types → lib}/built-in/background/sample-input-validated-processor-data.d.ts +0 -0
- /package/{dist/es/built-in/daemon/daemon-authorizer-function.js → lib/built-in/background/sample-input-validated-processor-data.js} +0 -0
- /package/{dist/types → lib}/built-in/built-in-trace-id-generators.d.ts +0 -0
- /package/{dist/es/built-in/daemon/daemon-config.js → lib/built-in/daemon/daemon-authorizer-function.js} +0 -0
- /package/{dist/es/built-in/daemon/daemon-group-selection-function.js → lib/built-in/daemon/daemon-config.js} +0 -0
- /package/{dist/es/built-in/daemon/daemon-process-state-list.js → lib/built-in/daemon/daemon-group-selection-function.js} +0 -0
- /package/{dist/es/config/background/background-aws-config.js → lib/built-in/daemon/daemon-process-state-list.js} +0 -0
- /package/{dist/es/config/background/background-config.js → lib/built-in/http/run-handler-as-filter.spec.d.ts} +0 -0
- /package/{dist/types → lib}/config/background/background-aws-config.d.ts +0 -0
- /package/{dist/es/config/background/background-error-processor.js → lib/config/background/background-aws-config.js} +0 -0
- /package/{dist/es/config/background/background-processor.js → lib/config/background/background-config.js} +0 -0
- /package/{dist/es/config/background/background-transaction-log.js → lib/config/background/background-error-processor.js} +0 -0
- /package/{dist/es/config/background/background-transaction-logger.js → lib/config/background/background-processor.js} +0 -0
- /package/{dist/es/config/cron/abstract-cron-entry.js → lib/config/background/background-transaction-log.js} +0 -0
- /package/{dist/es/config/cron/cron-background-entry.js → lib/config/background/background-transaction-logger.js} +0 -0
- /package/{dist/types → lib}/config/cron/abstract-cron-entry.d.ts +0 -0
- /package/{dist/es/config/cron/cron-config.js → lib/config/cron/abstract-cron-entry.js} +0 -0
- /package/{dist/es/config/dynamo-db-config.js → lib/config/cron/cron-background-entry.js} +0 -0
- /package/{dist/es/config/epsilon-config.js → lib/config/cron/cron-config.js} +0 -0
- /package/{dist/es/config/epsilon-lambda-event-handler.js → lib/config/dynamo-db-config.js} +0 -0
- /package/{dist/es/config/epsilon-logger-config.js → lib/config/epsilon-config.js} +0 -0
- /package/{dist/types → lib}/config/epsilon-lambda-event-handler.d.ts +0 -0
- /package/{dist/es/config/generic-aws-event-handler-function.js → lib/config/epsilon-lambda-event-handler.js} +0 -0
- /package/{dist/es/config/http/authorizer-function.js → lib/config/epsilon-logger-config.js} +0 -0
- /package/{dist/types → lib}/config/generic-aws-event-handler-function.d.ts +0 -0
- /package/{dist/es/config/http/epsilon-authorization-context.js → lib/config/generic-aws-event-handler-function.js} +0 -0
- /package/{dist/es/config/http/extended-api-gateway-event.js → lib/config/http/authorizer-function.js} +0 -0
- /package/{dist/types → lib}/config/http/epsilon-authorization-context.d.ts +0 -0
- /package/{dist/es/config/http/filter-chain-context.js → lib/config/http/epsilon-authorization-context.js} +0 -0
- /package/{dist/es/config/http/filter-function.js → lib/config/http/extended-api-gateway-event.js} +0 -0
- /package/{dist/es/config/http/handler-function.js → lib/config/http/filter-chain-context.js} +0 -0
- /package/{dist/es/config/http/http-config.js → lib/config/http/filter-function.js} +0 -0
- /package/{dist/es/config/http/http-processing-config.js → lib/config/http/handler-function.js} +0 -0
- /package/{dist/es/config/http/mapped-http-processing-config.js → lib/config/http/http-config.js} +0 -0
- /package/{dist/es/config/inter-api/inter-api-aws-config.js → lib/config/http/http-processing-config.js} +0 -0
- /package/{dist/es/config/inter-api/inter-api-config.js → lib/config/http/mapped-http-processing-config.js} +0 -0
- /package/{dist/types → lib}/config/http/null-returned-object-handling.d.ts +0 -0
- /package/{dist/es → lib}/config/http/null-returned-object-handling.js +0 -0
- /package/{dist/types → lib}/config/inter-api/inter-api-aws-config.d.ts +0 -0
- /package/{dist/es/config/inter-api/inter-api-process-mapping.js → lib/config/inter-api/inter-api-aws-config.js} +0 -0
- /package/{dist/es/config/logging-trace-id-generator.js → lib/config/inter-api/inter-api-config.js} +0 -0
- /package/{dist/es/config/open-api/open-api-document-components.js → lib/config/inter-api/inter-api-process-mapping.js} +0 -0
- /package/{dist/types → lib}/config/logging-trace-id-generator.d.ts +0 -0
- /package/{dist/es/config/open-api/open-api-document-path.js → lib/config/logging-trace-id-generator.js} +0 -0
- /package/{dist/types → lib}/config/open-api/open-api-document-components.d.ts +0 -0
- /package/{dist/es/config/open-api/open-api-document.js → lib/config/open-api/open-api-document-components.js} +0 -0
- /package/{dist/types → lib}/config/open-api/open-api-document-path.d.ts +0 -0
- /package/{dist/es/config/s3-config.js → lib/config/open-api/open-api-document-path.js} +0 -0
- /package/{dist/es/config/sns-config.js → lib/config/open-api/open-api-document.js} +0 -0
- /package/{dist/es/epsilon-instance.js → lib/config/s3-config.js} +0 -0
- /package/{dist/es/http/auth/basic-auth-token.js → lib/config/sns-config.js} +0 -0
- /package/{dist/types → lib}/epsilon-build-properties.d.ts +0 -0
- /package/{dist/es/http/auth/web-token-manipulator.js → lib/epsilon-instance.js} +0 -0
- /package/{dist/es/http/route/epsilon-router.js → lib/http/auth/basic-auth-token.js} +0 -0
- /package/{dist/es/http/route/extended-auth-response-context.js → lib/http/auth/google-web-token-manipulator.spec.d.ts} +0 -0
- /package/{dist/es/http/route/route-mapping.js → lib/http/auth/local-web-token-manipulator.spec.d.ts} +0 -0
- /package/{dist/es/http/route/route-validator-config.js → lib/http/auth/web-token-manipulator.js} +0 -0
- /package/{dist/types → lib}/http/error/epsilon-http-error.d.ts +0 -0
- /package/{dist/es/inter-api/inter-api-entry.js → lib/http/error/epsilon-http-error.spec.d.ts} +0 -0
- /package/{dist/es/open-api-util/open-api-doc-modifications.js → lib/http/event-util.spec.d.ts} +0 -0
- /package/{dist/types → lib}/http/route/extended-auth-response-context.d.ts +0 -0
- /package/{dist/types → lib}/http/route/route-validator-config.d.ts +0 -0
- /package/{dist/types → lib}/inter-api/inter-api-entry.d.ts +0 -0
- /package/{dist/types → lib}/local-server-cert.d.ts +0 -0
- /package/{dist/types → lib}/open-api-util/open-api-doc-modifications.d.ts +0 -0
- /package/{dist/types → lib}/open-api-util/yaml-combiner.d.ts +0 -0
- /package/{dist/types → lib}/sample/sample-server-static-files.d.ts +0 -0
- /package/{dist/types → lib}/util/aws-util.d.ts +0 -0
- /package/{dist/es → lib}/util/aws-util.js +0 -0
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AwsUtil = void 0;
|
|
4
|
-
class AwsUtil {
|
|
5
|
-
static apiGatewayV2ToApiGatewayV1(srcEvt) {
|
|
6
|
-
const rval = {
|
|
7
|
-
requestContext: AwsUtil.apiGatewayV2RequestContextToApiGatewayV1RequestContext(srcEvt.requestContext),
|
|
8
|
-
httpMethod: srcEvt.requestContext.http.method,
|
|
9
|
-
path: srcEvt.requestContext.http.path,
|
|
10
|
-
queryStringParameters: srcEvt.queryStringParameters,
|
|
11
|
-
headers: srcEvt.headers,
|
|
12
|
-
body: srcEvt.body,
|
|
13
|
-
isBase64Encoded: srcEvt.isBase64Encoded,
|
|
14
|
-
multiValueHeaders: null,
|
|
15
|
-
multiValueQueryStringParameters: null,
|
|
16
|
-
pathParameters: srcEvt.pathParameters,
|
|
17
|
-
stageVariables: srcEvt.stageVariables,
|
|
18
|
-
resource: null,
|
|
19
|
-
};
|
|
20
|
-
return rval;
|
|
21
|
-
}
|
|
22
|
-
static apiGatewayV2RequestContextToApiGatewayV1RequestContext(srcEvt) {
|
|
23
|
-
const rval = {
|
|
24
|
-
accountId: srcEvt.accountId,
|
|
25
|
-
apiId: srcEvt.apiId,
|
|
26
|
-
authorizer: null,
|
|
27
|
-
domainName: srcEvt.domainName,
|
|
28
|
-
domainPrefix: srcEvt.domainPrefix,
|
|
29
|
-
requestId: srcEvt.requestId,
|
|
30
|
-
routeKey: srcEvt.routeKey,
|
|
31
|
-
stage: srcEvt.stage,
|
|
32
|
-
requestTime: srcEvt.time,
|
|
33
|
-
requestTimeEpoch: srcEvt.timeEpoch,
|
|
34
|
-
protocol: srcEvt.http.protocol,
|
|
35
|
-
httpMethod: srcEvt.http.method,
|
|
36
|
-
identity: null,
|
|
37
|
-
path: srcEvt.http.path,
|
|
38
|
-
resourceId: null,
|
|
39
|
-
resourcePath: null,
|
|
40
|
-
};
|
|
41
|
-
return rval;
|
|
42
|
-
}
|
|
43
|
-
static findInMap(toFind, map) {
|
|
44
|
-
let rval = null;
|
|
45
|
-
map.forEach((val, key) => {
|
|
46
|
-
if (AwsUtil.matchExact(key, toFind)) {
|
|
47
|
-
rval = val;
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
return rval;
|
|
51
|
-
}
|
|
52
|
-
static matchExact(r, str) {
|
|
53
|
-
const match = str.match(r);
|
|
54
|
-
return match != null && str == match[0];
|
|
55
|
-
}
|
|
56
|
-
static resolvePotentialFunctionToResult(src, def) {
|
|
57
|
-
let rval = def;
|
|
58
|
-
if (src) {
|
|
59
|
-
if (typeof src === 'function') {
|
|
60
|
-
rval = src();
|
|
61
|
-
}
|
|
62
|
-
else {
|
|
63
|
-
rval = src;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
return rval;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
exports.AwsUtil = AwsUtil;
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ContextUtil = void 0;
|
|
4
|
-
const ratchet_common_1 = require("@bitblit/ratchet-common");
|
|
5
|
-
const ratchet_common_2 = require("@bitblit/ratchet-common");
|
|
6
|
-
const built_in_trace_id_generators_1 = require("../built-in/built-in-trace-id-generators");
|
|
7
|
-
const ratchet_common_3 = require("@bitblit/ratchet-common");
|
|
8
|
-
class ContextUtil {
|
|
9
|
-
constructor() { }
|
|
10
|
-
static initContext(epsilon, evt, ctx, processLabel) {
|
|
11
|
-
ContextUtil.CURRENT_EPSILON_REFERENCE = epsilon;
|
|
12
|
-
ContextUtil.CURRENT_CONTEXT = ctx;
|
|
13
|
-
ContextUtil.CURRENT_EVENT = evt;
|
|
14
|
-
ContextUtil.CURRENT_LOG_VARS = {};
|
|
15
|
-
ContextUtil.CURRENT_PROCESS_LABEL = processLabel;
|
|
16
|
-
}
|
|
17
|
-
static clearContext() {
|
|
18
|
-
ContextUtil.CURRENT_EPSILON_REFERENCE = null;
|
|
19
|
-
ContextUtil.CURRENT_CONTEXT = null;
|
|
20
|
-
ContextUtil.CURRENT_EVENT = null;
|
|
21
|
-
ContextUtil.CURRENT_LOG_VARS = {};
|
|
22
|
-
ContextUtil.CURRENT_PROCESS_LABEL = null;
|
|
23
|
-
ContextUtil.CURRENT_OVERRIDE_TRACE_ID = null;
|
|
24
|
-
ContextUtil.CURRENT_OVERRIDE_TRACE_DEPTH = null;
|
|
25
|
-
}
|
|
26
|
-
static setOverrideTrace(traceId, traceDepth) {
|
|
27
|
-
ContextUtil.CURRENT_OVERRIDE_TRACE_ID = traceId || ContextUtil.CURRENT_OVERRIDE_TRACE_ID;
|
|
28
|
-
ContextUtil.CURRENT_OVERRIDE_TRACE_DEPTH = traceDepth || ContextUtil.CURRENT_OVERRIDE_TRACE_DEPTH;
|
|
29
|
-
}
|
|
30
|
-
static setOverrideTraceFromInternalBackgroundEntry(entry) {
|
|
31
|
-
ContextUtil.setOverrideTrace(entry.traceId, entry.traceDepth);
|
|
32
|
-
}
|
|
33
|
-
static setOverrideTraceFromInterApiEntry(interApiEntry) {
|
|
34
|
-
ContextUtil.setOverrideTrace(interApiEntry.traceId, interApiEntry.traceDepth);
|
|
35
|
-
}
|
|
36
|
-
static addHeadersToRecord(input, depthOffset = 0) {
|
|
37
|
-
if (input) {
|
|
38
|
-
input[ContextUtil.traceHeaderName()] = ContextUtil.currentTraceId();
|
|
39
|
-
input[ContextUtil.traceDepthHeaderName()] = ratchet_common_3.StringRatchet.safeString(ContextUtil.currentTraceDepth() + depthOffset);
|
|
40
|
-
}
|
|
41
|
-
else {
|
|
42
|
-
ratchet_common_2.ErrorRatchet.throwFormattedErr('Cannot add headers to null/undefined input');
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
static addTraceToProxyResult(pr) {
|
|
46
|
-
pr.headers = pr.headers || {};
|
|
47
|
-
ContextUtil.addHeadersToRecord(pr.headers);
|
|
48
|
-
}
|
|
49
|
-
static addTraceToHttpRequestInit(ri) {
|
|
50
|
-
ri.headers = ri.headers || {};
|
|
51
|
-
ContextUtil.addHeadersToRecord(ri.headers, 1);
|
|
52
|
-
}
|
|
53
|
-
static setProcessLabel(processLabel) {
|
|
54
|
-
ContextUtil.CURRENT_PROCESS_LABEL = processLabel;
|
|
55
|
-
}
|
|
56
|
-
static currentRequestId() {
|
|
57
|
-
const ctx = ContextUtil.CURRENT_CONTEXT;
|
|
58
|
-
return ctx ? ctx.awsRequestId : null;
|
|
59
|
-
}
|
|
60
|
-
static remainingTimeMS() {
|
|
61
|
-
const ctx = ContextUtil.CURRENT_CONTEXT;
|
|
62
|
-
return ctx ? ctx.getRemainingTimeInMillis() : null;
|
|
63
|
-
}
|
|
64
|
-
static currentProcessLabel() {
|
|
65
|
-
return ContextUtil.CURRENT_PROCESS_LABEL || 'unset';
|
|
66
|
-
}
|
|
67
|
-
static traceHeaderName() {
|
|
68
|
-
var _a, _b, _c;
|
|
69
|
-
const headerName = ((_c = (_b = (_a = ContextUtil === null || ContextUtil === void 0 ? void 0 : ContextUtil.CURRENT_EPSILON_REFERENCE) === null || _a === void 0 ? void 0 : _a.config) === null || _b === void 0 ? void 0 : _b.loggerConfig) === null || _c === void 0 ? void 0 : _c.traceHeaderName) || 'X-TRACE-ID';
|
|
70
|
-
return headerName;
|
|
71
|
-
}
|
|
72
|
-
static traceDepthHeaderName() {
|
|
73
|
-
var _a, _b, _c;
|
|
74
|
-
const headerName = ((_c = (_b = (_a = ContextUtil === null || ContextUtil === void 0 ? void 0 : ContextUtil.CURRENT_EPSILON_REFERENCE) === null || _a === void 0 ? void 0 : _a.config) === null || _b === void 0 ? void 0 : _b.loggerConfig) === null || _c === void 0 ? void 0 : _c.traceDepthHeaderName) || 'X-TRACE-DEPTH';
|
|
75
|
-
return headerName;
|
|
76
|
-
}
|
|
77
|
-
static currentTraceId() {
|
|
78
|
-
var _a, _b, _c, _d, _e;
|
|
79
|
-
const traceFn = ((_c = (_b = (_a = ContextUtil === null || ContextUtil === void 0 ? void 0 : ContextUtil.CURRENT_EPSILON_REFERENCE) === null || _a === void 0 ? void 0 : _a.config) === null || _b === void 0 ? void 0 : _b.loggerConfig) === null || _c === void 0 ? void 0 : _c.traceIdGenerator) || built_in_trace_id_generators_1.BuiltInTraceIdGenerators.fullAwsRequestId;
|
|
80
|
-
const traceId = ContextUtil.CURRENT_OVERRIDE_TRACE_ID ||
|
|
81
|
-
((_e = (_d = ContextUtil.CURRENT_EVENT) === null || _d === void 0 ? void 0 : _d.headers) === null || _e === void 0 ? void 0 : _e[ContextUtil.traceHeaderName()]) ||
|
|
82
|
-
traceFn(ContextUtil.CURRENT_EVENT, ContextUtil.CURRENT_CONTEXT);
|
|
83
|
-
return traceId;
|
|
84
|
-
}
|
|
85
|
-
static currentTraceDepth() {
|
|
86
|
-
var _a, _b;
|
|
87
|
-
const caller = ContextUtil.CURRENT_OVERRIDE_TRACE_DEPTH ||
|
|
88
|
-
ratchet_common_1.NumberRatchet.safeNumber((_b = (_a = ContextUtil.CURRENT_EVENT) === null || _a === void 0 ? void 0 : _a.headers) === null || _b === void 0 ? void 0 : _b[ContextUtil.traceDepthHeaderName()]) ||
|
|
89
|
-
1;
|
|
90
|
-
return caller;
|
|
91
|
-
}
|
|
92
|
-
static addLogVariable(name, val) {
|
|
93
|
-
ContextUtil.CURRENT_LOG_VARS[name] = val;
|
|
94
|
-
}
|
|
95
|
-
static fetchLogVariable(name) {
|
|
96
|
-
var _a;
|
|
97
|
-
return (_a = ContextUtil.CURRENT_LOG_VARS) === null || _a === void 0 ? void 0 : _a[name];
|
|
98
|
-
}
|
|
99
|
-
static fetchLogVariables() {
|
|
100
|
-
return Object.assign({}, ContextUtil.CURRENT_LOG_VARS || {});
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
exports.ContextUtil = ContextUtil;
|
|
104
|
-
ContextUtil.CURRENT_LOG_VARS = {};
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CronUtil = void 0;
|
|
4
|
-
const ratchet_common_1 = require("@bitblit/ratchet-common");
|
|
5
|
-
const ratchet_common_2 = require("@bitblit/ratchet-common");
|
|
6
|
-
const luxon_1 = require("luxon");
|
|
7
|
-
const ratchet_common_3 = require("@bitblit/ratchet-common");
|
|
8
|
-
class CronUtil {
|
|
9
|
-
static everyNMinuteFilter(n) {
|
|
10
|
-
return CronUtil.everyNElementFilter(n, 60);
|
|
11
|
-
}
|
|
12
|
-
static everyNDaysOfYearFilter(n) {
|
|
13
|
-
return CronUtil.everyNElementFilter(n, 365);
|
|
14
|
-
}
|
|
15
|
-
static everyNElementFilter(n, m) {
|
|
16
|
-
ratchet_common_1.RequireRatchet.notNullOrUndefined(n);
|
|
17
|
-
ratchet_common_1.RequireRatchet.notNullOrUndefined(m);
|
|
18
|
-
const half = Math.floor(m / 2);
|
|
19
|
-
if (!n || n < 2 || n > half || m % n !== 0) {
|
|
20
|
-
ratchet_common_2.ErrorRatchet.throwFormattedErr('Invalid config - this function only makes sense for 2 < N < %d and %d evenly divisible by N', half, m);
|
|
21
|
-
throw new Error('Invalid config - this function only makes sense for 2 < N < 31 and 60 evenly divisible by N');
|
|
22
|
-
}
|
|
23
|
-
const rval = [];
|
|
24
|
-
for (let i = 0; i < 60; i += n) {
|
|
25
|
-
rval.push(i);
|
|
26
|
-
}
|
|
27
|
-
return rval;
|
|
28
|
-
}
|
|
29
|
-
static numberMatchesFilter(num, filter) {
|
|
30
|
-
return !filter || filter.length === 0 || filter.includes(num);
|
|
31
|
-
}
|
|
32
|
-
static eventMatchesEntry(event, entry, cfg, testTimeEpochMS = new Date().getTime()) {
|
|
33
|
-
let rval = false;
|
|
34
|
-
if (!!event && !!entry && !!cfg.timezone) {
|
|
35
|
-
if (!!event.resources && event.resources.length > 0) {
|
|
36
|
-
const eventSourceName = event.resources[0];
|
|
37
|
-
const targetTZ = ratchet_common_3.StringRatchet.trimToNull(entry.overrideTimezone) || cfg.timezone;
|
|
38
|
-
const nowInTZ = luxon_1.DateTime.fromMillis(testTimeEpochMS).setZone(targetTZ);
|
|
39
|
-
rval = !entry.eventFilter || entry.eventFilter.test(eventSourceName);
|
|
40
|
-
rval = rval && CronUtil.numberMatchesFilter(nowInTZ.minute, entry.minuteFilter);
|
|
41
|
-
rval = rval && CronUtil.numberMatchesFilter(nowInTZ.hour, entry.hourFilter);
|
|
42
|
-
rval = rval && CronUtil.numberMatchesFilter(nowInTZ.weekday, entry.dayOfWeekFilter);
|
|
43
|
-
rval = rval && CronUtil.numberMatchesFilter(nowInTZ.day, entry.dayOfMonthFilter);
|
|
44
|
-
rval = rval && CronUtil.numberMatchesFilter(nowInTZ.month, entry.monthOfYearFilter);
|
|
45
|
-
rval = rval && (!entry.contextMatchFilter || entry.contextMatchFilter.test(ratchet_common_3.StringRatchet.trimToEmpty(cfg.context)));
|
|
46
|
-
rval = rval && (!entry.contextNoMatchFilter || !entry.contextNoMatchFilter.test(ratchet_common_3.StringRatchet.trimToEmpty(cfg.context)));
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
return rval;
|
|
50
|
-
}
|
|
51
|
-
static cronEntryName(entry, idx = null) {
|
|
52
|
-
ratchet_common_1.RequireRatchet.notNullOrUndefined(entry);
|
|
53
|
-
let rval = null;
|
|
54
|
-
if (!!entry) {
|
|
55
|
-
rval = entry.name;
|
|
56
|
-
rval = rval || entry['backgroundTaskType'];
|
|
57
|
-
if (!rval && !!entry['directHandler']) {
|
|
58
|
-
if (!!idx) {
|
|
59
|
-
rval = 'Direct Entry ' + idx;
|
|
60
|
-
}
|
|
61
|
-
else {
|
|
62
|
-
rval = 'Direct Entry (No idx specified)';
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
else {
|
|
67
|
-
rval = 'ERROR: no entry passed';
|
|
68
|
-
}
|
|
69
|
-
return rval;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
exports.CronUtil = CronUtil;
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EpsilonConfigParser = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const ratchet_common_1 = require("@bitblit/ratchet-common");
|
|
6
|
-
const ratchet_common_2 = require("@bitblit/ratchet-common");
|
|
7
|
-
const js_yaml_1 = tslib_1.__importDefault(require("js-yaml"));
|
|
8
|
-
const ratchet_misc_1 = require("@bitblit/ratchet-misc");
|
|
9
|
-
const background_http_adapter_handler_1 = require("../background/background-http-adapter-handler");
|
|
10
|
-
const background_handler_1 = require("../background/background-handler");
|
|
11
|
-
const router_util_1 = require("../http/route/router-util");
|
|
12
|
-
const web_handler_1 = require("../http/web-handler");
|
|
13
|
-
const misconfigured_error_1 = require("../http/error/misconfigured-error");
|
|
14
|
-
const epsilon_global_handler_1 = require("../epsilon-global-handler");
|
|
15
|
-
class EpsilonConfigParser {
|
|
16
|
-
constructor() { }
|
|
17
|
-
static epsilonConfigToEpsilonGlobalHandler(config, backgroundManager) {
|
|
18
|
-
return new epsilon_global_handler_1.EpsilonGlobalHandler(EpsilonConfigParser.epsilonConfigToEpsilonInstance(config, backgroundManager));
|
|
19
|
-
}
|
|
20
|
-
static epsilonConfigToEpsilonInstance(config, backgroundManager) {
|
|
21
|
-
this.validateGlobalConfig(config);
|
|
22
|
-
const label = (config === null || config === void 0 ? void 0 : config.label) || 'NO EPSILON CONFIG LABEL SET';
|
|
23
|
-
ratchet_common_1.Logger.info('Creating epsilon : %s : BM : %j', label, backgroundManager);
|
|
24
|
-
const parsed = EpsilonConfigParser.parseOpenApiDocument(config.openApiYamlString);
|
|
25
|
-
const modelValidator = EpsilonConfigParser.openApiDocToValidator(parsed);
|
|
26
|
-
const backgroundHttpAdapter = new background_http_adapter_handler_1.BackgroundHttpAdapterHandler(config.backgroundConfig, modelValidator, backgroundManager);
|
|
27
|
-
const backgroundHandler = config.backgroundConfig
|
|
28
|
-
? new background_handler_1.BackgroundHandler(config.backgroundConfig, backgroundManager, modelValidator)
|
|
29
|
-
: null;
|
|
30
|
-
const epsilonRouter = config.httpConfig
|
|
31
|
-
? router_util_1.RouterUtil.openApiYamlToRouterConfig(config.httpConfig, parsed, modelValidator, backgroundHttpAdapter)
|
|
32
|
-
: null;
|
|
33
|
-
const webHandler = epsilonRouter ? new web_handler_1.WebHandler(epsilonRouter) : null;
|
|
34
|
-
const inst = {
|
|
35
|
-
config: config,
|
|
36
|
-
parsedOpenApiDoc: parsed,
|
|
37
|
-
modelValidator: modelValidator,
|
|
38
|
-
webHandler: webHandler,
|
|
39
|
-
backgroundHandler: backgroundHandler,
|
|
40
|
-
backgroundManager: backgroundManager,
|
|
41
|
-
};
|
|
42
|
-
return inst;
|
|
43
|
-
}
|
|
44
|
-
static parseOpenApiDocument(yamlString) {
|
|
45
|
-
if (!yamlString) {
|
|
46
|
-
throw new misconfigured_error_1.MisconfiguredError('Cannot configure, missing either yaml or cfg');
|
|
47
|
-
}
|
|
48
|
-
const doc = js_yaml_1.default.load(yamlString);
|
|
49
|
-
return doc;
|
|
50
|
-
}
|
|
51
|
-
static openApiDocToValidator(doc) {
|
|
52
|
-
var _a;
|
|
53
|
-
let rval = null;
|
|
54
|
-
if ((_a = doc === null || doc === void 0 ? void 0 : doc.components) === null || _a === void 0 ? void 0 : _a.schemas) {
|
|
55
|
-
rval = ratchet_misc_1.ModelValidator.createFromParsedObject(doc.components.schemas);
|
|
56
|
-
}
|
|
57
|
-
return rval;
|
|
58
|
-
}
|
|
59
|
-
static validateGlobalConfig(config) {
|
|
60
|
-
if (!config) {
|
|
61
|
-
ratchet_common_2.ErrorRatchet.throwFormattedErr('Config may not be null');
|
|
62
|
-
}
|
|
63
|
-
if (!config.openApiYamlString) {
|
|
64
|
-
ratchet_common_2.ErrorRatchet.throwFormattedErr('Config must define an open api document');
|
|
65
|
-
}
|
|
66
|
-
if (!!config.cron && !config.cron.timezone) {
|
|
67
|
-
ratchet_common_2.ErrorRatchet.throwFormattedErr('Cron is defined, but timezone is not set');
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
exports.EpsilonConfigParser = EpsilonConfigParser;
|
package/dist/es/index.js
DELETED
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
export * from './epsilon-build-properties';
|
|
2
|
-
export * from './epsilon-constants';
|
|
3
|
-
export * from './epsilon-global-handler';
|
|
4
|
-
export * from './epsilon-instance';
|
|
5
|
-
export * from './epsilon-logging-extension-processor';
|
|
6
|
-
export * from './inter-api-manager';
|
|
7
|
-
export * from './local-container-server';
|
|
8
|
-
export * from './local-server-cert';
|
|
9
|
-
export * from './local-server';
|
|
10
|
-
export * from './background/background-dynamo-log-table-handler';
|
|
11
|
-
export * from './background/background-entry';
|
|
12
|
-
export * from './background/background-execution-event-type';
|
|
13
|
-
export * from './background/background-execution-event';
|
|
14
|
-
export * from './background/background-execution-listener';
|
|
15
|
-
export * from './background/background-handler';
|
|
16
|
-
export * from './background/background-http-adapter-handler';
|
|
17
|
-
export * from './background/background-meta-response-internal';
|
|
18
|
-
export * from './background/background-process-handling';
|
|
19
|
-
export * from './background/background-process-log-table-entry';
|
|
20
|
-
export * from './background/background-queue-response-internal';
|
|
21
|
-
export * from './background/background-validator';
|
|
22
|
-
export * from './background/epsilon-background-process-error';
|
|
23
|
-
export * from './background/internal-background-entry';
|
|
24
|
-
export * from './background/s3-background-transaction-logger';
|
|
25
|
-
export * from './background/manager/abstract-background-manager';
|
|
26
|
-
export * from './background/manager/aws-sqs-sns-background-manager';
|
|
27
|
-
export * from './background/manager/background-manager-like';
|
|
28
|
-
export * from './background/manager/single-thread-local-background-manager';
|
|
29
|
-
export * from './build/ratchet-epsilon-common-info';
|
|
30
|
-
export * from './built-in/built-in-trace-id-generators';
|
|
31
|
-
export * from './built-in/background/echo-processor';
|
|
32
|
-
export * from './built-in/background/log-and-enqueue-echo-processor';
|
|
33
|
-
export * from './built-in/background/log-message-background-error-processor';
|
|
34
|
-
export * from './built-in/background/no-op-processor';
|
|
35
|
-
export * from './built-in/background/retry-processor';
|
|
36
|
-
export * from './built-in/background/sample-delay-processor';
|
|
37
|
-
export * from './built-in/background/sample-input-validated-processor-data';
|
|
38
|
-
export * from './built-in/background/sample-input-validated-processor';
|
|
39
|
-
export * from './built-in/daemon/daemon-authorizer-function';
|
|
40
|
-
export * from './built-in/daemon/daemon-config';
|
|
41
|
-
export * from './built-in/daemon/daemon-group-selection-function';
|
|
42
|
-
export * from './built-in/daemon/daemon-handler';
|
|
43
|
-
export * from './built-in/daemon/daemon-process-state-list';
|
|
44
|
-
export * from './built-in/http/apollo-filter';
|
|
45
|
-
export * from './built-in/http/built-in-auth-filters';
|
|
46
|
-
export * from './built-in/http/built-in-authorizers';
|
|
47
|
-
export * from './built-in/http/built-in-filters';
|
|
48
|
-
export * from './built-in/http/built-in-handlers';
|
|
49
|
-
export * from './built-in/http/log-level-manipulation-filter';
|
|
50
|
-
export * from './built-in/http/run-handler-as-filter';
|
|
51
|
-
export * from './cli-bootstrap/ratchet-cli-handler';
|
|
52
|
-
export * from './cli-bootstrap/run-background-process-from-command-line';
|
|
53
|
-
export * from './config/dynamo-db-config';
|
|
54
|
-
export * from './config/epsilon-config';
|
|
55
|
-
export * from './config/epsilon-lambda-event-handler';
|
|
56
|
-
export * from './config/epsilon-logger-config';
|
|
57
|
-
export * from './config/generic-aws-event-handler-function';
|
|
58
|
-
export * from './config/logging-trace-id-generator';
|
|
59
|
-
export * from './config/s3-config';
|
|
60
|
-
export * from './config/sns-config';
|
|
61
|
-
export * from './config/background/background-aws-config';
|
|
62
|
-
export * from './config/background/background-config';
|
|
63
|
-
export * from './config/background/background-error-processor';
|
|
64
|
-
export * from './config/background/background-processor';
|
|
65
|
-
export * from './config/background/background-transaction-log';
|
|
66
|
-
export * from './config/background/background-transaction-logger';
|
|
67
|
-
export * from './config/cron/abstract-cron-entry';
|
|
68
|
-
export * from './config/cron/cron-background-entry';
|
|
69
|
-
export * from './config/cron/cron-config';
|
|
70
|
-
export * from './config/http/authorizer-function';
|
|
71
|
-
export * from './config/http/epsilon-authorization-context';
|
|
72
|
-
export * from './config/http/extended-api-gateway-event';
|
|
73
|
-
export * from './config/http/filter-chain-context';
|
|
74
|
-
export * from './config/http/filter-function';
|
|
75
|
-
export * from './config/http/handler-function';
|
|
76
|
-
export * from './config/http/http-config';
|
|
77
|
-
export * from './config/http/http-processing-config';
|
|
78
|
-
export * from './config/http/mapped-http-processing-config';
|
|
79
|
-
export * from './config/http/null-returned-object-handling';
|
|
80
|
-
export * from './config/inter-api/inter-api-aws-config';
|
|
81
|
-
export * from './config/inter-api/inter-api-config';
|
|
82
|
-
export * from './config/inter-api/inter-api-process-mapping';
|
|
83
|
-
export * from './config/open-api/open-api-document-components';
|
|
84
|
-
export * from './config/open-api/open-api-document-path';
|
|
85
|
-
export * from './config/open-api/open-api-document';
|
|
86
|
-
export * from './http/event-util';
|
|
87
|
-
export * from './http/response-util';
|
|
88
|
-
export * from './http/web-handler';
|
|
89
|
-
export * from './http/web-v2-handler';
|
|
90
|
-
export * from './http/auth/api-gateway-adapter-authentication-handler';
|
|
91
|
-
export * from './http/auth/auth0-web-token-manipulator';
|
|
92
|
-
export * from './http/auth/basic-auth-token';
|
|
93
|
-
export * from './http/auth/google-web-token-manipulator';
|
|
94
|
-
export * from './http/auth/jwt-ratchet-local-web-token-manipulator';
|
|
95
|
-
export * from './http/auth/local-web-token-manipulator';
|
|
96
|
-
export * from './http/auth/web-token-manipulator';
|
|
97
|
-
export * from './http/error/bad-gateway';
|
|
98
|
-
export * from './http/error/bad-request-error';
|
|
99
|
-
export * from './http/error/conflict-error';
|
|
100
|
-
export * from './http/error/epsilon-http-error';
|
|
101
|
-
export * from './http/error/forbidden-error';
|
|
102
|
-
export * from './http/error/gateway-timeout';
|
|
103
|
-
export * from './http/error/method-not-allowed-error';
|
|
104
|
-
export * from './http/error/misconfigured-error';
|
|
105
|
-
export * from './http/error/not-found-error';
|
|
106
|
-
export * from './http/error/not-implemented';
|
|
107
|
-
export * from './http/error/request-timeout-error';
|
|
108
|
-
export * from './http/error/service-unavailable';
|
|
109
|
-
export * from './http/error/too-many-requests-error';
|
|
110
|
-
export * from './http/error/unauthorized-error';
|
|
111
|
-
export * from './http/route/epsilon-router';
|
|
112
|
-
export * from './http/route/extended-auth-response-context';
|
|
113
|
-
export * from './http/route/route-mapping';
|
|
114
|
-
export * from './http/route/route-validator-config';
|
|
115
|
-
export * from './http/route/router-util';
|
|
116
|
-
export * from './inter-api/inter-api-entry';
|
|
117
|
-
export * from './inter-api/inter-api-util';
|
|
118
|
-
export * from './lambda-event-handler/cron-epsilon-lambda-event-handler';
|
|
119
|
-
export * from './lambda-event-handler/dynamo-epsilon-lambda-event-handler';
|
|
120
|
-
export * from './lambda-event-handler/generic-sns-epsilon-lambda-event-handler';
|
|
121
|
-
export * from './lambda-event-handler/inter-api-epsilon-lambda-event-handler';
|
|
122
|
-
export * from './lambda-event-handler/s3-epsilon-lambda-event-handler';
|
|
123
|
-
export * from './open-api-util/open-api-doc-modifications';
|
|
124
|
-
export * from './open-api-util/open-api-doc-modifier';
|
|
125
|
-
export * from './open-api-util/yaml-combiner';
|
|
126
|
-
export * from './sample/sample-server-components';
|
|
127
|
-
export * from './sample/sample-server-static-files';
|
|
128
|
-
export * from './sample/test-error-server';
|
|
129
|
-
export * from './util/aws-util';
|
|
130
|
-
export * from './util/context-util';
|
|
131
|
-
export * from './util/cron-util';
|
|
132
|
-
export * from './util/epsilon-config-parser';
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
export class LocalServerCert {
|
|
2
|
-
}
|
|
3
|
-
LocalServerCert.CLIENT_CSR = '-----BEGIN CERTIFICATE REQUEST-----\n' +
|
|
4
|
-
'MIICwjCCAaoCAQAwfTELMAkGA1UEBhMCVVMxCzAJBgNVBAgMAk5WMRIwEAYDVQQH\n' +
|
|
5
|
-
'DAlMYXMgVmVnYXMxDjAMBgNVBAoMBVBsdW1hMRkwFwYDVQQDDBB3d3cuaGV5cGx1\n' +
|
|
6
|
-
'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