-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Read from new
team_settings
table (#3391)
- Loading branch information
1 parent
b8da414
commit 67b15da
Showing
34 changed files
with
194 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { LowCalSession, Team } from "../../../types"; | ||
import { LowCalSession } from "../../../types"; | ||
import supertest from "supertest"; | ||
import app from "../../../server"; | ||
import { queryMock } from "../../../tests/graphqlQueryMock"; | ||
|
@@ -8,6 +8,7 @@ import { | |
} from "../../../tests/mocks/saveAndReturnMocks"; | ||
import { buildContentFromSessions } from "./resumeApplication"; | ||
import { PartialDeep } from "type-fest"; | ||
import { Team } from "@opensystemslab/planx-core/types"; | ||
|
||
const ENDPOINT = "/resume-application"; | ||
const TEST_EMAIL = "[email protected]"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,7 +50,7 @@ describe(`sending an application by email to a planning office`, () => { | |
teams: [ | ||
{ | ||
sendToEmail: "[email protected]", | ||
notifyPersonalisation: { emailReplyToId: "abc123" }, | ||
settings: { emailReplyToId: "abc123" }, | ||
}, | ||
], | ||
}, | ||
|
@@ -153,7 +153,7 @@ describe(`sending an application by email to a planning office`, () => { | |
teams: [ | ||
{ | ||
sendToEmail: null, | ||
notifyPersonalisation: { emailReplyToId: "abc123" }, | ||
settings: { emailReplyToId: "abc123" }, | ||
}, | ||
], | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
"packageManager": "[email protected]", | ||
"dependencies": { | ||
"@airbrake/node": "^2.1.8", | ||
"@opensystemslab/planx-core": "git+https://github.com/theopensystemslab/planx-core#b43b268", | ||
"@opensystemslab/planx-core": "git+https://github.com/theopensystemslab/planx-core#75127e6", | ||
"@types/isomorphic-fetch": "^0.0.36", | ||
"adm-zip": "^0.5.10", | ||
"aws-sdk": "^2.1467.0", | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -83,7 +83,7 @@ export const validPaymentRequest = { | |
name: "Buckinghamshire", | ||
slug: "buckinghamshire", | ||
domain: "planningservices.buckinghamshire.gov.uk", | ||
notifyPersonalisation: { | ||
settings: { | ||
helpEmail: "[email protected]", | ||
helpPhone: "123", | ||
helpOpeningHours: "9a-5p", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
import { v4 as uuidV4 } from "uuid"; | ||
import type { LowCalSession, Flow } from "../../types"; | ||
import { Team } from "@opensystemslab/planx-core/types"; | ||
|
||
export const mockTeam = { | ||
id: 1, | ||
slug: "test-team", | ||
name: "Test Team", | ||
notifyPersonalisation: { | ||
settings: { | ||
helpEmail: "[email protected]", | ||
helpPhone: "(01234) 567890", | ||
helpOpeningHours: "Monday - Friday, 9am - 5pm", | ||
emailReplyToId: "727d48fa-cb8a-42f9-b8b2-55032f3bb451", | ||
}, | ||
}; | ||
} as Team; | ||
|
||
export const mockFlow: Flow = { | ||
id: "dcfd4f07-76da-4b67-9822-2aca92b27551", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
"packageManager": "[email protected]", | ||
"dependencies": { | ||
"@cucumber/cucumber": "^9.3.0", | ||
"@opensystemslab/planx-core": "git+https://github.com/theopensystemslab/planx-core#b43b268", | ||
"@opensystemslab/planx-core": "git+https://github.com/theopensystemslab/planx-core#75127e6", | ||
"axios": "^1.6.8", | ||
"dotenv": "^16.3.1", | ||
"dotenv-expand": "^10.0.0", | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.