-
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.
Removing/migrating canonical CRUD methods to the auto-generated ones.
- Loading branch information
1 parent
76f0841
commit 51d17f8
Showing
11 changed files
with
44 additions
and
131 deletions.
There are no files selected for viewing
This file was deleted.
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
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,22 @@ | ||
'use server'; | ||
import { ActionResponsePromise } from './actionResponse'; | ||
import { WorkProjectSeriesSchemaDto } from '../dtos/WorkProjectSeriesSchemaDtoSchema'; | ||
import { API_BASE_URL, Page } from '../main'; | ||
import { getWithoutBody } from './template-actions'; | ||
|
||
const SCHEMA_URL = `${API_BASE_URL}/workProjectSeriesSchemas`; | ||
|
||
// TODO REMOVE/MIGRATE THIS FUNCTION | ||
export async function getCurriculumDeliveryModelSchemasByKnowledgeLevel( | ||
page: number = 0, | ||
size: number = 10, | ||
yearGroup?: number | ||
): ActionResponsePromise<Page<WorkProjectSeriesSchemaDto>> { | ||
let url = SCHEMA_URL; | ||
const paging = `?page=${page}&size=${size}&sort=name,asc`; | ||
if (!!yearGroup) { | ||
url = `${url}/knowledge-level-ordinal/${yearGroup}`; | ||
} | ||
url = url + paging; | ||
return await getWithoutBody<Page<WorkProjectSeriesSchemaDto>>(url); | ||
} |
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