Skip to content

feat(parser): add TransferFamilySchema for AWS Transfer Family events #3575

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/utilities/parser.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ Parser comes with the following built-in schemas:
| **SesSchema** | Lambda Event Source payload for Amazon Simple Email Service |
| **SnsSchema** | Lambda Event Source payload for Amazon Simple Notification Service |
| **SqsSchema** | Lambda Event Source payload for Amazon SQS |
| **TransferFamilySchema** | Lambda Event Source payload for AWS Transfer Family events |
| **VpcLatticeSchema** | Lambda Event Source payload for Amazon VPC Lattice |
| **VpcLatticeV2Schema** | Lambda Event Source payload for Amazon VPC Lattice v2 payload |

Expand Down
5 changes: 4 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,8 @@
"lerna": {
"tar": "6.2.1"
}
},
"dependencies": {
"zod": "^3.24.1"
}
}
66 changes: 22 additions & 44 deletions packages/batch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,29 @@
"name": "Amazon Web Services",
"url": "https://aws.amazon.com"
},
"publishConfig": {
"access": "public"
"license": "MIT-0",
"homepage": "https://github.com/aws-powertools/powertools-lambda-typescript/tree/main/packages/batch#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/aws-powertools/powertools-lambda-typescript.git"
},
"scripts": {
"test": "vitest --run",
"test:unit": "vitest --run",
"test:unit:coverage": "vitest --run tests/unit --coverage.enabled --coverage.thresholds.100 --coverage.include='src/**'",
"test:unit:types": "echo 'Not Implemented'",
"test:e2e:nodejs18x": "echo 'Not Implemented'",
"test:e2e:nodejs20x": "echo 'Not Implemented'",
"test:e2e:nodejs22x": "echo 'Not Implemented'",
"test:e2e": "echo 'Not Implemented'",
"build:cjs": "tsc --build tsconfig.json && echo '{ \"type\": \"commonjs\" }' > lib/cjs/package.json",
"build:esm": "tsc --build tsconfig.esm.json && echo '{ \"type\": \"module\" }' > lib/esm/package.json",
"build": "npm run build:esm & npm run build:cjs",
"lint": "biome lint .",
"lint:fix": "biome check --write .",
"prepack": "node ../../.github/scripts/release_patch_package_json.js ."
"bugs": {
"url": "https://github.com/aws-powertools/powertools-lambda-typescript/issues"
},
"homepage": "https://github.com/aws-powertools/powertools-lambda-typescript/tree/main/packages/batch#readme",
"license": "MIT-0",
"keywords": [
"aws",
"lambda",
"powertools",
"batch",
"batch-processing",
"serverless",
"nodejs"
],
"main": "./lib/cjs/index.js",
"types": "./lib/cjs/index.d.ts",
"files": [
"lib"
],
"type": "module",
"exports": {
".": {
Expand All @@ -51,29 +53,5 @@
"lib/esm/types.d.ts"
]
}
},
"types": "./lib/cjs/index.d.ts",
"main": "./lib/cjs/index.js",
"files": [
"lib"
],
"repository": {
"type": "git",
"url": "git+https://github.com/aws-powertools/powertools-lambda-typescript.git"
},
"bugs": {
"url": "https://github.com/aws-powertools/powertools-lambda-typescript/issues"
},
"keywords": [
"aws",
"lambda",
"powertools",
"batch",
"batch-processing",
"serverless",
"nodejs"
],
"devDependencies": {
"@aws-lambda-powertools/testing-utils": "file:../testing"
}
}
}
60 changes: 20 additions & 40 deletions packages/commons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,27 @@
"name": "Amazon Web Services",
"url": "https://aws.amazon.com"
},
"publishConfig": {
"access": "public"
"license": "MIT-0",
"homepage": "https://github.com/aws-powertools/powertools-lambda-typescript/tree/main/packages/commons#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/aws-powertools/powertools-lambda-typescript.git"
},
"scripts": {
"test": "vitest --run",
"test:unit": "vitest --run",
"test:unit:coverage": "vitest --run tests/unit --coverage.enabled --coverage.thresholds.100 --coverage.include='src/**'",
"test:unit:types": "vitest --run tests/types --typecheck",
"test:e2e": "echo 'Not Applicable'",
"generateVersionFile": "echo \"// this file is auto generated, do not modify\nexport const PT_VERSION = '$(jq -r '.version' package.json)';\" > src/version.ts",
"build:cjs": "tsc --build tsconfig.json && echo '{ \"type\": \"commonjs\" }' > lib/cjs/package.json",
"build:esm": "tsc --build tsconfig.esm.json && echo '{ \"type\": \"module\" }' > lib/esm/package.json",
"build": "npm run build:esm & npm run build:cjs",
"lint": "biome lint .",
"lint:fix": "biome check --write .",
"prepack": "node ../../.github/scripts/release_patch_package_json.js ."
"bugs": {
"url": "https://github.com/aws-powertools/powertools-lambda-typescript/issues"
},
"homepage": "https://github.com/aws-powertools/powertools-lambda-typescript/tree/main/packages/commons#readme",
"license": "MIT-0",
"keywords": [
"aws",
"lambda",
"powertools",
"serverless",
"nodejs"
],
"main": "./lib/cjs/index.js",
"types": "./lib/cjs/index.d.ts",
"files": [
"lib"
],
"type": "module",
"exports": {
".": {
Expand Down Expand Up @@ -81,27 +83,5 @@
"lib/esm/types/index.d.ts"
]
}
},
"types": "./lib/cjs/index.d.ts",
"main": "./lib/cjs/index.js",
"files": [
"lib"
],
"repository": {
"type": "git",
"url": "git+https://github.com/aws-powertools/powertools-lambda-typescript.git"
},
"bugs": {
"url": "https://github.com/aws-powertools/powertools-lambda-typescript/issues"
},
"keywords": [
"aws",
"lambda",
"powertools",
"serverless",
"nodejs"
],
"devDependencies": {
"@aws-lambda-powertools/testing-utils": "file:../testing"
}
}
}
108 changes: 41 additions & 67 deletions packages/idempotency/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,48 @@
"name": "Amazon Web Services",
"url": "https://aws.amazon.com"
},
"publishConfig": {
"access": "public"
"license": "MIT-0",
"homepage": "https://github.com/aws-powertools/powertools-lambda-typescript/tree/main/packages/idempotency#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/aws-powertools/powertools-lambda-typescript.git"
},
"scripts": {
"test": "vitest --run tests/unit",
"test:unit": "vitest --run tests/unit",
"test:unit:coverage": "vitest --run tests/unit --coverage.enabled --coverage.thresholds.100 --coverage.include='src/**'",
"test:unit:types": "echo 'Not Implemented'",
"test:unit:watch": "vitest tests/unit",
"test:e2e:nodejs18x": "RUNTIME=nodejs18x vitest --run tests/e2e",
"test:e2e:nodejs20x": "RUNTIME=nodejs20x vitest --run tests/e2e",
"test:e2e:nodejs22x": "RUNTIME=nodejs22x vitest --run tests/e2e",
"test:e2e": "vitest --run tests/e2e",
"build:cjs": "tsc --build tsconfig.json && echo '{ \"type\": \"commonjs\" }' > lib/cjs/package.json",
"build:esm": "tsc --build tsconfig.esm.json && echo '{ \"type\": \"module\" }' > lib/esm/package.json",
"build": "npm run build:esm & npm run build:cjs",
"lint": "biome lint .",
"lint:fix": "biome check --write .",
"prepack": "node ../../.github/scripts/release_patch_package_json.js ."
"bugs": {
"url": "https://github.com/aws-powertools/powertools-lambda-typescript/issues"
},
"homepage": "https://github.com/aws-powertools/powertools-lambda-typescript/tree/main/packages/idempotency#readme",
"license": "MIT-0",
"keywords": [
"aws",
"lambda",
"powertools",
"idempotency",
"serverless",
"nodejs"
],
"dependencies": {
"@aws-lambda-powertools/commons": "^2.13.1",
"@aws-lambda-powertools/jmespath": "^2.13.1"
},
"peerDependencies": {
"@aws-sdk/client-dynamodb": ">=3.x",
"@aws-sdk/lib-dynamodb": ">=3.x",
"@middy/core": "4.x || 5.x || 6.x"
},
"peerDependenciesMeta": {
"@aws-sdk/client-dynamodb": {
"optional": true
},
"@aws-sdk/lib-dynamodb": {
"optional": true
},
"@middy/core": {
"optional": true
}
},
"main": "./lib/cjs/index.js",
"types": "./lib/cjs/index.d.ts",
"files": [
"lib"
],
"type": "module",
"exports": {
".": {
Expand Down Expand Up @@ -84,51 +104,5 @@
"lib/esm/types/index.d.ts"
]
}
},
"types": "./lib/cjs/index.d.ts",
"main": "./lib/cjs/index.js",
"files": [
"lib"
],
"repository": {
"type": "git",
"url": "git+https://github.com/aws-powertools/powertools-lambda-typescript.git"
},
"bugs": {
"url": "https://github.com/aws-powertools/powertools-lambda-typescript/issues"
},
"dependencies": {
"@aws-lambda-powertools/commons": "^2.13.1",
"@aws-lambda-powertools/jmespath": "^2.13.1"
},
"peerDependencies": {
"@aws-sdk/client-dynamodb": ">=3.x",
"@aws-sdk/lib-dynamodb": ">=3.x",
"@middy/core": "4.x || 5.x || 6.x"
},
"peerDependenciesMeta": {
"@aws-sdk/client-dynamodb": {
"optional": true
},
"@aws-sdk/lib-dynamodb": {
"optional": true
},
"@middy/core": {
"optional": true
}
},
"keywords": [
"aws",
"lambda",
"powertools",
"idempotency",
"serverless",
"nodejs"
],
"devDependencies": {
"@aws-lambda-powertools/testing-utils": "file:../testing",
"@aws-sdk/client-dynamodb": "^3.743.0",
"@aws-sdk/lib-dynamodb": "^3.743.0",
"aws-sdk-client-mock": "^4.1.0"
}
}
}
68 changes: 26 additions & 42 deletions packages/jmespath/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,32 @@
"name": "Amazon Web Services",
"url": "https://aws.amazon.com"
},
"publishConfig": {
"access": "public"
"license": "MIT-0",
"homepage": "https://github.com/aws-powertools/powertools-lambda-typescript",
"repository": {
"type": "git",
"url": "git+https://github.com/aws-powertools/powertools-lambda-typescript.git"
},
"scripts": {
"test": "vitest --run",
"test:unit": "vitest --run",
"test:unit:coverage": "vitest --run tests/unit --coverage.enabled --coverage.thresholds.100 --coverage.include='src/**'",
"test:unit:types": "echo 'Not applicable for this package'",
"test:e2e": "echo 'Not applicable for this package'",
"build:cjs": "tsc --build tsconfig.json && echo '{ \"type\": \"commonjs\" }' > lib/cjs/package.json",
"build:esm": "tsc --build tsconfig.esm.json && echo '{ \"type\": \"module\" }' > lib/esm/package.json",
"build": "npm run build:esm & npm run build:cjs",
"lint": "biome lint .",
"lint:fix": "biome check --write .",
"prepack": "node ../../.github/scripts/release_patch_package_json.js ."
"bugs": {
"url": "https://github.com/aws-powertools/powertools-lambda-typescript/issues"
},
"homepage": "https://github.com/aws-powertools/powertools-lambda-typescript",
"license": "MIT-0",
"keywords": [
"aws",
"lambda",
"powertools",
"jmespath",
"serverless",
"typescript",
"nodejs"
],
"dependencies": {
"@aws-lambda-powertools/commons": "^2.13.1"
},
"main": "./lib/cjs/index.js",
"types": "./lib/cjs/index.d.ts",
"files": [
"lib"
],
"type": "module",
"exports": {
".": {
Expand Down Expand Up @@ -64,29 +72,5 @@
"lib/esm/types.d.ts"
]
}
},
"types": "./lib/cjs/index.d.ts",
"main": "./lib/cjs/index.js",
"files": [
"lib"
],
"dependencies": {
"@aws-lambda-powertools/commons": "^2.13.1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/aws-powertools/powertools-lambda-typescript.git"
},
"bugs": {
"url": "https://github.com/aws-powertools/powertools-lambda-typescript/issues"
},
"keywords": [
"aws",
"lambda",
"powertools",
"jmespath",
"serverless",
"typescript",
"nodejs"
]
}
}
}
Loading