From 1bad0273542dd663958e3739b3dffdd39650c312 Mon Sep 17 00:00:00 2001 From: Eric Bach Date: Sat, 28 Dec 2024 19:24:29 -0700 Subject: [PATCH] Move unused labmda --- .../accountsResolver/createAccount.ts | 2 +- .../accountsResolver/deleteAccount.ts | 2 +- .../{lambda => lambda_notused}/accountsResolver/getAccounts.ts | 2 +- .../accountsResolver/helpers/dynamoDbCommand.ts | 0 .../accountsResolver/helpers/eventBridge.ts | 0 backend/src/{lambda => lambda_notused}/accountsResolver/main.ts | 2 +- .../accountsResolver/package-lock.json | 0 .../{lambda => lambda_notused}/accountsResolver/package.json | 0 .../{lambda => lambda_notused}/accountsResolver/tsconfig.json | 0 .../accountsResolver/updateAccount.ts | 2 +- 10 files changed, 5 insertions(+), 5 deletions(-) rename backend/src/{lambda => lambda_notused}/accountsResolver/createAccount.ts (93%) rename backend/src/{lambda => lambda_notused}/accountsResolver/deleteAccount.ts (96%) rename backend/src/{lambda => lambda_notused}/accountsResolver/getAccounts.ts (98%) rename backend/src/{lambda => lambda_notused}/accountsResolver/helpers/dynamoDbCommand.ts (100%) rename backend/src/{lambda => lambda_notused}/accountsResolver/helpers/eventBridge.ts (100%) rename backend/src/{lambda => lambda_notused}/accountsResolver/main.ts (95%) rename backend/src/{lambda => lambda_notused}/accountsResolver/package-lock.json (100%) rename backend/src/{lambda => lambda_notused}/accountsResolver/package.json (100%) rename backend/src/{lambda => lambda_notused}/accountsResolver/tsconfig.json (100%) rename backend/src/{lambda => lambda_notused}/accountsResolver/updateAccount.ts (95%) diff --git a/backend/src/lambda/accountsResolver/createAccount.ts b/backend/src/lambda_notused/accountsResolver/createAccount.ts similarity index 93% rename from backend/src/lambda/accountsResolver/createAccount.ts rename to backend/src/lambda_notused/accountsResolver/createAccount.ts index 914ef157..f3b3878c 100644 --- a/backend/src/lambda/accountsResolver/createAccount.ts +++ b/backend/src/lambda_notused/accountsResolver/createAccount.ts @@ -3,7 +3,7 @@ import { marshall } from '@aws-sdk/util-dynamodb'; const { v4: uuidv4 } = require('uuid'); import dynamoDbCommand from './helpers/dynamoDbCommand'; -import { CreateAccountInput, AccountReadModel } from '../types/Account'; +import { CreateAccountInput, AccountReadModel } from '../../lambda/types/Account'; async function createAccount(input: CreateAccountInput) { console.debug(`🕧 Create Account initialized`); diff --git a/backend/src/lambda/accountsResolver/deleteAccount.ts b/backend/src/lambda_notused/accountsResolver/deleteAccount.ts similarity index 96% rename from backend/src/lambda/accountsResolver/deleteAccount.ts rename to backend/src/lambda_notused/accountsResolver/deleteAccount.ts index 38760e27..15fdd4ea 100644 --- a/backend/src/lambda/accountsResolver/deleteAccount.ts +++ b/backend/src/lambda_notused/accountsResolver/deleteAccount.ts @@ -1,7 +1,7 @@ import { QueryCommand, QueryCommandInput, DeleteItemCommand, DeleteItemCommandInput } from '@aws-sdk/client-dynamodb'; import dynamoDbCommand from './helpers/dynamoDbCommand'; -import { DeleteAccountInput } from '../types/Account'; +import { DeleteAccountInput } from '../../lambda/types/Account'; async function deleteAccount(input: DeleteAccountInput) { console.debug(`🕧 Delete Account initialized`); diff --git a/backend/src/lambda/accountsResolver/getAccounts.ts b/backend/src/lambda_notused/accountsResolver/getAccounts.ts similarity index 98% rename from backend/src/lambda/accountsResolver/getAccounts.ts rename to backend/src/lambda_notused/accountsResolver/getAccounts.ts index ff0a5e9e..34926a5a 100644 --- a/backend/src/lambda/accountsResolver/getAccounts.ts +++ b/backend/src/lambda_notused/accountsResolver/getAccounts.ts @@ -1,7 +1,7 @@ import { QueryCommand, QueryCommandInput } from '@aws-sdk/client-dynamodb'; import { marshall, unmarshall } from '@aws-sdk/util-dynamodb'; -import { LastEvaluatedKey } from '../types/Account'; +import { LastEvaluatedKey } from '../../lambda/types/Account'; import dynamoDbCommand from './helpers/dynamoDbCommand'; async function getAccounts(userId: string, aggregateId: string, lastEvaluatedKey: LastEvaluatedKey) { diff --git a/backend/src/lambda/accountsResolver/helpers/dynamoDbCommand.ts b/backend/src/lambda_notused/accountsResolver/helpers/dynamoDbCommand.ts similarity index 100% rename from backend/src/lambda/accountsResolver/helpers/dynamoDbCommand.ts rename to backend/src/lambda_notused/accountsResolver/helpers/dynamoDbCommand.ts diff --git a/backend/src/lambda/accountsResolver/helpers/eventBridge.ts b/backend/src/lambda_notused/accountsResolver/helpers/eventBridge.ts similarity index 100% rename from backend/src/lambda/accountsResolver/helpers/eventBridge.ts rename to backend/src/lambda_notused/accountsResolver/helpers/eventBridge.ts diff --git a/backend/src/lambda/accountsResolver/main.ts b/backend/src/lambda_notused/accountsResolver/main.ts similarity index 95% rename from backend/src/lambda/accountsResolver/main.ts rename to backend/src/lambda_notused/accountsResolver/main.ts index 977855e7..169cf4a0 100644 --- a/backend/src/lambda/accountsResolver/main.ts +++ b/backend/src/lambda_notused/accountsResolver/main.ts @@ -3,7 +3,7 @@ import createAccount from './createAccount'; import updateAccount from './updateAccount'; import deleteAccount from './deleteAccount'; -import { AccountAppSyncEvent } from '../types/Account'; +import { AccountAppSyncEvent } from '../../lambda/types/Account'; exports.handler = async (event: AccountAppSyncEvent) => { console.debug(`🕧 AppSync event: ${JSON.stringify(event)}`); diff --git a/backend/src/lambda/accountsResolver/package-lock.json b/backend/src/lambda_notused/accountsResolver/package-lock.json similarity index 100% rename from backend/src/lambda/accountsResolver/package-lock.json rename to backend/src/lambda_notused/accountsResolver/package-lock.json diff --git a/backend/src/lambda/accountsResolver/package.json b/backend/src/lambda_notused/accountsResolver/package.json similarity index 100% rename from backend/src/lambda/accountsResolver/package.json rename to backend/src/lambda_notused/accountsResolver/package.json diff --git a/backend/src/lambda/accountsResolver/tsconfig.json b/backend/src/lambda_notused/accountsResolver/tsconfig.json similarity index 100% rename from backend/src/lambda/accountsResolver/tsconfig.json rename to backend/src/lambda_notused/accountsResolver/tsconfig.json diff --git a/backend/src/lambda/accountsResolver/updateAccount.ts b/backend/src/lambda_notused/accountsResolver/updateAccount.ts similarity index 95% rename from backend/src/lambda/accountsResolver/updateAccount.ts rename to backend/src/lambda_notused/accountsResolver/updateAccount.ts index bc7b4826..303518e4 100644 --- a/backend/src/lambda/accountsResolver/updateAccount.ts +++ b/backend/src/lambda_notused/accountsResolver/updateAccount.ts @@ -2,7 +2,7 @@ import { UpdateItemCommand, UpdateItemCommandInput } from '@aws-sdk/client-dynam import { marshall, unmarshall } from '@aws-sdk/util-dynamodb'; import dynamoDbCommand from './helpers/dynamoDbCommand'; -import { UpdateAccountInput } from '../types/Account'; +import { UpdateAccountInput } from '../../lambda/types/Account'; async function updateAccount(input: UpdateAccountInput) { console.debug(`🕧 Update Account initialized`);