@bitblit/ratchet-epsilon-common 4.0.164-alpha → 4.0.183-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.
Files changed (144) hide show
  1. package/lib/index.mjs +1 -1
  2. package/package.json +9 -17
  3. package/lib/background/background-dynamo-log-table-handler.d.ts +0 -11
  4. package/lib/background/background-entry.d.ts +0 -4
  5. package/lib/background/background-execution-event-type.d.ts +0 -7
  6. package/lib/background/background-execution-event.d.ts +0 -8
  7. package/lib/background/background-execution-listener.d.ts +0 -5
  8. package/lib/background/background-handler.d.ts +0 -29
  9. package/lib/background/background-http-adapter-handler.d.ts +0 -22
  10. package/lib/background/background-meta-response-internal.d.ts +0 -5
  11. package/lib/background/background-process-handling.d.ts +0 -4
  12. package/lib/background/background-process-log-table-entry.d.ts +0 -11
  13. package/lib/background/background-queue-response-internal.d.ts +0 -8
  14. package/lib/background/background-validator.d.ts +0 -17
  15. package/lib/background/epsilon-background-process-error.d.ts +0 -30
  16. package/lib/background/internal-background-entry.d.ts +0 -7
  17. package/lib/background/manager/abstract-background-manager.d.ts +0 -19
  18. package/lib/background/manager/aws-sqs-sns-background-manager.d.ts +0 -23
  19. package/lib/background/manager/background-manager-like.d.ts +0 -17
  20. package/lib/background/manager/background-manager.spec.d.ts +0 -1
  21. package/lib/background/manager/single-thread-local-background-manager.d.ts +0 -15
  22. package/lib/background/s3-background-transaction-logger.d.ts +0 -17
  23. package/lib/build/ratchet-epsilon-common-info.d.ts +0 -5
  24. package/lib/built-in/background/echo-processor.d.ts +0 -7
  25. package/lib/built-in/background/log-and-enqueue-echo-processor.d.ts +0 -6
  26. package/lib/built-in/background/log-message-background-error-processor.d.ts +0 -5
  27. package/lib/built-in/background/no-op-processor.d.ts +0 -6
  28. package/lib/built-in/background/retry-processor.d.ts +0 -16
  29. package/lib/built-in/background/sample-delay-processor.d.ts +0 -6
  30. package/lib/built-in/background/sample-input-validated-processor-data.d.ts +0 -4
  31. package/lib/built-in/background/sample-input-validated-processor.d.ts +0 -8
  32. package/lib/built-in/built-in-trace-id-generators.d.ts +0 -5
  33. package/lib/built-in/daemon/daemon-authorizer-function.d.ts +0 -5
  34. package/lib/built-in/daemon/daemon-config.d.ts +0 -8
  35. package/lib/built-in/daemon/daemon-group-selection-function.d.ts +0 -4
  36. package/lib/built-in/daemon/daemon-handler.d.ts +0 -16
  37. package/lib/built-in/daemon/daemon-process-state-list.d.ts +0 -5
  38. package/lib/built-in/http/apollo/apollo-util.d.ts +0 -10
  39. package/lib/built-in/http/apollo/default-epsilon-apollo-context.d.ts +0 -10
  40. package/lib/built-in/http/apollo/epsilon-apollo-cors-method.d.ts +0 -5
  41. package/lib/built-in/http/apollo/epsilon-lambda-apollo-context-function-argument.d.ts +0 -5
  42. package/lib/built-in/http/apollo/epsilon-lambda-apollo-options.d.ts +0 -8
  43. package/lib/built-in/http/apollo-filter.d.ts +0 -10
  44. package/lib/built-in/http/built-in-auth-filters.d.ts +0 -9
  45. package/lib/built-in/http/built-in-authorizers.d.ts +0 -8
  46. package/lib/built-in/http/built-in-filters.d.ts +0 -25
  47. package/lib/built-in/http/built-in-handlers.d.ts +0 -9
  48. package/lib/built-in/http/log-level-manipulation-filter.d.ts +0 -6
  49. package/lib/built-in/http/run-handler-as-filter.d.ts +0 -12
  50. package/lib/built-in/http/run-handler-as-filter.spec.d.ts +0 -1
  51. package/lib/cli/ratchet-cli-handler.d.ts +0 -6
  52. package/lib/cli/run-background-process-from-command-line.d.ts +0 -3
  53. package/lib/config/background/background-aws-config.d.ts +0 -7
  54. package/lib/config/background/background-config.d.ts +0 -14
  55. package/lib/config/background/background-error-processor.d.ts +0 -4
  56. package/lib/config/background/background-processor.d.ts +0 -6
  57. package/lib/config/background/background-transaction-log.d.ts +0 -8
  58. package/lib/config/background/background-transaction-logger.d.ts +0 -5
  59. package/lib/config/cron/abstract-cron-entry.d.ts +0 -12
  60. package/lib/config/cron/cron-background-entry.d.ts +0 -6
  61. package/lib/config/cron/cron-config.d.ts +0 -6
  62. package/lib/config/dynamo-db-config.d.ts +0 -5
  63. package/lib/config/epsilon-config.d.ts +0 -21
  64. package/lib/config/epsilon-lambda-event-handler.d.ts +0 -7
  65. package/lib/config/epsilon-logger-config.d.ts +0 -13
  66. package/lib/config/generic-aws-event-handler-function.d.ts +0 -3
  67. package/lib/config/http/authorizer-function.d.ts +0 -6
  68. package/lib/config/http/epsilon-authorization-context.d.ts +0 -5
  69. package/lib/config/http/extended-api-gateway-event.d.ts +0 -7
  70. package/lib/config/http/filter-chain-context.d.ts +0 -14
  71. package/lib/config/http/filter-function.d.ts +0 -4
  72. package/lib/config/http/handler-function.d.ts +0 -5
  73. package/lib/config/http/http-config.d.ts +0 -15
  74. package/lib/config/http/http-processing-config.d.ts +0 -11
  75. package/lib/config/http/mapped-http-processing-config.d.ts +0 -7
  76. package/lib/config/http/null-returned-object-handling.d.ts +0 -5
  77. package/lib/config/inter-api/inter-api-aws-config.d.ts +0 -5
  78. package/lib/config/inter-api/inter-api-config.d.ts +0 -6
  79. package/lib/config/inter-api/inter-api-process-mapping.d.ts +0 -6
  80. package/lib/config/logging-trace-id-generator.d.ts +0 -4
  81. package/lib/config/open-api/open-api-document-components.d.ts +0 -4
  82. package/lib/config/open-api/open-api-document-path.d.ts +0 -2
  83. package/lib/config/open-api/open-api-document.d.ts +0 -6
  84. package/lib/config/s3-config.d.ts +0 -6
  85. package/lib/config/sns-config.d.ts +0 -5
  86. package/lib/http/auth/api-gateway-adapter-authentication-handler.d.ts +0 -8
  87. package/lib/http/auth/auth0-web-token-manipulator.d.ts +0 -13
  88. package/lib/http/auth/basic-auth-token.d.ts +0 -4
  89. package/lib/http/auth/google-web-token-manipulator.d.ts +0 -14
  90. package/lib/http/auth/google-web-token-manipulator.spec.d.ts +0 -1
  91. package/lib/http/auth/jwt-ratchet-local-web-token-manipulator.d.ts +0 -11
  92. package/lib/http/auth/local-web-token-manipulator.d.ts +0 -19
  93. package/lib/http/auth/local-web-token-manipulator.spec.d.ts +0 -1
  94. package/lib/http/auth/web-token-manipulator.d.ts +0 -4
  95. package/lib/http/error/bad-gateway.d.ts +0 -5
  96. package/lib/http/error/bad-request-error.d.ts +0 -5
  97. package/lib/http/error/conflict-error.d.ts +0 -5
  98. package/lib/http/error/epsilon-http-error.d.ts +0 -41
  99. package/lib/http/error/epsilon-http-error.spec.d.ts +0 -1
  100. package/lib/http/error/forbidden-error.d.ts +0 -5
  101. package/lib/http/error/gateway-timeout.d.ts +0 -5
  102. package/lib/http/error/method-not-allowed-error.d.ts +0 -5
  103. package/lib/http/error/misconfigured-error.d.ts +0 -5
  104. package/lib/http/error/not-found-error.d.ts +0 -5
  105. package/lib/http/error/not-implemented.d.ts +0 -5
  106. package/lib/http/error/request-timeout-error.d.ts +0 -5
  107. package/lib/http/error/service-unavailable.d.ts +0 -5
  108. package/lib/http/error/too-many-requests-error.d.ts +0 -5
  109. package/lib/http/error/unauthorized-error.d.ts +0 -5
  110. package/lib/http/event-util.d.ts +0 -27
  111. package/lib/http/event-util.spec.d.ts +0 -1
  112. package/lib/http/response-util.d.ts +0 -11
  113. package/lib/http/response-util.spec.d.ts +0 -1
  114. package/lib/http/route/epsilon-router.d.ts +0 -8
  115. package/lib/http/route/extended-auth-response-context.d.ts +0 -6
  116. package/lib/http/route/route-mapping.d.ts +0 -12
  117. package/lib/http/route/route-validator-config.d.ts +0 -5
  118. package/lib/http/route/router-util.d.ts +0 -23
  119. package/lib/http/route/router-util.spec.d.ts +0 -1
  120. package/lib/http/web-handler.d.ts +0 -23
  121. package/lib/http/web-handler.spec.d.ts +0 -1
  122. package/lib/http/web-v2-handler.d.ts +0 -10
  123. package/lib/inter-api/inter-api-entry.d.ts +0 -7
  124. package/lib/inter-api/inter-api-util.d.ts +0 -10
  125. package/lib/inter-api/inter-api-util.spec.d.ts +0 -1
  126. package/lib/lambda-event-handler/cron-epsilon-lambda-event-handler.d.ts +0 -14
  127. package/lib/lambda-event-handler/cron-epsilon-lambda-event-handler.spec.d.ts +0 -1
  128. package/lib/lambda-event-handler/dynamo-epsilon-lambda-event-handler.d.ts +0 -11
  129. package/lib/lambda-event-handler/generic-sns-epsilon-lambda-event-handler.d.ts +0 -10
  130. package/lib/lambda-event-handler/inter-api-epsilon-lambda-event-handler.d.ts +0 -10
  131. package/lib/lambda-event-handler/s3-epsilon-lambda-event-handler.d.ts +0 -10
  132. package/lib/open-api-util/open-api-doc-modifications.d.ts +0 -8
  133. package/lib/open-api-util/open-api-doc-modifier.d.ts +0 -7
  134. package/lib/open-api-util/open-api-doc-modifier.spec.d.ts +0 -1
  135. package/lib/open-api-util/yaml-combiner.d.ts +0 -3
  136. package/lib/open-api-util/yaml-combiner.spec.d.ts +0 -1
  137. package/lib/sample/sample-server-components.d.ts +0 -10
  138. package/lib/sample/sample-server-static-files.d.ts +0 -5
  139. package/lib/sample/test-error-server.d.ts +0 -11
  140. package/lib/util/aws-util.d.ts +0 -8
  141. package/lib/util/context-util.d.ts +0 -34
  142. package/lib/util/cron-util.d.ts +0 -11
  143. package/lib/util/cron-util.spec.d.ts +0 -1
  144. package/lib/util/epsilon-config-parser.d.ts +0 -14
