diff --git a/product_service/lambdas/catalog_batch_process/package.json b/product_service/lambdas/catalog_batch_process/package.json new file mode 100644 index 0000000..2ddc43b --- /dev/null +++ b/product_service/lambdas/catalog_batch_process/package.json @@ -0,0 +1,27 @@ +{ + "name": "@products-api/catalog_batch_process", + "version": "1.0.0", + "private": true, + "description": "Processes a batch of catalog items using SNS/SQS and DynamoDB", + "main": "dist/index.js", + "scripts": { + "build": "tsc --project tsconfig.json", + "build:watch": "tsc --project tsconfig.json --watch", + "test": "jest", + "lint": "eslint src/**/*.ts", + "clean": "rm -rf dist" + }, + "dependencies": { + "@products-api/shared": "*", + "@aws-sdk/client-dynamodb": "^3.0.0", + "@aws-sdk/lib-dynamodb": "^3.0.0" + }, + "devDependencies": { + "@types/aws-lambda": "^8.10.145", + "@types/jest": "^29.5.14", + "@types/node": "^22.10.0", + "jest": "^29.7.0", + "ts-jest": "^29.2.5", + "typescript": "^5.7.2" + } +} diff --git a/product_service/lambdas/catalog_batch_process/src/index.ts b/product_service/lambdas/catalog_batch_process/src/index.ts new file mode 100644 index 0000000..e69de29 diff --git a/product_service/lambdas/catalog_batch_process/tsconfig.json b/product_service/lambdas/catalog_batch_process/tsconfig.json new file mode 100644 index 0000000..4ab80d4 --- /dev/null +++ b/product_service/lambdas/catalog_batch_process/tsconfig.json @@ -0,0 +1,9 @@ +{ + "extends": "../../../tsconfig.json", + "compilerOptions": { + "outDir": "dist", + "rootDir": "src" + }, + "include": ["src/**/*"], + "exclude": ["node_modules", "dist"] +}