Skip to content

Commit eb93dc2

Browse files
committed
fix missing exported types
1 parent 27999fa commit eb93dc2

File tree

10 files changed

+18
-83
lines changed

10 files changed

+18
-83
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
This repository contains the code for the following 3 packages published to NPM:
44

5-
* [@aws/durable-execution-sdk-js](https://github.com/aws/aws-durable-execution-sdk-js/tree/main/packages/aws-durable-execution-sdk-js)
6-
* [@aws/durable-execution-sdk-js-testing](https://github.com/aws/aws-durable-execution-sdk-js/tree/main/packages/aws-durable-execution-sdk-js-testing)
7-
* [@aws/durable-execution-sdk-js-eslint-plugin](https://github.com/aws/aws-durable-execution-sdk-js/tree/main/packages/aws-durable-execution-sdk-js-eslint-plugin)
5+
- [@aws/durable-execution-sdk-js](https://github.com/aws/aws-durable-execution-sdk-js/tree/main/packages/aws-durable-execution-sdk-js)
6+
- [@aws/durable-execution-sdk-js-testing](https://github.com/aws/aws-durable-execution-sdk-js/tree/main/packages/aws-durable-execution-sdk-js-testing)
7+
- [@aws/durable-execution-sdk-js-eslint-plugin](https://github.com/aws/aws-durable-execution-sdk-js/tree/main/packages/aws-durable-execution-sdk-js-eslint-plugin)
88

9-
The repository also contains example durable execution located [here](https://github.com/aws/aws-durable-execution-sdk-js/tree/main/packages/aws-durable-execution-sdk-js-examples).
9+
The repository also contains example durable functions located [here](https://github.com/aws/aws-durable-execution-sdk-js/tree/main/packages/aws-durable-execution-sdk-js-examples).
1010

1111
## Security
1212

packages/aws-durable-execution-sdk-js-eslint-plugin/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ The plugin detects these durable operations:
145145

146146
### No Nested Durable Operations
147147

148-
Nesting durable operations with the same context object can cause runtime errors and unexpected behavior in AWS Durable Executions. This rule helps catch these issues at development time.
148+
Nesting durable operations with the same context object can cause runtime errors and unexpected behavior in AWS durable functions. This rule helps catch these issues at development time.
149149

150150
### No Closure in Durable Operations
151151

packages/aws-durable-execution-sdk-js-examples/src/utils/test-helper.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { LambdaClient } from "@aws-sdk/client-lambda";
2+
import { DurableLambdaHandler } from "@aws/durable-execution-sdk-js";
23
import {
34
LocalDurableTestRunner,
45
CloudDurableTestRunner,
56
DurableTestRunner,
67
DurableOperation,
7-
LocalTestRunnerHandlerFunction,
88
InvocationType,
99
} from "@aws/durable-execution-sdk-js-testing";
1010

@@ -17,7 +17,7 @@ type TestCallback<ResultType> = (
1717
export interface TestDefinition<ResultType> {
1818
name: string;
1919
functionName: string;
20-
handler: LocalTestRunnerHandlerFunction;
20+
handler: DurableLambdaHandler;
2121
tests: TestCallback<ResultType>;
2222
invocationType?: InvocationType;
2323
localRunnerConfig?: {

packages/aws-durable-execution-sdk-js-testing/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@aws/durable-execution-sdk-js-testing",
3-
"description": "Durable Executions Testing SDK for TypeScript",
3+
"description": "AWS Durable Execution Testing SDK for TypeScript",
44
"version": "1.0.0",
55
"license": "Apache-2.0",
66
"repository": "ssh:github.com/aws/aws-durable-execution-sdk-js/tree/main/packages/aws-durable-execution-sdk-js-testing",

packages/aws-durable-execution-sdk-js-testing/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ export {
33
OperationType,
44
OperationStatus,
55
ExecutionStatus,
6+
InvocationType,
67
} from "@aws-sdk/client-lambda";

packages/aws-durable-execution-sdk-js-testing/src/test-runner/__tests__/index.test.ts

Lines changed: 0 additions & 66 deletions
This file was deleted.

packages/aws-durable-execution-sdk-js-testing/src/test-runner/cloud/__tests__/cloud-durable-test-runner.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ describe("CloudDurableTestRunner", () => {
123123
});
124124

125125
expect(runner).toBeDefined();
126-
expect(LambdaClient).toHaveBeenCalledWith({});
126+
expect(LambdaClient).toHaveBeenCalledWith();
127127
});
128128

129129
it("should initialize with custom Lambda client", () => {

packages/aws-durable-execution-sdk-js-testing/src/test-runner/cloud/cloud-durable-test-runner.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ import {
2424
} from "../common/create-durable-api-client";
2525
import { CloudOperation } from "./operations/cloud-operation";
2626

27-
export { InvocationType };
28-
2927
/**
3028
* Options for the cloud durable test runner.
3129
* @public

packages/aws-durable-execution-sdk-js-testing/src/test-runner/index.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export type {
44
LocalDurableTestRunnerSetupParameters,
55
} from "./local";
66

7-
export { CloudDurableTestRunner, InvocationType } from "./cloud";
7+
export { CloudDurableTestRunner } from "./cloud";
88
export type {
99
CloudDurableTestRunnerConfig,
1010
CloudDurableTestRunnerParameters,
@@ -20,9 +20,11 @@ export type {
2020

2121
export type {
2222
DurableOperation,
23-
ContextDetails as OperationResultContextDetails,
24-
StepDetails as OperationResultStepDetails,
25-
CallbackDetails as OperationResultCallbackDetails,
26-
ChainedInvokeDetails as OperationResultChainedInvokeDetails,
23+
ContextDetails,
24+
StepDetails,
25+
CallbackDetails,
26+
ChainedInvokeDetails,
2727
WaitResultDetails,
2828
} from "./types/durable-operation";
29+
30+
export { WaitingOperationStatus } from "./types/durable-operation";

packages/aws-durable-execution-sdk-js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@aws/durable-execution-sdk-js",
3-
"description": "Durable Executions Language SDK for TypeScript",
3+
"description": "AWS Durable Execution Language SDK for TypeScript",
44
"license": "Apache-2.0",
55
"version": "1.0.0",
66
"repository": "ssh:github.com/aws/aws-durable-execution-sdk-js/tree/main/packages/aws-durable-execution-sdk-js",

0 commit comments

Comments
 (0)