@aws-appsync/utils
Advanced tools
Comparing version 1.7.0 to 1.8.0
@@ -6,2 +6,18 @@ # Change Log | ||
# [1.8.0](https://github.com/aws/aws-appsync-toolkit/compare/v1.7.0...v1.8.0) (2024-05-30) | ||
### Bug Fixes | ||
* Move BatchGetItem projection to table ([f14122b](https://github.com/aws/aws-appsync-toolkit/commit/f14122bad14d44cb86b1a9d58ad756e1da2d1550)) | ||
### Features | ||
* add invocationType to LambdaRequest for async lambda ([6978e0f](https://github.com/aws/aws-appsync-toolkit/commit/6978e0feb67bb0dc7475634e9618ef7309cac779)) | ||
# [1.7.0](https://github.com/aws/aws-appsync-toolkit/compare/v1.6.0...v1.7.0) (2024-02-06) | ||
@@ -8,0 +24,0 @@ |
@@ -123,5 +123,5 @@ export type Key = { | ||
consistentRead?: boolean; | ||
projection?: DynamoDBProjectionExpression; | ||
}; | ||
}; | ||
projection?: DynamoDBProjectionExpression; | ||
}; | ||
@@ -178,3 +178,3 @@ export type DynamoDBBatchDeleteItemRequest = { | ||
}; | ||
export type HTTPRequest = { | ||
export type HTTPRequest<T extends string | Record<string, unknown>> = { | ||
method: 'PUT' | 'POST' | 'GET' | 'DELETE' | 'PATCH'; | ||
@@ -188,6 +188,11 @@ params?: { | ||
}; | ||
body?: string; | ||
body?: T; | ||
}; | ||
resourcePath: string; | ||
}; | ||
export type HTTPResult = { | ||
statusCode: number; | ||
headers?: Record<string, string>; | ||
body: string; | ||
}; | ||
export type RDSRequest = { | ||
@@ -320,2 +325,3 @@ statements: string[]; | ||
operation: 'Invoke' | 'BatchInvoke'; | ||
invocationType?: 'RequestResponse' | 'Event'; | ||
payload: unknown; | ||
@@ -326,2 +332,23 @@ }; | ||
}; | ||
export type PutEventsRequest = { | ||
operation: 'PutEvents'; | ||
events: { | ||
source: string; | ||
detail: { | ||
[key: string]: any; | ||
}; | ||
detailType: string; | ||
resources?: string[]; | ||
time?: string; | ||
}[]; | ||
}; | ||
export type PutEventsResult = { | ||
Entries: Array<{ | ||
EventId: string; | ||
} | { | ||
ErrorCode: string; | ||
ErrorMessage: string; | ||
}>; | ||
FailedEntryCount: number; | ||
}; | ||
export {}; |
{ | ||
"name": "@aws-appsync/utils", | ||
"version": "1.7.0", | ||
"version": "1.8.0", | ||
"description": "This project contains type definitions for AppSync resolver types.", | ||
@@ -30,3 +30,3 @@ "main": "lib/index.js", | ||
}, | ||
"gitHead": "ccd36faf69534fc8d4b8c2cf9ef6df3a85657fe7" | ||
"gitHead": "dc7e893537aa479e5415ba5aef5d57f57a667b9e" | ||
} |
130922
2952