@@ -1,6 +0,0 @@
1
- import { AuthResponseContext } from 'aws-lambda';
2
- export interface ExtendedAuthResponseContext extends AuthResponseContext {
3
- userData: any;
4
- userDataJSON: string;
5
- srcData: string;
6
- }
@@ -1,12 +0,0 @@
1
- import { RouteValidatorConfig } from './route-validator-config.js';
2
- import { HandlerFunction } from '../../config/http/handler-function.js';
3
- import { HttpProcessingConfig } from '../../config/http/http-processing-config.js';
4
- export interface RouteMapping {
5
- method: string;
6
- path: string;
7
- function: HandlerFunction<any>;
8
- metaProcessingConfig: HttpProcessingConfig;
9
- validation: RouteValidatorConfig;
10
- outboundValidation: RouteValidatorConfig;
11
- authorizerName: string;
12
- }
@@ -1,5 +0,0 @@
1
- export interface RouteValidatorConfig {
2
- modelName: string;
3
- emptyAllowed: boolean;
4
- extraPropertiesAllowed: boolean;
5
- }
@@ -1,23 +0,0 @@
1
- import { EpsilonRouter } from './epsilon-router.js';
2
- import { JwtTokenBase } from '@bitblit/ratchet-common';
3
- import { OpenApiDocument } from '../../config/open-api/open-api-document.js';
4
- import { ModelValidator } from '@bitblit/ratchet-misc';
5
- import { BackgroundHttpAdapterHandler } from '../../background/background-http-adapter-handler.js';
6
- import { HttpConfig } from '../../config/http/http-config.js';
7
- import { HttpProcessingConfig } from '../../config/http/http-processing-config.js';
8
- import { WebTokenManipulator } from '../auth/web-token-manipulator.js';
9
- import { FilterFunction } from '../../config/http/filter-function.js';
10
- export declare class RouterUtil {
11
- private constructor();
12
- static defaultAuthenticationHeaderParsingEpsilonPreFilters(webTokenManipulator: WebTokenManipulator<JwtTokenBase>): FilterFunction[];
13
- static defaultEpsilonPreFilters(): FilterFunction[];
14
- static defaultEpsilonPostFilters(): FilterFunction[];
15
- static defaultEpsilonErrorFilters(): FilterFunction[];
16
- static defaultHttpMetaProcessingConfigWithAuthenticationHeaderParsing(webTokenManipulator: WebTokenManipulator<JwtTokenBase>): HttpProcessingConfig;
17
- static defaultHttpMetaProcessingConfig(): HttpProcessingConfig;
18
- static assignDefaultsOnHttpConfig(cfg: HttpConfig): HttpConfig;
19
- static findApplicableMeta(httpConfig: HttpConfig, method: string, path: string): HttpProcessingConfig;
20
- static openApiYamlToRouterConfig(httpConfig: HttpConfig, openApiDoc: OpenApiDocument, modelValidator: ModelValidator, backgroundHttpAdapterHandler: BackgroundHttpAdapterHandler): EpsilonRouter;
21
- private static findAndValidateModelName;
22
- static openApiPathToRouteParserPath(input: string): string;
23
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,23 +0,0 @@
1
- import { EpsilonRouter } from './route/epsilon-router.js';
2
- import { APIGatewayEvent, Context, ProxyResult } from 'aws-lambda';
3
- import Route from 'route-parser';
4
- import { RouteMapping } from './route/route-mapping.js';
5
- import { ExtendedAPIGatewayEvent } from '../config/http/extended-api-gateway-event.js';
6
- import { EpsilonLambdaEventHandler } from '../config/epsilon-lambda-event-handler.js';
7
- export declare class WebHandler implements EpsilonLambdaEventHandler<APIGatewayEvent> {
8
- private routerConfig;
9
- static readonly MAXIMUM_LAMBDA_BODY_SIZE_BYTES: number;
10
- constructor(routerConfig: EpsilonRouter);
11
- get router(): EpsilonRouter;
12
- extractLabel(evt: APIGatewayEvent, context: Context): string;
13
- handlesEvent(evt: any): boolean;
14
- processEvent(event: APIGatewayEvent, context: Context): Promise<ProxyResult>;
15
- openApiLambdaHandler(evt: ExtendedAPIGatewayEvent, context: Context): Promise<ProxyResult>;
16
- findBestMatchingRoute(event: APIGatewayEvent): RouteAndParse;
17
- private cleanPath;
18
- }
19
- export interface RouteAndParse {
20
- mapping: RouteMapping;
21
- route: Route;
22
- parsed: any;
23
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,10 +0,0 @@
1
- import { APIGatewayProxyEventV2, Context, ProxyResult } from 'aws-lambda';
2
- import { EpsilonLambdaEventHandler } from '../config/epsilon-lambda-event-handler.js';
3
- import { WebHandler } from './web-handler.js';
4
- export declare class WebV2Handler implements EpsilonLambdaEventHandler<APIGatewayProxyEventV2> {
5
- private webHandler;
6
- constructor(webHandler: WebHandler);
7
- extractLabel(evt: APIGatewayProxyEventV2, context: Context): string;
8
- handlesEvent(evt: any): boolean;
9
- processEvent(evt: APIGatewayProxyEventV2, context: Context): Promise<ProxyResult>;
10
- }
@@ -1,7 +0,0 @@
1
- export interface InterApiEntry<T> {
2
- source: string;
3
- type: string;
4
- data: T;
5
- traceId?: string;
6
- traceDepth?: number;
7
- }
@@ -1,10 +0,0 @@
1
- import { SNSEvent } from 'aws-lambda';
2
- import { InterApiEntry } from './inter-api-entry.js';
3
- import { InterApiConfig } from '../config/inter-api/inter-api-config.js';
4
- import { BackgroundManagerLike } from '../background/manager/background-manager-like.js';
5
- export declare class InterApiUtil {
6
- static isInterApiSnsEvent(event: any): boolean;
7
- static extractEntryFromEvent(evt: SNSEvent): InterApiEntry<any>;
8
- static processInterApiEvent(evt: SNSEvent, cfg: InterApiConfig, mgr: BackgroundManagerLike): Promise<string[]>;
9
- static addTraceToInterApiEntry(ent: InterApiEntry<any>): InterApiEntry<any>;
10
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,14 +0,0 @@
1
- import { EpsilonLambdaEventHandler } from '../config/epsilon-lambda-event-handler.js';
2
- import { Context, ProxyResult, ScheduledEvent } from 'aws-lambda';
3
- import { EpsilonInstance } from '../epsilon-instance.js';
4
- import { CronConfig } from '../config/cron/cron-config.js';
5
- import { BackgroundHandler } from '../background/background-handler.js';
6
- import { BackgroundManagerLike } from '../background/manager/background-manager-like.js';
7
- export declare class CronEpsilonLambdaEventHandler implements EpsilonLambdaEventHandler<ScheduledEvent> {
8
- private _epsilon;
9
- constructor(_epsilon: EpsilonInstance);
10
- extractLabel(evt: ScheduledEvent, context: Context): string;
11
- handlesEvent(evt: any): boolean;
12
- processEvent(evt: ScheduledEvent, context: Context): Promise<ProxyResult>;
13
- static processCronEvent(evt: ScheduledEvent, cronConfig: CronConfig, backgroundManager: BackgroundManagerLike, background: BackgroundHandler): Promise<boolean>;
14
- }
@@ -1,11 +0,0 @@
1
- import { EpsilonLambdaEventHandler } from '../config/epsilon-lambda-event-handler.js';
2
- import { Context, DynamoDBStreamEvent, ProxyResult } from 'aws-lambda';
3
- import { EpsilonInstance } from '../epsilon-instance.js';
4
- export declare class DynamoEpsilonLambdaEventHandler implements EpsilonLambdaEventHandler<DynamoDBStreamEvent> {
5
- private _epsilon;
6
- constructor(_epsilon: EpsilonInstance);
7
- extractLabel(evt: DynamoDBStreamEvent, context: Context): string;
8
- handlesEvent(evt: any): boolean;
9
- processEvent(evt: DynamoDBStreamEvent, context: Context): Promise<ProxyResult>;
10
- processUncaughtError(event: DynamoDBStreamEvent, context: Context, err: any): Promise<ProxyResult>;
11
- }
@@ -1,10 +0,0 @@
1
- import { EpsilonLambdaEventHandler } from '../config/epsilon-lambda-event-handler.js';
2
- import { Context, ProxyResult, SNSEvent } from 'aws-lambda';
3
- import { EpsilonInstance } from '../epsilon-instance.js';
4
- export declare class GenericSnsEpsilonLambdaEventHandler implements EpsilonLambdaEventHandler<SNSEvent> {
5
- private _epsilon;
6
- constructor(_epsilon: EpsilonInstance);
7
- extractLabel(evt: SNSEvent, context: Context): string;
8
- handlesEvent(evt: any): boolean;
9
- processEvent(evt: SNSEvent, context: Context): Promise<ProxyResult>;
10
- }
@@ -1,10 +0,0 @@
1
- import { EpsilonLambdaEventHandler } from '../config/epsilon-lambda-event-handler.js';
2
- import { Context, ProxyResult, SNSEvent } from 'aws-lambda';
3
- import { EpsilonInstance } from '../epsilon-instance.js';
4
- export declare class InterApiEpsilonLambdaEventHandler implements EpsilonLambdaEventHandler<SNSEvent> {
5
- private _epsilon;
6
- constructor(_epsilon: EpsilonInstance);
7
- extractLabel(evt: SNSEvent, context: Context): string;
8
- handlesEvent(evt: any): boolean;
9
- processEvent(evt: SNSEvent, context: Context): Promise<ProxyResult>;
10
- }
@@ -1,10 +0,0 @@
1
- import { EpsilonLambdaEventHandler } from '../config/epsilon-lambda-event-handler.js';
2
- import { Context, ProxyResult, S3Event } from 'aws-lambda';
3
- import { EpsilonInstance } from '../epsilon-instance.js';
4
- export declare class S3EpsilonLambdaEventHandler implements EpsilonLambdaEventHandler<S3Event> {
5
- private _epsilon;
6
- constructor(_epsilon: EpsilonInstance);
7
- extractLabel(evt: S3Event, context: Context): string;
8
- handlesEvent(evt: any): boolean;
9
- processEvent(evt: S3Event, context: Context): Promise<ProxyResult>;
10
- }
@@ -1,8 +0,0 @@
1
- export interface OpenApiDocModifications {
2
- newServerPath: string;
3
- removeEndpoints: RegExp[];
4
- removeTags: string[];
5
- removeSchemas: string[];
6
- sortEndpoints: boolean;
7
- sortSchemas: boolean;
8
- }
@@ -1,7 +0,0 @@
1
- import { OpenApiDocModifications } from './open-api-doc-modifications.js';
2
- export declare class OpenApiDocModifier {
3
- private options;
4
- constructor(options: OpenApiDocModifications);
5
- modifyOpenApiDoc(yamlString: string): string;
6
- private matchNone;
7
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- export declare class YamlCombiner {
2
- static combine(files: string[], inRootPath?: string[]): string;
3
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,10 +0,0 @@
1
- import { ApolloServer } from '@apollo/server';
2
- import { EpsilonGlobalHandler } from '../epsilon-global-handler.js';
3
- import { EpsilonConfig } from '../config/epsilon-config.js';
4
- export declare class SampleServerComponents {
5
- private constructor();
6
- static createSampleApollo(): Promise<ApolloServer>;
7
- static createSampleEpsilonConfig(label: string): Promise<EpsilonConfig>;
8
- static createSampleEpsilonGlobalHandler(label: string): Promise<EpsilonGlobalHandler>;
9
- static createSampleBatchOnlyEpsilonGlobalHandler(label: string): Promise<EpsilonGlobalHandler>;
10
- }
@@ -1,5 +0,0 @@
1
- export declare class SampleServerStaticFiles {
2
- private constructor();
3
- static readonly SAMPLE_OPEN_API_DOC: string;
4
- static readonly SAMPLE_SERVER_GRAPHQL: string;
5
- }
@@ -1,11 +0,0 @@
1
- /// <reference types="node" resolution-mode="require"/>
2
- import { IncomingMessage, ServerResponse } from 'http';
3
- export declare class TestErrorServer {
4
- private port;
5
- private server;
6
- private aborted;
7
- constructor(port?: number);
8
- runServer(): Promise<boolean>;
9
- requestHandler(request: IncomingMessage, response: ServerResponse): Promise<any>;
10
- static runFromCliArgs(args: string[]): Promise<void>;
11
- }
@@ -1,8 +0,0 @@
1
- import { APIGatewayEvent, APIGatewayEventRequestContextV2, APIGatewayEventRequestContextWithAuthorizer, APIGatewayProxyEventV2 } from 'aws-lambda';
2
- export declare class AwsUtil {
3
- static apiGatewayV2ToApiGatewayV1(srcEvt: APIGatewayProxyEventV2): APIGatewayEvent;
4
- static apiGatewayV2RequestContextToApiGatewayV1RequestContext(srcEvt: APIGatewayEventRequestContextV2): APIGatewayEventRequestContextWithAuthorizer<any>;
5
- static findInMap<T>(toFind: string, map: Map<string, T>): T;
6
- static matchExact(r: any, str: any): boolean;
7
- static resolvePotentialFunctionToResult<T>(src: any, def: T): T;
8
- }
@@ -1,34 +0,0 @@
1
- import { Context, ProxyResult } from 'aws-lambda';
2
- import { EpsilonInstance } from '../epsilon-instance.js';
3
- import { InternalBackgroundEntry } from '../background/internal-background-entry.js';
4
- import { InterApiEntry } from '../inter-api/inter-api-entry.js';
5
- export declare class ContextUtil {
6
- private static CURRENT_EPSILON_REFERENCE;
7
- private static CURRENT_CONTEXT;
8
- private static CURRENT_EVENT;
9
- private static CURRENT_LOG_VARS;
10
- private static CURRENT_PROCESS_LABEL;
11
- private static CURRENT_OVERRIDE_TRACE_ID;
12
- private static CURRENT_OVERRIDE_TRACE_DEPTH;
13
- private constructor();
14
- static initContext(epsilon: EpsilonInstance, evt: any, ctx: Context, processLabel: string): void;
15
- static clearContext(): void;
16
- static setOverrideTrace(traceId: string, traceDepth: number): void;
17
- static setOverrideTraceFromInternalBackgroundEntry(entry: InternalBackgroundEntry<any>): void;
18
- static setOverrideTraceFromInterApiEntry(interApiEntry: InterApiEntry<any>): void;
19
- static addHeadersToRecord(input: Record<string, any>, depthOffset?: number): void;
20
- static addTraceToProxyResult(pr: ProxyResult): void;
21
- static addTraceToHttpRequestInit(ri: RequestInit): void;
22
- static setProcessLabel(processLabel: string): void;
23
- static currentRequestId(): string;
24
- static defaultedCurrentRequestId(defaultValueIfMissing?: string): string;
25
- static remainingTimeMS(): number;
26
- static currentProcessLabel(): string;
27
- private static traceHeaderName;
28
- private static traceDepthHeaderName;
29
- static currentTraceId(): string;
30
- static currentTraceDepth(): number;
31
- static addLogVariable(name: string, val: string | number | boolean): void;
32
- static fetchLogVariable(name: string): string | number | boolean;
33
- static fetchLogVariables(): Record<string, string | number | boolean>;
34
- }
@@ -1,11 +0,0 @@
1
- import { ScheduledEvent } from 'aws-lambda';
2
- import { AbstractCronEntry } from '../config/cron/abstract-cron-entry.js';
3
- import { CronConfig } from '../config/cron/cron-config.js';
4
- export declare class CronUtil {
5
- static everyNMinuteFilter(n: number): number[];
6
- static everyNDaysOfYearFilter(n: number): number[];
7
- static everyNElementFilter(n: number, m: number): number[];
8
- static numberMatchesFilter(num: number, filter: number[]): boolean;
9
- static eventMatchesEntry(event: ScheduledEvent, entry: AbstractCronEntry, cfg: CronConfig, testTimeEpochMS?: number): boolean;
10
- static cronEntryName(entry: AbstractCronEntry, idx?: number): string;
11
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,14 +0,0 @@
1
- import { ModelValidator } from '@bitblit/ratchet-misc';
2
- import { OpenApiDocument } from '../config/open-api/open-api-document.js';
3
- import { EpsilonConfig } from '../config/epsilon-config.js';
4
- import { EpsilonInstance } from '../epsilon-instance.js';
5
- import { EpsilonGlobalHandler } from '../epsilon-global-handler.js';
6
- import { BackgroundManagerLike } from '../background/manager/background-manager-like.js';
7
- export declare class EpsilonConfigParser {
8
- constructor();
9
- static epsilonConfigToEpsilonGlobalHandler(config: EpsilonConfig, backgroundManager?: BackgroundManagerLike): EpsilonGlobalHandler;
10
- static epsilonConfigToEpsilonInstance(config: EpsilonConfig, backgroundManager?: BackgroundManagerLike): EpsilonInstance;
11
- static parseOpenApiDocument(yamlString: string): OpenApiDocument;
12
- static openApiDocToValidator(doc: OpenApiDocument): ModelValidator;
13
- static validateGlobalConfig(config: EpsilonConfig): void;
14
- }