-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #900 from DFE-Digital/feature/178509
Updated change links, hidden task status and updated tests
- Loading branch information
Showing
10 changed files
with
80 additions
and
16 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
24 changes: 24 additions & 0 deletions
24
...Projects/Dfe.ManageFreeSchoolProjects.CypressTests/cypress/api/grantVariationLetterApi.ts
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { ApiClient } from "./apiClient"; | ||
import { CreatePDGGrantVariationLetterRequest, ResponseWrapper } from "./domain"; | ||
|
||
class GrantVariationLetterApi { | ||
public constructor(private readonly apiClient: ApiClient) { } | ||
|
||
public put( | ||
projectId: string, | ||
request: CreatePDGGrantVariationLetterRequest, | ||
): Cypress.Chainable { | ||
return this.apiClient | ||
.put<CreatePDGGrantVariationLetterRequest, ResponseWrapper<never>>( | ||
`/api/v1/client/projects/${projectId}/grant-letters/variation-letter`, | ||
request, | ||
) | ||
.then((response) => { | ||
return response.data; | ||
}); | ||
} | ||
} | ||
|
||
const grantVariationLetterApi = new GrantVariationLetterApi(new ApiClient()); | ||
|
||
export default grantVariationLetterApi; |
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
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