Skip to content

Commit

Permalink
maintenance: lambda typescript foundations
Browse files Browse the repository at this point in the history
  • Loading branch information
rumzledz committed Oct 23, 2024
1 parent dd6d8ce commit d3b4107
Show file tree
Hide file tree
Showing 31 changed files with 1,372 additions and 895 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/scripts/amplify-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ fi
# Get the name of the current directory (repo name)
REPO_NAME=$(basename $(pwd))

# Run the transpile step for Lambda functions
echo "Transpiling Lambda functions..."
npm run lambdas:transpile

# Create a separate directory for Amplify at the same level as the repo
AMPLIFY_DIR="../amplify"
mkdir -p $AMPLIFY_DIR
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ cypress/screenshots

/dist

# Ignore bridgeXYZMutation lambda esbuild artifacts
amplify/backend/function/bridgeXYZMutation/src/**/*.js
amplify/backend/function/bridgeXYZMutation/src/**/*.map

#amplify-do-not-edit-begin
amplify/\#current-cloud-backend
amplify/.config/local-*
Expand Down
46 changes: 0 additions & 46 deletions amplify/backend/function/bridgeXYZMutation/src/graphql.js

This file was deleted.

47 changes: 47 additions & 0 deletions amplify/backend/function/bridgeXYZMutation/src/graphql.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
export const createLiquidationAddress = `
mutation CreateLiquidationAddress(
$input: CreateLiquidationAddressInput!
$condition: ModelLiquidationAddressConditionInput
) {
createLiquidationAddress(input: $input, condition: $condition) {
id
}
}
`;

export const getUser = `
query GetUser($id: ID!) {
getUser(id: $id) {
bridgeCustomerId
liquidationAddresses {
items {
id
}
}
profile {
hasCompletedKYCFlow
}
}
}
`;

export const getUserByBridgeCustomerId = `
query GetUserByBridgeCustomerId($bridgeCustomerId: String!) {
getUserByBridgeCustomerId(bridgeCustomerId: $bridgeCustomerId) {
items {
id
}
}
}
`;

export const updateUser = `
mutation UpdateUser(
$input: UpdateUserInput!
$condition: ModelUserConditionInput
) {
updateUser(input: $input, condition: $condition) {
id
}
}
`;
215 changes: 0 additions & 215 deletions amplify/backend/function/bridgeXYZMutation/src/handlers/checkKyc.js

This file was deleted.

Loading

0 comments on commit d3b4107

Please sign in to comment.