diff --git a/lib/libs/email/bundle-lib.ts b/lib/libs/email/bundle-lib.ts index 8cdd2d4b03..237f7b0825 100644 --- a/lib/libs/email/bundle-lib.ts +++ b/lib/libs/email/bundle-lib.ts @@ -1,4 +1,4 @@ -import { Action } from "shared-types"; +import { Action } from "../../packages/shared-types"; import { DecodedRecord } from "./handler-lib"; interface EmailCommand { @@ -258,7 +258,7 @@ const getBundleFromEvent = ( }; case "respond-to-rai-chip-spa": return { - lookupList: ["osInsights"], + lookupList: ["osInsights", "cognito"], dataList: [ "osgEmail", "chipInbox", @@ -274,6 +274,8 @@ const getBundleFromEvent = ( "additionalInformation", "formattedFileList", "textFileList", + "srt", + "cpoc", ], emailCommands: [ { diff --git a/lib/libs/email/data-lib.ts b/lib/libs/email/data-lib.ts index 9c48c11712..2a35e335c4 100644 --- a/lib/libs/email/data-lib.ts +++ b/lib/libs/email/data-lib.ts @@ -5,8 +5,8 @@ import { AttachmentKey, attachmentTitleMap, EmailAddresses, -} from "shared-types"; -import { getSecret } from "shared-utils"; +} from "../../packages/shared-types"; +import { getSecret } from "../../packages/shared-utils"; interface Attachment { title: keyof typeof attachmentTitleMap; @@ -172,7 +172,8 @@ export const buildEmailData = async ( `'${dataType} Substitute' `; break; case "additionalInformation": - returnObject[dataType] = data[dataType] ?? "No additional information submitted"; + returnObject[dataType] = + data[dataType] ?? "No additional information submitted"; break; default: returnObject[dataType] = diff --git a/package.json b/package.json index 703002bb05..5bca37b4e9 100644 --- a/package.json +++ b/package.json @@ -37,6 +37,7 @@ "cdk-serverless-clamscan": "^2.8.1", "constructs": "^10.3.0", "esbuild": "^0.21.5", + "luxon": "^3.5.0", "source-map-support": "^0.5.21", "tsx": "4.15.7" }, @@ -49,6 +50,7 @@ "@semantic-release/changelog": "^6.0.3", "@semantic-release/git": "^10.0.1", "@types/jest": "^29.5.12", + "@types/luxon": "^3.4.2", "@types/node": "20.14.2", "@vitest/coverage-c8": "^0.29.8", "@vitest/coverage-istanbul": "^2.0.5",